|
|
|
@ -127,6 +127,7 @@ public class UserController { |
|
|
|
|
groupManagementService.updateGroupByKey(groupManagementEntity); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
taxPlayerCodeDept.setName(replace); |
|
|
|
|
//更新redis缓存
|
|
|
|
|
redisService.del(kpzzglKey); |
|
|
|
|
} |
|
|
|
@ -147,12 +148,17 @@ public class UserController { |
|
|
|
|
if(groupManagementEntityOptional.isPresent()){ |
|
|
|
|
GroupManagementEntity groupManagementEntity = groupManagementEntityOptional.get(); |
|
|
|
|
boolean changed = isChanged(taxPlayerCodeDept, groupManagementEntity); |
|
|
|
|
|
|
|
|
|
String repl = "(" + taxPlayerCodeDept.getEnterpriseNumbers() + ")"; |
|
|
|
|
String replace = taxPlayerCodeDept.getName().replace(repl, ""); |
|
|
|
|
|
|
|
|
|
if (changed) { |
|
|
|
|
updateGroup(taxPlayerCodeDept,groupManagementEntity); |
|
|
|
|
} |
|
|
|
|
//新增redis缓存
|
|
|
|
|
String groupManagementStr = JSON.toJSONString(groupManagementEntity); |
|
|
|
|
redisService.set(kpzzglKey, groupManagementStr, RedisConstant.REDIS_EXPIRE_TIME_7DAYS); |
|
|
|
|
taxPlayerCodeDept.setName(replace); |
|
|
|
|
} else { |
|
|
|
|
log.debug("同步开票组织管理---database is null"); |
|
|
|
|
GroupManagementEntity groupManagementEntity = new GroupManagementEntity(); |
|
|
|
@ -204,6 +210,7 @@ public class UserController { |
|
|
|
|
groupManagementEntity.setXhfMc(name); |
|
|
|
|
String groupManagementStr = JSON.toJSONString(groupManagementEntity); |
|
|
|
|
redisService.set(kpzzglKey, groupManagementStr, RedisConstant.REDIS_EXPIRE_TIME_7DAYS); |
|
|
|
|
taxPlayerCodeDept.setName(replace); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|