Commit 4e51da61 by jianan

来佣比对查询列表sql报错2

parent 7914faf6
......@@ -2,11 +2,12 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yd.dal.mapper.lifecommission.LifeCommissionMapper">
<!-- 查询来佣比对列表 -->
<select id="queryComeCommissionList" resultType="com.yd.api.commission.vo.lifecommission.ComeCommissionVO">
<select id="queryComeCommissionList" parameterType="com.yd.api.commission.vo.lifecommission.QueryComeCommissionListRequestVO"
resultType="com.yd.api.commission.vo.lifecommission.ComeCommissionVO">
select
o.id orderId,
o.commission_check_at checkDate,
i.name_abbre insurerName,
IFNULL(i.name_abbre,i.name) insurerName,
IFNULL(a.name,p.name) planName,
o.policy_no policyNo,
o.order_price orderPrice,
......@@ -49,7 +50,7 @@
</when>
<otherwise>
<if test="compareDate != null">
and o.commission_check_id is null or date_format(f.withdrawable_date, '%Y-%m') &lt;= #{compareDate}
and (o.commission_check_id is null or date_format(f.withdrawable_date, '%Y-%m') &lt;= #{compareDate})
</if>
<if test="insurerId != null">
and o.insurer_id = #{insurerId}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment