Merge remote-tracking branch 'origin/master_merge' into master_merge

This commit is contained in:
2024-07-17 16:08:41 +08:00
3 changed files with 34 additions and 25 deletions

View File

@@ -52,6 +52,9 @@ public class BstIvtBoxinfoServiceImpl extends ServiceImpl<BstIvtBoxinfoMapper, B
if (whereJson.containsKey("search")) {
queryWrapper.like(BstIvtBoxinfo::getBox_no, whereJson.get("search")).or().like(BstIvtBoxinfo::getMaterial_code, whereJson.get("search")).or().like(BstIvtBoxinfo::getMaterial_name, whereJson.get("search"));
}
if (whereJson.containsKey("is_packing")) {
queryWrapper.eq(BstIvtBoxinfo::getIs_packing, whereJson.get("is_packing"));
}
IPage<BstIvtBoxinfo> result = bstIvtBoxinfoMapper.selectPage(new Page<>(page.getPageNumber() + 1, page.getPageSize()), queryWrapper);
mapReslt.put("content", result.getRecords());
mapReslt.put("totalElements", result.getTotal());