Commit 8bc4db9a authored by zhangch's avatar zhangch

失能评定、服务机构分配等模块的bug修改

parent 0965d34b
...@@ -139,7 +139,16 @@ public class TaskController { ...@@ -139,7 +139,16 @@ public class TaskController {
* @param fileDataList 附件 * @param fileDataList 附件
*/ */
@RequestMapping("/addReport") @RequestMapping("/addReport")
public Result addReport(Integer taskId, Integer person1, Integer person2, Integer person3, String evaluateTime, Integer disableLevelId, String polNo, String remark, List<ChFndAttach> fileDataList) { public Result addReport(ReportDetailVO reportDetailVo) {
Integer person1 = reportDetailVo.getPerson1();
Integer person2 = reportDetailVo.getPerson2();
Integer person3 = reportDetailVo.getPerson3();
Integer taskId = reportDetailVo.getTaskId();
Integer disableLevelId = reportDetailVo.getDisableLevelId();
String evaluateTime = reportDetailVo.getEvaluateTime();
String polNo = reportDetailVo.getPolNo();
String remark = reportDetailVo.getRemark();
List<ChFndAttach> fileDataList = reportDetailVo.getFileDataList();
if (person1 == null) { if (person1 == null) {
return Result.failed("鉴定人员1不能为空!"); return Result.failed("鉴定人员1不能为空!");
} }
...@@ -226,8 +235,8 @@ public class TaskController { ...@@ -226,8 +235,8 @@ public class TaskController {
* 分配历史信息列表 * 分配历史信息列表
*/ */
@RequestMapping("/allotTaskHisList") @RequestMapping("/allotTaskHisList")
public Result<List<AllotTaskHisVO>> allotTaskHisList() { public Result<List<AllotTaskHisVO>> allotTaskHisList(Integer taskId) {
List<AllotTaskHisVO> list = taskService.allotTaskHisList(); List<AllotTaskHisVO> list = taskService.allotTaskHisList(taskId);
return Result.success(list); return Result.success(list);
} }
......
...@@ -54,7 +54,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> { ...@@ -54,7 +54,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
TaskGroupInfoListInfoVO taskGroupInfoListInfo(String pushId); TaskGroupInfoListInfoVO taskGroupInfoListInfo(String pushId);
List<AllotTaskHisVO> allotTaskHisList(); List<AllotTaskHisVO> allotTaskHisList(@Param("taskId") Integer taskId);
Page<ReTaskDistributionVO> reTaskDistributionList(Page<ReTaskDistributionVO> page, @Param("organIds") List<Long> organIds, String districtProvincial, String districtCity, String districtArea, String realName, String certiCode); Page<ReTaskDistributionVO> reTaskDistributionList(Page<ReTaskDistributionVO> page, @Param("organIds") List<Long> organIds, String districtProvincial, String districtCity, String districtArea, String realName, String certiCode);
} }
...@@ -47,7 +47,7 @@ public interface TaskService { ...@@ -47,7 +47,7 @@ public interface TaskService {
TaskGroupInfoListInfoVO taskGroupInfoListInfo(String pushId); TaskGroupInfoListInfoVO taskGroupInfoListInfo(String pushId);
List<AllotTaskHisVO> allotTaskHisList(); List<AllotTaskHisVO> allotTaskHisList(Integer taskId);
Result<Object> updatePushTimeAndRemark(String pushId, Date timeDate, String remark); Result<Object> updatePushTimeAndRemark(String pushId, Date timeDate, String remark);
......
package com.hungraim.ltc.service.impl; package com.hungraim.ltc.service.impl;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ltc.api.AttachFeignService; import com.hungraim.ltc.api.AttachFeignService;
...@@ -127,11 +128,11 @@ public class TaskServiceImpl implements TaskService { ...@@ -127,11 +128,11 @@ public class TaskServiceImpl implements TaskService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@Override @Override
public Result<Object> addReport(Integer taskId, Integer person1, Integer person2, Integer person3, Date evaluateTime, Integer disableLevelId, String polNo, String remark, List<ChFndAttach> fileDataList) { public Result<Object> addReport(Integer taskId, Integer person1, Integer person2, Integer person3, Date evaluateTime, Integer disableLevelId, String polNo, String remark, List<ChFndAttach> fileDataList) {
ChAprTask task = taskMapper.selectById(taskId); List<ChAprReport> chAprReports = aprReportMapper.selectList(new LambdaQueryWrapper<ChAprReport>().eq(ChAprReport::getStatus, 4).eq(ChAprReport::getTaskId, taskId));
if (task != null) { if (chAprReports != null && chAprReports.size() > 0) {
return Result.failed("已存在的评定任务报告!"); return Result.failed("已存在的评定任务报告!");
} }
//插入评定任 //插入评定任报告
ChAprReport report = new ChAprReport(); ChAprReport report = new ChAprReport();
report.setTaskId(taskId); report.setTaskId(taskId);
report.setEffTime(new Date()); report.setEffTime(new Date());
...@@ -166,6 +167,12 @@ public class TaskServiceImpl implements TaskService { ...@@ -166,6 +167,12 @@ public class TaskServiceImpl implements TaskService {
personInfo.setFcd(new Date()); personInfo.setFcd(new Date());
personInfoMapper.insert(personInfo); personInfoMapper.insert(personInfo);
} }
// 更新评定任务状态为已完成,并记录完成时间
ChAprTask task = new ChAprTask();
task.setTaskId(taskId);
task.setFinishTime(new Date());
task.setTaskStatus(3); // 已完成
taskMapper.updateById(task);
return Result.success(); return Result.success();
} }
...@@ -275,6 +282,7 @@ public class TaskServiceImpl implements TaskService { ...@@ -275,6 +282,7 @@ public class TaskServiceImpl implements TaskService {
task.setAprOrganId(chAprEmp.getAprOrganId());//鉴定机构id task.setAprOrganId(chAprEmp.getAprOrganId());//鉴定机构id
task.setAprEmpId(Integer.parseInt(empId));//评定人员id task.setAprEmpId(Integer.parseInt(empId));//评定人员id
task.setAssignTime(assignTime); task.setAssignTime(assignTime);
task.setTaskStatus(1);
taskMapper.updateById(task); taskMapper.updateById(task);
//更新失能人员信息 //更新失能人员信息
ChDisableInfo chDisableInfo = disableInfoMapper.selectById(task.getDisableInfoId()); ChDisableInfo chDisableInfo = disableInfoMapper.selectById(task.getDisableInfoId());
...@@ -406,8 +414,8 @@ public class TaskServiceImpl implements TaskService { ...@@ -406,8 +414,8 @@ public class TaskServiceImpl implements TaskService {
* 分配历史信息列表 * 分配历史信息列表
*/ */
@Override @Override
public List<AllotTaskHisVO> allotTaskHisList() { public List<AllotTaskHisVO> allotTaskHisList(Integer taskId) {
return taskMapper.allotTaskHisList(); return taskMapper.allotTaskHisList(taskId);
} }
/** /**
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
push.refuse_remark refuseRemark push.refuse_remark refuseRemark
from CH_APR_TASK task from CH_APR_TASK task
left join ch_apr_organ aprOrgan on task.apr_organ_id = aprOrgan.apr_organ_id left join ch_apr_organ aprOrgan on task.apr_organ_id = aprOrgan.apr_organ_id
left join ch_srv_organ organ on aprOrgan.organ_id = organ.organ_id -- left join ch_srv_organ organ on aprOrgan.organ_id = organ.organ_id
left join ch_disable_info disable on task.disable_info_id = disable.disab_info_id left join ch_disable_info disable on task.disable_info_id = disable.disab_info_id
left join ch_apr_emp emp on task.apr_emp_id = emp.emp_id and emp.IS_LOCK = 0 left join ch_apr_emp emp on task.apr_emp_id = emp.emp_id and emp.IS_LOCK = 0
left join ch_apr_task_push push on task.task_id = push.task_id left join ch_apr_task_push push on task.task_id = push.task_id
...@@ -333,6 +333,7 @@ ...@@ -333,6 +333,7 @@
LEFT JOIN ch_apr_task task ON push.TASK_ID = task.TASK_ID LEFT JOIN ch_apr_task task ON push.TASK_ID = task.TASK_ID
left join ch_apr_organ organ on task.apr_organ_id = organ.apr_organ_id left join ch_apr_organ organ on task.apr_organ_id = organ.apr_organ_id
LEFT JOIN ch_apr_emp emp on push.emp_id = emp.emp_id LEFT JOIN ch_apr_emp emp on push.emp_id = emp.emp_id
WHERE push.TASK_ID = #{taskId}
</select> </select>
<select id="reTaskDistributionList" resultType="com.hungraim.ltc.pojo.vo.assessment.ReTaskDistributionVO"> <select id="reTaskDistributionList" resultType="com.hungraim.ltc.pojo.vo.assessment.ReTaskDistributionVO">
......
package com.hungraim.ltc.pojo.vo.assessment; package com.hungraim.ltc.pojo.vo.assessment;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
...@@ -18,11 +19,13 @@ public class AllotTaskHisVO { ...@@ -18,11 +19,13 @@ public class AllotTaskHisVO {
private String taskId; private String taskId;
//分配时间 //分配时间
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date assignTime; private Date assignTime;
//组号 //组号
private String groupNumber; private String groupNumber;
//预约日期 //预约日期
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date time; private Date time;
//评定机构 //评定机构
private String organName; private String organName;
...@@ -30,6 +33,7 @@ public class AllotTaskHisVO { ...@@ -30,6 +33,7 @@ public class AllotTaskHisVO {
private String realName; private String realName;
//拒绝时间 //拒绝时间
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date refuseTime; private Date refuseTime;
//状态 //状态
private String status; private String status;
......
package com.hungraim.ltc.pojo.vo.assessment;
import com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach;
import lombok.Data;
import java.util.List;
@Data
public class ReportDetailVO {
Integer taskId;
Integer person1;
Integer person2;
Integer person3;
String evaluateTime;
Integer disableLevelId;
String polNo;
String remark;
List<ChFndAttach> fileDataList;
}
...@@ -46,7 +46,7 @@ public class DisableVO implements Serializable { ...@@ -46,7 +46,7 @@ public class DisableVO implements Serializable {
private String disease; private String disease;
private String diseTypeS; private String diseTypeS;
//申请时间 //申请时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date effTime; private Date effTime;
//申请来源 网厅:0,核心:1,手机端:2,待遇申请:3 //申请来源 网厅:0,核心:1,手机端:2,待遇申请:3
private String dataFrom; private String dataFrom;
......
...@@ -8,7 +8,7 @@ import java.util.Date; ...@@ -8,7 +8,7 @@ import java.util.Date;
@Data @Data
public class ExamineRecord { public class ExamineRecord {
//审核时间 //审核时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date checkTime; private Date checkTime;
//申请类型 //申请类型
private String teratmentType; private String teratmentType;
......
...@@ -20,10 +20,10 @@ public class DisableInfoTaskVO implements Serializable { ...@@ -20,10 +20,10 @@ public class DisableInfoTaskVO implements Serializable {
private Integer srvOrganIntent; private Integer srvOrganIntent;
private String gender; private String gender;
private String certiCode; private String certiCode;
private String disease; private String diseTypeS;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date finishTime; private Date finishTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date reAprTime; private Date reAprTime;
private String permitId; private String permitId;
private String tel; private String tel;
......
...@@ -49,7 +49,7 @@ public class ProgramListVo { ...@@ -49,7 +49,7 @@ public class ProgramListVo {
/** /**
* 失能人员生日 * 失能人员生日
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date birthday; private Date birthday;
/** /**
...@@ -74,7 +74,7 @@ public class ProgramListVo { ...@@ -74,7 +74,7 @@ public class ProgramListVo {
/** /**
* 评定完成日期 * 评定完成日期
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date assessDate; private Date assessDate;
/** /**
...@@ -95,7 +95,7 @@ public class ProgramListVo { ...@@ -95,7 +95,7 @@ public class ProgramListVo {
/** /**
* 创建时间(服务方案制定时间) * 创建时间(服务方案制定时间)
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date effTime; private Date effTime;
......
...@@ -16,7 +16,7 @@ public class SrvSendVO extends PageInfo implements Serializable { ...@@ -16,7 +16,7 @@ public class SrvSendVO extends PageInfo implements Serializable {
//id //id
@TableId @TableId
private Integer sendId; private Integer sendId;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date stopTime; private Date stopTime;
//失能人员ID //失能人员ID
private Integer disableInfoId; private Integer disableInfoId;
...@@ -55,7 +55,7 @@ public class SrvSendVO extends PageInfo implements Serializable { ...@@ -55,7 +55,7 @@ public class SrvSendVO extends PageInfo implements Serializable {
private String disease; private String disease;
private String diseTypeS; private String diseTypeS;
//申请时间 //申请时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date effTime; private Date effTime;
//申请来源 网厅:0,核心:1,手机端:2,待遇申请:3 //申请来源 网厅:0,核心:1,手机端:2,待遇申请:3
private String datafrom; private String datafrom;
......
...@@ -49,7 +49,7 @@ public class SvrSendListVo { ...@@ -49,7 +49,7 @@ public class SvrSendListVo {
/** /**
* 失能人员生日 * 失能人员生日
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date birthday; private Date birthday;
/** /**
...@@ -78,8 +78,8 @@ public class SvrSendListVo { ...@@ -78,8 +78,8 @@ public class SvrSendListVo {
/** /**
* 创建时间(分配时间) * 创建时间(分配时间)
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date effTime; private Date allotTime;
} }
...@@ -117,9 +117,6 @@ public class BuildBedController { ...@@ -117,9 +117,6 @@ public class BuildBedController {
if (StrUtil.isBlankIfStr(disableInfoId)) { if (StrUtil.isBlankIfStr(disableInfoId)) {
return Result.failed("失能人员ID 为空!"); return Result.failed("失能人员ID 为空!");
} }
if (StrUtil.isBlankIfStr(srvOrganId)) {
return Result.failed("机构id不能为空");
}
DisableInfoTaskVO disableInfoTaskVO = sendService.selectTaskById(disableInfoId, srvOrganId); DisableInfoTaskVO disableInfoTaskVO = sendService.selectTaskById(disableInfoId, srvOrganId);
List<DisableInfoTaskVO> disableInfoTaskVO1 = sendService.selectBydisableInfoId(disableInfoId); List<DisableInfoTaskVO> disableInfoTaskVO1 = sendService.selectBydisableInfoId(disableInfoId);
Map map = new HashMap<>(); Map map = new HashMap<>();
......
...@@ -132,6 +132,7 @@ public class SrvTaskController { ...@@ -132,6 +132,7 @@ public class SrvTaskController {
} }
srvTaskService.addOrUpdateSrvTask(param); srvTaskService.addOrUpdateSrvTask(param);
} catch (RuntimeException e) { } catch (RuntimeException e) {
e.printStackTrace();
return Result.failed(e.getMessage()); return Result.failed(e.getMessage());
} }
return Result.success(); return Result.success();
......
...@@ -42,7 +42,7 @@ public interface SrvSendMapper extends BaseMapper<ChSrvSend> { ...@@ -42,7 +42,7 @@ public interface SrvSendMapper extends BaseMapper<ChSrvSend> {
" s.srv_organ_intent," + " s.srv_organ_intent," +
" s.gender," + " s.gender," +
" s.certi_code," + " s.certi_code," +
" s.disease," + " s.DISE_TYPE_S," +
" i.finish_time," + " i.finish_time," +
" i.re_apr_time" + " i.re_apr_time" +
" from ch_disable_info s" + " from ch_disable_info s" +
...@@ -56,7 +56,7 @@ public interface SrvSendMapper extends BaseMapper<ChSrvSend> { ...@@ -56,7 +56,7 @@ public interface SrvSendMapper extends BaseMapper<ChSrvSend> {
@Select("select s.real_name," + @Select("select s.real_name," +
" s.certi_code," + " s.certi_code," +
" s.tel," + " s.tel," +
" s.disease," + " s.DISE_TYPE_S," +
" i.finish_time," + " i.finish_time," +
" i.re_apr_time," + " i.re_apr_time," +
" i.task_status" + " i.task_status" +
......
...@@ -41,8 +41,10 @@ public class SrvSendServiceImpl extends ServiceImpl<SrvSendMapper, ChSrvSend> im ...@@ -41,8 +41,10 @@ public class SrvSendServiceImpl extends ServiceImpl<SrvSendMapper, ChSrvSend> im
@Override @Override
public DisableInfoTaskVO selectTaskById(Integer disableInfoId, Integer srvOrganId) { public DisableInfoTaskVO selectTaskById(Integer disableInfoId, Integer srvOrganId) {
DisableInfoTaskVO disableInfoTaskVO = sendMapper.selectBydisableInfoId(disableInfoId); DisableInfoTaskVO disableInfoTaskVO = sendMapper.selectBydisableInfoId(disableInfoId);
if (srvOrganId != null) {
String s = sendMapper.selectByOrganId(srvOrganId); String s = sendMapper.selectByOrganId(srvOrganId);
disableInfoTaskVO.setPermitId(s); disableInfoTaskVO.setPermitId(s);
}
return disableInfoTaskVO; return disableInfoTaskVO;
} }
......
...@@ -137,8 +137,8 @@ public class SrvTaskServiceImpl implements SrvTaskService { ...@@ -137,8 +137,8 @@ public class SrvTaskServiceImpl implements SrvTaskService {
//添加服务计划详情 //添加服务计划详情
Long newSrvTaskId = chSrvTask.getSrvTaskId(); Long newSrvTaskId = chSrvTask.getSrvTaskId();
this.insertTaskDetail(newSrvTaskId, taskDetails); this.insertTaskDetail(newSrvTaskId, taskDetails);
//修改附件 //添加附件
this.updateAttachs(srvTaskInfoVO.getListAttach(), Long.parseLong(srvTaskId)); this.updateAttachs(srvTaskInfoVO.getListAttach(), chSrvTask.getSrvTaskId());
} else { } else {
// 修改服务计划 // 修改服务计划
chSrvTaskDetailMapper.delete(new QueryWrapper<ChSrvTaskDetail>().eq("srv_task_id", Long.parseLong(srvTaskId)));//删除原来的计划详情 chSrvTaskDetailMapper.delete(new QueryWrapper<ChSrvTaskDetail>().eq("srv_task_id", Long.parseLong(srvTaskId)));//删除原来的计划详情
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
T3.ACPT_SRV_STREET acptSrvStreet, T3.ACPT_SRV_STREET acptSrvStreet,
T3.ACPT_SRV_ADDRESS acptSrvAddress, T3.ACPT_SRV_ADDRESS acptSrvAddress,
T1.STATUS sendStatus, T1.STATUS sendStatus,
T1.EFF_TIME effTime, T1.ALLOT_TIME allotTime,
(SELECT COUNT(0) FROM CH_SRV_PROGRAM T4 WHERE T1.SRV_ORGAN_ID = T4.SRV_ORGAN_ID AND T1.DISAB_INFO_ID = T4.DISAB_INFO_ID) programNum (SELECT COUNT(0) FROM CH_SRV_PROGRAM T4 WHERE T1.SRV_ORGAN_ID = T4.SRV_ORGAN_ID AND T1.DISAB_INFO_ID = T4.DISAB_INFO_ID) programNum
FROM CH_SRV_SEND T1 FROM CH_SRV_SEND T1
INNER JOIN CH_SRV_ORGAN T2 ON T1.SRV_ORGAN_ID = T2.SRV_ORGAN_ID INNER JOIN CH_SRV_ORGAN T2 ON T1.SRV_ORGAN_ID = T2.SRV_ORGAN_ID
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
<mapper namespace="com.hungraim.ltc.governance.dao.SrvSendMapper"> <mapper namespace="com.hungraim.ltc.governance.dao.SrvSendMapper">
<resultMap id="sendresultMap" type="com.hungraim.ltc.pojo.vo.governance.SrvSendVO"> <resultMap id="sendresultMap" type="com.hungraim.ltc.pojo.vo.governance.SrvSendVO">
<id column="srv_send_id" jdbcType="VARCHAR" property="sendId"/> <id column="srv_send_id" jdbcType="VARCHAR" property="sendId"/>
<result column="srv_organ_id" jdbcType="VARCHAR" property="srvOrganId"/> <result column="SRV_ORGAN_INTENT" jdbcType="VARCHAR" property="srvOrganId"/>
<result column="organ_id" jdbcType="VARCHAR" property="organId"/> <result column="organ_id" jdbcType="VARCHAR" property="organId"/>
<result column="disab_info_id" jdbcType="VARCHAR" property="disableInfoId"/> <result column="disab_info_id" jdbcType="VARCHAR" property="disableInfoId"/>
<result column="SRV_ORGAN_NAME" jdbcType="VARCHAR" property="organName"/> <result column="ORGAN_NAME" jdbcType="VARCHAR" property="organName"/>
<result column="district_provincial" jdbcType="VARCHAR" property="provincial"/> <result column="district_provincial" jdbcType="VARCHAR" property="provincial"/>
<result column="district_city" jdbcType="VARCHAR" property="city"/> <result column="district_city" jdbcType="VARCHAR" property="city"/>
<result column="district_area" jdbcType="VARCHAR" property="area"/> <result column="district_area" jdbcType="VARCHAR" property="area"/>
...@@ -21,11 +21,12 @@ ...@@ -21,11 +21,12 @@
<!--查询服务分配信息列表--> <!--查询服务分配信息列表-->
<select id="selectSendList" resultMap="sendresultMap"> <select id="selectSendList" resultMap="sendresultMap">
select s.srv_send_id, SELECT
s.srv_send_id,
i.disab_info_id, i.disab_info_id,
o.srv_organ_id,
o.organ_id, o.organ_id,
o.SRV_ORGAN_NAME, o.ORGAN_NAME,
i.SRV_ORGAN_INTENT,
i.district_provincial, i.district_provincial,
i.district_city, i.district_city,
i.district_area, i.district_area,
...@@ -36,18 +37,19 @@ ...@@ -36,18 +37,19 @@
s.stop_time, s.stop_time,
i.birthday, i.birthday,
s.status s.status
from ch_disable_info i FROM
left join ch_srv_send s ch_disable_info i
on s.disab_info_id = i.disab_info_id LEFT JOIN ch_srv_send s ON s.disab_info_id = i.disab_info_id
left join ch_srv_organ o LEFT JOIN ch_fnd_organ o ON i.organ_id = o.organ_id
on s.srv_organ_id = o.srv_organ_id LEFT JOIN CH_APR_TASK t ON i.disab_info_id = t.DISABLE_INFO_ID
<where> <where>
t.TASK_STATUS = 3
<if test="chSrvOrgan.srvOrganId != null and chSrvOrgan.srvOrganId != ''"> <if test="chSrvOrgan.srvOrganId != null and chSrvOrgan.srvOrganId != ''">
AND s.srv_organ_id = #{chSrvOrgan.srvOrganId} AND o.organ_id = #{chSrvOrgan.srvOrganId}
</if> </if>
<if test="disableInfo.realName != null and disableInfo.realName != ''"> <if test="disableInfo.realName != null and disableInfo.realName != ''">
AND i.real_name = #{disableInfo.realName} AND i.real_name LIKE CONCAT(CONCAT('%',#{disableInfo.realName}),'%')
</if> </if>
<if test="disableInfo.tel != null and disableInfo.tel != ''"> <if test="disableInfo.tel != null and disableInfo.tel != ''">
......
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
and organ.SRV_ORGAN_ID = #{organId} and organ.SRV_ORGAN_ID = #{organId}
</if> </if>
<if test="disableName != null and disableName != ''"> <if test="disableName != null and disableName != ''">
and disable.real_name = #{disableName} and disable.real_name LIKE CONCAT(CONCAT('%',#{disableName}),'%')
</if> </if>
<if test="disableTel != null and disableTel != ''"> <if test="disableTel != null and disableTel != ''">
and disable.tel = #{disableTel} and disable.tel = #{disableTel}
......
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