kangwei : 隐患排查对象接口
正在显示
6 个修改的文件
包含
20 行增加
和
7 行删除
... | @@ -36,6 +36,7 @@ | ... | @@ -36,6 +36,7 @@ |
36 | <artifactId>sk-module-system</artifactId> | 36 | <artifactId>sk-module-system</artifactId> |
37 | <version>1.0.0</version> | 37 | <version>1.0.0</version> |
38 | </dependency> | 38 | </dependency> |
39 | <!-- 自定义报表--> | ||
39 | <dependency> | 40 | <dependency> |
40 | <groupId>org.jeecgframework.boot</groupId> | 41 | <groupId>org.jeecgframework.boot</groupId> |
41 | <artifactId>sk-module-datafill</artifactId> | 42 | <artifactId>sk-module-datafill</artifactId> | ... | ... |
1 | package com.skua.modules.safe.controller.app; | 1 | package com.skua.modules.safe.controller.app; |
2 | import java.util.Date; | ||
2 | import java.util.List; | 3 | import java.util.List; |
3 | 4 | ||
4 | import com.skua.core.api.vo.Result; | 5 | import com.skua.core.api.vo.Result; |
... | @@ -166,7 +167,7 @@ public class APPDangerInspectionController { | ... | @@ -166,7 +167,7 @@ public class APPDangerInspectionController { |
166 | if(inspectionRecord==null) { | 167 | if(inspectionRecord==null) { |
167 | result.error500("未找到对应实体"); | 168 | result.error500("未找到对应实体"); |
168 | }else { | 169 | }else { |
169 | inspectionRecord.setEndDate(DateUtil.getCurrentDate() ) ; | 170 | inspectionRecord.setEndDate(DateUtil.formatDate(new Date(),"yyyy-MM-dd HH:mm:ss") ) ; |
170 | inspectionRecord.setStatus("2");//结束状态 | 171 | inspectionRecord.setStatus("2");//结束状态 |
171 | inspectionRecordService.updateById(inspectionRecord); | 172 | inspectionRecordService.updateById(inspectionRecord); |
172 | 173 | ... | ... |
... | @@ -58,7 +58,7 @@ public class APPDangerInspectionRecordController { | ... | @@ -58,7 +58,7 @@ public class APPDangerInspectionRecordController { |
58 | Result<IPage<DangerInspectionRecord>> result = new Result<IPage<DangerInspectionRecord>>(); | 58 | Result<IPage<DangerInspectionRecord>> result = new Result<IPage<DangerInspectionRecord>>(); |
59 | QueryWrapper<DangerInspectionRecord> queryWrapper = new QueryWrapper<DangerInspectionRecord>();// QueryGenerator.initQueryWrapper(dangerInspectionRecord, req.getParameterMap()); | 59 | QueryWrapper<DangerInspectionRecord> queryWrapper = new QueryWrapper<DangerInspectionRecord>();// QueryGenerator.initQueryWrapper(dangerInspectionRecord, req.getParameterMap()); |
60 | Page<DangerInspectionRecord> page = new Page<DangerInspectionRecord>(pageNo, pageSize); | 60 | Page<DangerInspectionRecord> page = new Page<DangerInspectionRecord>(pageNo, pageSize); |
61 | if(dangerInspectionRecord.getDangerId() != null ){ | 61 | if(dangerInspectionRecord.getDangerId() != null && dangerInspectionRecord.getDangerId().length() > 0 ){ |
62 | queryWrapper.eq("danger_id", dangerInspectionRecord.getDangerId()); | 62 | queryWrapper.eq("danger_id", dangerInspectionRecord.getDangerId()); |
63 | } | 63 | } |
64 | if(StringUtils.isNotBlank(dangerInspectionRecord.getStartTime())){ | 64 | if(StringUtils.isNotBlank(dangerInspectionRecord.getStartTime())){ | ... | ... |
... | @@ -26,8 +26,7 @@ import org.jeecgframework.poi.excel.annotation.Excel; | ... | @@ -26,8 +26,7 @@ import org.jeecgframework.poi.excel.annotation.Excel; |
26 | @EqualsAndHashCode(callSuper = false) | 26 | @EqualsAndHashCode(callSuper = false) |
27 | @Accessors(chain = true) | 27 | @Accessors(chain = true) |
28 | @ApiModel(value="danger_inspection_record对象", description="巡检记录") | 28 | @ApiModel(value="danger_inspection_record对象", description="巡检记录") |
29 | public class DangerInspectionRecord implements Serializable{ | 29 | public class DangerInspectionRecord { |
30 | |||
31 | /**id*/ | 30 | /**id*/ |
32 | @TableId(type = IdType.ID_WORKER_STR) | 31 | @TableId(type = IdType.ID_WORKER_STR) |
33 | @ApiModelProperty(value = "id") | 32 | @ApiModelProperty(value = "id") |
... | @@ -35,6 +34,7 @@ public class DangerInspectionRecord implements Serializable{ | ... | @@ -35,6 +34,7 @@ public class DangerInspectionRecord implements Serializable{ |
35 | /**厂id*/ | 34 | /**厂id*/ |
36 | @Excel(name = "厂id", width = 15) | 35 | @Excel(name = "厂id", width = 15) |
37 | @ApiModelProperty(value = "厂id") | 36 | @ApiModelProperty(value = "厂id") |
37 | @Dict(dictTable = "sys_depart", dicCode="id", dicText = "depart_name") | ||
38 | private String departId; | 38 | private String departId; |
39 | /**风险等级编号*/ | 39 | /**风险等级编号*/ |
40 | @Excel(name = "风险等级编号", width = 15) | 40 | @Excel(name = "风险等级编号", width = 15) |
... | @@ -110,4 +110,7 @@ public class DangerInspectionRecord implements Serializable{ | ... | @@ -110,4 +110,7 @@ public class DangerInspectionRecord implements Serializable{ |
110 | @ApiModelProperty(value = "条件:结束时间") | 110 | @ApiModelProperty(value = "条件:结束时间") |
111 | private String endTime; | 111 | private String endTime; |
112 | 112 | ||
113 | |||
114 | |||
115 | |||
113 | } | 116 | } | ... | ... |
... | @@ -15,6 +15,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ... | @@ -15,6 +15,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
15 | import org.springframework.transaction.annotation.Transactional; | 15 | import org.springframework.transaction.annotation.Transactional; |
16 | 16 | ||
17 | import javax.annotation.Resource; | 17 | import javax.annotation.Resource; |
18 | import java.util.Date; | ||
18 | import java.util.List; | 19 | import java.util.List; |
19 | 20 | ||
20 | /** | 21 | /** |
... | @@ -75,7 +76,7 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect | ... | @@ -75,7 +76,7 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect |
75 | dangerInspectionRecord.setDangerId( dangerId ); | 76 | dangerInspectionRecord.setDangerId( dangerId ); |
76 | dangerInspectionRecord.setStatus( status); | 77 | dangerInspectionRecord.setStatus( status); |
77 | dangerInspectionRecord.setReportUser( userId ); | 78 | dangerInspectionRecord.setReportUser( userId ); |
78 | dangerInspectionRecord.setReportDate(DateUtil.getCurrentDate()); | 79 | dangerInspectionRecord.setReportDate(DateUtil.formatDate(new Date(),"yyyy-MM-dd HH:mm:ss")); |
79 | 80 | ||
80 | this.baseMapper.insert( dangerInspectionRecord ) ; | 81 | this.baseMapper.insert( dangerInspectionRecord ) ; |
81 | 82 | ... | ... |
... | @@ -2,6 +2,7 @@ package com.skua.modules.safe.vo; | ... | @@ -2,6 +2,7 @@ package com.skua.modules.safe.vo; |
2 | 2 | ||
3 | 3 | ||
4 | import com.baomidou.mybatisplus.annotation.TableField; | 4 | import com.baomidou.mybatisplus.annotation.TableField; |
5 | import com.skua.modules.safe.entity.DangerInspectionInfo; | ||
5 | import com.skua.modules.safe.entity.DangerInspectionRecord; | 6 | import com.skua.modules.safe.entity.DangerInspectionRecord; |
6 | import io.swagger.annotations.ApiModel; | 7 | import io.swagger.annotations.ApiModel; |
7 | import io.swagger.annotations.ApiModelProperty; | 8 | import io.swagger.annotations.ApiModelProperty; |
... | @@ -9,6 +10,9 @@ import lombok.Data; | ... | @@ -9,6 +10,9 @@ import lombok.Data; |
9 | import lombok.EqualsAndHashCode; | 10 | import lombok.EqualsAndHashCode; |
10 | import lombok.experimental.Accessors; | 11 | import lombok.experimental.Accessors; |
11 | import org.jeecgframework.poi.excel.annotation.Excel; | 12 | import org.jeecgframework.poi.excel.annotation.Excel; |
13 | |||
14 | import java.util.List; | ||
15 | |||
12 | /** | 16 | /** |
13 | * 检查内容对象 | 17 | * 检查内容对象 |
14 | */ | 18 | */ |
... | @@ -23,11 +27,9 @@ public class DangerInspectionRecordVO { | ... | @@ -23,11 +27,9 @@ public class DangerInspectionRecordVO { |
23 | @ApiModelProperty(value = "风险等级编号") | 27 | @ApiModelProperty(value = "风险等级编号") |
24 | private String dangerId; | 28 | private String dangerId; |
25 | 29 | ||
26 | |||
27 | @ApiModelProperty(value = "巡检记录编号") | 30 | @ApiModelProperty(value = "巡检记录编号") |
28 | private String inspectionRecord; | 31 | private String inspectionRecord; |
29 | 32 | ||
30 | |||
31 | @TableField(exist=false) | 33 | @TableField(exist=false) |
32 | @ApiModelProperty(value = "条件:开始时间") | 34 | @ApiModelProperty(value = "条件:开始时间") |
33 | private String startTime; | 35 | private String startTime; |
... | @@ -35,4 +37,9 @@ public class DangerInspectionRecordVO { | ... | @@ -35,4 +37,9 @@ public class DangerInspectionRecordVO { |
35 | @TableField(exist=false) | 37 | @TableField(exist=false) |
36 | @ApiModelProperty(value = "条件:结束时间") | 38 | @ApiModelProperty(value = "条件:结束时间") |
37 | private String endTime; | 39 | private String endTime; |
40 | |||
41 | |||
42 | @TableField(exist=false) | ||
43 | @ApiModelProperty(value = "巡检对象集合") | ||
44 | private List<DangerInspectionInfo> inspectionInfoList ; | ||
38 | } | 45 | } | ... | ... |
-
请 注册 或 登录 后发表评论