解决用户配置仓库和客户的bug

This commit is contained in:
季圣华
2021-11-06 01:06:34 +08:00
parent 3acb0131b6
commit a692f2bb0b

View File

@@ -79,7 +79,7 @@ public class UserBusinessService {
}
String value = userBusiness.getValue();
String newValue = value.replaceAll(",","\\]\\[");
newValue = newValue.replaceAll("[0]","").replaceAll("\\[\\]","");
newValue = newValue.replaceAll("\\[0\\]","").replaceAll("\\[\\]","");
userBusiness.setValue(newValue);
result=userBusinessMapper.insertSelective(userBusiness);
logService.insertLog("关联关系", BusinessConstants.LOG_OPERATION_TYPE_ADD, request);
@@ -96,7 +96,7 @@ public class UserBusinessService {
try{
String value = userBusiness.getValue();
String newValue = value.replaceAll(",","\\]\\[");
newValue = newValue.replaceAll("[0]","").replaceAll("\\[\\]","");
newValue = newValue.replaceAll("\\[0\\]","").replaceAll("\\[\\]","");
userBusiness.setValue(newValue);
result=userBusinessMapper.updateByPrimaryKeySelective(userBusiness);
logService.insertLog("关联关系", BusinessConstants.LOG_OPERATION_TYPE_EDIT, request);