BlinkExpenseRepositoryMapper.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.wx.blink.backend.repository.BlinkExpenseRepository">
  4. <select id="supportsLoanApplyQueryPage" resultType="com.wx.blink.backend.domain.vo.BlinkLoanApplyVO">
  5. select t2.state,
  6. t1.applicant,
  7. t1.loan_amount,
  8. t1.loan_purpose,
  9. t1.belong_project_name,
  10. IFNULL(t1.accumulate_amount, 0) accumulateAmount,
  11. IFNULL(t1.hand_loan_amount, 0) handLoanAmount,
  12. t1.create_by,
  13. t1.create_time createDate,
  14. t2.biz_objectid bizObjectId,
  15. t2.flow_code
  16. from l_loan_apply t1
  17. left join st_instance t2 on t1.flow_id = t2.biz_objectid
  18. where t2.state <![CDATA[<>]]> 5
  19. order by t2.finish_time desc
  20. </select>
  21. <select id="supportsExpenseStatementQueryPage" resultType="com.wx.blink.backend.domain.vo.BlinkExpenseStatementVO">
  22. select t2.state,
  23. t1.applicant,
  24. t1.expense_amount,
  25. t1.offset_loan_amount,
  26. IFNULL(t1.pay_amount, 0) payAmount,
  27. t1.statement_describe,
  28. t1.pay_date,
  29. t1.create_by,
  30. t1.create_time createDate,
  31. t2.biz_objectid,
  32. t2.flow_code
  33. from l_expense_statement t1
  34. left join st_instance t2 on t1.flow_id = t2.biz_objectid
  35. where t2.state <![CDATA[<>]]> 5
  36. order by t2.finish_time desc
  37. </select>
  38. </mapper>