|
|
@ -3,7 +3,9 @@ package com.ruoyi.web.controller.base;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.ruoyi.common.constant.UserConstants;
|
|
|
|
import com.ruoyi.common.utils.ShiroUtils;
|
|
|
|
import com.ruoyi.common.utils.ShiroUtils;
|
|
|
|
|
|
|
|
import com.ruoyi.system.domain.BaseAlarmType;
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
@ -110,4 +112,15 @@ public class BaseSubstationInfoController extends BaseController {
|
|
|
|
public AjaxResult remove(String ids) {
|
|
|
|
public AjaxResult remove(String ids) {
|
|
|
|
return toAjax(baseSubstationInfoService.deleteBaseSubstationInfoByObjIds(ids));
|
|
|
|
return toAjax(baseSubstationInfoService.deleteBaseSubstationInfoByObjIds(ids));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/checkSubstationIdIdUnique")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public String checkSubstationIdIdUnique(BaseSubstationInfo baseSubstationInfo){
|
|
|
|
|
|
|
|
List<BaseSubstationInfo> baseSubstationInfos = baseSubstationInfoService.selectBaseSubstationInfoList(baseSubstationInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(baseSubstationInfos.size() > 0){
|
|
|
|
|
|
|
|
return UserConstants.DEPT_NAME_NOT_UNIQUE;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return UserConstants.DEPT_NAME_UNIQUE;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|