| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?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.ydtech.modules.fnc.dao.SettlementDocumentaryFeesMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.ydtech.modules.fnc.entity.SettlementDocumentaryFeesEntity">
- <id column="id" property="id" />
- <result column="total_orders" property="totalOrders"/>
- <result column="time_frame" property="timeFrame"/>
- <result column="total_amount" property="totalAmount"/>
- <result column="create_time" property="createTime"/>
- </resultMap>
- <select id="querySettle" resultType="com.ydtech.modules.fnc.entity.SettlementDocumentaryFeesEntity">
- select
- a.id as "id",
- a.total_orders as "totalOrders",
- a.time_frame as "timeFrame",
- a.total_amount as "totalAmount",
- a.create_time as "createTime"
- from settlement_documentary_fees a
- </select>
- <select id="checkDate" resultType="com.ydtech.modules.fnc.entity.SettlementDocumentaryLogEntity">
- select a.id as "id",
- a.total_orders as "totalOrders",
- a.time_frame as "timeFrame",
- a.total_amount as "totalAmount",
- a.create_time as "createTime",
- a.start_time as "startTime",
- a.end_time as "endTime",
- a.settlement_amount as "settlementAmount",
- a.unsettled_amount as "unsettledAmount"
- from settlement_documentary_fees a
- <where>
- <if test="startDate !=null and startDate !='' and endDate !=null and endDate !=''" >
- (start_time < #{endDate} AND start_time > #{startDate}) OR (end_time < #{endDate} AND end_time > #{startDate})
- </if>
- </where>
- </select>
- </mapper>
|