1a68587e 张雷

fenxi 组件接口开发

1 个父辈 11f519d6
...@@ -378,6 +378,8 @@ public class ReportItemvService { ...@@ -378,6 +378,8 @@ public class ReportItemvService {
378 String dataViewName2119Tb = ReportViewUtil.buildView(ReportConstant.view2119, ReportConstant.fieldClsl, departIds, startDateTb, endDateTb); 378 String dataViewName2119Tb = ReportViewUtil.buildView(ReportConstant.view2119, ReportConstant.fieldClsl, departIds, startDateTb, endDateTb);
379 String dataViewName2119Hb = ReportViewUtil.buildView(ReportConstant.view2119, ReportConstant.fieldClsl, departIds, startDateHb, endDateHb); 379 String dataViewName2119Hb = ReportViewUtil.buildView(ReportConstant.view2119, ReportConstant.fieldClsl, departIds, startDateHb, endDateHb);
380 380
381 JdbcTemplate masterDB = (JdbcTemplate) SpringContextUtils.getBean("master");
382
381 return null; 383 return null;
382 } 384 }
383 } 385 }
......
...@@ -1680,4 +1680,24 @@ public class ScreenDataController { ...@@ -1680,4 +1680,24 @@ public class ScreenDataController {
1680 } 1680 }
1681 return resList; 1681 return resList;
1682 } 1682 }
1683
1684 @AutoLog(value = "设备相关组件")
1685 @ApiOperation(value = "设备相关组件", notes = "设备相关组件")
1686 @PostMapping(value = "/getEquipData")
1687 public Result<Map<String, Object>> getEquipData(@RequestBody StatisticsParams statisticsParams) {
1688 Result<Map<String, Object>> result = new Result<>();
1689 Map<String, Object> map = screenDataService.getEquipData(statisticsParams);
1690 result.setResult(map);
1691 return result;
1692 }
1693
1694 @AutoLog(value = "招采组件")
1695 @ApiOperation(value = "招采组件", notes = "招采组件")
1696 @PostMapping(value = "/getErpData")
1697 public Result<Map<String, Object>> getErpData(@RequestBody StatisticsParams statisticsParams) {
1698 Result<Map<String, Object>> result = new Result<>();
1699 Map<String, Object> map = screenDataService.getErpData(statisticsParams);
1700 result.setResult(map);
1701 return result;
1702 }
1683 } 1703 }
......
...@@ -34,4 +34,8 @@ public interface IScreenDataService{ ...@@ -34,4 +34,8 @@ public interface IScreenDataService{
34 * @return 34 * @return
35 */ 35 */
36 List<Map<String, Object>> factoryDesign(QueryWrapper<Object> queryWrapper); 36 List<Map<String, Object>> factoryDesign(QueryWrapper<Object> queryWrapper);
37
38 Map<String, Object> getEquipData(StatisticsParams statisticsParams);
39
40 Map<String, Object> getErpData(StatisticsParams statisticsParams);
37 } 41 }
......
...@@ -355,6 +355,32 @@ public class ScreenDataServiceImpl implements IScreenDataService { ...@@ -355,6 +355,32 @@ public class ScreenDataServiceImpl implements IScreenDataService {
355 return screenMapper.factoryDesign(queryWrapper); 355 return screenMapper.factoryDesign(queryWrapper);
356 } 356 }
357 357
358 @Override
359 public Map<String, Object> getEquipData(StatisticsParams statisticsParams) {
360 Map<String, Object> map = new HashMap<>();
361 List<Map<String, Object>> list = new ArrayList<>();
362 Map<String, Object> equip1 = new HashMap<>();
363 equip1.put("departName","0.00");
364 equip1.put("equipName","0.00");
365 equip1.put("gzqk","0.00");
366 equip1.put("clcs","0.00");
367 list.add(equip1);
368 map.put("ywhfy","0.00");
369 map.put("list",list);
370 return map;
371 }
372
373 @Override
374 public Map<String, Object> getErpData(StatisticsParams statisticsParams) {
375 Map<String, Object> map = new HashMap<>();
376 map.put("yjrkl","0.00");
377 map.put("cgze","0.00");
378 map.put("fxze","0.00");
379 map.put("gysjsje","0.00");
380 map.put("swgsjsje","0.00");
381 return map;
382 }
383
358 public static void main(String[] args) { 384 public static void main(String[] args) {
359 String startTime = "2024-01-01";// 385 String startTime = "2024-01-01";//
360 String endTime = "2024-12-31"; 386 String endTime = "2024-12-31";
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!