|
|
@ -287,6 +287,18 @@ public class BaseDiscountpackageService extends MybatisBaseService<BaseDiscountp |
|
|
|
orgSid = stringResultBean.getData(); |
|
|
|
} |
|
|
|
qw.lambda().apply("FIND_IN_SET ('" + orgSid + "',useOrg)"); |
|
|
|
if (StringUtils.isNotBlank(params.getDiscountTypeKey())) { |
|
|
|
qw.eq("discountTypeKey", params.getDiscountTypeKey()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(params.getSalesPolicyKey())) { |
|
|
|
qw.eq("salesPolicyKey", params.getSalesPolicyKey()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(params.getIsEmploy())) { |
|
|
|
qw.eq("isEmploy", params.getIsEmploy()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(params.getGetEffectiveStartDate()) && StringUtils.isNotBlank(params.getGetEffectiveEndDate())) { |
|
|
|
qw.between("effectiveDate", params.getGetEffectiveStartDate(), params.getGetEffectiveEndDate()); |
|
|
|
} |
|
|
|
} |
|
|
|
return qw; |
|
|
|
} |
|
|
|