|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.management.platform.entity.*;
|
|
import com.management.platform.entity.*;
|
|
|
|
+import com.management.platform.entity.bo.FormStorePageBO;
|
|
import com.management.platform.entity.bo.QuestionBO;
|
|
import com.management.platform.entity.bo.QuestionBO;
|
|
import com.management.platform.mapper.*;
|
|
import com.management.platform.mapper.*;
|
|
import com.management.platform.service.AIQuestionService;
|
|
import com.management.platform.service.AIQuestionService;
|
|
@@ -82,6 +83,9 @@ public class AIQuestionServiceImpl extends ServiceImpl<AIQuestionMapper, AIQuest
|
|
@Resource
|
|
@Resource
|
|
private CusTableColumnService cusTableColumnService;
|
|
private CusTableColumnService cusTableColumnService;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private BusReportStoreMapper busReportStoreMapper;
|
|
|
|
+
|
|
@Resource
|
|
@Resource
|
|
private DataSource dataSource;
|
|
private DataSource dataSource;
|
|
|
|
|
|
@@ -522,6 +526,19 @@ public class AIQuestionServiceImpl extends ServiceImpl<AIQuestionMapper, AIQuest
|
|
return httpRespMsg;
|
|
return httpRespMsg;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public HttpRespMsg getCusReportForm(HttpServletRequest request) {
|
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
|
+ User user = userMapper.selectById(request.getHeader("token"));
|
|
|
|
+ FormStorePageBO queryBO = new FormStorePageBO();
|
|
|
|
+ queryBO.setUserId(user.getId());
|
|
|
|
+ queryBO.setCompanyId(user.getCompanyId());
|
|
|
|
+ queryBO.setDepartmentId(user.getDepartmentId());
|
|
|
|
+ List<BusReportStore> list = busReportStoreMapper.getCusReportForm(queryBO);
|
|
|
|
+ msg.setData(list);
|
|
|
|
+ return msg;
|
|
|
|
+ }
|
|
|
|
+
|
|
public static List<Map<String, Object>> convertListWithAlias(ResultSet rs) {
|
|
public static List<Map<String, Object>> convertListWithAlias(ResultSet rs) {
|
|
List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
|
|
List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
|
|
try {
|
|
try {
|