1、修改APP配置,appCode根据特定服务ID从后台查询;2、ip复用地址池下发参数修正;3、修改配置文件参数
Signed-off-by: zhangwei <zhangwei@intranet.com>
This commit is contained in:
@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.ServiceConfigInfo;
|
||||
import com.nis.domain.configuration.AppByteCfg;
|
||||
import com.nis.domain.configuration.AppDomainCfg;
|
||||
import com.nis.domain.configuration.AppHttpCfg;
|
||||
@@ -115,6 +116,10 @@ public class AppCfgController extends BaseController {
|
||||
public String saveAppPolicyCfg(Model model,HttpServletRequest request,HttpServletResponse response,
|
||||
AppPolicyCfg entity,RedirectAttributes redirectAttributes) {
|
||||
try {
|
||||
SpecificServiceCfg specificService = specificServiceCfgService.getBySpecServiceId(entity.getSpecServiceId());
|
||||
if(specificService!=null){
|
||||
entity.setAppCode(specificService.getSpecServiceCode());
|
||||
}
|
||||
appCfgService.saveOrUpdateAppPolicyCfg(entity);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
@@ -221,6 +226,10 @@ public class AppCfgController extends BaseController {
|
||||
public String saveAppIpCfg(Model model,HttpServletRequest request,HttpServletResponse response,
|
||||
AppIpCfg entity,RedirectAttributes redirectAttributes) {
|
||||
try {
|
||||
SpecificServiceCfg specificService = specificServiceCfgService.getBySpecServiceId(entity.getSpecServiceId());
|
||||
if(specificService!=null){
|
||||
entity.setAppCode(specificService.getSpecServiceCode());
|
||||
}
|
||||
appCfgService.saveOrUpdateAppIpCfg(entity);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
@@ -327,6 +336,10 @@ public class AppCfgController extends BaseController {
|
||||
public String saveAppHttpCfg(Model model,HttpServletRequest request,HttpServletResponse response,
|
||||
AppHttpCfg entity,RedirectAttributes redirectAttributes) {
|
||||
try {
|
||||
SpecificServiceCfg specificService = specificServiceCfgService.getBySpecServiceId(entity.getSpecServiceId());
|
||||
if(specificService!=null){
|
||||
entity.setAppCode(specificService.getSpecServiceCode());
|
||||
}
|
||||
appCfgService.saveOrUpdateAppHttpCfg(entity);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
@@ -432,6 +445,10 @@ public class AppCfgController extends BaseController {
|
||||
public String saveAppDomainCfg(Model model,HttpServletRequest request,HttpServletResponse response,
|
||||
AppDomainCfg entity,RedirectAttributes redirectAttributes) {
|
||||
try {
|
||||
SpecificServiceCfg specificService = specificServiceCfgService.getBySpecServiceId(entity.getSpecServiceId());
|
||||
if(specificService!=null){
|
||||
entity.setAppCode(specificService.getSpecServiceCode());
|
||||
}
|
||||
appCfgService.saveOrUpdateAppDomainCfg(entity);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
@@ -537,6 +554,10 @@ public class AppCfgController extends BaseController {
|
||||
public String saveAppByteCfg(Model model,HttpServletRequest request,HttpServletResponse response,
|
||||
AppByteCfg entity,RedirectAttributes redirectAttributes) {
|
||||
try {
|
||||
SpecificServiceCfg specificService = specificServiceCfgService.getBySpecServiceId(entity.getSpecServiceId());
|
||||
if(specificService!=null){
|
||||
entity.setAppCode(specificService.getSpecServiceCode());
|
||||
}
|
||||
appCfgService.saveOrUpdateAppByteCfg(entity);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user