|
@@ -15,6 +15,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="printNum" column="print_num" />
|
|
|
<result property="saleLiters" column="sale_liters" />
|
|
|
<result property="saleAmt" column="sale_amt" />
|
|
|
+ <result property="amt" column="amt" />
|
|
|
+ <result property="discountAmt" column="discount_amt" />
|
|
|
<result property="wxAmt" column="wx_amt" />
|
|
|
<result property="zfbAmt" column="zfb_amt" />
|
|
|
<result property="dzkAmt" column="dzk_amt" />
|
|
@@ -22,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectStationClassesSummaryVo">
|
|
|
- select id, classes_no, start_date, end_date, station_id, station_name, order_num, print_num, sale_liters, sale_amt, wx_amt, zfb_amt, dzk_amt, classes_man from station_classes_summary
|
|
|
+ select id, classes_no, start_date, end_date, station_id, station_name, order_num, print_num, sale_liters, sale_amt, amt, discount_amt, wx_amt, zfb_amt, dzk_amt, classes_man from station_classes_summary
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectStationClassesSummaryList" parameterType="StationClassesSummary" resultMap="StationClassesSummaryResult">
|
|
@@ -37,18 +39,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="printNum != null "> and print_num = #{printNum}</if>
|
|
|
<if test="saleLiters != null "> and sale_liters = #{saleLiters}</if>
|
|
|
<if test="saleAmt != null "> and sale_amt = #{saleAmt}</if>
|
|
|
+ <if test="amt != null "> and amt = #{amt}</if>
|
|
|
+ <if test="discountAmt != null "> and discount_amt = #{discountAmt}</if>
|
|
|
<if test="wxAmt != null "> and wx_amt = #{wxAmt}</if>
|
|
|
<if test="zfbAmt != null "> and zfb_amt = #{zfbAmt}</if>
|
|
|
<if test="dzkAmt != null "> and dzk_amt = #{dzkAmt}</if>
|
|
|
<if test="classesMan != null and classesMan != ''"> and classes_man = #{classesMan}</if>
|
|
|
- <if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 -->
|
|
|
- AND date_format(end_date,'%Y-%m-%d %H:%i:%s') >= date_format(#{beginTime},'%Y-%m-%d %H:%i:%s')
|
|
|
- </if>
|
|
|
- <if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
|
|
|
- AND date_format(end_date,'%Y-%m-%d %H:%i:%s') <= date_format(#{endTime},'%Y-%m-%d %H:%i:%s')
|
|
|
- </if>
|
|
|
</where>
|
|
|
- order by id desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectStationClassesSummaryById" parameterType="Long" resultMap="StationClassesSummaryResult">
|
|
@@ -68,6 +65,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="printNum != null">print_num,</if>
|
|
|
<if test="saleLiters != null">sale_liters,</if>
|
|
|
<if test="saleAmt != null">sale_amt,</if>
|
|
|
+ <if test="amt != null">amt,</if>
|
|
|
+ <if test="discountAmt != null">discount_amt,</if>
|
|
|
<if test="wxAmt != null">wx_amt,</if>
|
|
|
<if test="zfbAmt != null">zfb_amt,</if>
|
|
|
<if test="dzkAmt != null">dzk_amt,</if>
|
|
@@ -83,6 +82,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="printNum != null">#{printNum},</if>
|
|
|
<if test="saleLiters != null">#{saleLiters},</if>
|
|
|
<if test="saleAmt != null">#{saleAmt},</if>
|
|
|
+ <if test="amt != null">#{amt},</if>
|
|
|
+ <if test="discountAmt != null">#{discountAmt},</if>
|
|
|
<if test="wxAmt != null">#{wxAmt},</if>
|
|
|
<if test="zfbAmt != null">#{zfbAmt},</if>
|
|
|
<if test="dzkAmt != null">#{dzkAmt},</if>
|
|
@@ -102,6 +103,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="printNum != null">print_num = #{printNum},</if>
|
|
|
<if test="saleLiters != null">sale_liters = #{saleLiters},</if>
|
|
|
<if test="saleAmt != null">sale_amt = #{saleAmt},</if>
|
|
|
+ <if test="amt != null">amt = #{amt},</if>
|
|
|
+ <if test="discountAmt != null">discount_amt = #{discountAmt},</if>
|
|
|
<if test="wxAmt != null">wx_amt = #{wxAmt},</if>
|
|
|
<if test="zfbAmt != null">zfb_amt = #{zfbAmt},</if>
|
|
|
<if test="dzkAmt != null">dzk_amt = #{dzkAmt},</if>
|