Commit dae49290 authored by liuxun's avatar liuxun

merge

parent 2a97cac6
...@@ -50,12 +50,9 @@ public class SrvTaskInfoVO implements Serializable { ...@@ -50,12 +50,9 @@ public class SrvTaskInfoVO implements Serializable {
* 服务计划状态 * 服务计划状态
*/ */
private String taskStatus; private String taskStatus;
/**
* 服务计划附件 // /**
*/ // * 服务计划附件
private Result<List<ChFndAttach>> listResult; // */
/** // private List<ChFndAttach> listAttach;
* 服务计划附件
*/
private List<ChFndAttach> listAttach;
} }
...@@ -76,20 +76,20 @@ public class SrvTaskServiceImpl implements SrvTaskService { ...@@ -76,20 +76,20 @@ public class SrvTaskServiceImpl implements SrvTaskService {
public List<SrvTaskInfoVO> getSrvTaskInfoList(String programId) { public List<SrvTaskInfoVO> getSrvTaskInfoList(String programId) {
List<SrvTaskInfoVO> srvTaskInfoList = srvTaskMapper.getSrvTaskInfoList(programId); List<SrvTaskInfoVO> srvTaskInfoList = srvTaskMapper.getSrvTaskInfoList(programId);
//查询服务计划附件 //查询服务计划附件
try { // try {
for (SrvTaskInfoVO vo : srvTaskInfoList) { // for (SrvTaskInfoVO vo : srvTaskInfoList) {
// 返回对应的附件列表 // // 返回对应的附件列表
Result<List<ChFndAttach>> listResult = attachFeignService.selectAttachs(Long.parseLong(programId), AttachType.SRV_TASK.getUploadType()); // Result<List<ChFndAttach>> listResult = attachFeignService.selectAttachs(Long.parseLong(programId), AttachType.SRV_TASK.getUploadType());
if (!listResult.getCode().equals(ResultCode.SUCCESS.getCode())) { // if (!listResult.getCode().equals(ResultCode.SUCCESS.getCode())) {
log.info("请求获取附件列表错误:错误码{},错误信息:{}", listResult.getCode(), listResult.getMsg()); // log.info("请求获取附件列表错误:错误码{},错误信息:{}", listResult.getCode(), listResult.getMsg());
} else { // } else {
vo.setListResult(listResult); // vo.setListResult(listResult);
} // }
} // }
} catch (Exception e) { // } catch (Exception e) {
log.error(e.getMessage()); // log.error(e.getMessage());
e.printStackTrace(); // e.printStackTrace();
} // }
//具体服务日期 //具体服务日期
for (SrvTaskInfoVO vo : srvTaskInfoList) { for (SrvTaskInfoVO vo : srvTaskInfoList) {
List<ChSrvTaskDetail> taskDetails = chSrvTaskDetailMapper.selectList(new QueryWrapper<ChSrvTaskDetail>().eq("srv_task_id", vo.getSrvTaskId())); List<ChSrvTaskDetail> taskDetails = chSrvTaskDetailMapper.selectList(new QueryWrapper<ChSrvTaskDetail>().eq("srv_task_id", vo.getSrvTaskId()));
...@@ -138,13 +138,13 @@ public class SrvTaskServiceImpl implements SrvTaskService { ...@@ -138,13 +138,13 @@ 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(), chSrvTask.getSrvTaskId()); // 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)));//删除原来的计划详情
this.insertTaskDetail(Long.parseLong(srvTaskId), taskDetails); this.insertTaskDetail(Long.parseLong(srvTaskId), taskDetails);
//修改附件 //修改附件
this.updateAttachs(srvTaskInfoVO.getListAttach(), Long.parseLong(srvTaskId)); // this.updateAttachs(srvTaskInfoVO.getListAttach(), Long.parseLong(srvTaskId));
} }
} }
} }
......
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