Browse Source

fit:1、督察任务发布后端v2(重点人员督察)优化3

master
pengwei 5 months ago
parent
commit
93d84f558d
  1. 2
      src/main/java/com/biutag/supervision/pojo/dto/SupRiskPersonalSupRecordDto.java
  2. 3
      src/main/java/com/biutag/supervision/pojo/entity/SupRiskPersonalSupRecord.java
  3. 2
      src/main/java/com/biutag/supervision/pojo/param/SupRiskPersonalSupRecordQueryParam.java
  4. 4
      src/main/java/com/biutag/supervision/service/SupRiskPersonalService.java

2
src/main/java/com/biutag/supervision/pojo/dto/SupRiskPersonalSupRecordDto.java

@ -15,6 +15,8 @@ import java.util.List;
@Getter @Getter
@Setter @Setter
public class SupRiskPersonalSupRecordDto { public class SupRiskPersonalSupRecordDto {
//任务ID
private int taskId;
private int id; private int id;
//重点人员姓名 //重点人员姓名

3
src/main/java/com/biutag/supervision/pojo/entity/SupRiskPersonalSupRecord.java

@ -15,6 +15,9 @@ public class SupRiskPersonalSupRecord {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private int id; private int id;
@TableField("task_id")
private int taskId;
//重点人员姓名 //重点人员姓名
@TableField("name") @TableField("name")
private String name; private String name;

2
src/main/java/com/biutag/supervision/pojo/param/SupRiskPersonalSupRecordQueryParam.java

@ -8,4 +8,6 @@ import lombok.Setter;
public class SupRiskPersonalSupRecordQueryParam extends BasePage { public class SupRiskPersonalSupRecordQueryParam extends BasePage {
private String idCode; private String idCode;
private int taskId;
} }

4
src/main/java/com/biutag/supervision/service/SupRiskPersonalService.java

@ -75,7 +75,9 @@ public class SupRiskPersonalService extends ServiceImpl<SupRiskPersonalMapper, S
* */ * */
public Page<SupRiskPersonalSupRecordVo> recordPage(SupRiskPersonalSupRecordQueryParam queryParam){ public Page<SupRiskPersonalSupRecordVo> recordPage(SupRiskPersonalSupRecordQueryParam queryParam){
QueryWrapper<SupRiskPersonalSupRecord> queryWrapper = new QueryWrapper<>(); QueryWrapper<SupRiskPersonalSupRecord> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("t.id_code",queryParam.getIdCode()); queryWrapper.eq("t.id_code",queryParam.getIdCode())
.eq("t.task_id",queryParam.getTaskId());
Page<SupRiskPersonalSupRecordVo> page = supRiskPersonalSupRecordMapper.queryPage(Page.of(queryParam.getCurrent(), queryParam.getSize()), queryWrapper); Page<SupRiskPersonalSupRecordVo> page = supRiskPersonalSupRecordMapper.queryPage(Page.of(queryParam.getCurrent(), queryParam.getSize()), queryWrapper);
page.getRecords().forEach(item -> { page.getRecords().forEach(item -> {

Loading…
Cancel
Save