更新采集任务的信息

广东省中医_gdszy
wyb 2 years ago
parent 10a4f72937
commit 23da7cf02e

@ -24,4 +24,13 @@ public interface AfCollectTaskMapper {
* @return
*/
AfCollectTask getTaskById(@Param("id") Long taskId);
/**
*
* @param id id
* @param fileName
* @param serialnum
* @return
*/
int updateNewSubmit(@Param("id") Long id,@Param("c2") String fileName,@Param("c1") String serialnum);
}

@ -176,6 +176,8 @@ public class ReportServiceImpl implements ReportService {
afCollectTask.setPatientId(patientId);
afCollectTask.setCreateTime(new Date());
collectTaskMapper.saveTask(afCollectTask);
}else{
collectTaskMapper.updateNewSubmit(afCollectTask.getId(),afReportRecord.getFileName(),reportDto.getSerialnum());
}
// 都成功后发布下载事件
applicationContext.publishEvent(new ThreePartyPushReportDownEvent(this, afReportRecord.getTaskId()));

@ -8,6 +8,14 @@
`state`, `C1`,`C2`, `C3`,`create_time`)
VALUES (#{task.id}, #{task.patientId}, #{task.sysflag}, '0', #{task.C1}, #{task.C2}, #{task.C3},#{task.createTime});
</insert>
<update id="updateNewSubmit">
update `docus_archivefile`.`af_collect_task`
set c1=#{c1},
c2=#{c2},
state=0,
recollect_time=now()
where `id` = #{id}
</update>
<select id="getTaskById" resultType="com.docus.server.report.entity.AfCollectTask">
select *

Loading…
Cancel
Save