管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-02-23 c0869b3fbf71760199750cb208046692a34b3f2d
src/main/java/com/lf/server/controller/all/BaseQueryController.java
@@ -460,18 +460,18 @@
    }
    @SysLog()
    @ApiOperation(value = "根据单位ID集合查询单位")
    @ApiOperation(value = "根据单位编码数组查询单位")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "单位ID集合", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1,10")
            @ApiImplicitParam(name = "codes", value = "单位编码数组", dataType = "String", paramType = "query", allowMultiple = true, example = "00,0001")
    })
    @GetMapping(value = "/selectDepsByIds")
    public ResponseMsg<Object> selectDepsByIds(Integer[] ids) {
    @GetMapping(value = "/selectDepsByCodes")
    public ResponseMsg<Object> selectDepsByCodes(String[] codes) {
        try {
            if (null == ids || ids.length == 0) {
            if (null == codes || codes.length == 0) {
                return fail("单位ID集合为空");
            }
            List<IdNameEntity> list = depService.selectDepsByIds(ids);
            List<IdNameEntity> list = depService.selectDepsByCodes(codes);
            return success(list);
        } catch (Exception ex) {