手机端-根据id查询认证清单接口
This commit is contained in:
+7
@@ -39,4 +39,11 @@ public class ToDoCenterController {
|
||||
IPage<ProjectCertificationInventoryEO> page = this.toDoCenterService.queryPreHomoPage(params);
|
||||
return Result.OK(cut,page);
|
||||
}
|
||||
|
||||
@AutoLog(value = "手机端-待办中心-根据id查询认证清单详情")
|
||||
@ApiOperation(value = "手机端-待办中心-根据id查询认证清单详情", notes = "手机端-待办中心-根据id查询认证清单详情")
|
||||
@GetMapping(value = "/queryProjectCertificationInventoryById")
|
||||
public Result<?> queryProjectCertificationInventoryById(@RequestParam Map<String,Object> params) {
|
||||
return this.toDoCenterService.queryProjectCertificationInventoryById(params);
|
||||
}
|
||||
}
|
||||
|
||||
+3
@@ -1,6 +1,7 @@
|
||||
package com.jero.modules.phone.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.modules.project.entity.ProjectCertificationInventoryEO;
|
||||
|
||||
import java.util.Map;
|
||||
@@ -9,4 +10,6 @@ public interface IToDoCenterService {
|
||||
IPage queryTodoTaskPage(Map<String, Object> params);
|
||||
|
||||
IPage<ProjectCertificationInventoryEO> queryPreHomoPage(Map<String,Object> params);
|
||||
|
||||
Result<?> queryProjectCertificationInventoryById(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+21
-1
@@ -3,8 +3,10 @@ package com.jero.modules.phone.service.impl;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.constant.enums.CutEnum;
|
||||
import com.jero.common.constant.enums.YesOrNoEnum;
|
||||
import com.jero.common.exception.JeroBootException;
|
||||
import com.jero.common.system.vo.LoginUser;
|
||||
import com.jero.common.util.DateUtils;
|
||||
import com.jero.modules.phone.service.IToDoCenterService;
|
||||
@@ -18,7 +20,6 @@ import com.jero.modules.project.enums.TaskStatusEnum;
|
||||
import com.jero.modules.project.service.IProjectCertificationInventoryEOService;
|
||||
import com.jero.modules.project.service.IProjectLawsInventoryEOService;
|
||||
import com.jero.modules.project.service.IProjectTaskInventoryDetailEOService;
|
||||
import com.jero.modules.project.service.IProjectTaskInventoryEOService;
|
||||
import com.jero.modules.system.entity.SysCategory;
|
||||
import com.jero.modules.system.entity.SysDictItem;
|
||||
import com.jero.modules.system.entity.SysUser;
|
||||
@@ -463,4 +464,23 @@ public class ToDoCenterServiceImpl implements IToDoCenterService {
|
||||
IPage<ProjectCertificationInventoryEO> pageList = this.projectCertificationInventoryEOService.queryPage(queryWrapper, page, pciEo, cut);
|
||||
return pageList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<?> queryProjectCertificationInventoryById(Map<String, Object> params) {
|
||||
String id = (String) params.get("id");
|
||||
String cut = (String) params.get("cut");
|
||||
if (StringUtils.isEmpty(id)) {
|
||||
throw new JeroBootException("id不能为空,请检查!");
|
||||
}
|
||||
|
||||
ProjectCertificationInventoryEO pciEo = this.projectCertificationInventoryEOService.getById(id);
|
||||
if (ObjectUtils.isEmpty(pciEo)) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
|
||||
List<ProjectCertificationInventoryEO> pciEoList = new ArrayList<>();
|
||||
pciEoList.add(pciEo);
|
||||
this.projectCertificationInventoryEOService.disposeData(pciEoList, cut);
|
||||
return Result.OK(pciEoList.get(0));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user