(1)特定服务管理UL修改

(2)特定服务管理加入协议号重复验证,有上级配置则上级配置的所有下级配置ID不能重复,无上级配置一级配置ID不能重复
(3)取消jBox的Cookie打印
This commit is contained in:
wangxin
2018-07-30 09:15:36 +08:00
parent 78e47ac599
commit 32b67d31f3
10 changed files with 228 additions and 111 deletions

View File

@@ -250,21 +250,32 @@ public class SpecificServiceCfgController extends BaseController {
* @return
*/
@ResponseBody
@RequestMapping(value = "isIdRepeat")
public boolean isIdRepeat(String specServiceId,String oldId){
if(oldId!=null){
if(oldId.trim().equals(specServiceId)){
return true;
@RequestMapping(value = "isCodeNotRepeat")
public boolean isIdRepeat(@RequestParam(required=false,value="parentId")Integer parentId,@RequestParam(required=false,value="specServiceId")Integer specServiceId,@RequestParam(required=true,value="specServiceCode")Integer specServiceCode,@RequestParam(required=true,value="cfgType")Integer cfgType){
if(parentId!=null&&parentId.intValue()!=0) {
Integer parentCode=specificServiceCfgService.getParentCode(parentId);
if(parentCode!=null&&parentCode.intValue()==specServiceCode) {
return false;
}
}
if(specServiceId!=null){
SpecificServiceCfg ss = specificServiceCfgService.getBySpecServiceId(Integer.valueOf(specServiceId));
if(ss==null){
return true;
if(ss!=null){
if(ss.getSpecServiceCode().intValue()==specServiceCode.intValue()&&cfgType.intValue()==ss.getCfgType().intValue()) {
return true;
}else {
ss=specificServiceCfgService.getRepeat(specServiceCode, cfgType,parentId);
if(ss==null) {
return true;
}
}
}
}else {
SpecificServiceCfg ss=specificServiceCfgService.getRepeat(specServiceCode, cfgType,parentId);
if(ss==null) {
return true;
}
}
return false;
}