增强字符串匹配区域字段当region只有一个值的时候自动设置值
This commit is contained in:
@@ -1048,7 +1048,12 @@ public class BaseController {
|
|||||||
}
|
}
|
||||||
if(StringUtils.isNotBlank(dirtrictP)) {
|
if(StringUtils.isNotBlank(dirtrictP)) {
|
||||||
if(StringUtils.isBlank(district)) {
|
if(StringUtils.isBlank(district)) {
|
||||||
errInfo.append(String.format(prop.getProperty("can_not_null"), prop.getProperty("district")+" ")+";");
|
if(dirtrictP.indexOf(",")==-1) {
|
||||||
|
baseStringCfg.setDistrict(dirtrictP);
|
||||||
|
}else {
|
||||||
|
//baseStringCfg.setDistrict(dirtrictP.split(",")[0]);
|
||||||
|
errInfo.append(String.format(prop.getProperty("can_not_null"), prop.getProperty("district")+" ")+";");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(dirtrictP.indexOf(district)==-1) {
|
if(dirtrictP.indexOf(district)==-1) {
|
||||||
errInfo.append(String.format(prop.getProperty("is_incorrect"), prop.getProperty("district")+" ")+";");
|
errInfo.append(String.format(prop.getProperty("is_incorrect"), prop.getProperty("district")+" ")+";");
|
||||||
|
|||||||
Reference in New Issue
Block a user