Browse Source

试验基础信息获取,委托单批量上报

lvy 1 month ago
parent
commit
6570a5ddcb

+ 1 - 1
blade-service/blade-business/src/main/java/org/springblade/business/controller/InformationWriteQueryController.java

@@ -1631,7 +1631,7 @@ public R<Object> batchTask(@RequestBody StartTaskVO startTaskVO) {
                             LocalDateTime now = LocalDateTime.now();
                             //格式化时间
                             String nowFormat = now.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
-                            String sql = "update u_entrust_info set status = 2 , entrust_time = '" + nowFormat + "' ,sample_status=1 where id = " + startTaskVO.getIds();
+                            String sql = "update u_entrust_info set status = 2 , entrust_time = '" + nowFormat + "' ,sample_status=1 where id in (" + startTaskVO.getIds() + ")";
                             jdbcTemplate.execute(sql);
                         }
                         var = true;

+ 1 - 1
blade-service/blade-business/src/main/java/org/springblade/business/controller/TrialDetectionController.java

@@ -571,7 +571,7 @@ public class TrialDetectionController extends BladeController {
         vo.setSupervisionUnit(contractInfo.getSupervisionUnitName());
         vo.setLabName(contractInfo.getLaboratoryName());
         vo.setContractName(contractInfo.getContractName());
-        if (id != null && isReacquire) {
+        if (id != null && !isReacquire) {
             TrialSelfInspectionRecord record = jdbcTemplate.query("select * from u_trial_self_inspection_record where id = " + id, new BeanPropertyRowMapper<>(TrialSelfInspectionRecord.class)).stream().findAny().orElse(null);
             if (record != null) {
                 String baseInfo = record.getBaseInfo();