Commit a692f2bb authored by 季圣华's avatar 季圣华
Browse files

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

parent 3acb0131
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment