Browse Source

fit:1、督察任务发布后端v2(包督办人员身份证)

master
pengwei 5 months ago
parent
commit
6538a9547e
  1. 4
      src/main/java/com/biutag/supervision/controller/mobileSupervision/TaskManagementController.java
  2. 3
      src/main/java/com/biutag/supervision/pojo/dto/SupRiskDto.java
  3. 6
      src/main/java/com/biutag/supervision/pojo/vo/SamplingVo.java
  4. 1
      src/main/java/com/biutag/supervision/service/TaskManagementService.java

4
src/main/java/com/biutag/supervision/controller/mobileSupervision/TaskManagementController.java

@ -138,6 +138,10 @@ public class TaskManagementController {
}
if(StrUtil.isNotBlank(data.getControlEmpNo())){
SupPolice supPolice= policeService.getByEmpNo(data.getControlEmpNo());
data.setControlIdcode(supPolice.getIdCode());
}
if(ObjectUtil.isNotEmpty(data)){
list.add(data);

3
src/main/java/com/biutag/supervision/pojo/dto/SupRiskDto.java

@ -61,4 +61,7 @@ public class SupRiskDto {
@ExcelProperty({"责任单位Id"})
private String responsibleDepartId;
@ExcelProperty({"包保督察人员身份证"})
private String controlIdcode;
}

6
src/main/java/com/biutag/supervision/pojo/vo/SamplingVo.java

@ -51,11 +51,11 @@ public class SamplingVo {
//时间范围
//开始时间
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private LocalDateTime startTime;
//结束时间
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private LocalDateTime endTime;
//被抽检次数
private int samplingNumber;
@ -104,7 +104,7 @@ public class SamplingVo {
samplingInspection +="最大年龄:"+vo.getAgeMax()+";";
}
if(vo.getAgeMin() >= 0){
samplingInspection +="最小年龄:"+vo.getSamplingName()+";";
samplingInspection +="最小年龄:"+vo.getAgeMin()+";";
}
if(StrUtil.isNotBlank(vo.getGender())){
samplingInspection +="性别:"+ ("1".equals(vo.getGender())?"男":"女")+";";

1
src/main/java/com/biutag/supervision/service/TaskManagementService.java

@ -152,6 +152,7 @@ public class TaskManagementService {
personalSup.setName(s.getControlName());
personalSup.setCreateTime(LocalDateTime.now());
personalSup.setTaskId(task.getId());
personalSup.setIdCode(s.getControlIdcode());
taskPersonService.save(personalSup);
//重点人员
SupRiskPersonal supRiskPersonal=new SupRiskPersonal();

Loading…
Cancel
Save