mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
新增 运营商查询订单报表接口
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jsowell.pile.mapper.SettleOrderReportMapper">
|
||||
|
||||
<resultMap type="SettleOrderReport" id="SettleOrderReportResult">
|
||||
<resultMap type="com.jsowell.pile.domain.SettleOrderReport" id="SettleOrderReportResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="merchantId" column="merchant_id" />
|
||||
<result property="stationId" column="station_id" />
|
||||
@@ -26,7 +26,11 @@
|
||||
select id, merchant_id, station_id, use_electricity, charge_num, charge_time, electricity_amount, service_amount, total_amount, virtual_amount, trade_date, trade_amount, trade_fee, create_time, del_flag from settle_order_report
|
||||
</sql>
|
||||
|
||||
<select id="selectSettleOrderReportList" parameterType="SettleOrderReport" resultMap="SettleOrderReportResult">
|
||||
<sql id="Base_Column_List">
|
||||
id, merchant_id, station_id, use_electricity, charge_num, charge_time, electricity_amount, service_amount, total_amount, virtual_amount, trade_date, trade_amount, trade_fee, create_time, del_flag
|
||||
</sql>
|
||||
|
||||
<select id="selectSettleOrderReportList" parameterType="com.jsowell.pile.domain.SettleOrderReport" resultMap="SettleOrderReportResult">
|
||||
<include refid="selectSettleOrderReportVo"/>
|
||||
<where>
|
||||
<if test="merchantId != null and merchantId != ''"> and merchant_id = #{merchantId}</if>
|
||||
@@ -49,7 +53,7 @@
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSettleOrderReport" parameterType="SettleOrderReport">
|
||||
<insert id="insertSettleOrderReport" parameterType="com.jsowell.pile.domain.SettleOrderReport">
|
||||
insert into settle_order_report
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
@@ -87,7 +91,7 @@
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSettleOrderReport" parameterType="SettleOrderReport">
|
||||
<update id="updateSettleOrderReport" parameterType="com.jsowell.pile.domain.SettleOrderReport">
|
||||
update settle_order_report
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="merchantId != null">merchant_id = #{merchantId},</if>
|
||||
@@ -118,4 +122,22 @@
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="getMerchantOrderReport" resultMap="SettleOrderReportResult">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from
|
||||
settle_order_report
|
||||
where
|
||||
del_flag = '0'
|
||||
<if test="dto.merchantId != null and dto.merchantId != ''">
|
||||
and merchant_id = #{dto.merchantId,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="dto.startTime != null and dto.startTime != ''">
|
||||
and trade_date <![CDATA[ >= ]]> #{dto.startTime,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="dto.endTime != null and dto.endTime != ''">
|
||||
and trade_date <![CDATA[ <= ]]> #{dto.endTime,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user