|
@@ -108,8 +108,15 @@ public class SystemSettingController implements SystemSettingControllerAPI {
|
|
|
|
|
|
|
|
if (ws != null && ws.size() > 0) {
|
|
if (ws != null && ws.size() > 0) {
|
|
|
WelcomeSetting wsData = ws.get(0);
|
|
WelcomeSetting wsData = ws.get(0);
|
|
|
- result.setCarNum(wsData.getCarNum());
|
|
|
|
|
- result.setPhone(wsData.getPhone());
|
|
|
|
|
|
|
+ result.setMxhCarNum(wsData.getMxhCarNum());
|
|
|
|
|
+ result.setHjhCarNum(wsData.getHjhCarNum());
|
|
|
|
|
+ if (StringUtils.hasText(wsData.getPhone())) {
|
|
|
|
|
+ List<String> phones = Arrays.asList(wsData.getPhone().split(","));
|
|
|
|
|
+ result.setPhones(phones);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ result.setPhones(new ArrayList<>());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
result.setSafetyNotice(wsData.getSafetyNotice());
|
|
result.setSafetyNotice(wsData.getSafetyNotice());
|
|
|
result.setBasicVerification(wsData.getBasicVerification());
|
|
result.setBasicVerification(wsData.getBasicVerification());
|
|
|
result.setFamilyInfo(wsData.getFamilyInfo());
|
|
result.setFamilyInfo(wsData.getFamilyInfo());
|
|
@@ -136,8 +143,10 @@ public class SystemSettingController implements SystemSettingControllerAPI {
|
|
|
if (ws != null && ws.size() > 0) {
|
|
if (ws != null && ws.size() > 0) {
|
|
|
result = ws.get(0);
|
|
result = ws.get(0);
|
|
|
}
|
|
}
|
|
|
- result.setCarNum(iussr.getCarNum());
|
|
|
|
|
- result.setPhone(iussr.getPhone());
|
|
|
|
|
|
|
+ result.setMxhCarNum(iussr.getMxhCarNum());
|
|
|
|
|
+ result.setHjhCarNum(iussr.getHjhCarNum());
|
|
|
|
|
+ String phone = org.apache.commons.lang3.StringUtils.join(iussr.getPhones(), ',');
|
|
|
|
|
+ result.setPhone(phone);
|
|
|
result.setSafetyNotice(iussr.getSafetyNotice());
|
|
result.setSafetyNotice(iussr.getSafetyNotice());
|
|
|
result.setBasicVerification(iussr.getBasicVerification());
|
|
result.setBasicVerification(iussr.getBasicVerification());
|
|
|
result.setFamilyInfo(iussr.getFamilyInfo());
|
|
result.setFamilyInfo(iussr.getFamilyInfo());
|
|
@@ -195,7 +204,7 @@ public class SystemSettingController implements SystemSettingControllerAPI {
|
|
|
int deleteAll = welcomePaySettingService.deleteAll();
|
|
int deleteAll = welcomePaySettingService.deleteAll();
|
|
|
|
|
|
|
|
boolean saveBatch = welcomePaySettingService.saveBatch(wpss);
|
|
boolean saveBatch = welcomePaySettingService.saveBatch(wpss);
|
|
|
- if(!saveBatch){
|
|
|
|
|
|
|
+ if (!saveBatch) {
|
|
|
logger.error("添加缴费设置信息失败,参数:" + JSON.toJSON(wpss));
|
|
logger.error("添加缴费设置信息失败,参数:" + JSON.toJSON(wpss));
|
|
|
throw new Exception("添加失败!");
|
|
throw new Exception("添加失败!");
|
|
|
}
|
|
}
|
|
@@ -205,7 +214,7 @@ public class SystemSettingController implements SystemSettingControllerAPI {
|
|
|
int deleteAll = welcomeOpenSettingService.deleteAll();
|
|
int deleteAll = welcomeOpenSettingService.deleteAll();
|
|
|
|
|
|
|
|
boolean saveBatch = welcomeOpenSettingService.saveBatch(woss);
|
|
boolean saveBatch = welcomeOpenSettingService.saveBatch(woss);
|
|
|
- if(!saveBatch){
|
|
|
|
|
|
|
+ if (!saveBatch) {
|
|
|
logger.error("添加开放比例设置信息失败,参数:" + JSON.toJSON(woss));
|
|
logger.error("添加开放比例设置信息失败,参数:" + JSON.toJSON(woss));
|
|
|
throw new Exception("添加失败!");
|
|
throw new Exception("添加失败!");
|
|
|
}
|
|
}
|
|
@@ -215,7 +224,7 @@ public class SystemSettingController implements SystemSettingControllerAPI {
|
|
|
int deleteAll = welcomeArriveSettingService.deleteAll();
|
|
int deleteAll = welcomeArriveSettingService.deleteAll();
|
|
|
|
|
|
|
|
boolean saveBatch = welcomeArriveSettingService.saveBatch(wass);
|
|
boolean saveBatch = welcomeArriveSettingService.saveBatch(wass);
|
|
|
- if(!saveBatch){
|
|
|
|
|
|
|
+ if (!saveBatch) {
|
|
|
logger.error("添加抵达时间段设置信息失败,参数:" + JSON.toJSON(wass));
|
|
logger.error("添加抵达时间段设置信息失败,参数:" + JSON.toJSON(wass));
|
|
|
throw new Exception("添加失败!");
|
|
throw new Exception("添加失败!");
|
|
|
}
|
|
}
|