opt:原材料入库信息查询加 来料批次条件

This commit is contained in:
zds
2024-12-20 15:34:52 +08:00
parent a2693e15a3
commit ede8329ef0
3 changed files with 11 additions and 15 deletions

View File

@@ -14,6 +14,8 @@ public class MaterialQuery implements Serializable {
private String productName;
//供应商编码
private String productDescription;
//客户来料批次号
private String ingotBatch;
//供应商名称
private String supplierCode;
//绑定状态

View File

@@ -40,7 +40,7 @@ public class MaterialServiceImpl extends ServiceImpl<MaterialMapper, Material> i
wrapper.like(StringUtils.isNotBlank(whereJson.getProductName()),Material::getProductName,whereJson.getProductName());
wrapper.like(StringUtils.isNotBlank(whereJson.getSupplierCode()),Material::getSupplierCode,whereJson.getSupplierCode());
wrapper.like(StringUtils.isNotBlank(whereJson.getProductDescription()),Material::getProductDescription,whereJson.getProductDescription());
wrapper.eq(StringUtils.isNotBlank(whereJson.getGroup_bind_material_status()),Material::getGroup_bind_material_status,whereJson.getGroup_bind_material_status());
wrapper.like(StringUtils.isNotBlank(whereJson.getIngotBatch()),Material::getIngotBatch,whereJson.getIngotBatch());
wrapper.eq(StringUtils.isNotBlank(whereJson.getReturn_status()),Material::getReturn_status,whereJson.getReturn_status());
wrapper.orderByDesc(Material::getCreate_time);
pages = materialMapper.selectPage(pages, wrapper);