|
@@ -44,6 +44,11 @@ public class OrgInfoServiceImpl implements OrgInfoService {
|
|
|
if (count > 0) {
|
|
|
return SendUtil.send(false, Constants.NOT_SAME, "");
|
|
|
}
|
|
|
+
|
|
|
+ // 设置排序号默认值
|
|
|
+ if (Blank.isEmpty(orgInfo.getSort())) {
|
|
|
+ orgInfo.setSort(0);
|
|
|
+ }
|
|
|
Boolean falg = orgInfoMapper.addOrgInfo(orgInfo);
|
|
|
return SendUtil.send(falg);
|
|
|
}
|
|
@@ -61,6 +66,11 @@ public class OrgInfoServiceImpl implements OrgInfoService {
|
|
|
if (count > 0) {
|
|
|
return SendUtil.send(false, Constants.NOT_SAME, "");
|
|
|
}
|
|
|
+
|
|
|
+ // 设置排序号默认值
|
|
|
+ if (Blank.isEmpty(orgInfo.getSort())) {
|
|
|
+ orgInfo.setSort(0);
|
|
|
+ }
|
|
|
Boolean falg = orgInfoMapper.updateOrgInfo(orgInfo);
|
|
|
return SendUtil.send(falg);
|
|
|
}
|
|
@@ -116,7 +126,10 @@ public class OrgInfoServiceImpl implements OrgInfoService {
|
|
|
String columnIdData = Convert.toStr(orgInfo.get("columnId"));
|
|
|
String classificationData = Convert.toStr(orgInfo.get("classification"));
|
|
|
// 服务类型
|
|
|
- String[] typeDataArr = typeData.split(",");
|
|
|
+ String[] typeDataArr = new String[16];
|
|
|
+ if (Blank.isNotEmpty(typeData)) {
|
|
|
+ typeDataArr = typeData.split(",");
|
|
|
+ }
|
|
|
String key = "five_modules";
|
|
|
Map<String, Object> basicData = basicDataMapper.getOneBasicDataByType(key);
|
|
|
if (Blank.isNotEmpty(basicData)) {
|
|
@@ -129,7 +142,7 @@ public class OrgInfoServiceImpl implements OrgInfoService {
|
|
|
userTypeMap.put("name", name);
|
|
|
userTypeMap.put("value", value);
|
|
|
for (String type : typeDataArr) {
|
|
|
- if ( type.equals(value)) {
|
|
|
+ if ( value.equals(type)) {
|
|
|
userTypeMap.put("selected", true);
|
|
|
}
|
|
|
}
|