| | |
| | | @ApiOperation("查询技术规格书") |
| | | @PostMapping("getInfo") |
| | | public Response getInfo(@RequestParam(required = false) String applyMaterialCode ,@RequestParam(required = false) String applyModel,@RequestParam(required = false) String applyCustomCode |
| | | ,@RequestParam(required = false) String owner,@RequestParam(required = false) int lockFlaq |
| | | ,@RequestParam int pageNum,@RequestParam Integer pageSize) { |
| | | return service.getInfo(applyMaterialCode,applyModel,applyCustomCode,owner,lockFlaq,pageNum,pageSize); |
| | | ,@RequestParam(required = false) String owner,@RequestParam(required = false) Integer lockFlag |
| | | ,@RequestParam int pageNum,@RequestParam int pageSize) { |
| | | return service.getInfo(applyMaterialCode,applyModel,applyCustomCode,owner,lockFlag,pageNum,pageSize); |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | //查询技术规格书 |
| | | public Response getInfo(String applyMaterialCode, String applyModel, String applyCustomCode, String owner, Integer lockFlaq |
| | | public Response getInfo(String applyMaterialCode, String applyModel, String applyCustomCode, String owner, Integer lockFlag |
| | | ,int pageNum, int pageSize) { |
| | | PageHelper.startPage(pageNum,pageSize); |
| | | QueryWrapper<TechnicalSpecification> query = Wrappers.query(); |
| | |
| | | if(owner!=null&&!owner.isEmpty()){ |
| | | query.like("owner",owner); |
| | | } |
| | | if(lockFlaq!=null){ |
| | | query.eq("lock_flaq",lockFlaq); |
| | | if(lockFlag!=null){ |
| | | query.eq("lock_flag",lockFlag); |
| | | } |
| | | List<TechnicalSpecification> list=mapper.selectList(query); |
| | | PageInfo pageInfo=new PageInfo(list); |