Commit 49abf715 authored by wzs162's avatar wzs162

失能人员信息变更-查看/修改

parent 0c190e52
...@@ -9,10 +9,7 @@ import com.hungraim.ltc.util.Result; ...@@ -9,10 +9,7 @@ import com.hungraim.ltc.util.Result;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;
...@@ -350,9 +347,9 @@ public class DisableController { ...@@ -350,9 +347,9 @@ public class DisableController {
*/ */
@PostMapping("/listDisInfoChangeExamine") @PostMapping("/listDisInfoChangeExamine")
public Result<List<DisableInfoChangeVo>> getListDisInfoChangeExamine(String organId,String districtProvince,boolean ishasLowOrgan public Result<List<DisableInfoChangeVo>> getListDisInfoChangeExamine(String organId,String districtProvince,boolean ishasLowOrgan
,String districtCity,String districtArea,String realName,String certifNum,String aplOrganId){ ,String districtCity,String districtArea,String realName,String certifNum,String aplOrganId,Short applyStatus){
return Result.success(disableService.ListDisInfoChangeExamine( organId, districtProvince, ishasLowOrgan return Result.success(disableService.ListDisInfoChangeExamine( organId, districtProvince, ishasLowOrgan
, districtCity, districtArea, realName, certifNum, aplOrganId)); , districtCity, districtArea, realName, certifNum, aplOrganId, applyStatus));
} }
/** /**
...@@ -364,10 +361,16 @@ public class DisableController { ...@@ -364,10 +361,16 @@ public class DisableController {
disableService.DisableInfoChangeExamine( changeId, checkName, applyStatus, checkRemark); disableService.DisableInfoChangeExamine( changeId, checkName, applyStatus, checkRemark);
} }
/** /**
* 失能人员信息变更-列表 * 失能人员信息变更-列表-查看修改
*/ * 通过身份证搜索
/**
* 失能人员信息变更-查看修改详情页
*/ */
@GetMapping("/searchByCertifNum")
public Result<ChDisableInfo> searchByCertifNum(String certifNum){
ChDisableInfo chDisableInfo = disableService.searchChangeByCertifNum(certifNum);
if (chDisableInfo!=null){
return Result.success(chDisableInfo);
}
return Result.failed("数据不一致");
}
} }
...@@ -11,5 +11,5 @@ public interface ChDisableInfoChangeMapper extends BaseMapper<ChDisableInfoChang ...@@ -11,5 +11,5 @@ public interface ChDisableInfoChangeMapper extends BaseMapper<ChDisableInfoChang
* 失能人员信息变更-审核列表 * 失能人员信息变更-审核列表
*/ */
List<DisableInfoChangeVo> getListDisableInfoChange(String organId,String districtProvince,boolean ishasLowOrgan List<DisableInfoChangeVo> getListDisableInfoChange(String organId,String districtProvince,boolean ishasLowOrgan
,String districtCity,String districtArea,String realName,String certifNum,String aplOrganId); ,String districtCity,String districtArea,String realName,String certifNum,String aplOrganId,Short applyStatus);
} }
...@@ -113,5 +113,10 @@ public interface DisableService { ...@@ -113,5 +113,10 @@ public interface DisableService {
* 失能人员信息变更-审核列表 * 失能人员信息变更-审核列表
*/ */
List<DisableInfoChangeVo> ListDisInfoChangeExamine(String organId,String districtProvince,boolean ishasLowOrgan List<DisableInfoChangeVo> ListDisInfoChangeExamine(String organId,String districtProvince,boolean ishasLowOrgan
,String districtCity,String districtArea,String realName,String certifNum,String aplOrganId); ,String districtCity,String districtArea,String realName,String certifNum,String aplOrganId,Short applyStatus);
/**
* 失能人员信息变更-查看修改
*/
ChDisableInfo searchChangeByCertifNum(String certifNum);
} }
...@@ -370,9 +370,16 @@ public class DisableServiceImpl implements DisableService { ...@@ -370,9 +370,16 @@ public class DisableServiceImpl implements DisableService {
@Override @Override
public List<DisableInfoChangeVo> ListDisInfoChangeExamine(String organId,String districtProvince,boolean ishasLowOrgan public List<DisableInfoChangeVo> ListDisInfoChangeExamine(String organId,String districtProvince,boolean ishasLowOrgan
,String districtCity,String districtArea,String realName,String certifNum,String aplOrganId) { ,String districtCity,String districtArea,String realName,String certifNum,String aplOrganId,Short applyStatus) {
List<DisableInfoChangeVo> listDisableInfoChange = chDisableInfoChangeMapper.getListDisableInfoChange(organId, districtProvince, ishasLowOrgan List<DisableInfoChangeVo> listDisableInfoChange = chDisableInfoChangeMapper.getListDisableInfoChange(organId, districtProvince, ishasLowOrgan
, districtCity, districtArea, realName, certifNum, aplOrganId); , districtCity, districtArea, realName, certifNum, aplOrganId, applyStatus);
return listDisableInfoChange; return listDisableInfoChange;
} }
@Override
public ChDisableInfo searchChangeByCertifNum(String certifNum) {
return disableInfoMapper.selectOne(new LambdaQueryWrapper<ChDisableInfo>().eq(ChDisableInfo::getCertiCode,certifNum));
}
} }
\ No newline at end of file
...@@ -45,6 +45,9 @@ ...@@ -45,6 +45,9 @@
<if test="aplOrganId != null and aplOrganId != ''"> <if test="aplOrganId != null and aplOrganId != ''">
and change.APL_ORGAN_ID = #{aplOrganId} and change.APL_ORGAN_ID = #{aplOrganId}
</if> </if>
<if test="applyStatus != null and applyStatus != ''">
and change.APPLY_STATUS = #{applyStatus}
</if>
</where> </where>
</select> </select>
......
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