|
|
|
@ -75,7 +75,21 @@ public class ZyFabricController extends JeecgController<ZyFabric, IZyFabricServi |
|
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
|
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) throws IOException, WriterException { |
|
|
|
|
QueryWrapper<ZyFabric> queryWrapper = QueryGenerator.initQueryWrapper(zyFabric, req.getParameterMap()); |
|
|
|
|
// QueryWrapper<ZyFabric> queryWrapper = QueryGenerator.initQueryWrapper(zyFabric, req.getParameterMap());
|
|
|
|
|
QueryWrapper queryWrapper = new QueryWrapper(); |
|
|
|
|
if(zyFabric.getTypeId()!=null&&!zyFabric.getTypeId().equals("")){ |
|
|
|
|
String s="%"+zyFabric.getTypeId()+"%"; |
|
|
|
|
zyFabric.setTypeId(null); |
|
|
|
|
List<String> list= zyFabricService.findAllId(s); |
|
|
|
|
queryWrapper.in("type_id",list); |
|
|
|
|
} |
|
|
|
|
if(zyFabric.getFabricNumber()!=null&&!zyFabric.getFabricNumber().equals("")){ |
|
|
|
|
queryWrapper.like("fabric_number",zyFabric.getFabricNumber()); |
|
|
|
|
} |
|
|
|
|
if(zyFabric.getName()!=null&&!zyFabric.getName().equals("")){ |
|
|
|
|
queryWrapper.like("name",zyFabric.getName()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// QueryWrapper queryWrapper = new QueryWrapper();
|
|
|
|
|
Page<ZyFabric> page = new Page<>(pageNo, pageSize); |
|
|
|
|
IPage<ZyFabric> pageList = zyFabricService.page(page, queryWrapper); |
|
|
|
|