|
@@ -1,6 +1,9 @@
|
|
|
package com.slibra.web.controller.business;
|
|
|
|
|
|
|
|
|
+import com.slibra.business.domain.TXinyiNormConfig;
|
|
|
+import com.slibra.business.mapper.TXinyiNormConfigMapper;
|
|
|
+import com.slibra.business.res.DailyWorkerRes;
|
|
|
import com.slibra.common.core.domain.TXinyiDaily;
|
|
|
import com.slibra.business.mapper.TXinyiDailyMapper;
|
|
|
import com.slibra.common.core.domain.AjaxResult;
|
|
@@ -20,6 +23,9 @@ public class OutController {
|
|
|
@Autowired
|
|
|
private TXinyiDailyMapper xinyiDailyMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TXinyiNormConfigMapper xinyiNormConfigMapper;
|
|
|
+
|
|
|
/**
|
|
|
* 通过日期获取某天的日报情况
|
|
|
* @return
|
|
@@ -33,4 +39,20 @@ public class OutController {
|
|
|
return AjaxResult.success(xinyiDailies.get(0));
|
|
|
return AjaxResult.error("没有查询到对应的日报数据");
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("generateReqData")
|
|
|
+ public DailyWorkerRes generateReqData(){
|
|
|
+ DailyWorkerRes dailyWorkerRes = new DailyWorkerRes();
|
|
|
+ //获取配置
|
|
|
+ //查询配置信息
|
|
|
+ List<TXinyiNormConfig> tXinyiNormConfigs = this.xinyiNormConfigMapper.selectTXinyiNormConfigList(null);
|
|
|
+ if(CollectionUtils.isEmpty(tXinyiNormConfigs))
|
|
|
+ return null;
|
|
|
+ TXinyiNormConfig normConfig = tXinyiNormConfigs.get(0);
|
|
|
+ dailyWorkerRes.setNormConfig(normConfig);
|
|
|
+ //查询最近15天的数据
|
|
|
+ dailyWorkerRes.setDailyRecords(this.xinyiDailyMapper.selectNRecords(15));
|
|
|
+ return dailyWorkerRes;
|
|
|
+ }
|
|
|
}
|