wanglizhong
2025-05-03 de26c331fc9febdc11b85ff98ad657fb12cc2b73
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?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.ruoyi.system.mapper.PayInfoMapper">
    
    <resultMap type="com.ruoyi.system.domain.PayInfo" id="PayInfoResult">
        <result property="serviceOrdIDDt" column="ServiceOrdIDDt"/>
        <result property="id"             column="id"/>
        <result property="vtext"          column="vtext"/>
        <result property="paidMoney"      column="PaidMoney"/>
        <result property="paidMoneyTime"  column="PaidMoneyTime"/>
        <result property="paidMoneyMono"  column="PaidMoneyMono"/>
    </resultMap>
 
    <sql id="selectPayInfoVo">
        select ServiceOrdIDDt, PaidMoney.id, vtext, PaidMoney, PaidMoneyTime, PaidMoneyMono
        from PaidMoney,dictionary
        where vtitle = 'PaidMoneyType' 
        and vType &gt;= 1
        and vID = PaidMoneyType 
        and PaidMoney &lt;&gt; 0
    </sql>
 
    <select id="selectPayInfoByServiceOrdIDDt" parameterType="String" resultMap="PayInfoResult">
        <include refid="selectPayInfoVo"/>
        and ServiceOrdIDDt = #{serviceOrdIDDt}
        order by PaidMoneyTime desc
    </select>
 
    <select id="selectLatestInvoiceInfo" parameterType="String" resultType="java.util.Map">
        select top 1 InvoiceMakeout, AuditStatus 
        from InvoiceData 
        where ServiceOrderIDPK = #{serviceOrderId}
    </select>
 
 
 
    
 
</mapper>