Merge remote-tracking branch 'origin/master' into master
正在显示
16 个修改的文件
包含
143 行增加
和
35 行删除
... | @@ -26,6 +26,7 @@ import com.skua.modules.ajh.service.IAjhMeetingSendService; | ... | @@ -26,6 +26,7 @@ import com.skua.modules.ajh.service.IAjhMeetingSendService; |
26 | import com.skua.modules.ajh.service.IAjhMeetingService; | 26 | import com.skua.modules.ajh.service.IAjhMeetingService; |
27 | 27 | ||
28 | import com.skua.modules.guest.util.DateUtil; | 28 | import com.skua.modules.guest.util.DateUtil; |
29 | import com.skua.modules.system.service.ISysConfigService; | ||
29 | import com.skua.modules.system.service.ISysUserService; | 30 | import com.skua.modules.system.service.ISysUserService; |
30 | import lombok.extern.slf4j.Slf4j; | 31 | import lombok.extern.slf4j.Slf4j; |
31 | 32 | ||
... | @@ -80,6 +81,9 @@ public class AjhMeetingMinutesController { | ... | @@ -80,6 +81,9 @@ public class AjhMeetingMinutesController { |
80 | @Autowired | 81 | @Autowired |
81 | private ISysUserService userService; | 82 | private ISysUserService userService; |
82 | 83 | ||
84 | @Autowired | ||
85 | private ISysConfigService sysConfigService; | ||
86 | |||
83 | 87 | ||
84 | /** | 88 | /** |
85 | * <pre> | 89 | * <pre> |
... | @@ -412,21 +416,22 @@ public class AjhMeetingMinutesController { | ... | @@ -412,21 +416,22 @@ public class AjhMeetingMinutesController { |
412 | 416 | ||
413 | //添加图片 | 417 | //添加图片 |
414 | // 第三部分:图片 | 418 | // 第三部分:图片 |
415 | File minutesimageFile = new File(minutesimage); | 419 | if(minutesimage != null ){ |
416 | if(minutesimageFile.exists()){ | 420 | File minutesimageFile = new File(minutesimage); |
417 | WordImageEntity img = new WordImageEntity(); | 421 | if(minutesimageFile.exists()){ |
418 | img.setType(WordImageEntity.URL); | 422 | WordImageEntity img = new WordImageEntity(); |
419 | img.setUrl(minutesimage); | 423 | img.setType(WordImageEntity.URL); |
420 | //img.setUrl("https://s2.51cto.com/media/2024/blog/logo.png"); | 424 | img.setUrl(minutesimage); |
421 | img.setWidth(550); | 425 | //img.setUrl("https://s2.51cto.com/media/2024/blog/logo.png"); |
422 | img.setHeight(500); | 426 | img.setWidth(550); |
423 | 427 | img.setHeight(500); | |
424 | paramMap.put("meetingImg" , img); | 428 | |
429 | paramMap.put("meetingImg" , img); | ||
430 | } | ||
425 | } | 431 | } |
426 | //导出word | 432 | //导出word |
427 | exportWordData( templatePath , exportName , paramMap ,response); | 433 | exportWordData( templatePath , exportName , paramMap ,response); |
428 | } | 434 | } |
429 | |||
430 | /** | 435 | /** |
431 | * 导出word模板 | 436 | * 导出word模板 |
432 | * @param templatePath | 437 | * @param templatePath |
... | @@ -440,12 +445,15 @@ public class AjhMeetingMinutesController { | ... | @@ -440,12 +445,15 @@ public class AjhMeetingMinutesController { |
440 | try { | 445 | try { |
441 | //获取word文档解析对象 | 446 | //获取word文档解析对象 |
442 | File file = new File(templatePath); | 447 | File file = new File(templatePath); |
443 | if(file.exists()){ | 448 | if( ! file.exists()){////判断文件是否存在,如果不存在使用默认模板 |
444 | inputStream = new FileInputStream(templatePath); | 449 | templatePath = sysConfigService.queryValueByKey("MEETING_MINUTES_TEMPLATE_PATH"); |
445 | }else{//判断文件是否存在,如果不存在使用默认模板 | 450 | //file = new File(bak_templatePath); |
446 | Resource resource = new ClassPathResource("templates" + File.separator + "template_AjhMeetingMinutes.docx"); | 451 | //}else{ |
447 | inputStream = resource.getInputStream(); | 452 | //inputStream = this.getClass().getResourceAsStream(File.separator +"templates" + File.separator + "template_AjhMeetingMinutes.docx"); |
453 | //Resource resource = new ClassPathResource("templates" + File.separator + "template_AjhMeetingMinutes.docx"); | ||
454 | // inputStream = resource.getInputStream(); | ||
448 | } | 455 | } |
456 | inputStream = new FileInputStream(templatePath); | ||
449 | //加载模板文件 | 457 | //加载模板文件 |
450 | MyXWPFDocument document = new MyXWPFDocument(inputStream); | 458 | MyXWPFDocument document = new MyXWPFDocument(inputStream); |
451 | //解析07版的Word并且进行赋值 | 459 | //解析07版的Word并且进行赋值 | ... | ... |
... | @@ -22,6 +22,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | ... | @@ -22,6 +22,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
22 | import com.baomidou.mybatisplus.core.metadata.IPage; | 22 | import com.baomidou.mybatisplus.core.metadata.IPage; |
23 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 23 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
24 | import com.skua.modules.erp.service.IPurchaseMaterialService; | 24 | import com.skua.modules.erp.service.IPurchaseMaterialService; |
25 | import com.skua.modules.erp.vo.DistributContractVO; | ||
25 | import lombok.extern.slf4j.Slf4j; | 26 | import lombok.extern.slf4j.Slf4j; |
26 | 27 | ||
27 | import org.jeecgframework.poi.excel.ExcelImportUtil; | 28 | import org.jeecgframework.poi.excel.ExcelImportUtil; |
... | @@ -75,10 +76,10 @@ public class DistributContractController { | ... | @@ -75,10 +76,10 @@ public class DistributContractController { |
75 | @AutoLog(value = "erp分销合同-添加") | 76 | @AutoLog(value = "erp分销合同-添加") |
76 | @ApiOperation(value="erp分销合同-添加", notes="erp分销合同-添加") | 77 | @ApiOperation(value="erp分销合同-添加", notes="erp分销合同-添加") |
77 | @PostMapping(value = "/add") | 78 | @PostMapping(value = "/add") |
78 | public Result<DistributContract> add(@RequestBody DistributContract distributContract) { | 79 | public Result<DistributContractVO> add(@RequestBody DistributContractVO distributContract) { |
79 | Result<DistributContract> result = new Result<DistributContract>(); | 80 | Result<DistributContractVO> result = new Result<DistributContractVO>(); |
80 | try { | 81 | try { |
81 | distributContractService.save(distributContract); | 82 | distributContractService.saveDistributContractVO(distributContract); |
82 | result.success("添加成功!"); | 83 | result.success("添加成功!"); |
83 | } catch (Exception e) { | 84 | } catch (Exception e) { |
84 | log.error(e.getMessage(),e); | 85 | log.error(e.getMessage(),e); |
... | @@ -90,13 +91,13 @@ public class DistributContractController { | ... | @@ -90,13 +91,13 @@ public class DistributContractController { |
90 | @AutoLog(value = "erp分销合同-编辑") | 91 | @AutoLog(value = "erp分销合同-编辑") |
91 | @ApiOperation(value="erp分销合同-编辑", notes="erp分销合同-编辑") | 92 | @ApiOperation(value="erp分销合同-编辑", notes="erp分销合同-编辑") |
92 | @PutMapping(value = "/edit") | 93 | @PutMapping(value = "/edit") |
93 | public Result<DistributContract> edit(@RequestBody DistributContract distributContract) { | 94 | public Result<DistributContract> edit(@RequestBody DistributContractVO distributContract) { |
94 | Result<DistributContract> result = new Result<DistributContract>(); | 95 | Result<DistributContract> result = new Result<DistributContract>(); |
95 | DistributContract distributContractEntity = distributContractService.getById(distributContract.getId()); | 96 | DistributContract distributContractEntity = distributContractService.getById(distributContract.getId()); |
96 | if(distributContractEntity==null) { | 97 | if(distributContractEntity==null) { |
97 | result.error500("未找到对应实体"); | 98 | result.error500("未找到对应实体"); |
98 | }else { | 99 | }else { |
99 | boolean ok = distributContractService.updateById(distributContract); | 100 | boolean ok = distributContractService.updateDistributContractVO(distributContract); |
100 | //TODO 返回false说明什么? | 101 | //TODO 返回false说明什么? |
101 | if(ok) { | 102 | if(ok) { |
102 | result.success("修改成功!"); | 103 | result.success("修改成功!"); |
... | @@ -111,7 +112,7 @@ public class DistributContractController { | ... | @@ -111,7 +112,7 @@ public class DistributContractController { |
111 | @DeleteMapping(value = "/delete") | 112 | @DeleteMapping(value = "/delete") |
112 | public Result<?> delete(@RequestParam(name="id",required=true) String id) { | 113 | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
113 | try { | 114 | try { |
114 | distributContractService.removeById(id); | 115 | distributContractService.delById(id); |
115 | } catch (Exception e) { | 116 | } catch (Exception e) { |
116 | log.error("删除失败",e.getMessage()); | 117 | log.error("删除失败",e.getMessage()); |
117 | return Result.error("删除失败!"); | 118 | return Result.error("删除失败!"); | ... | ... |
... | @@ -96,4 +96,9 @@ public class PurchaseMaterial { | ... | @@ -96,4 +96,9 @@ public class PurchaseMaterial { |
96 | @ApiModelProperty(value = "厂站名称") | 96 | @ApiModelProperty(value = "厂站名称") |
97 | private String departName; | 97 | private String departName; |
98 | 98 | ||
99 | @TableField(exist=false) | ||
100 | @ApiModelProperty(value = "扩展:采购物料数量") | ||
101 | private String materialNum; | ||
102 | |||
103 | |||
99 | } | 104 | } | ... | ... |
... | @@ -26,7 +26,7 @@ | ... | @@ -26,7 +26,7 @@ |
26 | <if test="goodCode != null and goodCode != ''"> | 26 | <if test="goodCode != null and goodCode != ''"> |
27 | AND m.good_code like concat('%', #{goodCode}, '%') | 27 | AND m.good_code like concat('%', #{goodCode}, '%') |
28 | </if> | 28 | </if> |
29 | <if test="noticeType != null and noticeType != ''"> | 29 | <if test="departId != null and departId != ''"> |
30 | AND pc.departs like concat('%', #{departId}, '%') | 30 | AND pc.departs like concat('%', #{departId}, '%') |
31 | </if> | 31 | </if> |
32 | ) aaa | 32 | ) aaa |
... | @@ -40,15 +40,17 @@ | ... | @@ -40,15 +40,17 @@ |
40 | from ( | 40 | from ( |
41 | select m.* from erp_purchase_material m , erp_purchase_contract pc where m.contract_id = pc.id | 41 | select m.* from erp_purchase_material m , erp_purchase_contract pc where m.contract_id = pc.id |
42 | <if test="goodCode != null and goodCode != ''"> | 42 | <if test="goodCode != null and goodCode != ''"> |
43 | AND m.good_code like concat('%', #{goodCode}, '%') | 43 | AND m.good_code like concat('', #{goodCode}, '%') |
44 | </if> | 44 | </if> |
45 | <if test="noticeType != null and noticeType != ''"> | 45 | <if test="departId != null and departId != ''"> |
46 | AND pc.departs like concat('%', #{departId}, '%') | 46 | AND pc.departs like concat('%', #{departId}, '%') |
47 | </if> | 47 | </if> |
48 | limit 1 | ||
48 | ) aaa | 49 | ) aaa |
49 | left join equipment_sparepart_supplies ss on aaa.sparepart_id = ss.id | 50 | left join equipment_sparepart_supplies ss on aaa.sparepart_id = ss.id |
50 | left join equipment_sparepart_type st on st.id = aaa.sparepart_type | 51 | left join equipment_sparepart_type st on st.id = aaa.sparepart_type |
51 | left join ajh_supplier_manage sm on sm.id = aaa.supplier_id | 52 | left join ajh_supplier_manage sm on sm.id = aaa.supplier_id |
53 | |||
52 | </select> | 54 | </select> |
53 | 55 | ||
54 | 56 | ... | ... |
... | @@ -10,8 +10,12 @@ | ... | @@ -10,8 +10,12 @@ |
10 | pp.id = pi.plan_id | 10 | pp.id = pi.plan_id |
11 | <if test="ev.sparepartType != null and ev.sparepartType != '' "> | 11 | <if test="ev.sparepartType != null and ev.sparepartType != '' "> |
12 | and pi.sparepart_type = #{ev.sparepartType} | 12 | and pi.sparepart_type = #{ev.sparepartType} |
13 | </if> <if test="ev.sparepartName != null and ev.sparepartName != '' "> | 13 | </if> |
14 | AND pi.sparepart_name like concat('%', #{ev.sparepartName}, '%') | 14 | <if test="ev.sparepartCode != null and ev.sparepartCode != '' "> |
15 | AND pi.sparepart_code like concat('%', #{ev.sparepartCode}, '%') | ||
16 | </if> | ||
17 | <if test="ev.sparepartName != null and ev.sparepartName != '' "> | ||
18 | AND pi.sparepart_name like concat('%', #{ev.sparepartName}, '%') | ||
15 | </if> | 19 | </if> |
16 | <if test="ev.applyYear != null and ev.applyYear != '' "> | 20 | <if test="ev.applyYear != null and ev.applyYear != '' "> |
17 | and pp.apply_year = #{ev.applyYear} | 21 | and pp.apply_year = #{ev.applyYear} |
... | @@ -28,7 +32,7 @@ | ... | @@ -28,7 +32,7 @@ |
28 | group by pi.sparepart_id | 32 | group by pi.sparepart_id |
29 | )aaa | 33 | )aaa |
30 | left join equipment_sparepart_supplies ss on aaa.sparepart_id = ss.id | 34 | left join equipment_sparepart_supplies ss on aaa.sparepart_id = ss.id |
31 | left join equipment_sparepart_type st on st.id = aaa.sparepart_type | 35 | left join equipment_sparepart_type st on st.id = ss.sparepart_type |
32 | 36 | ||
33 | </select> | 37 | </select> |
34 | 38 | ... | ... |
... | @@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ... | @@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
5 | import com.skua.modules.erp.entity.PurchaseMaterial; | 5 | import com.skua.modules.erp.entity.PurchaseMaterial; |
6 | import com.skua.modules.erp.mapper.PurchaseMaterialMapper; | 6 | import com.skua.modules.erp.mapper.PurchaseMaterialMapper; |
7 | import com.skua.modules.erp.service.IPurchaseMaterialService; | 7 | import com.skua.modules.erp.service.IPurchaseMaterialService; |
8 | import com.skua.modules.erp.vo.PurchasePlanSearchVO; | ||
9 | import org.springframework.stereotype.Service; | 8 | import org.springframework.stereotype.Service; |
10 | 9 | ||
11 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | 10 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ... | ... |
... | @@ -25,10 +25,12 @@ public class PurchasePlanSearchVO { | ... | @@ -25,10 +25,12 @@ public class PurchasePlanSearchVO { |
25 | @ApiModelProperty(value = "物料编号") | 25 | @ApiModelProperty(value = "物料编号") |
26 | public String sparepartId; | 26 | public String sparepartId; |
27 | 27 | ||
28 | @ApiModelProperty(value = "物料Code") | ||
29 | public String sparepartCode; | ||
30 | |||
28 | @ApiModelProperty(value = "权限下的部门编号集合") | 31 | @ApiModelProperty(value = "权限下的部门编号集合") |
29 | private String departs; | 32 | private String departs; |
30 | 33 | ||
31 | |||
32 | @ApiModelProperty(value = "开始时间") | 34 | @ApiModelProperty(value = "开始时间") |
33 | private String startTime; | 35 | private String startTime; |
34 | 36 | ... | ... |
... | @@ -13,6 +13,7 @@ import com.skua.modules.safe.service.IDangerInspectionItemService; | ... | @@ -13,6 +13,7 @@ import com.skua.modules.safe.service.IDangerInspectionItemService; |
13 | import com.skua.modules.safe.service.IDangerInspectionRecordService; | 13 | import com.skua.modules.safe.service.IDangerInspectionRecordService; |
14 | import com.skua.modules.safe.vo.DangerInspectionRecordVO; | 14 | import com.skua.modules.safe.vo.DangerInspectionRecordVO; |
15 | import com.skua.modules.safe.vo.DangerLevelManageVO; | 15 | import com.skua.modules.safe.vo.DangerLevelManageVO; |
16 | import com.skua.modules.safe.vo.InspectionRecordStatisticsVO; | ||
16 | import io.swagger.annotations.Api; | 17 | import io.swagger.annotations.Api; |
17 | import io.swagger.annotations.ApiOperation; | 18 | import io.swagger.annotations.ApiOperation; |
18 | import lombok.extern.slf4j.Slf4j; | 19 | import lombok.extern.slf4j.Slf4j; |
... | @@ -67,6 +68,15 @@ public class APPDangerInspectionRecordController { | ... | @@ -67,6 +68,15 @@ public class APPDangerInspectionRecordController { |
67 | if(StringUtils.isNotBlank(dangerInspectionRecord.getEndTime())){ | 68 | if(StringUtils.isNotBlank(dangerInspectionRecord.getEndTime())){ |
68 | queryWrapper.le("report_date", dangerInspectionRecord.getEndTime() ) ; | 69 | queryWrapper.le("report_date", dangerInspectionRecord.getEndTime() ) ; |
69 | } | 70 | } |
71 | if(StringUtils.isNotBlank(dangerInspectionRecord.getDangerName())){ | ||
72 | queryWrapper.like("danger_name", dangerInspectionRecord.getDangerName() ) ; | ||
73 | } | ||
74 | if(StringUtils.isNotBlank(dangerInspectionRecord.getStatus())){ | ||
75 | queryWrapper.eq("status", dangerInspectionRecord.getStatus() ) ; | ||
76 | } | ||
77 | if(StringUtils.isNotBlank(dangerInspectionRecord.getStartTime())){ | ||
78 | queryWrapper.ge("report_date", dangerInspectionRecord.getStartTime() ) ; | ||
79 | } | ||
70 | // queryWrapper.eq("report_user", BaseContextHandler.getUserId()); | 80 | // queryWrapper.eq("report_user", BaseContextHandler.getUserId()); |
71 | IPage<DangerInspectionRecord> pageList = dangerInspectionRecordService.page(page, queryWrapper); | 81 | IPage<DangerInspectionRecord> pageList = dangerInspectionRecordService.page(page, queryWrapper); |
72 | result.setSuccess(true); | 82 | result.setSuccess(true); |
... | @@ -98,6 +108,18 @@ public class APPDangerInspectionRecordController { | ... | @@ -98,6 +108,18 @@ public class APPDangerInspectionRecordController { |
98 | } | 108 | } |
99 | return result; | 109 | return result; |
100 | } | 110 | } |
101 | |||
102 | //Statistics | 111 | //Statistics |
112 | |||
113 | |||
114 | |||
115 | @AutoLog(value = "隐患排查记录:根据风险点统计记录") | ||
116 | @ApiOperation(value="隐患排查记录:根据风险点统计记录", notes="隐患排查记录:根据风险点统计记录") | ||
117 | @GetMapping(value = "/statistics") | ||
118 | public Result<InspectionRecordStatisticsVO> statistics(@RequestParam(name="dangerId") String dangerId) { | ||
119 | Result<InspectionRecordStatisticsVO> result = new Result<InspectionRecordStatisticsVO>(); | ||
120 | InspectionRecordStatisticsVO statisticsVO = inspectionRecordService.queryByStatistics(dangerId); | ||
121 | result.setResult(statisticsVO); | ||
122 | result.setSuccess(true); | ||
123 | return result; | ||
124 | } | ||
103 | } | 125 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -3,6 +3,7 @@ package com.skua.modules.safe.mapper; | ... | @@ -3,6 +3,7 @@ package com.skua.modules.safe.mapper; |
3 | import java.util.List; | 3 | import java.util.List; |
4 | 4 | ||
5 | import com.skua.modules.safe.vo.DangerLevelManageVO; | 5 | import com.skua.modules.safe.vo.DangerLevelManageVO; |
6 | import com.skua.modules.safe.vo.InspectionRecordStatisticsVO; | ||
6 | import org.apache.ibatis.annotations.Param; | 7 | import org.apache.ibatis.annotations.Param; |
7 | import com.skua.modules.safe.entity.DangerInspectionRecord; | 8 | import com.skua.modules.safe.entity.DangerInspectionRecord; |
8 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 9 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
... | @@ -24,4 +25,11 @@ public interface DangerInspectionRecordMapper extends BaseMapper<DangerInspectio | ... | @@ -24,4 +25,11 @@ public interface DangerInspectionRecordMapper extends BaseMapper<DangerInspectio |
24 | * @return | 25 | * @return |
25 | */ | 26 | */ |
26 | public DangerLevelManageVO queryDangerLevelAndInspectionRecord(@Param("inspectionRecordId") String inspectionRecordId); | 27 | public DangerLevelManageVO queryDangerLevelAndInspectionRecord(@Param("inspectionRecordId") String inspectionRecordId); |
28 | |||
29 | /*** | ||
30 | * 根据风险点统计记录 | ||
31 | * @param dangerId | ||
32 | * @return | ||
33 | */ | ||
34 | public InspectionRecordStatisticsVO queryByStatistics(@Param("dangerId") String dangerId); | ||
27 | } | 35 | } | ... | ... |
... | @@ -12,4 +12,13 @@ | ... | @@ -12,4 +12,13 @@ |
12 | 12 | ||
13 | where ir.id = #{inspectionRecordId} | 13 | where ir.id = #{inspectionRecordId} |
14 | </select> | 14 | </select> |
15 | |||
16 | <!-- 根据风险点统计记录 --> | ||
17 | <select id="queryByStatistics" resultType="com.skua.modules.safe.vo.InspectionRecordStatisticsVO"> | ||
18 | select | ||
19 | (select count(1) from danger_inspection_record t1 where t1.danger_id =#{dangerId}) as 'total_num', | ||
20 | (select count(1) from danger_inspection_record t2 where t2.status = 1 and t2.danger_id =#{dangerId}) as 'un_complete_num', | ||
21 | (select count(1) from danger_inspection_record t3 where t3.status = 2 and t3.danger_id =#{dangerId}) as 'complete_num' | ||
22 | from dual | ||
23 | </select> | ||
15 | </mapper> | 24 | </mapper> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -5,6 +5,7 @@ import com.skua.modules.safe.entity.DangerInspectionRecord; | ... | @@ -5,6 +5,7 @@ import com.skua.modules.safe.entity.DangerInspectionRecord; |
5 | import com.baomidou.mybatisplus.extension.service.IService; | 5 | import com.baomidou.mybatisplus.extension.service.IService; |
6 | import com.skua.modules.safe.entity.DangerLevelManage; | 6 | import com.skua.modules.safe.entity.DangerLevelManage; |
7 | import com.skua.modules.safe.vo.DangerLevelManageVO; | 7 | import com.skua.modules.safe.vo.DangerLevelManageVO; |
8 | import com.skua.modules.safe.vo.InspectionRecordStatisticsVO; | ||
8 | 9 | ||
9 | import java.util.List; | 10 | import java.util.List; |
10 | 11 | ||
... | @@ -53,4 +54,11 @@ public interface IDangerInspectionRecordService extends IService<DangerInspectio | ... | @@ -53,4 +54,11 @@ public interface IDangerInspectionRecordService extends IService<DangerInspectio |
53 | * @return | 54 | * @return |
54 | */ | 55 | */ |
55 | public DangerLevelManageVO queryListByRecordId(String inspectionRecordId); | 56 | public DangerLevelManageVO queryListByRecordId(String inspectionRecordId); |
57 | |||
58 | /*** | ||
59 | * 根据风险点统计记录 | ||
60 | * @param dangerId | ||
61 | * @return | ||
62 | */ | ||
63 | public InspectionRecordStatisticsVO queryByStatistics(String dangerId); | ||
56 | } | 64 | } | ... | ... |
... | @@ -7,6 +7,7 @@ import com.skua.modules.safe.entity.*; | ... | @@ -7,6 +7,7 @@ import com.skua.modules.safe.entity.*; |
7 | import com.skua.modules.safe.mapper.*; | 7 | import com.skua.modules.safe.mapper.*; |
8 | import com.skua.modules.safe.service.IDangerInspectionRecordService; | 8 | import com.skua.modules.safe.service.IDangerInspectionRecordService; |
9 | import com.skua.modules.safe.vo.DangerLevelManageVO; | 9 | import com.skua.modules.safe.vo.DangerLevelManageVO; |
10 | import com.skua.modules.safe.vo.InspectionRecordStatisticsVO; | ||
10 | import org.springframework.beans.BeanUtils; | 11 | import org.springframework.beans.BeanUtils; |
11 | import org.springframework.beans.factory.annotation.Autowired; | 12 | import org.springframework.beans.factory.annotation.Autowired; |
12 | import org.springframework.stereotype.Service; | 13 | import org.springframework.stereotype.Service; |
... | @@ -118,6 +119,7 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect | ... | @@ -118,6 +119,7 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect |
118 | inspectionItem.setItemName( inspectItem.getItemName()); | 119 | inspectionItem.setItemName( inspectItem.getItemName()); |
119 | inspectionItem.setItemType( inspectItem.getItemType()); | 120 | inspectionItem.setItemType( inspectItem.getItemType()); |
120 | inspectionItem.setInspectionInfoId (inspectionInfo.getId()); | 121 | inspectionItem.setInspectionInfoId (inspectionInfo.getId()); |
122 | inspectionItem.setStatus( inspectItem.getStatus() ); | ||
121 | dangerInspectionItemMapper.insert(inspectionItem); | 123 | dangerInspectionItemMapper.insert(inspectionItem); |
122 | } | 124 | } |
123 | } | 125 | } |
... | @@ -259,5 +261,12 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect | ... | @@ -259,5 +261,12 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect |
259 | return dangerLevelManageVO; | 261 | return dangerLevelManageVO; |
260 | } | 262 | } |
261 | 263 | ||
262 | 264 | /*** | |
265 | * 根据风险点统计记录 | ||
266 | * @param dangerId | ||
267 | * @return | ||
268 | */ | ||
269 | public InspectionRecordStatisticsVO queryByStatistics(String dangerId){ | ||
270 | return this.baseMapper.queryByStatistics(dangerId); | ||
271 | } | ||
263 | } | 272 | } | ... | ... |
... | @@ -27,9 +27,18 @@ public class DangerInspectionRecordVO { | ... | @@ -27,9 +27,18 @@ public class DangerInspectionRecordVO { |
27 | @ApiModelProperty(value = "风险等级编号") | 27 | @ApiModelProperty(value = "风险等级编号") |
28 | private String dangerId; | 28 | private String dangerId; |
29 | 29 | ||
30 | |||
30 | @ApiModelProperty(value = "巡检记录编号") | 31 | @ApiModelProperty(value = "巡检记录编号") |
31 | private String inspectionRecord; | 32 | private String inspectionRecord; |
32 | 33 | ||
34 | |||
35 | @Excel(name = "风险等级名称", width = 15) | ||
36 | @ApiModelProperty(value = "风险等级名称") | ||
37 | private String dangerName; | ||
38 | |||
39 | @ApiModelProperty(value = "巡检状态(1:开始,2:结束)") | ||
40 | private String status; | ||
41 | |||
33 | @TableField(exist=false) | 42 | @TableField(exist=false) |
34 | @ApiModelProperty(value = "条件:开始时间") | 43 | @ApiModelProperty(value = "条件:开始时间") |
35 | private String startTime; | 44 | private String startTime; | ... | ... |
1 | package com.skua.modules.safe.vo; | ||
2 | |||
3 | import io.swagger.annotations.ApiModel; | ||
4 | import io.swagger.annotations.ApiModelProperty; | ||
5 | import lombok.Data; | ||
6 | import org.jeecgframework.poi.excel.annotation.Excel; | ||
7 | |||
8 | /** | ||
9 | * @auther kangwei | ||
10 | * @create 2024-09-25-18:03 | ||
11 | */ | ||
12 | @Data | ||
13 | @ApiModel(value="InspectionRecord 隐患排查统计对象", description="隐患排查统计对象") | ||
14 | public class InspectionRecordStatisticsVO { | ||
15 | |||
16 | @ApiModelProperty(value = "全部数据") | ||
17 | private Integer totalNum; | ||
18 | |||
19 | @ApiModelProperty(value = "未完成数量") | ||
20 | private Integer unCompleteNum;//未处理数量 | ||
21 | |||
22 | @ApiModelProperty(value = "完成数量") | ||
23 | private Integer completeNum;//已经处理数据 | ||
24 | |||
25 | } |
... | @@ -91,7 +91,6 @@ public class EquipmentSparepartSuppliesController { | ... | @@ -91,7 +91,6 @@ public class EquipmentSparepartSuppliesController { |
91 | * @author 开发者姓名, 开发时间 | 91 | * @author 开发者姓名, 开发时间 |
92 | * @Description: TODO(这里描述这个方法的需求变更情况) | 92 | * @Description: TODO(这里描述这个方法的需求变更情况) |
93 | */ | 93 | */ |
94 | |||
95 | @AutoLog(value = "物料信息表-分页列表查询") | 94 | @AutoLog(value = "物料信息表-分页列表查询") |
96 | @ApiOperation(value = "物料信息表-分页列表查询", notes = "物料信息表-分页列表查询") | 95 | @ApiOperation(value = "物料信息表-分页列表查询", notes = "物料信息表-分页列表查询") |
97 | @GetMapping(value = "/list") | 96 | @GetMapping(value = "/list") |
... | @@ -214,11 +213,9 @@ public class EquipmentSparepartSuppliesController { | ... | @@ -214,11 +213,9 @@ public class EquipmentSparepartSuppliesController { |
214 | } | 213 | } |
215 | supplies.setStorageNum(BigDecimal.valueOf(totalSum)); | 214 | supplies.setStorageNum(BigDecimal.valueOf(totalSum)); |
216 | } | 215 | } |
217 | |||
218 | } | 216 | } |
219 | return equipmentSparepartSuppliesVOS; | 217 | return equipmentSparepartSuppliesVOS; |
220 | } | 218 | } |
221 | |||
222 | /** | 219 | /** |
223 | * <pre> | 220 | * <pre> |
224 | * 添加 | 221 | * 添加 | ... | ... |
-
请 注册 或 登录 后发表评论