根据病案主键跟采集器id删除单据接口修改

master
linjj 4 months ago
parent 7d0784d89d
commit e6c3631cac

@ -171,11 +171,11 @@ public class TaskServiceImpl implements TaskService {
try {
//根据患者masterIdcollectId删除
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() + "任务表维护失败");
}

@ -87,7 +87,7 @@
</delete>
<delete id="delFileBySource">
delete from archive_detail
where MasterID = #{MasterID} AND Source in (${collectId})
where MasterID = #{masterId} AND Source IN (#{collectId, jdbcType=NVARCHAR})
</delete>
<select id="getDetailBySerialNumber" resultType="com.example.duplicate.controller.param.ArchiveDetailDto">

Loading…
Cancel
Save