虚拟清单,法规清单--批量设置
This commit is contained in:
+29
-22
@@ -411,45 +411,52 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl<DummyInventoryI
|
|||||||
//实施类别 implementType
|
//实施类别 implementType
|
||||||
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getImplementType())){
|
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getImplementType())){
|
||||||
dummyInventoryInfoEOTemp.setImplementType(dummyInventoryInfoEO.getImplementType());
|
dummyInventoryInfoEOTemp.setImplementType(dummyInventoryInfoEO.getImplementType());
|
||||||
}else{
|
|
||||||
dummyInventoryInfoEOTemp.setImplementType("");
|
|
||||||
}
|
}
|
||||||
|
// else{
|
||||||
|
// dummyInventoryInfoEOTemp.setImplementType("");
|
||||||
|
// }
|
||||||
//认证类型 attestationType
|
//认证类型 attestationType
|
||||||
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getAttestationType())){
|
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getAttestationType())){
|
||||||
dummyInventoryInfoEOTemp.setAttestationType(dummyInventoryInfoEO.getAttestationType());
|
dummyInventoryInfoEOTemp.setAttestationType(dummyInventoryInfoEO.getAttestationType());
|
||||||
}else{
|
|
||||||
dummyInventoryInfoEOTemp.setAttestationType("");
|
|
||||||
}
|
}
|
||||||
|
// else{
|
||||||
|
// dummyInventoryInfoEOTemp.setAttestationType("");
|
||||||
|
// }
|
||||||
//认证级别 attestationRank
|
//认证级别 attestationRank
|
||||||
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getAttestationRank())){
|
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getAttestationRank())){
|
||||||
dummyInventoryInfoEOTemp.setAttestationRank(dummyInventoryInfoEO.getAttestationRank());
|
dummyInventoryInfoEOTemp.setAttestationRank(dummyInventoryInfoEO.getAttestationRank());
|
||||||
}else{
|
|
||||||
dummyInventoryInfoEOTemp.setAttestationRank("");
|
|
||||||
}
|
}
|
||||||
|
// else{
|
||||||
|
// dummyInventoryInfoEOTemp.setAttestationRank("");
|
||||||
|
// }
|
||||||
//责任领域 dutyTerritory
|
//责任领域 dutyTerritory
|
||||||
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getDutyTerritory())){
|
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getDutyTerritory())){
|
||||||
dummyInventoryInfoEOTemp.setDutyTerritory(dummyInventoryInfoEO.getDutyTerritory());
|
dummyInventoryInfoEOTemp.setDutyTerritory(dummyInventoryInfoEO.getDutyTerritory());
|
||||||
}else{
|
|
||||||
dummyInventoryInfoEOTemp.setDutyTerritory("");
|
|
||||||
}
|
}
|
||||||
|
// else{
|
||||||
|
// dummyInventoryInfoEOTemp.setDutyTerritory("");
|
||||||
|
// }
|
||||||
//适用范围 shi4Yong4Fan4Wei2
|
//适用范围 shi4Yong4Fan4Wei2
|
||||||
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getShi4Yong4Fan4Wei2())){
|
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getShi4Yong4Fan4Wei2())){
|
||||||
dummyInventoryInfoEOTemp.setShi4Yong4Fan4Wei2(dummyInventoryInfoEO.getShi4Yong4Fan4Wei2());
|
dummyInventoryInfoEOTemp.setShi4Yong4Fan4Wei2(dummyInventoryInfoEO.getShi4Yong4Fan4Wei2());
|
||||||
}else{
|
|
||||||
dummyInventoryInfoEOTemp.setShi4Yong4Fan4Wei2("");
|
|
||||||
}
|
}
|
||||||
|
// else{
|
||||||
|
// dummyInventoryInfoEOTemp.setShi4Yong4Fan4Wei2("");
|
||||||
|
// }
|
||||||
//技术领域 technologyTerritory
|
//技术领域 technologyTerritory
|
||||||
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getTechnologyTerritory())){
|
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getTechnologyTerritory())){
|
||||||
dummyInventoryInfoEOTemp.setTechnologyTerritory(dummyInventoryInfoEO.getTechnologyTerritory());
|
dummyInventoryInfoEOTemp.setTechnologyTerritory(dummyInventoryInfoEO.getTechnologyTerritory());
|
||||||
}else{
|
|
||||||
dummyInventoryInfoEOTemp.setTechnologyTerritory("");
|
|
||||||
}
|
}
|
||||||
|
// else{
|
||||||
|
// dummyInventoryInfoEOTemp.setTechnologyTerritory("");
|
||||||
|
// }
|
||||||
//适用地区 region
|
//适用地区 region
|
||||||
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getRegion())){
|
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getRegion())){
|
||||||
dummyInventoryInfoEOTemp.setRegion(dummyInventoryInfoEO.getRegion());
|
dummyInventoryInfoEOTemp.setRegion(dummyInventoryInfoEO.getRegion());
|
||||||
}else{
|
|
||||||
dummyInventoryInfoEOTemp.setRegion("");
|
|
||||||
}
|
}
|
||||||
|
// else{
|
||||||
|
// dummyInventoryInfoEOTemp.setRegion("");
|
||||||
|
// }
|
||||||
//新车实施日期
|
//新车实施日期
|
||||||
if(ObjectUtils.isNotEmpty(dummyInventoryInfoEO.getXin1Che1Xing2Shi2Shi1Ri4Qi1())){
|
if(ObjectUtils.isNotEmpty(dummyInventoryInfoEO.getXin1Che1Xing2Shi2Shi1Ri4Qi1())){
|
||||||
dummyInventoryInfoEOTemp.setXin1Che1Xing2Shi2Shi1Ri4Qi1(dummyInventoryInfoEO.getXin1Che1Xing2Shi2Shi1Ri4Qi1());
|
dummyInventoryInfoEOTemp.setXin1Che1Xing2Shi2Shi1Ri4Qi1(dummyInventoryInfoEO.getXin1Che1Xing2Shi2Shi1Ri4Qi1());
|
||||||
@@ -461,14 +468,14 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl<DummyInventoryI
|
|||||||
dummyInventoryInfoEOList.add(dummyInventoryInfoEOTemp);
|
dummyInventoryInfoEOList.add(dummyInventoryInfoEOTemp);
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.updateBatchById(dummyInventoryInfoEOList);
|
this.updateBatchById(dummyInventoryInfoEOList);
|
||||||
for (DummyInventoryInfoEO inventoryInfoEO : dummyInventoryInfoEOList) {
|
// for (DummyInventoryInfoEO inventoryInfoEO : dummyInventoryInfoEOList) {
|
||||||
LambdaUpdateWrapper<DummyInventoryInfoEO> updateWrapper = new LambdaUpdateWrapper<>();
|
// LambdaUpdateWrapper<DummyInventoryInfoEO> updateWrapper = new LambdaUpdateWrapper<>();
|
||||||
updateWrapper.in(DummyInventoryInfoEO::getId,inventoryInfoEO.getId());
|
// updateWrapper.in(DummyInventoryInfoEO::getId,inventoryInfoEO.getId());
|
||||||
setDateNull(inventoryInfoEO, updateWrapper);
|
// setDateNull(inventoryInfoEO, updateWrapper);
|
||||||
//保存
|
// //保存
|
||||||
this.update(inventoryInfoEO,updateWrapper);
|
// this.update(inventoryInfoEO,updateWrapper);
|
||||||
}
|
// }
|
||||||
|
|
||||||
//更新log
|
//更新log
|
||||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
|
|||||||
+23
-18
@@ -1705,33 +1705,38 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
//实施类别 implementType
|
//实施类别 implementType
|
||||||
if(org.apache.commons.lang.StringUtils.isNotBlank(projectLawsInventoryEO.getImplementType())){
|
if(org.apache.commons.lang.StringUtils.isNotBlank(projectLawsInventoryEO.getImplementType())){
|
||||||
projectLawsInventoryEOTemp.setImplementType(projectLawsInventoryEO.getImplementType());
|
projectLawsInventoryEOTemp.setImplementType(projectLawsInventoryEO.getImplementType());
|
||||||
}else{
|
|
||||||
projectLawsInventoryEOTemp.setImplementType("");
|
|
||||||
}
|
}
|
||||||
|
// else{
|
||||||
|
// projectLawsInventoryEOTemp.setImplementType("");
|
||||||
|
// }
|
||||||
//认证类型 attestationType
|
//认证类型 attestationType
|
||||||
if(org.apache.commons.lang.StringUtils.isNotBlank(projectLawsInventoryEO.getAttestationType())){
|
if(org.apache.commons.lang.StringUtils.isNotBlank(projectLawsInventoryEO.getAttestationType())){
|
||||||
projectLawsInventoryEOTemp.setAttestationType(projectLawsInventoryEO.getAttestationType());
|
projectLawsInventoryEOTemp.setAttestationType(projectLawsInventoryEO.getAttestationType());
|
||||||
}else{
|
|
||||||
projectLawsInventoryEOTemp.setAttestationType("");
|
|
||||||
}
|
}
|
||||||
|
// else{
|
||||||
|
// projectLawsInventoryEOTemp.setAttestationType("");
|
||||||
|
// }
|
||||||
//认证级别 attestationRank
|
//认证级别 attestationRank
|
||||||
if(org.apache.commons.lang.StringUtils.isNotBlank(projectLawsInventoryEO.getAttestationRank())){
|
if(org.apache.commons.lang.StringUtils.isNotBlank(projectLawsInventoryEO.getAttestationRank())){
|
||||||
projectLawsInventoryEOTemp.setAttestationRank(projectLawsInventoryEO.getAttestationRank());
|
projectLawsInventoryEOTemp.setAttestationRank(projectLawsInventoryEO.getAttestationRank());
|
||||||
}else{
|
|
||||||
projectLawsInventoryEOTemp.setAttestationRank("");
|
|
||||||
}
|
}
|
||||||
|
// else{
|
||||||
|
// projectLawsInventoryEOTemp.setAttestationRank("");
|
||||||
|
// }
|
||||||
//责任领域 dutyTerritory
|
//责任领域 dutyTerritory
|
||||||
if(org.apache.commons.lang.StringUtils.isNotBlank(projectLawsInventoryEO.getDutyTerritory())){
|
if(org.apache.commons.lang.StringUtils.isNotBlank(projectLawsInventoryEO.getDutyTerritory())){
|
||||||
projectLawsInventoryEOTemp.setDutyTerritory(projectLawsInventoryEO.getDutyTerritory());
|
projectLawsInventoryEOTemp.setDutyTerritory(projectLawsInventoryEO.getDutyTerritory());
|
||||||
}else{
|
|
||||||
projectLawsInventoryEOTemp.setDutyTerritory("");
|
|
||||||
}
|
}
|
||||||
|
// else{
|
||||||
|
// projectLawsInventoryEOTemp.setDutyTerritory("");
|
||||||
|
// }
|
||||||
//适用地区region
|
//适用地区region
|
||||||
if(ObjectUtils.isNotEmpty(projectLawsInventoryEO.getRegion())){
|
if(ObjectUtils.isNotEmpty(projectLawsInventoryEO.getRegion())){
|
||||||
projectLawsInventoryEOTemp.setRegion(projectLawsInventoryEO.getRegion());
|
projectLawsInventoryEOTemp.setRegion(projectLawsInventoryEO.getRegion());
|
||||||
}else{
|
|
||||||
projectLawsInventoryEOTemp.setRegion("");
|
|
||||||
}
|
}
|
||||||
|
// else{
|
||||||
|
// projectLawsInventoryEOTemp.setRegion("");
|
||||||
|
// }
|
||||||
//在产车实施日期implementTime
|
//在产车实施日期implementTime
|
||||||
if(ObjectUtils.isNotEmpty(projectLawsInventoryEO.getImplementTime())){
|
if(ObjectUtils.isNotEmpty(projectLawsInventoryEO.getImplementTime())){
|
||||||
projectLawsInventoryEOTemp.setImplementTime(projectLawsInventoryEO.getImplementTime());
|
projectLawsInventoryEOTemp.setImplementTime(projectLawsInventoryEO.getImplementTime());
|
||||||
@@ -1755,14 +1760,14 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
projectLawsInventoryEOList.add(projectLawsInventoryEOTemp);
|
projectLawsInventoryEOList.add(projectLawsInventoryEOTemp);
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.updateBatchById(projectLawsInventoryEOList);
|
this.updateBatchById(projectLawsInventoryEOList);
|
||||||
for (ProjectLawsInventoryEO lawsInventoryEO : projectLawsInventoryEOList) {
|
// for (ProjectLawsInventoryEO lawsInventoryEO : projectLawsInventoryEOList) {
|
||||||
LambdaUpdateWrapper<ProjectLawsInventoryEO> updateWrapper = new LambdaUpdateWrapper<>();
|
// LambdaUpdateWrapper<ProjectLawsInventoryEO> updateWrapper = new LambdaUpdateWrapper<>();
|
||||||
updateWrapper.in(ProjectLawsInventoryEO::getId,lawsInventoryEO.getId());
|
// updateWrapper.in(ProjectLawsInventoryEO::getId,lawsInventoryEO.getId());
|
||||||
setDateNull(lawsInventoryEO, updateWrapper);
|
// setDateNull(lawsInventoryEO, updateWrapper);
|
||||||
//保存
|
// //保存
|
||||||
this.update(lawsInventoryEO,updateWrapper);
|
// this.update(lawsInventoryEO,updateWrapper);
|
||||||
}
|
// }
|
||||||
|
|
||||||
//更新log
|
//更新log
|
||||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
|
|||||||
Reference in New Issue
Block a user