|
@@ -878,11 +878,21 @@ public class AnalysisDiyCustomerComponent {
|
|
sysUserExtMapper.updateSysUserExt(user.getSysUserExt());
|
|
sysUserExtMapper.updateSysUserExt(user.getSysUserExt());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if(("019").equals(user.getSysUserExt().getCustomerCode().substring(0, 3)) && user.getSysUserExt().getIsCustomerManager() == "0"){
|
|
|
|
- user.getSysUserExt().setCustomerCode(customerCode);
|
|
|
|
- user.getSysUserExt().setOrgCode(customerCode);
|
|
|
|
- user.getSysUserExt().setOrgName(customerName);
|
|
|
|
- sysUserExtMapper.updateSysUserExt(user.getSysUserExt());
|
|
|
|
|
|
+ if(("019").equals(user.getSysUserExt().getCustomerCode().substring(0, 3)) && ("0").equals(user.getSysUserExt().getIsCustomerManager())){
|
|
|
|
+ String isCustomerManager = user.getSysUserExt().getIsCustomerManager();
|
|
|
|
+ List<String> listManager = new ArrayList<>();
|
|
|
|
+ String[] split = isCustomerManager.split(",");
|
|
|
|
+ for (String s : split) {
|
|
|
|
+ if(s !=null && !("").equals(s)){
|
|
|
|
+ listManager.add(s);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(listManager.size() == 1 ){
|
|
|
|
+ user.getSysUserExt().setCustomerCode(customerCode);
|
|
|
|
+ user.getSysUserExt().setOrgCode(customerCode);
|
|
|
|
+ user.getSysUserExt().setOrgName(customerName);
|
|
|
|
+ sysUserExtMapper.updateSysUserExt(user.getSysUserExt());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
/* if(user.getSysUserExt().getIsCustomerManager() !=null){
|
|
/* if(user.getSysUserExt().getIsCustomerManager() !=null){
|
|
if(user.getSysUserExt().getIsCustomerManager().contains("0")){
|
|
if(user.getSysUserExt().getIsCustomerManager().contains("0")){
|