模糊查询

jg-waiwang-pro
vayne 5 months ago
parent 58eac532dc
commit b115ab5324

@ -786,8 +786,8 @@
SELECT
a.id AS ID,
c.f_en_code AS COMP_CD,
b.kucun_org_code AS INV_ORG_CD,
b.kucun_org_name AS INV_ORG_NM,
f.kucun_org_code AS INV_ORG_CD,
f.kucun_org_name AS INV_ORG_NM,
d.f_en_code AS DEPT_CD,
d.f_full_name AS DEPT_NM,
e.f_real_name AS PUR_EMP_NM,

@ -777,7 +777,7 @@ public class VoucherServiceImpl extends ServiceImpl<VoucherMapper, VoucherEntity
queryWrapper.eq("a.document_type",voucherPagination.getDocumentType());
queryWrapper.eq("a.delivery_type","2");
queryWrapper.eq("a.voucher_status","4");
queryWrapper.eq(ObjectUtils.isNotEmpty(voucherPagination.getKeyword()),"a.voucher_code",voucherPagination.getKeyword());
queryWrapper.like(ObjectUtils.isNotEmpty(voucherPagination.getKeyword()),"a.voucher_code",voucherPagination.getKeyword());
queryWrapper.notIn(ObjectUtils.isNotEmpty(voucherPagination.getExcludeIdList()),"a.id",voucherPagination.getExcludeIdList());
queryWrapper.in(ObjectUtils.isNotEmpty(voucherPagination.getProductIdList()),"c.product_id",voucherPagination.getProductIdList());
queryWrapper.isNull("a.f_delete_mark");
@ -1207,7 +1207,7 @@ public class VoucherServiceImpl extends ServiceImpl<VoucherMapper, VoucherEntity
pountlistQueryWrapper.eq("a.warehousing_storage_id",id);
pountlistQueryWrapper.notIn(ObjectUtils.isNotEmpty(voucherPagination.getExcludeIdList()),"a.voucher_id",voucherPagination.getExcludeIdList());
pountlistQueryWrapper.notInSql("a.voucher_id","select voucher_id from jg_delivery_voucher_relation where business_type = '2' and document_type = '1' and f_delete_mark is null");
pountlistQueryWrapper.eq(ObjectUtils.isNotEmpty(voucherPagination.getKeyword()),"b.voucher_code",voucherPagination.getKeyword());
pountlistQueryWrapper.like(ObjectUtils.isNotEmpty(voucherPagination.getKeyword()),"b.voucher_code",voucherPagination.getKeyword());
return voucherMapper.returnVoucher(pountlistQueryWrapper);
}
@ -1217,7 +1217,7 @@ public class VoucherServiceImpl extends ServiceImpl<VoucherMapper, VoucherEntity
pountlistQueryWrapper.eq("a.warehousing_outbound_id",id);
pountlistQueryWrapper.notIn(ObjectUtils.isNotEmpty(voucherPagination.getExcludeIdList()),"a.voucher_id",voucherPagination.getExcludeIdList());
pountlistQueryWrapper.notInSql("a.voucher_id","select voucher_id from jg_delivery_voucher_relation where business_type = '2' and document_type = '1' and f_delete_mark is null");
pountlistQueryWrapper.eq(ObjectUtils.isNotEmpty(voucherPagination.getKeyword()),"b.voucher_code",voucherPagination.getKeyword());
pountlistQueryWrapper.like(ObjectUtils.isNotEmpty(voucherPagination.getKeyword()),"b.voucher_code",voucherPagination.getKeyword());
return voucherMapper.salereturnVoucher(pountlistQueryWrapper);
}
}

Loading…
Cancel
Save