|
@@ -122,10 +122,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
LEFT JOIN {DBNAME}.customer c ON src.customer_id = c.id
|
|
LEFT JOIN {DBNAME}.customer c ON src.customer_id = c.id
|
|
left join {DBNAME}.customer_settlement_unit csu on src.settlement_unit_id = csu.id
|
|
left join {DBNAME}.customer_settlement_unit csu on src.settlement_unit_id = csu.id
|
|
where src.del_flag = '0'
|
|
where src.del_flag = '0'
|
|
- <if test="customerId != null "> and customer_id = #{customerId}</if>
|
|
|
|
- <if test="settlementUnitId != null "> and settlement_unit_id = #{settlementUnitId}</if>
|
|
|
|
- <if test="invoiceNumber != null and invoiceNumber != ''"> and invoice_number = #{invoiceNumber}</if>
|
|
|
|
- <if test="startTime != null and endTime != null">and invoice_date BETWEEN #{startTime} AND #{endTime}</if>
|
|
|
|
|
|
+ <if test="customerId != null "> and src.customer_id = #{customerId}</if>
|
|
|
|
+ <if test="settlementUnitId != null "> and src.settlement_unit_id = #{settlementUnitId}</if>
|
|
|
|
+ <if test="invoiceNumber != null and invoiceNumber != ''"> and src.invoice_number = #{invoiceNumber}</if>
|
|
|
|
+ <if test="startTime != null and endTime != null">and src.invoice_date BETWEEN #{startTime} AND #{endTime}</if>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectBillingDetails">
|
|
<select id="selectBillingDetails">
|