| | |
| | | //查询软件列表的信息 |
| | | public Response getAllSoftware(String fileName,String applyMaterialCode,String applyModel,String owner, int pageCurr, int pageSize) { |
| | | PageHelper.startPage(pageCurr,pageSize); |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | if(fileName!=null&&!fileName.isEmpty()){ |
| | | wrapper.like("file_name",fileName); |
| | | } |
| | | if(applyMaterialCode!=null&&!applyMaterialCode.isEmpty()){ |
| | | wrapper.like("apply_material_code",applyMaterialCode); |
| | | } |
| | | if(applyModel!=null&&!applyModel.isEmpty()){ |
| | | wrapper.like("apply_model",applyModel); |
| | | } |
| | | if(owner!=null&&!owner.isEmpty()){ |
| | | wrapper.like("owner",owner); |
| | | } |
| | | wrapper.orderByDesc("create_time"); |
| | | List list=mapper.selectList(wrapper); |
| | | List list=mapper.getFileUrl(fileName,applyMaterialCode,applyModel,owner); |
| | | PageInfo pageInfo=new PageInfo(list); |
| | | return new Response().setII(1,list.size()>0,pageInfo,"软件信息返回"); |
| | | } |