解读入库
This commit is contained in:
+2
@@ -9,6 +9,7 @@ import com.adc.da.slrs.sarStandItems.entity.FindStandDto;
|
||||
import com.adc.da.slrs.sarStandItems.entity.SarItemsTime;
|
||||
import com.adc.da.slrs.sarStandItems.entity.SarStandItemsDto;
|
||||
import com.adc.da.slrs.sarStandItems.service.impl.SarStandItemsServiceImpl;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
@@ -72,6 +73,7 @@ public class SarStandItemsController extends BaseController<SarStandItems> {
|
||||
@ApiOperation(value = "标准查询")
|
||||
@PostMapping("/saveBatch")
|
||||
public String saveBatch(@RequestBody List<SarStandItems> findStandDto){
|
||||
findStandDto.forEach(sarStandItems -> sarStandItems.setId(UUIDUtils.randomUUID(32)));
|
||||
return ServiceImpl.sarStandItemsaveBatch(findStandDto);
|
||||
}
|
||||
|
||||
|
||||
@@ -121,6 +121,17 @@ public class SarStandItems extends BaseEntity {
|
||||
@TableField("FILE_TYPE")
|
||||
private String fileType;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "新车型实施日期")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@TableField("XCXSSRQ")
|
||||
private Date xccssrq;
|
||||
|
||||
@ApiModelProperty(value = "在产车实施日期")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@TableField("ZCCSSRQ")
|
||||
private Date zccssrq;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String emergyKindShow;
|
||||
@TableField(exist = false)
|
||||
@@ -157,6 +168,7 @@ public class SarStandItems extends BaseEntity {
|
||||
private SarCompStatusInfo pgForm;
|
||||
|
||||
//责任工程师
|
||||
@TableField(exist = false)
|
||||
private String responsibleEngineer;
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -178,7 +178,7 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
||||
|
||||
@Override
|
||||
public String sarStandItemsaveBatch(List<SarStandItems> sarStandItems) {
|
||||
boolean flag=this.saveBatch(sarStandItems,sarStandItems.size());
|
||||
boolean flag=this.saveBatch(sarStandItems);
|
||||
if (flag){
|
||||
return "0";
|
||||
}else {
|
||||
|
||||
+2
@@ -86,5 +86,7 @@ public class SarInterpretationNationalStandard extends BaseEntity {
|
||||
@TableField("INTERPRETATION_TIME")
|
||||
private Date interpretationTime;
|
||||
|
||||
@TableField("ID")
|
||||
private String id;
|
||||
|
||||
}
|
||||
|
||||
+1
@@ -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<>();
|
||||
|
||||
@@ -169,13 +169,13 @@
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.slrs.sarStandItems.entity.SarStandItems" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_STAND_ITEMS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_STAND_ITEMS(<include refid="Base_Column_List" />)
|
||||
values (#{modifyTime, jdbcType=TIMESTAMP}, #{creationTime, jdbcType=TIMESTAMP}, #{creationUser, jdbcType=VARCHAR}, #{validFlag, jdbcType=INTEGER}, #{remarks, jdbcType=VARCHAR}, #{responsibleUnit, jdbcType=VARCHAR}, #{energyKind, jdbcType=VARCHAR}, #{applyArctic, jdbcType=VARCHAR}, #{tackTime, jdbcType=TIMESTAMP}, #{parts, jdbcType=VARCHAR}, #{itemsName, jdbcType=VARCHAR}, #{itemsNum, jdbcType=VARCHAR}, #{standId, jdbcType=VARCHAR}, #{id, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<!--<insert id="insert" parameterType="com.adc.da.slrs.sarStandItems.entity.SarStandItems" >-->
|
||||
<!--<!– <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">-->
|
||||
<!--SELECT SEQ_SAR_STAND_ITEMS.NEXTVAL FROM DUAL-->
|
||||
<!--</selectKey> –>-->
|
||||
<!--insert into SAR_STAND_ITEMS(<include refid="Base_Column_List" />)-->
|
||||
<!--values (#{modifyTime, jdbcType=TIMESTAMP}, #{creationTime, jdbcType=TIMESTAMP}, #{creationUser, jdbcType=VARCHAR}, #{validFlag, jdbcType=INTEGER}, #{remarks, jdbcType=VARCHAR}, #{responsibleUnit, jdbcType=VARCHAR}, #{energyKind, jdbcType=VARCHAR}, #{applyArctic, jdbcType=VARCHAR}, #{tackTime, jdbcType=TIMESTAMP}, #{parts, jdbcType=VARCHAR}, #{itemsName, jdbcType=VARCHAR}, #{itemsNum, jdbcType=VARCHAR}, #{standId, jdbcType=VARCHAR}, #{id, jdbcType=VARCHAR})-->
|
||||
<!--</insert>-->
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.sarStandItems.entity.SarStandItems" >
|
||||
|
||||
Reference in New Issue
Block a user