rev:刻字上料半成品库存过滤

This commit is contained in:
zhangzhiqiang
2023-08-11 17:14:47 +08:00
parent b345ea5757
commit 7824c459be
3 changed files with 8 additions and 1 deletions

View File

@@ -53,7 +53,9 @@ public class StIvtStructivtBcpController {
//("半成品库存查询")
public ResponseEntity<Object> bypdaQuery(@RequestBody PageQuery query) {
query.setPage(0);
return new ResponseEntity<>(bcpService.packageQuery(new StructIvtBcpQuery(),query), HttpStatus.OK);
StructIvtBcpQuery bcpQuery = new StructIvtBcpQuery();
bcpQuery.setIs_lock("0");
return new ResponseEntity<>(bcpService.packageQuery(bcpQuery,query), HttpStatus.OK);
}
@GetMapping("/getBcpIvt")

View File

@@ -155,6 +155,9 @@
(mater.material_name LIKE #{query.material_code}) or
(mater.material_spec LIKE #{query.material_code})
</if>
<if test="query.is_lock!= null and query.is_lock != ''">
and attr.lock_type = '0'
</if>
<if test="query.struct_code!= null and query.struct_code != ''">
and attr.struct_code LIKE #{query.struct_code} or
(attr.struct_name LIKE #{query.struct_code})

View File

@@ -24,6 +24,8 @@ public class StructIvtBcpQuery extends BaseQuery<StIvtStructivtBcp> {
private String struct_code;
private String is_lock;
private Boolean is_delete = false;