|
@@ -71,11 +71,6 @@
|
|
<!-- 向数据库增加一条记录 -->
|
|
<!-- 向数据库增加一条记录 -->
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.StudentPaymentOrder" useGeneratedKeys="true"
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.StudentPaymentOrder" useGeneratedKeys="true"
|
|
keyColumn="id" keyProperty="id">
|
|
keyColumn="id" keyProperty="id">
|
|
- <!--
|
|
|
|
- <selectKey resultClass="int" keyProperty="id" >
|
|
|
|
- SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL
|
|
|
|
- </selectKey>
|
|
|
|
- -->
|
|
|
|
INSERT INTO student_payment_order
|
|
INSERT INTO student_payment_order
|
|
(id_,user_id_,type_,expect_amount_,actual_amount_,trans_no_,status_,memo_,create_time_,update_time_,payment_channel_,payment_business_channel_,payment_account_no_,order_no_,music_group_id_,class_group_id_)
|
|
(id_,user_id_,type_,expect_amount_,actual_amount_,trans_no_,status_,memo_,create_time_,update_time_,payment_channel_,payment_business_channel_,payment_account_no_,order_no_,music_group_id_,class_group_id_)
|
|
VALUES(#{id},#{userId},#{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{expectAmount},#{actualAmount},#{transNo},#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{memo},now(),now(),#{paymentChannel},#{paymentBusinessChannel},#{paymentAccountNo},#{orderNo},#{musicGroupId},#{classGroupId})
|
|
VALUES(#{id},#{userId},#{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{expectAmount},#{actualAmount},#{transNo},#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{memo},now(),now(),#{paymentChannel},#{paymentBusinessChannel},#{paymentAccountNo},#{orderNo},#{musicGroupId},#{classGroupId})
|
|
@@ -160,10 +155,10 @@
|
|
<sql id="queryPaymentOrder">
|
|
<sql id="queryPaymentOrder">
|
|
<where>
|
|
<where>
|
|
<if test="orderStartDate != null">
|
|
<if test="orderStartDate != null">
|
|
- AND spo.create_time_ >= #{orderStartDate}
|
|
|
|
|
|
+ AND DATE_FORMAT(spo.create_time_,'%Y-%m-%d') >= #{orderStartDate}
|
|
</if>
|
|
</if>
|
|
<if test="orderEndDate != null">
|
|
<if test="orderEndDate != null">
|
|
- AND spo.create_time_ <= #{orderEndDate}
|
|
|
|
|
|
+ AND DATE_FORMAT(spo.create_time_,'%Y-%m-%d') <= #{orderEndDate}
|
|
</if>
|
|
</if>
|
|
<if test="paymentType != null">
|
|
<if test="paymentType != null">
|
|
AND spo.type_ = #{paymentType}
|
|
AND spo.type_ = #{paymentType}
|