|
|
|
@ -171,11 +171,11 @@ public class TaskServiceImpl implements TaskService {
|
|
|
|
|
try {
|
|
|
|
|
//根据患者masterId,collectId删除
|
|
|
|
|
boolean stactic = archiveDetailMapper.delFileBySource(masterId, collectId);
|
|
|
|
|
log.info("删除接口调用");
|
|
|
|
|
if (stactic) {
|
|
|
|
|
return CommonResult.success("删除成功,masterId:" + masterId+"删除分类:"+collectId);
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
log.error("删除接口失败:"+e.getMessage(),e);
|
|
|
|
|
return CommonResult.failed("删除失败,masterId:" + masterId+"删除分类:"+collectId);
|
|
|
|
|
}
|
|
|
|
|
return CommonResult.failed("删除失败,masterId:" + masterId+"删除分类:"+collectId);
|
|
|
|
@ -183,6 +183,7 @@ public class TaskServiceImpl implements TaskService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public CommonResult updateTask(updateTaskDto dto) {
|
|
|
|
|
try {
|
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
String format = dateFormat.format(new Date());
|
|
|
|
|
log.info(format + "本次维护任务表传输参数为:" + JSONObject.toJSONString(dto));
|
|
|
|
@ -218,6 +219,9 @@ public class TaskServiceImpl implements TaskService {
|
|
|
|
|
if (archiveOtherExtMapper.updateByMid(dto)) {
|
|
|
|
|
return CommonResult.success("id为:" + dto.getMid() + "任务表维护成功");
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
log.error("维护任务表失败:"+dto.getMid()+"异常处理"+e.getMessage(),e);
|
|
|
|
|
}
|
|
|
|
|
return CommonResult.success("id为:" + dto.getMid() + "任务表维护失败");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|