|
@@ -27,7 +27,7 @@ import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
- * 格力品牌固障代码基础资料下载 这里不再使用
|
|
|
+ * 格力品牌固障代码基础资料下载 同步一次不再使用
|
|
|
*/
|
|
|
@Slf4j
|
|
|
@Component
|
|
@@ -50,10 +50,10 @@ public class GLPPGuZhandDaiMa {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 格力品牌固障代码资料信息同步 这里不再使用
|
|
|
+ * 格力品牌固障代码资料信息同步 同步一次不再使用
|
|
|
* @return
|
|
|
*/
|
|
|
- @Scheduled(fixedDelay = 1 * 60 * 1000)
|
|
|
+ @Scheduled(fixedDelayString = "${guzdm}")
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void processGZDMTask() throws Exception {
|
|
|
if (1==1){
|
|
@@ -107,14 +107,20 @@ public class GLPPGuZhandDaiMa {
|
|
|
List<RepairBug> addRepairBug = new ArrayList<>();
|
|
|
List<RepairBug> updateRepairBug = new ArrayList<>();
|
|
|
// 提取小类字典数据
|
|
|
- List<SysDict> oldSysDictRec = sysDictService.lambdaQuery().eq(SysDict::getDictType, DictTypeEnum.DICT_TYPE_SMALL_TYPE.getCode()).list();
|
|
|
+ List<SysDict> oldSysDictRec = sysDictService.lambdaQuery()
|
|
|
+ .eq(SysDict::getDictType, DictTypeEnum.DICT_TYPE_SMALL_TYPE.getCode())
|
|
|
+ .eq(SysDict::getStatus, DictTypeEnum.DICT_TYPE_ON.getCode())
|
|
|
+ .list();
|
|
|
// 小类名称
|
|
|
List<String> oldSysDictReclist = oldSysDictRec.stream().map(SysDict::getDictValue).collect(Collectors.toList());
|
|
|
// 小类编号
|
|
|
Map<String, List<SysDict>> oldSysDictRecMap = oldSysDictRec.stream().collect(Collectors.groupingBy(SysDict::getDictValue));
|
|
|
|
|
|
// 提取大类字典数据
|
|
|
- List<SysDict> oldDSysDictRec = sysDictService.lambdaQuery().eq(SysDict::getDictType, DictTypeEnum.DICT_TYPE_MAIN_TYPE.getCode()).list();
|
|
|
+ List<SysDict> oldDSysDictRec = sysDictService.lambdaQuery()
|
|
|
+ .eq(SysDict::getDictType, DictTypeEnum.DICT_TYPE_MAIN_TYPE.getCode())
|
|
|
+ .eq(SysDict::getStatus, DictTypeEnum.DICT_TYPE_ON.getCode())
|
|
|
+ .eq(SysDict::getStatus, DictTypeEnum.DICT_TYPE_ON.getCode()).list();
|
|
|
// 大类名称
|
|
|
List<String> oldSysDictReclistDL = oldDSysDictRec.stream().map(SysDict::getDictValue).collect(Collectors.toList());
|
|
|
// 大类编号
|
|
@@ -132,7 +138,7 @@ public class GLPPGuZhandDaiMa {
|
|
|
for (ItfTblAssignGzdmDowload item : addRec){
|
|
|
// 类别不存在不新增 这里的类别为类别名称,可能是大类也可能是小类
|
|
|
// 大类的处理
|
|
|
- addDL(brandRec, addRepairBug, oldSysDictReclistDL, oldDSysDictRecMapN, oldDSysDictRecMap, item);
|
|
|
+ // addDL(brandRec, addRepairBug, oldSysDictReclistDL, oldDSysDictRecMapN, oldDSysDictRecMap, item);
|
|
|
// 小类的处理
|
|
|
addXL(brandRec, addRepairBug, oldSysDictReclist, oldSysDictRecMap, oldDSysDictRecMap, item);
|
|
|
}
|
|
@@ -143,7 +149,7 @@ public class GLPPGuZhandDaiMa {
|
|
|
if (updateRec.size()>0){
|
|
|
for (ItfTblAssignGzdmDowload item : updateRec){
|
|
|
// 大类修改
|
|
|
- upDL(updateRepairBug, oldSysDictRecMap, oldSysDictReclistDL, oldDSysDictRecMapN, oldDSysDictRecMap, oldRepairBugRecMap, item);
|
|
|
+ // upDL(updateRepairBug, oldSysDictRecMap, oldSysDictReclistDL, oldDSysDictRecMapN, oldDSysDictRecMap, oldRepairBugRecMap, item);
|
|
|
// 小类修改
|
|
|
upXL(updateRepairBug, oldSysDictReclist, oldSysDictRecMap, oldDSysDictRecMap, oldRepairBugRecMap, item);
|
|
|
}
|
|
@@ -164,64 +170,94 @@ public class GLPPGuZhandDaiMa {
|
|
|
private void upXL(List<RepairBug> updateRepairBug, List<String> oldSysDictReclist, Map<String, List<SysDict>> oldSysDictRecMap, Map<String, List<SysDict>> oldDSysDictRecMap, Map<String, List<RepairBug>> oldRepairBugRecMap, ItfTblAssignGzdmDowload item) {
|
|
|
Boolean flag;
|
|
|
flag = Boolean.FALSE;
|
|
|
- // 类别不存在不修改
|
|
|
+ // 类别存在的修改
|
|
|
if (oldSysDictReclist.contains(item.getLeib())){
|
|
|
- SysDict v = oldSysDictRecMap.get(item.getLeib()).get(0);
|
|
|
- RepairBug old = oldRepairBugRecMap.get(item.getGzid()).get(0);
|
|
|
+ upRepairBug(updateRepairBug, oldSysDictRecMap, oldDSysDictRecMap, oldRepairBugRecMap, item, flag);
|
|
|
+ } else {
|
|
|
+ // 类别不存在的修改
|
|
|
+ upRepairBugT(updateRepairBug, oldRepairBugRecMap, item, flag);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- if (oldSysDictRecMap.get(item.getLeib()).get(0)!=null){
|
|
|
- if (!old.getSmallId().equals(oldSysDictRecMap.get(item.getLeib()).get(0).getDictCode())){
|
|
|
- flag = Boolean.TRUE;
|
|
|
- old.setSmallId(oldSysDictRecMap.get(item.getLeib()).get(0).getDictCode());
|
|
|
- old.setSmallName(oldSysDictRecMap.get(item.getLeib()).get(0).getDictValue());
|
|
|
- old.setMainId(oldSysDictRecMap.get(item.getLeib()).get(0).getParentDictCode());
|
|
|
- old.setMainName(oldDSysDictRecMap.get(old.getMainId()).get(0).getDictValue());
|
|
|
- old.setMainFlag(oldDSysDictRecMap.get(old.getMainId()).get(0).getFlag());
|
|
|
- }
|
|
|
+ private void upRepairBugT(List<RepairBug> updateRepairBug, Map<String, List<RepairBug>> oldRepairBugRecMap, ItfTblAssignGzdmDowload item, Boolean flag) {
|
|
|
+ RepairBug old = oldRepairBugRecMap.get(String.valueOf(item.getGzid())).get(0);
|
|
|
+ if (!old.getBugObj().equals(item.getGzmc())){
|
|
|
+ old.setBugObj(item.getGzmc());
|
|
|
+ flag = Boolean.TRUE;
|
|
|
+ }
|
|
|
+ if (!old.getBugObjCode().equals(item.getGzno())){
|
|
|
+ old.setBugObjCode(item.getGzmc());
|
|
|
+ flag = Boolean.TRUE;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 修改的为有效
|
|
|
+ if (item.getFlag().equals(DictTypeEnum.DICT_TYPE_FLAG_ON.getCode())){
|
|
|
+ if (old.getStatus().equals(DictTypeEnum.DICT_TYPE_OFF.getCode())){
|
|
|
+ old.setStatus(DictTypeEnum.DICT_TYPE_ON.getCode());
|
|
|
+ flag = Boolean.TRUE;
|
|
|
}
|
|
|
- if (!old.getBugObj().equals(item.getGzmc())){
|
|
|
- old.setBugObj(item.getGzmc());
|
|
|
+ } else {
|
|
|
+ if (old.getStatus().equals(DictTypeEnum.DICT_TYPE_ON.getCode())){
|
|
|
+ old.setStatus(DictTypeEnum.DICT_TYPE_OFF.getCode());
|
|
|
flag = Boolean.TRUE;
|
|
|
}
|
|
|
- if (item.getGzno() !=null || old.getBugObjCode() !=null ){
|
|
|
- if (item.getGzno() !=null && old.getBugObjCode() !=null){
|
|
|
- if (!item.getGzno().equals(old.getBugObjCode())){
|
|
|
- old.setBugObjCode(item.getGzno());
|
|
|
- flag = Boolean.TRUE;
|
|
|
- }
|
|
|
- } else {
|
|
|
- flag = Boolean.TRUE;
|
|
|
- if (item.getGzno() !=null){
|
|
|
- old.setBugObjCode(item.getGzno());
|
|
|
- } else {
|
|
|
- old.setBugObjCode(null);
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
+ if (flag){
|
|
|
+ old.setUpdateBy("system");
|
|
|
+ old.setUpdateTime(new Date());
|
|
|
+ if (item.getLastModifiedBy() !=null ){
|
|
|
+ old.setUpdateBy(item.getLastModifiedBy());
|
|
|
+ }
|
|
|
+ if (item.getLastModifiedDate() !=null ){
|
|
|
+ old.setUpdateTime(item.getLastModifiedDate());
|
|
|
}
|
|
|
+ updateRepairBug.add(old);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- // 修改的为有效
|
|
|
- if (item.getFlag().equals(DictTypeEnum.DICT_TYPE_FLAG_ON.getCode())){
|
|
|
- if (old.getStatus().equals(DictTypeEnum.DICT_TYPE_OFF.getCode())){
|
|
|
- old.setStatus(DictTypeEnum.DICT_TYPE_ON.getCode());
|
|
|
- flag = Boolean.TRUE;
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (old.getStatus().equals(DictTypeEnum.DICT_TYPE_ON.getCode())){
|
|
|
- old.setStatus(DictTypeEnum.DICT_TYPE_OFF.getCode());
|
|
|
- flag = Boolean.TRUE;
|
|
|
- }
|
|
|
+ private void upRepairBug(List<RepairBug> updateRepairBug, Map<String, List<SysDict>> oldSysDictRecMap, Map<String, List<SysDict>> oldDSysDictRecMap, Map<String, List<RepairBug>> oldRepairBugRecMap, ItfTblAssignGzdmDowload item, Boolean flag) {
|
|
|
+ RepairBug old = oldRepairBugRecMap.get(String.valueOf(item.getGzid())).get(0);
|
|
|
+
|
|
|
+ if (oldSysDictRecMap.get(item.getLeib()).get(0)!=null){
|
|
|
+ if (!old.getSmallId().equals(oldSysDictRecMap.get(item.getLeib()).get(0).getDictCode())){
|
|
|
+ flag = Boolean.TRUE;
|
|
|
+ old.setSmallId(oldSysDictRecMap.get(item.getLeib()).get(0).getDictCode());
|
|
|
+ old.setSmallName(oldSysDictRecMap.get(item.getLeib()).get(0).getDictValue());
|
|
|
+ old.setMainId(oldSysDictRecMap.get(item.getLeib()).get(0).getParentDictCode());
|
|
|
+ old.setMainName(oldDSysDictRecMap.get(old.getMainId()).get(0).getDictValue());
|
|
|
+ old.setMainFlag(oldDSysDictRecMap.get(old.getMainId()).get(0).getFlag());
|
|
|
}
|
|
|
- if (flag){
|
|
|
- old.setUpdateBy("system");
|
|
|
- old.setUpdateTime(new Date());
|
|
|
- if (item.getLastModifiedBy() !=null ){
|
|
|
- old.setUpdateBy(item.getLastModifiedBy());
|
|
|
- }
|
|
|
- if (item.getLastModifiedDate() !=null ){
|
|
|
- old.setUpdateTime(item.getLastModifiedDate());
|
|
|
- }
|
|
|
- updateRepairBug.add(old);
|
|
|
+ }
|
|
|
+ if (!old.getBugObjCode().equals(item.getGzno())){
|
|
|
+ old.setBugObjCode(item.getGzno());
|
|
|
+ flag = Boolean.TRUE;
|
|
|
+ }
|
|
|
+ if (!old.getBugObj().equals(item.getGzmc())){
|
|
|
+ old.setBugObj(item.getGzmc());
|
|
|
+ flag = Boolean.TRUE;
|
|
|
+ }
|
|
|
+ // 修改的为有效
|
|
|
+ if (item.getFlag().equals(DictTypeEnum.DICT_TYPE_FLAG_ON.getCode())){
|
|
|
+ if (old.getStatus().equals(DictTypeEnum.DICT_TYPE_OFF.getCode())){
|
|
|
+ old.setStatus(DictTypeEnum.DICT_TYPE_ON.getCode());
|
|
|
+ flag = Boolean.TRUE;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (old.getStatus().equals(DictTypeEnum.DICT_TYPE_ON.getCode())){
|
|
|
+ old.setStatus(DictTypeEnum.DICT_TYPE_OFF.getCode());
|
|
|
+ flag = Boolean.TRUE;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (flag){
|
|
|
+ old.setUpdateBy("system");
|
|
|
+ old.setUpdateTime(new Date());
|
|
|
+ if (item.getLastModifiedBy() !=null ){
|
|
|
+ old.setUpdateBy(item.getLastModifiedBy());
|
|
|
+ }
|
|
|
+ if (item.getLastModifiedDate() !=null ){
|
|
|
+ old.setUpdateTime(item.getLastModifiedDate());
|
|
|
}
|
|
|
+ updateRepairBug.add(old);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -319,43 +355,73 @@ public class GLPPGuZhandDaiMa {
|
|
|
}
|
|
|
|
|
|
private void addXL(Brand brandRec, List<RepairBug> addRepairBug, List<String> oldSysDictReclist, Map<String, List<SysDict>> oldSysDictRecMap, Map<String, List<SysDict>> oldDSysDictRecMap, ItfTblAssignGzdmDowload item) {
|
|
|
+ // leib为小类的名称
|
|
|
if (oldSysDictReclist.contains(item.getLeib())){
|
|
|
- RepairBug v = new RepairBug();
|
|
|
- v.setBugId(UUID.randomUUID().toString());
|
|
|
- v.setGzid(String.valueOf(item.getGzid()));
|
|
|
- v.setBrandId(brandRec.getBrandId());
|
|
|
- v.setBrandName(brandRec.getBrand());
|
|
|
- // 类别不为空时
|
|
|
- if (oldSysDictRecMap.get(item.getLeib()).get(0)!=null){
|
|
|
- // 小类编号
|
|
|
- v.setSmallId(oldSysDictRecMap.get(item.getLeib()).get(0).getDictCode());
|
|
|
- // 小类名称
|
|
|
- v.setSmallName(oldSysDictRecMap.get(item.getLeib()).get(0).getDictValue());
|
|
|
- // 小类有对应的父类时 提取父类信息
|
|
|
- if (!StringUtils.isEmpty(oldSysDictRecMap.get(item.getLeib()).get(0).getParentDictCode())){
|
|
|
- v.setMainId(oldSysDictRecMap.get(item.getLeib()).get(0).getParentDictCode());
|
|
|
- v.setMainName(oldDSysDictRecMap.get(v.getMainId()).get(0).getDictValue());
|
|
|
- v.setMainFlag(oldDSysDictRecMap.get(v.getMainId()).get(0).getFlag());
|
|
|
- }
|
|
|
- }
|
|
|
- v.setBugObj(item.getGzmc());
|
|
|
- if (item.getGzno() !=null ){
|
|
|
- v.setBugObjCode(item.getGzno());
|
|
|
- }
|
|
|
- v.setStatus(DictTypeEnum.DICT_TYPE_OFF.getCode());
|
|
|
- if (item.getFlag().equals(DictTypeEnum.DICT_TYPE_FLAG_ON.getCode())){
|
|
|
- v.setStatus(DictTypeEnum.DICT_TYPE_ON.getCode());
|
|
|
- }
|
|
|
- v.setCreateBy("system");
|
|
|
- v.setCreateTime(new Date());
|
|
|
- if (item.getCjren() !=null){
|
|
|
- v.setCreateBy(item.getCjren());
|
|
|
- }
|
|
|
- if (item.getCjdt() != null){
|
|
|
- v.setCreateTime(item.getCjdt());
|
|
|
+ addRepairBugCheck(brandRec, addRepairBug, oldSysDictRecMap, oldDSysDictRecMap, item);
|
|
|
+ } else {
|
|
|
+ // 无小类信息直接添加
|
|
|
+ addRepairBug(brandRec, addRepairBug, item);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private void addRepairBugCheck(Brand brandRec, List<RepairBug> addRepairBug, Map<String, List<SysDict>> oldSysDictRecMap, Map<String, List<SysDict>> oldDSysDictRecMap, ItfTblAssignGzdmDowload item) {
|
|
|
+ RepairBug v = new RepairBug();
|
|
|
+ v.setBugId(UUID.randomUUID().toString());
|
|
|
+ v.setGzid(String.valueOf(item.getGzid()));
|
|
|
+ v.setBrandId(brandRec.getBrandId());
|
|
|
+ v.setBrandName(brandRec.getBrand());
|
|
|
+ // 类别不为空时
|
|
|
+ if (oldSysDictRecMap.get(item.getLeib()).get(0)!=null){
|
|
|
+ // 小类编号
|
|
|
+ v.setSmallId(oldSysDictRecMap.get(item.getLeib()).get(0).getDictCode());
|
|
|
+ // 小类名称
|
|
|
+ v.setSmallName(oldSysDictRecMap.get(item.getLeib()).get(0).getDictValue());
|
|
|
+ // 小类有对应的父类时 提取父类信息
|
|
|
+ if (!StringUtils.isEmpty(oldSysDictRecMap.get(item.getLeib()).get(0).getParentDictCode())){
|
|
|
+ v.setMainId(oldSysDictRecMap.get(item.getLeib()).get(0).getParentDictCode());
|
|
|
+ v.setMainName(oldDSysDictRecMap.get(v.getMainId()).get(0).getDictValue());
|
|
|
+ v.setMainFlag(oldDSysDictRecMap.get(v.getMainId()).get(0).getFlag());
|
|
|
}
|
|
|
- addRepairBug.add(v);
|
|
|
}
|
|
|
+ v.setBugObj(item.getGzmc());
|
|
|
+ v.setBugObjCode(item.getGzno());
|
|
|
+ v.setStatus(DictTypeEnum.DICT_TYPE_OFF.getCode());
|
|
|
+ if (item.getFlag().equals(DictTypeEnum.DICT_TYPE_FLAG_ON.getCode())){
|
|
|
+ v.setStatus(DictTypeEnum.DICT_TYPE_ON.getCode());
|
|
|
+ }
|
|
|
+ v.setCreateBy("system");
|
|
|
+ v.setCreateTime(new Date());
|
|
|
+ if (item.getCjren() !=null){
|
|
|
+ v.setCreateBy(item.getCjren());
|
|
|
+ }
|
|
|
+ if (item.getCjdt() != null){
|
|
|
+ v.setCreateTime(item.getCjdt());
|
|
|
+ }
|
|
|
+ addRepairBug.add(v);
|
|
|
+ }
|
|
|
+
|
|
|
+ private void addRepairBug(Brand brandRec, List<RepairBug> addRepairBug, ItfTblAssignGzdmDowload item) {
|
|
|
+ RepairBug v = new RepairBug();
|
|
|
+ v.setBugId(UUID.randomUUID().toString());
|
|
|
+ v.setGzid(String.valueOf(item.getGzid()));
|
|
|
+ v.setBrandId(brandRec.getBrandId());
|
|
|
+ v.setBrandName(brandRec.getBrand());
|
|
|
+ v.setMainId("");
|
|
|
+ v.setBugObj(item.getGzmc());
|
|
|
+ v.setBugObjCode(item.getGzno());
|
|
|
+ v.setStatus(DictTypeEnum.DICT_TYPE_OFF.getCode());
|
|
|
+ if (item.getFlag().equals(DictTypeEnum.DICT_TYPE_FLAG_ON.getCode())){
|
|
|
+ v.setStatus(DictTypeEnum.DICT_TYPE_ON.getCode());
|
|
|
+ }
|
|
|
+ v.setCreateBy("system");
|
|
|
+ v.setCreateTime(new Date());
|
|
|
+ if (item.getCjren() !=null){
|
|
|
+ v.setCreateBy(item.getCjren());
|
|
|
+ }
|
|
|
+ if (item.getCjdt() != null){
|
|
|
+ v.setCreateTime(item.getCjdt());
|
|
|
+ }
|
|
|
+ addRepairBug.add(v);
|
|
|
}
|
|
|
|
|
|
private void extractedGZDMAddOrUpdate(JSONArray jsonArray, List<ItfTblAssignGzdmDowload> addRec, List<ItfTblAssignGzdmDowload> updateRec) {
|
|
@@ -369,25 +435,33 @@ public class GLPPGuZhandDaiMa {
|
|
|
flag = Boolean.FALSE;
|
|
|
JSONObject aData = jsonArray.getJSONObject(i);
|
|
|
ItfTblAssignGzdmDowload item = JSON.toJavaObject(aData,ItfTblAssignGzdmDowload.class);
|
|
|
+ if (StringUtils.isEmpty(item.getGzno())){
|
|
|
+ item.setGzno("");
|
|
|
+ }
|
|
|
// 新增或修改数据
|
|
|
+ if (StringUtils.isEmpty(item.getLeib())){
|
|
|
+ item.setLeib("");
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(item.getGzmc())){
|
|
|
+ item.setGzmc("");
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(item.getFlag())){
|
|
|
+ item.setFlag("有效");
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(item.getCjwdno())){
|
|
|
+ item.setCjwdno("");
|
|
|
+ }
|
|
|
+ if (item.getPxdj()==null){
|
|
|
+ item.setPxdj(0);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
// 修改
|
|
|
if (oldRecId.contains(item.getGzid())){
|
|
|
ItfTblAssignGzdmDowload old = oldRecMap.get(item.getGzid()).get(0);
|
|
|
- if (old.getGzno() !=null || item.getGzno() !=null){
|
|
|
- if (old.getGzno() !=null && item.getGzno() !=null){
|
|
|
- if (!old.getGzno().equals(item.getGzno())){
|
|
|
- old.setGzno(item.getGzno());
|
|
|
- flag = Boolean.TRUE;
|
|
|
- }
|
|
|
- } else {
|
|
|
- flag = Boolean.TRUE;
|
|
|
- if (item.getGzno() !=null) {
|
|
|
- old.setGzno(item.getGzno());
|
|
|
- } else {
|
|
|
- old.setGzno("");
|
|
|
- }
|
|
|
- }
|
|
|
+ if (!old.getGzno().equals(item.getGzno())){
|
|
|
+ old.setGzno(item.getGzno());
|
|
|
+ flag = Boolean.TRUE;
|
|
|
}
|
|
|
|
|
|
if (!old.getGzmc().equals(item.getGzmc())){
|
|
@@ -406,20 +480,9 @@ public class GLPPGuZhandDaiMa {
|
|
|
old.setLeib(item.getLeib());
|
|
|
flag = Boolean.TRUE;
|
|
|
}
|
|
|
- if (old.getCjwdno() !=null || item.getCjwdno() !=null){
|
|
|
- if (old.getCjwdno() !=null && item.getCjwdno() !=null){
|
|
|
- if (!old.getCjwdno().equals(item.getCjwdno())){
|
|
|
- old.setCjwdno(item.getCjwdno());
|
|
|
- flag = Boolean.TRUE;
|
|
|
- }
|
|
|
- } else {
|
|
|
- flag = Boolean.TRUE;
|
|
|
- if (item.getCjwdno() !=null) {
|
|
|
- old.setCjwdno(item.getCjwdno());
|
|
|
- } else {
|
|
|
- old.setCjwdno("");
|
|
|
- }
|
|
|
- }
|
|
|
+ if (!old.getCjwdno().equals(item.getCjwdno())){
|
|
|
+ old.setCjwdno(item.getCjwdno());
|
|
|
+ flag = Boolean.TRUE;
|
|
|
}
|
|
|
if (flag){
|
|
|
old.setLastModifiedBy("system");
|