Commit a00cb0a2 authored by zhangch's avatar zhangch

同步代码

parent 309c1e10
...@@ -3,6 +3,7 @@ package com.hungraim.ltc.controller; ...@@ -3,6 +3,7 @@ package com.hungraim.ltc.controller;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ltc.pojo.entity.disable.*; import com.hungraim.ltc.pojo.entity.disable.*;
import com.hungraim.ltc.pojo.vo.assessment.ReTaskDistributionVO;
import com.hungraim.ltc.pojo.vo.disable.*; import com.hungraim.ltc.pojo.vo.disable.*;
import com.hungraim.ltc.service.DisableService; import com.hungraim.ltc.service.DisableService;
import com.hungraim.ltc.util.Result; import com.hungraim.ltc.util.Result;
...@@ -339,35 +340,41 @@ public class DisableController { ...@@ -339,35 +340,41 @@ public class DisableController {
* 先把info的数据带出来,更改完,存到这个变更表 * 先把info的数据带出来,更改完,存到这个变更表
*/ */
@PostMapping("/addDisInfoChange") @PostMapping("/addDisInfoChange")
public void addDisInfochange(ChDisableInfoChange chDisableInfoChange){ public void addDisInfochange(ChDisableInfoChange chDisableInfoChange) {
disableService.DisInfoChange(chDisableInfoChange); disableService.DisInfoChange(chDisableInfoChange);
} }
/** /**
* 失能人员信息变更-审核列表 * 失能人员信息变更-审核列表
*/ */
@PostMapping("/listDisInfoChangeExamine") @PostMapping("/listDisInfoChangeExamine")
public Result<List<DisableInfoChangeVo>> getListDisInfoChangeExamine(String organId,String districtProvince,boolean ishasLowOrgan public Result<Page<DisableInfoChangeVo>> getListDisInfoChangeExamine(@RequestParam(defaultValue = "1") Integer pageNum, @RequestParam(defaultValue = "10") Integer pageSize,
,String districtCity,String districtArea,String realName,String certifNum,String aplOrganId,Short applyStatus){ Long organId, Boolean isChildGroup, String districtProvincial, String districtCity, String districtArea,
return Result.success(disableService.ListDisInfoChangeExamine( organId, districtProvince, ishasLowOrgan String realName, String certiCode, String aplOrganName, Short applyStatus) {
, districtCity, districtArea, realName, certifNum, aplOrganId, applyStatus)); Page<DisableInfoChangeVo> page = new Page<>(pageNum, pageSize);
page = disableService.ListDisInfoChangeExamine(page, organId, isChildGroup, districtProvincial
, districtCity, districtArea, realName, certiCode, aplOrganName, applyStatus);
return Result.success(page);
} }
/** /**
* 失能人员信息变更-审核 * 失能人员信息变更-审核
* 审核通过再更新到info表 * 审核通过再更新到info表
*/ */
@PostMapping("/doDisInfoChangeExamine") @PostMapping("/doDisInfoChangeExamine")
public void doDisInfoChangeExamine(String changeId,String checkName, Short applyStatus, String checkRemark){ public void doDisInfoChangeExamine(String changeId, String checkName, Short applyStatus, String checkRemark) {
disableService.DisableInfoChangeExamine( changeId, checkName, applyStatus, checkRemark); disableService.DisableInfoChangeExamine(changeId, checkName, applyStatus, checkRemark);
} }
/** /**
* 失能人员信息变更-列表-查看修改 * 失能人员信息变更-列表-查看修改
* 通过身份证搜索 * 通过身份证搜索
*/ */
@GetMapping("/searchByCertifNum") @GetMapping("/searchByCertifNum")
public Result<DisableInfoChangeDetailVo> searchByCertifNum(String certifNum){ public Result<DisableInfoChangeDetailVo> searchByCertifNum(String certifNum) {
DisableInfoChangeDetailVo disableInfoChangeDetailVo = disableService.searchChangeByCertifNum(certifNum); DisableInfoChangeDetailVo disableInfoChangeDetailVo = disableService.searchChangeByCertifNum(certifNum);
if (disableInfoChangeDetailVo!=null){ if (disableInfoChangeDetailVo != null) {
return Result.success(disableInfoChangeDetailVo); return Result.success(disableInfoChangeDetailVo);
} }
return Result.failed("数据不一致"); return Result.failed("数据不一致");
......
package com.hungraim.ltc.dao; package com.hungraim.ltc.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ltc.pojo.entity.disable.ChDisableInfoChange; import com.hungraim.ltc.pojo.entity.disable.ChDisableInfoChange;
import com.hungraim.ltc.pojo.vo.disable.DisableInfoChangeVo; import com.hungraim.ltc.pojo.vo.disable.DisableInfoChangeVo;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
...@@ -12,8 +14,15 @@ public interface ChDisableInfoChangeMapper extends BaseMapper<ChDisableInfoChang ...@@ -12,8 +14,15 @@ public interface ChDisableInfoChangeMapper extends BaseMapper<ChDisableInfoChang
/** /**
* 失能人员信息变更-审核列表 * 失能人员信息变更-审核列表
*/ */
List<DisableInfoChangeVo> getListDisableInfoChange(String organId,String districtProvince,boolean ishasLowOrgan Page<DisableInfoChangeVo> getListDisableInfoChange(Page<DisableInfoChangeVo> page,
,String districtCity,String districtArea,String realName,String certifNum,String aplOrganId,Short applyStatus); @Param("organIds") List<Long> organIds,
@Param("districtProvincial") String districtProvincial,
@Param("districtCity") String districtCity,
@Param("districtArea") String districtArea,
@Param("realName") String realName,
@Param("certiCode") String certiCode,
@Param("aplOrganName") String aplOrganName,
@Param("applyStatus") Short applyStatus);
/** /**
* 失能信息变更-查看修改 * 失能信息变更-查看修改
*/ */
......
...@@ -5,6 +5,7 @@ import com.hungraim.ltc.pojo.entity.disable.*; ...@@ -5,6 +5,7 @@ import com.hungraim.ltc.pojo.entity.disable.*;
import com.hungraim.ltc.pojo.vo.disable.*; import com.hungraim.ltc.pojo.vo.disable.*;
import com.hungraim.ltc.util.Result; import com.hungraim.ltc.util.Result;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List; import java.util.List;
...@@ -95,6 +96,7 @@ public interface DisableService { ...@@ -95,6 +96,7 @@ public interface DisableService {
/** /**
* 查询所有适用机构 * 查询所有适用机构
*
* @return 返回列表 * @return 返回列表
*/ */
List<ChFndOrgan> fndAllOrgan(); List<ChFndOrgan> fndAllOrgan();
...@@ -107,13 +109,14 @@ public interface DisableService { ...@@ -107,13 +109,14 @@ public interface DisableService {
/** /**
* 失能人员信息变更-审核 * 失能人员信息变更-审核
*/ */
void DisableInfoChangeExamine(String changeId,String checkName, Short applyStatus, String checkRemark); void DisableInfoChangeExamine(String changeId, String checkName, Short applyStatus, String checkRemark);
/** /**
* 失能人员信息变更-审核列表 * 失能人员信息变更-审核列表
*/ */
List<DisableInfoChangeVo> ListDisInfoChangeExamine(String organId,String districtProvince,boolean ishasLowOrgan Page<DisableInfoChangeVo> ListDisInfoChangeExamine(Page<DisableInfoChangeVo> page,
,String districtCity,String districtArea,String realName,String certifNum,String aplOrganId,Short applyStatus); Long organId, Boolean isChildGroup, String districtProvincial, String districtCity, String districtArea,
String realName, String certiCode, String aplOrganName, Short applyStatus);
/** /**
* 失能人员信息变更-查看修改 * 失能人员信息变更-查看修改
......
...@@ -15,6 +15,7 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChCfgPara; ...@@ -15,6 +15,7 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChCfgPara;
import com.hungraim.ltc.pojo.vo.disable.*; import com.hungraim.ltc.pojo.vo.disable.*;
import com.hungraim.ltc.pojo.vo.system.AttachUpdateVo; import com.hungraim.ltc.pojo.vo.system.AttachUpdateVo;
import com.hungraim.ltc.service.DisableService; import com.hungraim.ltc.service.DisableService;
import com.hungraim.ltc.service.OrganService;
import com.hungraim.ltc.util.AttachType; import com.hungraim.ltc.util.AttachType;
import com.hungraim.ltc.util.Result; import com.hungraim.ltc.util.Result;
import com.hungraim.ltc.util.ResultCode; import com.hungraim.ltc.util.ResultCode;
...@@ -46,6 +47,7 @@ public class DisableServiceImpl implements DisableService { ...@@ -46,6 +47,7 @@ public class DisableServiceImpl implements DisableService {
private final AttachFeignService attachFeignService; private final AttachFeignService attachFeignService;
private final ChDisableInfoChangeMapper chDisableInfoChangeMapper; private final ChDisableInfoChangeMapper chDisableInfoChangeMapper;
private final DisableInfoHisMapper disableInfoHisMapper; private final DisableInfoHisMapper disableInfoHisMapper;
private final OrganService organService;
/** /**
* 获取机构ids * 获取机构ids
...@@ -325,19 +327,19 @@ public class DisableServiceImpl implements DisableService { ...@@ -325,19 +327,19 @@ public class DisableServiceImpl implements DisableService {
List<ChDisableInfo> disableInfoList = disableInfoMapper.selectList(new LambdaQueryWrapper<ChDisableInfo>() List<ChDisableInfo> disableInfoList = disableInfoMapper.selectList(new LambdaQueryWrapper<ChDisableInfo>()
.eq(ChDisableInfo::getRealName, chDisableInfoChange.getRealName()) .eq(ChDisableInfo::getRealName, chDisableInfoChange.getRealName())
.eq(ChDisableInfo::getCertiCode, chDisableInfoChange.getCertifNum())); .eq(ChDisableInfo::getCertiCode, chDisableInfoChange.getCertifNum()));
ChDisableInfo chDisableInfo=null; ChDisableInfo chDisableInfo = null;
if (disableInfoList.size()!=0){ if (disableInfoList.size() != 0) {
chDisableInfo = disableInfoList.get(0); chDisableInfo = disableInfoList.get(0);
} }
//更改完 //更改完
ChDisableInfoChange newDisableInfoChange = new ChDisableInfoChange(); ChDisableInfoChange newDisableInfoChange = new ChDisableInfoChange();
BeanUtil.copyProperties(chDisableInfo,newDisableInfoChange); BeanUtil.copyProperties(chDisableInfo, newDisableInfoChange);
//存到这个变更表 //存到这个变更表
chDisableInfoChangeMapper.insert(newDisableInfoChange); chDisableInfoChangeMapper.insert(newDisableInfoChange);
} }
@Override @Override
public void DisableInfoChangeExamine(String changeId,String checkName, Short applyStatus, String checkRemark) { public void DisableInfoChangeExamine(String changeId, String checkName, Short applyStatus, String checkRemark) {
Date date = new Date(); Date date = new Date();
//更新审核状态 //更新审核状态
ChDisableInfoChange chDisableInfoChange = chDisableInfoChangeMapper.selectById(changeId); ChDisableInfoChange chDisableInfoChange = chDisableInfoChangeMapper.selectById(changeId);
...@@ -369,18 +371,26 @@ public class DisableServiceImpl implements DisableService { ...@@ -369,18 +371,26 @@ public class DisableServiceImpl implements DisableService {
} }
@Override @Override
public List<DisableInfoChangeVo> ListDisInfoChangeExamine(String organId,String districtProvince,boolean ishasLowOrgan public Page<DisableInfoChangeVo> ListDisInfoChangeExamine(Page<DisableInfoChangeVo> page,
,String districtCity,String districtArea,String realName,String certifNum,String aplOrganId,Short applyStatus) { Long organId, Boolean isChildGroup, String districtProvincial, String districtCity, String districtArea,
List<DisableInfoChangeVo> listDisableInfoChange = chDisableInfoChangeMapper.getListDisableInfoChange(organId, districtProvince, ishasLowOrgan String realName, String certiCode, String aplOrganName, Short applyStatus) {
, districtCity, districtArea, realName, certifNum, aplOrganId, applyStatus); List<Long> organIds = null;
return listDisableInfoChange; if (organId != null) {
if (isChildGroup == null) {
isChildGroup = false;
}
organIds = organService.getOrganIds(organId, isChildGroup);
}
return chDisableInfoChangeMapper.getListDisableInfoChange(page, organIds, districtProvincial
, districtCity, districtArea, realName, certiCode, aplOrganName, applyStatus);
} }
@Override @Override
public DisableInfoChangeDetailVo searchChangeByCertifNum(String certifNum) { public DisableInfoChangeDetailVo searchChangeByCertifNum(String certifNum) {
ChDisableInfo chDisableInfo = disableInfoMapper.selectOne(new LambdaQueryWrapper<ChDisableInfo>().eq(ChDisableInfo::getCertiCode, certifNum)); ChDisableInfo chDisableInfo = disableInfoMapper.selectOne(new LambdaQueryWrapper<ChDisableInfo>().eq(ChDisableInfo::getCertiCode, certifNum));
DisableInfoChangeDetailVo disableInfoChangeDetailVo=null; DisableInfoChangeDetailVo disableInfoChangeDetailVo = null;
if (chDisableInfo!=null) { if (chDisableInfo != null) {
disableInfoChangeDetailVo = new DisableInfoChangeDetailVo(); disableInfoChangeDetailVo = new DisableInfoChangeDetailVo();
BeanUtil.copyProperties(chDisableInfo, disableInfoChangeDetailVo); BeanUtil.copyProperties(chDisableInfo, disableInfoChangeDetailVo);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment