md
This commit is contained in:
parent
bcc893ce15
commit
1d41a4b1fa
@ -185,34 +185,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="queryPayBackRecordList" parameterType="EmisSettlePayRecord" resultMap="PayBackRecordDtlResult">
|
<select id="queryPayBackRecordList" parameterType="EmisSettlePayRecord" resultMap="PayBackRecordDtlResult">
|
||||||
SELECT
|
SELECT
|
||||||
a0.settle_bill_no,
|
a.settle_bill_no,
|
||||||
a1.bill_code,
|
a.bill_code,
|
||||||
b.pay_id,
|
b.pay_id,
|
||||||
d.pay_money,
|
d.pay_money,
|
||||||
b.create_time
|
d.create_time
|
||||||
FROM
|
FROM
|
||||||
emis_settle_bill a0,
|
emis_settle_sub_bill a,
|
||||||
emis_settle_sub_bill a1,
|
|
||||||
emis_settle_pay_record b,
|
emis_settle_pay_record b,
|
||||||
emis_settle_pay_bill_rel c,
|
|
||||||
emis_settle_pay_rel d
|
emis_settle_pay_rel d
|
||||||
WHERE
|
WHERE
|
||||||
a0.del_flag = '0'
|
d.del_flag = '0'
|
||||||
and a1.del_flag = '0'
|
AND a.del_flag = '0'
|
||||||
AND b.del_flag = '0'
|
AND b.del_flag = '0'
|
||||||
AND c.del_flag = '0'
|
AND b.pay_id = d.pay_id
|
||||||
AND a0.settle_bill_no = c.settle_bill_no
|
AND a.bill_no = d.bill_no
|
||||||
AND a0.settle_bill_no = a1.settle_bill_no
|
AND b.pay_id IN (
|
||||||
AND b.pay_id = c.pay_id
|
SELECT pay_id FROM emis_settle_pay_bill_rel
|
||||||
and b.pay_id=d.pay_id
|
WHERE FIND_IN_SET(settle_bill_no,#{settleBillNo})
|
||||||
and a1.settle_bill_no = #{settleBillNo}
|
)
|
||||||
order by b.create_time desc
|
order by b.create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<select id="checkUnique" parameterType="EmisSettlePayRecord" resultType="int">
|
<select id="checkUnique" parameterType="EmisSettlePayRecord" resultType="int">
|
||||||
select count(1) from emis_settle_pay_record
|
select count(1) from emis_settle_pay_record
|
||||||
where del_flag='0'
|
where del_flag='0'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user