Merge pull request 'develop' (#221) from develop into master
Reviewed-on: http://git.xdadan.loc/tanex/emis-service/pulls/221
This commit is contained in:
commit
0f49654590
@ -1355,6 +1355,10 @@ public class EmisCommissionProfitServiceImpl extends EmisBaseService implements
|
||||
ratioQuery.setSalesSupport(salesSupport);
|
||||
ratioQuery.setSalesExecutive(salesExecutive);
|
||||
ratioQuery.setStatus("1");
|
||||
// 添加运单寄件日期条件,查询运单寄件日期在计提表有效期内的比例配置
|
||||
if (waybill.getSendDate() != null) {
|
||||
ratioQuery.getParams().put("sendDate", waybill.getSendDate());
|
||||
}
|
||||
List<EmisSalesCommissionRatio> ratioList = emisSalesCommissionRatioMapper
|
||||
.selectEmisSalesCommissionRatioList(ratioQuery);
|
||||
if (!CollectionUtils.isEmpty(ratioList)) {
|
||||
|
||||
@ -38,6 +38,10 @@
|
||||
<if test="params.endDateAfterNow != null and params.endDateAfterNow == true">
|
||||
and end_date >= NOW()
|
||||
</if>
|
||||
<!-- 查询运单寄件日期在计提表有效期内的记录 -->
|
||||
<if test="params.sendDate != null">
|
||||
and start_date <= #{params.sendDate} and end_date >= #{params.sendDate}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY id DESC
|
||||
</select>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user