Commit 7274e0da authored by zhangwanglin's avatar zhangwanglin

服务机构分配

parent b961ed35
...@@ -77,5 +77,5 @@ public interface TaskMapper extends BaseMapper<ChAprTask> { ...@@ -77,5 +77,5 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
List<AprEmpExportVO> aprEmpExportList(String provincial, String city, String area, String organName, String name, String tel, String groupLeader); List<AprEmpExportVO> aprEmpExportList(String provincial, String city, String area, String organName, String name, String tel, String groupLeader);
int insertSrvSend(Integer disableInfoId,Integer taskId); int insertSrvSend(Integer disableInfoId);
} }
...@@ -221,7 +221,7 @@ public class TaskServiceImpl implements TaskService { ...@@ -221,7 +221,7 @@ public class TaskServiceImpl implements TaskService {
if(2 == reportDetailVO.getEvaluateType()){ if(2 == reportDetailVO.getEvaluateType()){
ChAprTask chAprTask = taskMapper.selectById(reportDetailVO.getTaskId()); ChAprTask chAprTask = taskMapper.selectById(reportDetailVO.getTaskId());
Integer disableInfoId = chAprTask.getDisableInfoId(); Integer disableInfoId = chAprTask.getDisableInfoId();
taskMapper.insertSrvSend(disableInfoId,reportDetailVO.getTaskId()); taskMapper.insertSrvSend(disableInfoId);
} }
return Result.success(); return Result.success();
} }
......
...@@ -526,8 +526,8 @@ ...@@ -526,8 +526,8 @@
</select> </select>
<insert id="insertSrvSend"> <insert id="insertSrvSend">
insert INTO ch_srv_send(SRV_SEND_ID,DISAB_INFO_ID,FCD,STATUS,TASK_ID) values insert INTO ch_srv_send(SRV_SEND_ID,DISAB_INFO_ID,FCD,STATUS) values
((SELECT max(srv_send_id)+1 id from CH_SRV_SEND),#{disableInfoId},SYSDATE,0,#{taskId}) ((SELECT max(srv_send_id)+1 id from CH_SRV_SEND),#{disableInfoId},SYSDATE,0)
</insert> </insert>
......
...@@ -254,8 +254,9 @@ public class BuildBedController { ...@@ -254,8 +254,9 @@ public class BuildBedController {
id = 0L; id = 0L;
} }
chSrvSend.setSrvSendId(++id); chSrvSend.setSrvSendId(++id);
} }else {
chSrvSend.setSrvSendId(chrSrvVo.getSrvSendId()); chSrvSend.setSrvSendId(chrSrvVo.getSrvSendId());
}
sendService.saveOrUpdate(chSrvSend); sendService.saveOrUpdate(chSrvSend);
} }
} else { } else {
......
...@@ -21,7 +21,7 @@ public class SrvTaskScheduledController { ...@@ -21,7 +21,7 @@ public class SrvTaskScheduledController {
@Autowired @Autowired
private SrvTaskService srvTaskService; private SrvTaskService srvTaskService;
@Scheduled(cron = "0 45 14 * * ?") @Scheduled(cron = "0 50 20 * * ?")
public void timeAllocationSrvTask() { public void timeAllocationSrvTask() {
log.info("timeAllocationSrvTask========start"); log.info("timeAllocationSrvTask========start");
srvTaskService.timeAllocationSrvTask(); srvTaskService.timeAllocationSrvTask();
......
...@@ -21,9 +21,8 @@ ...@@ -21,9 +21,8 @@
<!--查询服务分配信息列表--> <!--查询服务分配信息列表-->
<select id="selectSendList" resultMap="sendresultMap"> <select id="selectSendList" resultMap="sendresultMap">
SELECT SELECT
s.srv_send_id, distinct s.srv_send_id,
i.disab_info_id, i.disab_info_id,
o.organ_id, o.organ_id,
o.ORGAN_NAME, o.ORGAN_NAME,
......
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