治理设备管理功能
This commit is contained in:
@@ -190,11 +190,6 @@ whitelist:
|
|||||||
- /*/v2/api-docs
|
- /*/v2/api-docs
|
||||||
- /favicon.ico
|
- /favicon.ico
|
||||||
- /system-boot/theme/getTheme
|
- /system-boot/theme/getTheme
|
||||||
- /cs-harmonic-boot/**
|
|
||||||
- /cs-device-boot/**
|
|
||||||
- /cs-system-boot/**
|
|
||||||
- /cs-warn-boot/**
|
|
||||||
|
|
||||||
#- /device-boot/**
|
#- /device-boot/**
|
||||||
#- /system-boot/**
|
#- /system-boot/**
|
||||||
#- /harmonic-boot/**
|
#- /harmonic-boot/**
|
||||||
|
|||||||
@@ -34,4 +34,7 @@ public interface EpdFeignClient {
|
|||||||
@PostMapping("/selectById")
|
@PostMapping("/selectById")
|
||||||
HttpResult<EleEpdPqd> selectById(@RequestParam("id") String id);
|
HttpResult<EleEpdPqd> selectById(@RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping("/selectByIds")
|
||||||
|
HttpResult<List<EleEpdPqd>> selectByIds(@RequestBody List<String> ids);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,6 +57,12 @@ public class EpdFeignClientFallbackFactory implements FallbackFactory<EpdFeignCl
|
|||||||
log.error("{}异常,降级处理,异常为:{}","根据id查询字典数据",cause.toString());
|
log.error("{}异常,降级处理,异常为:{}","根据id查询字典数据",cause.toString());
|
||||||
throw new BusinessException(finalExceptionEnum);
|
throw new BusinessException(finalExceptionEnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public HttpResult<List<EleEpdPqd>> selectByIds(List<String> ids) {
|
||||||
|
log.error("{}异常,降级处理,异常为:{}","根据ids查询字典数据",cause.toString());
|
||||||
|
throw new BusinessException(finalExceptionEnum);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,5 +151,17 @@ public class EleEpdPqdController extends BaseController {
|
|||||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, eleEpdPqds, methodDescribe);
|
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, eleEpdPqds, methodDescribe);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/selectByIds")
|
||||||
|
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||||
|
@ApiOperation("根据集合查询字典数据")
|
||||||
|
@ApiImplicitParam(name = "ids", value = "id集合", required = true)
|
||||||
|
public HttpResult<List<EleEpdPqd>> selectByIds(@RequestBody @Validated List<String> ids){
|
||||||
|
String methodDescribe = getMethodDescribe("selectByIds");
|
||||||
|
LogUtil.njcnDebug(log, "{},根据集合查询字典数据:", methodDescribe);
|
||||||
|
List<EleEpdPqd> eleEpdPqds = eleEpdPqdService.selectByIds(ids);
|
||||||
|
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, eleEpdPqds, methodDescribe);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ import com.njcn.system.pojo.param.EleEpdPqdParam;
|
|||||||
import com.njcn.system.pojo.po.EleEpdPqd;
|
import com.njcn.system.pojo.po.EleEpdPqd;
|
||||||
import com.njcn.system.pojo.vo.EleEpdPqdListVO;
|
import com.njcn.system.pojo.vo.EleEpdPqdListVO;
|
||||||
import com.njcn.system.pojo.vo.EleEpdPqdVO;
|
import com.njcn.system.pojo.vo.EleEpdPqdVO;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -76,4 +78,11 @@ public interface IEleEpdPqdService extends IService<EleEpdPqd> {
|
|||||||
* @Date: 2023/6/12
|
* @Date: 2023/6/12
|
||||||
*/
|
*/
|
||||||
List<EleEpdPqdListVO> selectAll();
|
List<EleEpdPqdListVO> selectAll();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据集合查询字典数据
|
||||||
|
* @param ids
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<EleEpdPqd> selectByIds(List<String> ids);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -181,6 +181,11 @@ public class EleEpdPqdServiceImpl extends ServiceImpl<EleEpdPqdMapper, EleEpdPqd
|
|||||||
return vos;
|
return vos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<EleEpdPqd> selectByIds(List<String> ids) {
|
||||||
|
return this.lambdaQuery().in(EleEpdPqd::getId,ids).orderByAsc(EleEpdPqd::getSort).list();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验参数,
|
* 校验参数,
|
||||||
* 1.检查是否存在相同名称的菜单
|
* 1.检查是否存在相同名称的菜单
|
||||||
|
|||||||
Reference in New Issue
Block a user