开发OTA备案工具-车辆升级
This commit is contained in:
+4
-1
@@ -90,9 +90,12 @@ public class OtaBaSjSjmbcxServiceImpl extends ServiceImpl<OtaBaSjSjmbcxMapper, O
|
|||||||
otaBaSjListService.editById(otaBaSjList);
|
otaBaSjListService.editById(otaBaSjList);
|
||||||
}
|
}
|
||||||
otaBaSjSjmbcx.setUpdateTime(now);
|
otaBaSjSjmbcx.setUpdateTime(now);
|
||||||
saveOrUpdate(otaBaSjSjmbcx);
|
|
||||||
ComparisonUtil cu = new ComparisonUtil();
|
ComparisonUtil cu = new ComparisonUtil();
|
||||||
List<OtaBaCxTxjl> reList = cu.comparisonRecord(otaBaSjSjmbcx.getOtaId(), OtaModuleEnum.SJ_SJMBCX, otaBaSjSjmbcxOld, otaBaSjSjmbcx, sysDictService);
|
List<OtaBaCxTxjl> reList = cu.comparisonRecord(otaBaSjSjmbcx.getOtaId(), OtaModuleEnum.SJ_SJMBCX, otaBaSjSjmbcxOld, otaBaSjSjmbcx, sysDictService);
|
||||||
|
if (StringUtils.isEmpty(otaBaSjSjmbcx.getQymc())) {
|
||||||
|
otaBaSjSjmbcx.setQymc("安徽江淮汽车集团股份有限公司");
|
||||||
|
}
|
||||||
|
saveOrUpdate(otaBaSjSjmbcx);
|
||||||
otaBaCxTxjlService.saveBatch(reList);
|
otaBaCxTxjlService.saveBatch(reList);
|
||||||
return otaBaSjSjmbcx;
|
return otaBaSjSjmbcx;
|
||||||
}
|
}
|
||||||
|
|||||||
+27
-3
@@ -16,8 +16,6 @@ import org.apache.commons.lang3.ObjectUtils;
|
|||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.poi.xwpf.usermodel.XWPFDocument;
|
import org.apache.poi.xwpf.usermodel.XWPFDocument;
|
||||||
import org.apache.poi.xwpf.usermodel.XWPFTable;
|
import org.apache.poi.xwpf.usermodel.XWPFTable;
|
||||||
import org.apache.poi.xwpf.usermodel.XWPFTableCell;
|
|
||||||
import org.apache.poi.xwpf.usermodel.XWPFTableRow;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@@ -85,7 +83,6 @@ public class OtaBaSjSjyxpgServiceImpl extends ServiceImpl<OtaBaSjSjyxpgMapper, O
|
|||||||
otaBaSjSjyxpg.setCreateTime(now);
|
otaBaSjSjyxpg.setCreateTime(now);
|
||||||
}
|
}
|
||||||
otaBaSjSjyxpg.setUpdateTime(now);
|
otaBaSjSjyxpg.setUpdateTime(now);
|
||||||
saveOrUpdate(otaBaSjSjyxpg);
|
|
||||||
ComparisonUtil cu = new ComparisonUtil();
|
ComparisonUtil cu = new ComparisonUtil();
|
||||||
if (ObjectUtils.isEmpty(otaBaSjSjyxpgOld)) {
|
if (ObjectUtils.isEmpty(otaBaSjSjyxpgOld)) {
|
||||||
otaBaSjSjyxpgOld = new OtaBaSjSjyxpg();
|
otaBaSjSjyxpgOld = new OtaBaSjSjyxpg();
|
||||||
@@ -93,6 +90,33 @@ public class OtaBaSjSjyxpgServiceImpl extends ServiceImpl<OtaBaSjSjyxpgMapper, O
|
|||||||
List<OtaBaCxTxjl> reList = cu.comparisonRecord(otaBaSjSjyxpg.getOtaId(), OtaModuleEnum.SJ_SJYXPG, otaBaSjSjyxpgOld, otaBaSjSjyxpg, sysDictService);
|
List<OtaBaCxTxjl> reList = cu.comparisonRecord(otaBaSjSjyxpg.getOtaId(), OtaModuleEnum.SJ_SJYXPG, otaBaSjSjyxpgOld, otaBaSjSjyxpg, sysDictService);
|
||||||
reList.addAll(cu.comparisonRecord(otaBaSjSjyxpg.getOtaId(), newYzcl, oldYzcl, OtaModuleEnum.SJ_SJMBCL, "验证材料", ossFileService));
|
reList.addAll(cu.comparisonRecord(otaBaSjSjyxpg.getOtaId(), newYzcl, oldYzcl, OtaModuleEnum.SJ_SJMBCL, "验证材料", ossFileService));
|
||||||
reList.addAll(cu.comparisonRecord(otaBaSjSjyxpg.getOtaId(), newZmcl, oldZmcl, OtaModuleEnum.SJ_SJMBCL, "证明材料", ossFileService));
|
reList.addAll(cu.comparisonRecord(otaBaSjSjyxpg.getOtaId(), newZmcl, oldZmcl, OtaModuleEnum.SJ_SJMBCL, "证明材料", ossFileService));
|
||||||
|
|
||||||
|
if (null == otaBaSjSjyxpg.getFhgd()) {
|
||||||
|
otaBaSjSjyxpg.setFhgd(2);
|
||||||
|
}
|
||||||
|
if (null == otaBaSjSjyxpg.getZdjsxg()) {
|
||||||
|
otaBaSjSjyxpg.setZdjsxg(1);
|
||||||
|
}
|
||||||
|
if (null == otaBaSjSjyxpg.getZxsj()) {
|
||||||
|
otaBaSjSjyxpg.setZxsj(2);
|
||||||
|
}
|
||||||
|
if (StringUtils.isEmpty(otaBaSjSjyxpg.getAqjz())) {
|
||||||
|
otaBaSjSjyxpg.setAqjz("2");
|
||||||
|
}
|
||||||
|
if (null == otaBaSjSjyxpg.getSfyxaq()) {
|
||||||
|
otaBaSjSjyxpg.setSfyxaq(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (null == otaBaSjSjyxpg.getYhqr()) {
|
||||||
|
otaBaSjSjyxpg.setYhqr(1);
|
||||||
|
}
|
||||||
|
if (StringUtils.isEmpty(otaBaSjSjyxpg.getSjbcs())) {
|
||||||
|
otaBaSjSjyxpg.setSjbcs("3,4");
|
||||||
|
}
|
||||||
|
if (null == otaBaSjSjyxpg.getAqkkx()) {
|
||||||
|
otaBaSjSjyxpg.setAqkkx(1);
|
||||||
|
}
|
||||||
|
saveOrUpdate(otaBaSjSjyxpg);
|
||||||
otaBaCxTxjlService.saveBatch(reList);
|
otaBaCxTxjlService.saveBatch(reList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user