<?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 >= 1
|
and vID = PaidMoneyType
|
and PaidMoney <> 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>
|