|
|
|
@ -234,7 +234,7 @@ public class InvProductBatchService extends ServiceImpl<InvProductBatchDao, InvP
|
|
|
|
|
public List<InvProductBatchEntity> selectByRelId(Long relId, String supId, String deptCode, String invCode, String batchNo, BigDecimal price) {
|
|
|
|
|
return invProductBatchDao.selectList(new QueryWrapper<InvProductBatchEntity>()
|
|
|
|
|
.eq("relIdFk", relId)
|
|
|
|
|
.eq("supId", supId)
|
|
|
|
|
.eq("customerId", supId)
|
|
|
|
|
.eq(StrUtil.isNotEmpty(deptCode), "deptCode", deptCode)
|
|
|
|
|
.eq(StrUtil.isNotEmpty(batchNo), "batch", batchNo)
|
|
|
|
|
.eq(price != null, "price", price)
|
|
|
|
@ -246,7 +246,7 @@ public class InvProductBatchService extends ServiceImpl<InvProductBatchDao, InvP
|
|
|
|
|
public InvProductBatchEntity selectByUnique(Long relId, String supId, String deptCode, String invCode, String batchNo, BigDecimal price) {
|
|
|
|
|
InvProductBatchEntity invProductBatchEntity = invProductBatchDao.selectOne(new QueryWrapper<InvProductBatchEntity>()
|
|
|
|
|
.eq("relIdFk", relId)
|
|
|
|
|
.eq("supId", supId)
|
|
|
|
|
.eq("customerId", supId)
|
|
|
|
|
.eq(StrUtil.isNotEmpty(deptCode), "deptCode", deptCode)
|
|
|
|
|
.eq(StrUtil.isNotEmpty(batchNo), "batchNo", batchNo)
|
|
|
|
|
.eq(price != null, "price", price)
|
|
|
|
|