diff --git a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisSettleSubBillController.java b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisSettleSubBillController.java index 66804cc29..df3a20dd0 100644 --- a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisSettleSubBillController.java +++ b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisSettleSubBillController.java @@ -531,7 +531,7 @@ public class EmisSettleSubBillController extends EmisBaseController // 目的地是中国时需要 4天后才可以确认 - if("0086".equals(oldSubBill.getWaybillDetail().getReceiveCountry()) + if(!"0086".equals(oldSubBill.getWaybillDetail().getSendCountry()) && "0086".equals(oldSubBill.getWaybillDetail().getReceiveCountry()) && ( "2".equals(oldSubBill.getWaybillDetail().getPaymentType()) || "4".equals(oldSubBill.getWaybillDetail().getPaymentType()) diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisCommissionProfitServiceImpl.java b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisCommissionProfitServiceImpl.java index e5cf40cba..17c222b60 100644 --- a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisCommissionProfitServiceImpl.java +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisCommissionProfitServiceImpl.java @@ -83,10 +83,10 @@ public class EmisCommissionProfitServiceImpl extends EmisBaseService implements if(!CollectionUtils.isEmpty(listQuote)){ for (EmisCommissionQuote quoteItem:listQuote) { List exprList=quoteItem.getExprList(); - // 按票计算方式 if("1".equals(quoteItem.getCalcType())){ + } diff --git a/emis-biz/src/main/resources/mapper/EmisCommissionQuoteMapper.xml b/emis-biz/src/main/resources/mapper/EmisCommissionQuoteMapper.xml index f05c3302c..5b2d79658 100644 --- a/emis-biz/src/main/resources/mapper/EmisCommissionQuoteMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisCommissionQuoteMapper.xml @@ -43,27 +43,20 @@ and quote_id = #{quoteId} and quote_code like concat('%', #{quoteCode}, '%') and quote_name like concat('%', #{quoteName}, '%') - and from_country like concat('%', #{fromCountry}, '%') - and country like concat('%', #{country}, '%') - and fee_type like concat('%', #{feeType}, '%') - and calc_type like concat('%', #{calcType}, '%') - and post_type like concat('%', #{postType}, '%') - and trans_type like concat('%', #{transType}, '%') - and bl_open like concat('%', #{blOpen}, '%') - and emp_code like concat('%', #{empCode}, '%') + and FIND_IN_SET(#{fromCountry},from_country) + and FIND_IN_SET(#{country},country) + and fee_type=#{feeType} + and calc_type=#{calcType} + and post_type=#{postType} + and trans_type=#{transType} + and bl_open=#{blOpen} + and emp_code=#{empCode} and emp_name like concat('%', #{empName}, '%') - and start_date = #{startDate} - and end_date = #{endDate} - and priority_level = #{priorityLevel} - and remark like concat('%', #{remark}, '%') - and tenant_id like concat('%', #{tenantId}, '%') - and del_flag like concat('%', #{delFlag}, '%') - and create_by like concat('%', #{createBy}, '%') - and create_time = #{createTime} - and update_by like concat('%', #{updateBy}, '%') - and update_time = #{updateTime} - and create_site like concat('%', #{createSite}, '%') - and update_site like concat('%', #{updateSite}, '%') + + + and start_date now() and end_date ]]> now() and bl_open='1' + + order by create_time desc