| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?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.wx.blink.backend.repository.BlinkExpenseRepository">
- <select id="supportsLoanApplyQueryPage" resultType="com.wx.blink.backend.domain.vo.BlinkLoanApplyVO">
- select t2.state,
- t1.applicant,
- t1.loan_amount,
- t1.loan_purpose,
- t1.belong_project_name,
- IFNULL(t1.accumulate_amount, 0) accumulateAmount,
- IFNULL(t1.hand_loan_amount, 0) handLoanAmount,
- t1.create_by,
- t1.create_time createDate,
- t2.biz_objectid bizObjectId,
- t2.flow_code
- from l_loan_apply t1
- left join st_instance t2 on t1.flow_id = t2.biz_objectid
- where t2.state <![CDATA[<>]]> 5
- order by t2.finish_time desc
- </select>
- <select id="supportsExpenseStatementQueryPage" resultType="com.wx.blink.backend.domain.vo.BlinkExpenseStatementVO">
- select t2.state,
- t1.applicant,
- t1.expense_amount,
- t1.offset_loan_amount,
- IFNULL(t1.pay_amount, 0) payAmount,
- t1.statement_describe,
- t1.pay_date,
- t1.create_by,
- t1.create_time createDate,
- t2.biz_objectid,
- t2.flow_code
- from l_expense_statement t1
- left join st_instance t2 on t1.flow_id = t2.biz_objectid
- where t2.state <![CDATA[<>]]> 5
- order by t2.finish_time desc
- </select>
- </mapper>
|