任务创建时间不为空

广东省中医_gdszy
wyb 2 years ago
parent 664510dab3
commit 8c2160da27

@ -76,4 +76,7 @@ public class AfCollectTask implements Serializable {
@ApiModelProperty(value = "c9")
private String C9;
@ApiModelProperty(value = "任务创建时间")
private Date createTime;
}

@ -17,6 +17,7 @@ import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
@ -151,6 +152,7 @@ public class ReportServiceImpl implements ReportService {
afCollectTask.setSysflag(reportDto.getSysFlag());
afCollectTask.setState("0");
afCollectTask.setPatientId(patientId);
afCollectTask.setCreateTime(new Date());
collectTaskMapper.saveTask(afCollectTask);
}
// 都成功后发布下载事件

@ -5,8 +5,8 @@
<mapper namespace="com.docus.server.report.mapper.AfCollectTaskMapper">
<insert id="saveTask">
INSERT INTO `docus_archivefile`.`af_collect_task`(`id`, `patient_id`, `sysflag`,
`state`, `C1`,`C2`, `C3`)
VALUES (#{task.id}, #{task.patientId}, #{task.sysflag}, '0', #{task.C1}, #{task.C2}, #{task.C3});
`state`, `C1`,`C2`, `C3`,`create_time`)
VALUES (#{task.id}, #{task.patientId}, #{task.sysflag}, '0', #{task.C1}, #{task.C2}, #{task.C3}),#{task.createTime};
</insert>
<select id="getTaskById" resultType="com.docus.server.report.entity.AfCollectTask">

Loading…
Cancel
Save