|
@@ -88,6 +88,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="orderId != null">order_id,</if>
|
|
<if test="orderId != null">order_id,</if>
|
|
|
<if test="isPayRemain != null">is_pay_remain,</if>
|
|
<if test="isPayRemain != null">is_pay_remain,</if>
|
|
|
<if test="payMode != null">pay_mode,</if>
|
|
<if test="payMode != null">pay_mode,</if>
|
|
|
|
|
+ <if test="originalAmount != null">original_amount,</if>
|
|
|
|
|
+ <if test="reductionAmount != null">reduction_amount,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="payCode != null">#{payCode},</if>
|
|
<if test="payCode != null">#{payCode},</if>
|
|
@@ -112,6 +114,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="orderId != null">#{orderId},</if>
|
|
<if test="orderId != null">#{orderId},</if>
|
|
|
<if test="isPayRemain != null">#{isPayRemain},</if>
|
|
<if test="isPayRemain != null">#{isPayRemain},</if>
|
|
|
<if test="payMode != null">#{payMode},</if>
|
|
<if test="payMode != null">#{payMode},</if>
|
|
|
|
|
+ <if test="originalAmount != null">#{originalAmount},</if>
|
|
|
|
|
+ <if test="reductionAmount != null">#{reductionAmount},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -140,6 +144,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="orderId != null">order_id = #{orderId},</if>
|
|
<if test="orderId != null">order_id = #{orderId},</if>
|
|
|
<if test="isPayRemain != null">is_pay_remain = #{isPayRemain},</if>
|
|
<if test="isPayRemain != null">is_pay_remain = #{isPayRemain},</if>
|
|
|
<if test="payMode != null">pay_mode = #{payMode},</if>
|
|
<if test="payMode != null">pay_mode = #{payMode},</if>
|
|
|
|
|
+ <if test="originalAmount != null">#{originalAmount},</if>
|
|
|
|
|
+ <if test="reductionAmount != null">#{reductionAmount},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where payment_id = #{paymentId}
|
|
where payment_id = #{paymentId}
|
|
|
</update>
|
|
</update>
|
|
@@ -215,7 +221,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="getScanPaymentDayStatDetails" resultType="com.fs.hisStore.vo.FsStoreScanPaymentStatDetailsVo">
|
|
<select id="getScanPaymentDayStatDetails" resultType="com.fs.hisStore.vo.FsStoreScanPaymentStatDetailsVo">
|
|
|
SELECT
|
|
SELECT
|
|
|
pay_time,
|
|
pay_time,
|
|
|
- pay_money
|
|
|
|
|
|
|
+ pay_money,
|
|
|
|
|
+ original_amount,
|
|
|
|
|
+ reduction_amount
|
|
|
FROM
|
|
FROM
|
|
|
fs_store_payment_scrm
|
|
fs_store_payment_scrm
|
|
|
WHERE
|
|
WHERE
|
|
@@ -249,8 +257,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
<select id="getScanPaymentMonthStatPage" resultType="com.fs.hisStore.vo.FsStoreScanPaymentStatDetailsVo">
|
|
<select id="getScanPaymentMonthStatPage" resultType="com.fs.hisStore.vo.FsStoreScanPaymentStatDetailsVo">
|
|
|
SELECT
|
|
SELECT
|
|
|
- pay_time,
|
|
|
|
|
- pay_money
|
|
|
|
|
|
|
+ pay_time,
|
|
|
|
|
+ pay_money,
|
|
|
|
|
+ original_amount,
|
|
|
|
|
+ reduction_amount
|
|
|
FROM
|
|
FROM
|
|
|
fs_store_payment_scrm
|
|
fs_store_payment_scrm
|
|
|
WHERE
|
|
WHERE
|
|
@@ -283,7 +293,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="getScanPaymentYearStatPage" resultType="com.fs.hisStore.vo.FsStoreScanPaymentStatDetailsVo">
|
|
<select id="getScanPaymentYearStatPage" resultType="com.fs.hisStore.vo.FsStoreScanPaymentStatDetailsVo">
|
|
|
SELECT
|
|
SELECT
|
|
|
pay_time,
|
|
pay_time,
|
|
|
- pay_money
|
|
|
|
|
|
|
+ pay_money,
|
|
|
|
|
+ original_amount,
|
|
|
|
|
+ reduction_amount
|
|
|
FROM
|
|
FROM
|
|
|
fs_store_payment_scrm
|
|
fs_store_payment_scrm
|
|
|
WHERE
|
|
WHERE
|
|
@@ -314,7 +326,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="getScanPaymentDateStatPage" resultType="com.fs.hisStore.vo.FsStoreScanPaymentStatDetailsVo">
|
|
<select id="getScanPaymentDateStatPage" resultType="com.fs.hisStore.vo.FsStoreScanPaymentStatDetailsVo">
|
|
|
SELECT
|
|
SELECT
|
|
|
pay_time,
|
|
pay_time,
|
|
|
- pay_money
|
|
|
|
|
|
|
+ pay_money,
|
|
|
|
|
+ original_amount,
|
|
|
|
|
+ reduction_amount
|
|
|
FROM
|
|
FROM
|
|
|
fs_store_payment_scrm
|
|
fs_store_payment_scrm
|
|
|
WHERE
|
|
WHERE
|