| | |
| | | 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.*; |
| | | |
| | |
| | | @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) |