12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.bz.smart_city.dao.pay.PayAgenttransactionMapper">
- <select id="findList" resultType="com.bz.smart_city.dto.pay.PayAgenttransactionDto">
- select
- a.accountnumber as "accountnumber",
- a.accountname as "accountname",
- a.agentbranch_id as "agentbranchId",
- a.agent_name as "agentName",
- a.agent_code as "agentCode",
- a.amount as "amount",
- a.state as "state",
- a.transtime as "transtime",
- a.payseriesno as "payseriesno",
- a.order_no as "orderNo",
- a.id as "id",
- a.site_id as "siteId",
- a.customer_id as "customerId",
- a.create_date as "createDate",
- a.create_by as "createBy",
- a.update_date as "updateDate",
- a.update_by as "updateBy",
- a.remarks as "remarks",
- a.del_flag as "delFlag"
- from pay_pay_agenttransaction a
- where a.site_id = '' and customer_id = ''
- and a.accountname = '' and a.accountnumber = '' and a.order_no = ''
- and a.transtime <= '' and a.transtime >=''
- and a.state = ''
- </select>
- <update id="cancelByPayseriesno">
- update pay_pay_agenttransaction set state=4 where payseriesno = #{payseriesno}and site_id= #{siteId} and customer_id= #{customerId}
- </update>
- <update id="cancelCheckAgentPayseriesno">
- update pay_pay_checkbalance set state=4
- where out_trade_no =(select order_no from pay_pay_agenttransaction where payseriesno=#{payseriesno} and site_id= #{siteId} and customer_id= #{customerId})
- </update>
- </mapper>
|