lyh
2025-01-13 48e850f8721a5562c2d0c23f9281f92ec1ba947a
lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/controller/ProcessController.java
@@ -11,6 +11,7 @@
import org.jeecg.modules.dnc.response.QueryListResponseResult;
import org.jeecg.modules.dnc.response.ResponseResult;
import org.jeecg.modules.dnc.service.IProcessInfoService;
import org.jeecg.modules.dnc.utils.ValidateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -40,7 +41,7 @@
    @ApiOperation(value = "新建工序表-根据工序名称模糊查询", notes = "新建工序表-根据工序名称模糊查询")
    @GetMapping("/find/list")
    public QueryListResponseResult<ProcessInfo> findByProcessName(@RequestParam(value = "processName", required = false) String processName) {
        if(!StrUtil.isEmpty(processName))
        if(!ValidateUtil.validateString(processName))
            return new QueryListResponseResult(CommonCode.SUCCESS, Collections.emptyList());
        List<ProcessInfo> list = processInfoService.findByProcessName(processName);
        if(list == null)