Commit 95edc9ff authored by zhangch's avatar zhangch

历史评定信息接口优化联调

parent 49abf715
......@@ -3,9 +3,11 @@ package com.hungraim.ltc.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltc.pojo.entity.disable.ChDisableInfoChange;
import com.hungraim.ltc.pojo.vo.disable.DisableInfoChangeVo;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface ChDisableInfoChangeMapper extends BaseMapper<ChDisableInfoChange> {
/**
* 失能人员信息变更-审核列表
......
......@@ -2,6 +2,8 @@ package com.hungraim.ltc.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltc.pojo.entity.assessment.ChDisableInfoHis;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface DisableInfoHisMapper extends BaseMapper<ChDisableInfoHis> {
}
......@@ -7,6 +7,7 @@ import com.hungraim.ltc.pojo.vo.disable.ChDisableApplyVo;
import com.hungraim.ltc.service.ReTaskService;
import com.hungraim.ltc.util.Result;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -49,30 +50,39 @@ public class ReTaskController {
page = reTaskService.reTaskDistributionList(page, organId, isChildGroup, districtProvincial, districtCity, districtArea, realName, certiCode);
return Result.success(page);
}
/**
* 复评申请详情
* 复评申请详情(作废)
*/
@GetMapping("/reassmentDetail")
public Result reassmentDetailById(String applyId){
public Result reassmentDetailById(String applyId) {
ChDisableApplyVo chDisableApplyVo = reTaskService.reassmentDetailById(applyId);
if (chDisableApplyVo!=null){
if (chDisableApplyVo != null) {
return Result.success(chDisableApplyVo);
}
return Result.failed("没有查到该复评申请数据");
}
/**
* 复评申请-历史评定信息
*/
@GetMapping("/hisinfo-list")
public Result<List<ChAprTaskVo>> getRetaskHisList(String disableInfoId){
public Result<List<ChAprTaskVo>> getRetaskHisList(String disableInfoId) {
if (StringUtils.isBlank(disableInfoId)) {
return Result.failed("查询参数错误");
}
List<ChAprTaskVo> chAprTaskVos = reTaskService.geReTaskHisInfoList(disableInfoId);
return Result.success(chAprTaskVos);
}
/**
* 复评审核
*/
@RequestMapping("/disableExamine")
public Result disableExamine(String applyId, String checkName, Short applyStatus, String checkRemark) {
if (StringUtils.isBlank(applyId) || StringUtils.isBlank(checkName) || StringUtils.isBlank(checkRemark) || null == applyStatus) {
return Result.failed("查询参数错误");
}
reTaskService.disableExamine(applyId, checkName, applyStatus, checkRemark);
return Result.success();
}
......
......@@ -71,8 +71,7 @@ public class ReTaskServiceImpl extends ServiceImpl<TaskMapper, ChAprTask> implem
@Override
public List<ChAprTaskVo> geReTaskHisInfoList(String disableInfoId) {
// 历史评定信息列表
List<ChAprTaskVo> reTaskHisInfoList = reTaskMapper.getReTaskHisInfoList(disableInfoId);
return reTaskHisInfoList;
return reTaskMapper.getReTaskHisInfoList(disableInfoId);
}
@Transactional(rollbackFor = Exception.class)
......
......@@ -337,6 +337,7 @@
<select id="reTaskDistributionList" resultType="com.hungraim.ltc.pojo.vo.assessment.ReTaskDistributionVO">
select
info.DISAB_INFO_ID disableInfoId,
task.task_id taskId,
task.apply_id applyId,
fndOrgan.ORGAN_NAME organName,
......
......@@ -4,7 +4,8 @@
<select id="getReTaskHisInfoList" resultType="com.hungraim.ltc.pojo.vo.assessment.ChAprTaskVo">
select
(select ORGAN_NAME from CH_FND_ORGAN organ where task.ORGAN_ID=organ.ORGAN_ID )organName,
task.TASK_ID taskId,
organ.ORGAN_NAME organName,
task.ORGAN_ID organId,
task.DISTRICT_PROVINCIAL districtProvincial,
task.DISTRICT_CITY districtCity,
......@@ -12,24 +13,25 @@
disinfo.REAL_NAME realName,
apply.EFF_TIME effTime,
disinfo.CERTI_CODE certiCode,
disinfo.BIRTHDAY birthDay,
(select DISE_TYPE_CODE from CH_FND_DISEASE_TYPE where disinfo.DISE_TYPE_S = DISE_TYPE_ID) diseTypeS,
disinfo.BIRTHDAY birthday,
disinfo.DISE_TYPE_S diseTypeS,
disinfo.TEL tel,
disinfo.ACPT_PROVINCIAL acptProvincial,
disinfo.ACPT_CITY acptCity,
disinfo.ACPT_AREA acptArea,
disinfo.ACPT_STREET acptStreet,
disinfo.ACPT_ADDRESS acptAddress,
(select REAL_NAME from CH_APR_EMP aprEmp where taskEmp.EMP_ID=aprEmp.EMP_ID)EmprealName,
(select TEL from CH_APR_EMP aprEmp where taskEmp.EMP_ID=aprEmp.EMP_ID)EmpTel,
aprEmp.REAL_NAME empRealName,
aprEmp.TEL empTel,
task.ASSIGN_TIME assignTime,
task.ACCEPT_TIME acceptTime,
task.FINISH_TIME finishTime,
task.TASK_STATUS taskStatus
from CH_APR_TASK task
left join CH_DISABLE_INFO disinfo on task.DISABLE_INFO_ID=disinfo.DISAB_INFO_ID
left join CH_FND_ORGAN organ on disinfo.ORGAN_ID=organ.ORGAN_ID
left join CH_DISABLE_APPLY apply on task.APPLY_ID=apply.APPLY_ID
left join CH_APR_TASK_EMP taskEmp on task.TASK_ID=taskEmp.TASK_ID
left join CH_APR_EMP aprEmp on task.APR_EMP_ID=aprEmp.EMP_ID
where disinfo.DISAB_INFO_ID = #{disableInfoId}
</select>
......
package com.hungraim.ltc.pojo.vo.assessment;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
......@@ -9,6 +10,12 @@ import java.util.Date;
*/
@Data
public class ChAprTaskVo {
/**
* 评定任务id
*/
private Long taskId;
/**
* 失能人员id
*/
......@@ -34,6 +41,7 @@ public class ChAprTaskVo {
/**
* 申请日期
*/
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date effTime;
/**
* 省份证号码
......@@ -42,11 +50,12 @@ public class ChAprTaskVo {
/**
* 出生日期
*/
private Date birthDay;
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date birthday;
/**
* 诊断疾病
*/
private String disease;
private String diseTypeS;
/**
* 联系电话
*/
......@@ -62,22 +71,25 @@ public class ChAprTaskVo {
/**
* 评定人员
*/
private String EmprealName;
private String empRealName;
/**
* 评定人员手机号
*/
private String EmpTel;
private String empTel;
/**
* 任务分配时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date assignTime;
/**
* 任务接受时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date acceptTime;
/**
* 任务完成时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date finishTime;
/**
* 任务状态
......
......@@ -7,6 +7,8 @@ import java.util.Date;
@Data
public class ReTaskDistributionVO {
// 失能人员信息id
private Long disableInfoId;
//鉴定任务id
private Integer taskId;
//任务明细id
......
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