|
|
|
@ -1,9 +1,13 @@
|
|
|
|
|
package com.glxp.udidl.admin.controller.collect;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import cn.hutool.core.text.CharSequenceUtil;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.glxp.udidl.admin.entity.chs.CodeRel;
|
|
|
|
|
import com.glxp.udidl.admin.entity.collect.RelCodeBatch;
|
|
|
|
|
import com.glxp.udidl.admin.enums.ResultEnum;
|
|
|
|
|
import com.glxp.udidl.admin.req.collect.RelCodeBatchRequest;
|
|
|
|
|
import com.glxp.udidl.admin.req.collect.RelCodeDetailRequest;
|
|
|
|
|
import com.glxp.udidl.admin.res.BaseResponse;
|
|
|
|
@ -11,6 +15,7 @@ import com.glxp.udidl.admin.res.PageSimpleResponse;
|
|
|
|
|
import com.glxp.udidl.admin.res.collect.RelCodeBatchResponse;
|
|
|
|
|
import com.glxp.udidl.admin.service.collect.RelCodeBatchService;
|
|
|
|
|
import com.glxp.udidl.admin.util.ResultVOUtils;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
@ -99,4 +104,13 @@ public class RelCodeBatchController {
|
|
|
|
|
return ResultVOUtils.success(relCodeBatchService.detailByParentCode(parentCode));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/udiwms/relCode/checkCode")
|
|
|
|
|
public BaseResponse checkCode(@RequestBody List<String> codeList) {
|
|
|
|
|
if (CollUtil.isEmpty(codeList)){
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.DATA_ERROR,"参数错误");
|
|
|
|
|
}
|
|
|
|
|
List<String> list = relCodeBatchService.checkCode(codeList);
|
|
|
|
|
return ResultVOUtils.success(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|