Browse Source

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

master
pengwei 5 months ago
parent
commit
f0eee761d8
  1. 2
      src/main/java/com/biutag/supervision/controller/mobileSupervision/SupRiskPersonController.java
  2. 4
      src/main/java/com/biutag/supervision/service/SupRiskPersonalService.java

2
src/main/java/com/biutag/supervision/controller/mobileSupervision/SupRiskPersonController.java

@ -24,10 +24,12 @@ import java.util.List;
public class SupRiskPersonController {
private final SupRiskPersonalService supRiskPersonalService;
@GetMapping
Result<Page<SupRiskPersonalVo>> queryPage(SupRiskPersonalQueryParam queryParam){
return Result.success(supRiskPersonalService.page(queryParam));
}
//保存督察记录
@PostMapping("/saveSupRecord")
Result saveSupRecord(@RequestBody SupRiskPersonalSupRecordDto supRecordDto){

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

@ -45,8 +45,8 @@ public class SupRiskPersonalService extends ServiceImpl<SupRiskPersonalMapper, S
public Page<SupRiskPersonalVo> page(SupRiskPersonalQueryParam queryParam) {
QueryWrapper<SupRiskPersonal> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("srp.task_id", queryParam.getTaskId())
.like("srp.id_code",queryParam.getIdCode())
.like("srp.name",queryParam.getName())
.like(StrUtil.isNotEmpty(queryParam.getIdCode()),"srp.id_code",queryParam.getIdCode())
.like(StrUtil.isNotEmpty(queryParam.getName()),"srp.name",queryParam.getName())
.orderByAsc("srp.create_time");
Page<SupRiskPersonalVo> page = baseMapper.queryPage(Page.of(queryParam.getCurrent(), queryParam.getSize()), queryWrapper);
return page;

Loading…
Cancel
Save