|
|
@@ -9,6 +9,7 @@
|
|
|
<result property="orderStatus" column="orderStatus" />
|
|
|
<result property="orderAmount" column="orderAmount" />
|
|
|
<result property="payAmount" column="payAmount" />
|
|
|
+ <result property="prodQuantity" column="prodQuantity" />
|
|
|
<result property="buyerId" column="buyerId" />
|
|
|
<result property="sellerId" column="sellerId" />
|
|
|
<result property="cancelTime" column="cancelTime" />
|
|
|
@@ -28,35 +29,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectOrder">
|
|
|
- select orderId, orderNo, orderTime, payTime, orderStatus, orderAmount, payAmount, buyerId, sellerId, cancelTime, finishTime, recProv, recCity, recDistrict, recAddress, recName, recMobile, remark, delFlag, createUser, createTime, updateUser, updateTime from t_order
|
|
|
- </sql>
|
|
|
-
|
|
|
- <sql id="selectOrderExt">
|
|
|
- select
|
|
|
- ${tableAlias}.orderId,
|
|
|
- ${tableAlias}.orderNo,
|
|
|
- ${tableAlias}.orderTime,
|
|
|
- ${tableAlias}.payTime,
|
|
|
- ${tableAlias}.orderStatus,
|
|
|
- ${tableAlias}.orderAmount,
|
|
|
- ${tableAlias}.payAmount,
|
|
|
- ${tableAlias}.buyerId,
|
|
|
- ${tableAlias}.sellerId,
|
|
|
- ${tableAlias}.cancelTime,
|
|
|
- ${tableAlias}.finishTime,
|
|
|
- ${tableAlias}.recProv,
|
|
|
- ${tableAlias}.recCity,
|
|
|
- ${tableAlias}.recDistrict,
|
|
|
- ${tableAlias}.recAddress,
|
|
|
- ${tableAlias}.recName,
|
|
|
- ${tableAlias}.recMobile,
|
|
|
- ${tableAlias}.remark,
|
|
|
- ${tableAlias}.delFlag,
|
|
|
- ${tableAlias}.createUser,
|
|
|
- ${tableAlias}.createTime,
|
|
|
- ${tableAlias}.updateUser,
|
|
|
- ${tableAlias}.updateTime
|
|
|
- from t_order ${tableAlias}
|
|
|
+ select orderId, orderNo, orderTime, payTime, orderStatus, orderAmount, payAmount,prodQuantity, buyerId, sellerId, cancelTime, finishTime, recProv, recCity, recDistrict, recAddress, recName, recMobile, remark, delFlag, createUser, createTime, updateUser, updateTime from t_order
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectOrderList" parameterType="Order" resultMap="OrderResult">
|
|
|
@@ -68,6 +41,7 @@
|
|
|
<if test="orderStatus != null and orderStatus != ''"> and orderStatus = #{orderStatus}</if>
|
|
|
<if test="orderAmount != null "> and orderAmount = #{orderAmount}</if>
|
|
|
<if test="payAmount != null "> and payAmount = #{payAmount}</if>
|
|
|
+ <if test="prodQuantity != null "> and prodQuantity = #{prodQuantity}</if>
|
|
|
<if test="buyerId != null "> and buyerId = #{buyerId}</if>
|
|
|
<if test="sellerId != null "> and sellerId = #{sellerId}</if>
|
|
|
<if test="cancelTime != null "> and cancelTime = #{cancelTime}</if>
|
|
|
@@ -100,6 +74,7 @@
|
|
|
<if test="orderStatus != null">orderStatus,</if>
|
|
|
<if test="orderAmount != null">orderAmount,</if>
|
|
|
<if test="payAmount != null">payAmount,</if>
|
|
|
+ <if test="prodQuantity != null">prodQuantity,</if>
|
|
|
<if test="buyerId != null">buyerId,</if>
|
|
|
<if test="sellerId != null">sellerId,</if>
|
|
|
<if test="cancelTime != null">cancelTime,</if>
|
|
|
@@ -124,6 +99,7 @@
|
|
|
<if test="orderStatus != null">#{orderStatus},</if>
|
|
|
<if test="orderAmount != null">#{orderAmount},</if>
|
|
|
<if test="payAmount != null">#{payAmount},</if>
|
|
|
+ <if test="prodQuantity != null">#{prodQuantity},</if>
|
|
|
<if test="buyerId != null">#{buyerId},</if>
|
|
|
<if test="sellerId != null">#{sellerId},</if>
|
|
|
<if test="cancelTime != null">#{cancelTime},</if>
|
|
|
@@ -144,9 +120,9 @@
|
|
|
</insert>
|
|
|
|
|
|
<insert id="batchInsertOrder">
|
|
|
- insert into t_order( orderNo, orderTime, payTime, orderStatus, orderAmount, payAmount, buyerId, sellerId, cancelTime, finishTime, recProv, recCity, recDistrict, recAddress, recName, recMobile, remark, delFlag, createUser, createTime, updateUser, updateTime) values
|
|
|
+ insert into t_order( orderNo, orderTime, payTime, orderStatus, orderAmount, payAmount,prodQuantity, buyerId, sellerId, cancelTime, finishTime, recProv, recCity, recDistrict, recAddress, recName, recMobile, remark, delFlag, createUser, createTime, updateUser, updateTime) values
|
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
|
- ( #{item.orderNo}, #{item.orderTime}, #{item.payTime}, #{item.orderStatus}, #{item.orderAmount}, #{item.payAmount}, #{item.buyerId}, #{item.sellerId}, #{item.cancelTime}, #{item.finishTime}, #{item.recProv}, #{item.recCity}, #{item.recDistrict}, #{item.recAddress}, #{item.recName}, #{item.recMobile}, #{item.remark}, #{item.delFlag}, #{item.createUser}, #{item.createTime}, #{item.updateUser}, #{item.updateTime})
|
|
|
+ ( #{item.orderNo}, #{item.orderTime}, #{item.payTime}, #{item.orderStatus}, #{item.orderAmount}, #{item.payAmount},#{prodQuantity}, #{item.buyerId}, #{item.sellerId}, #{item.cancelTime}, #{item.finishTime}, #{item.recProv}, #{item.recCity}, #{item.recDistrict}, #{item.recAddress}, #{item.recName}, #{item.recMobile}, #{item.remark}, #{item.delFlag}, #{item.createUser}, #{item.createTime}, #{item.updateUser}, #{item.updateTime})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
@@ -159,6 +135,7 @@
|
|
|
<if test="orderStatus != null">orderStatus = #{orderStatus},</if>
|
|
|
<if test="orderAmount != null">orderAmount = #{orderAmount},</if>
|
|
|
<if test="payAmount != null">payAmount = #{payAmount},</if>
|
|
|
+ <if test="prodQuantity != null">prodQuantity = #{prodQuantity},</if>
|
|
|
<if test="buyerId != null">buyerId = #{buyerId},</if>
|
|
|
<if test="sellerId != null">sellerId = #{sellerId},</if>
|
|
|
<if test="cancelTime != null">cancelTime = #{cancelTime},</if>
|
|
|
@@ -215,6 +192,7 @@
|
|
|
<if test="orderStatus != null and orderStatus != ''"> and orderStatus = #{orderStatus}</if>
|
|
|
<if test="orderAmount != null "> and orderAmount = #{orderAmount}</if>
|
|
|
<if test="payAmount != null "> and payAmount = #{payAmount}</if>
|
|
|
+ <if test="prodQuantity != null "> and prodQuantity = #{prodQuantity}</if>
|
|
|
<if test="buyerId != null "> and buyerId = #{buyerId}</if>
|
|
|
<if test="sellerId != null "> and sellerId = #{sellerId}</if>
|
|
|
<if test="cancelTime != null "> and cancelTime = #{cancelTime}</if>
|