解读入库

This commit is contained in:
yuezhihang
2021-08-05 14:51:45 +08:00
parent 78ec0a08c7
commit 82b72b191d
6 changed files with 25 additions and 8 deletions
@@ -86,5 +86,7 @@ public class SarInterpretationNationalStandard extends BaseEntity {
@TableField("INTERPRETATION_TIME")
private Date interpretationTime;
@TableField("ID")
private String id;
}
@@ -29,6 +29,7 @@ public class SarInterpretationNationalStandardServiceImpl extends ServiceImpl<Sa
@Override
public String saveBath(List<SarInterpretationNationalStandard> sarInterpretationNationalStandards) {
sarInterpretationNationalStandards.forEach(sarInterpretationNationalStandard -> {sarInterpretationNationalStandard.setId(UUIDUtils.randomUUID(32));});
boolean flag = this.saveBatch(sarInterpretationNationalStandards,sarInterpretationNationalStandards.size());
sarInterpretationNationalStandards.forEach(sarInterpretationNationalStandard -> {
QueryWrapper<SarStandardComplianceProductAssess> queryWrapper=new QueryWrapper<>();