|
@@ -18,6 +18,9 @@
|
|
|
<result column="paymentType" property="paymentType"/>
|
|
|
<result column="productCouponIds" property="productCouponIds"/>
|
|
|
<result column="contract" property="contract"/>
|
|
|
+ <result column="productLevelId" property="productLevelId"/>
|
|
|
+ <result column="organizationId" property="organizationId"/>
|
|
|
+ <result column="payOrganizationId" property="payOrganizationId"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="get" resultMap="result">
|
|
@@ -39,9 +42,33 @@
|
|
|
<select id="getList" resultMap="result">
|
|
|
select * from workark_orderInfo
|
|
|
<where>
|
|
|
+ <if test="title != null">
|
|
|
+ and title = #{title}
|
|
|
+ </if>
|
|
|
+ <if test="orderNo != null">
|
|
|
+ and orderNo = #{orderNo}
|
|
|
+ </if>
|
|
|
<if test="userId != 0">
|
|
|
and userId = #{userId}
|
|
|
</if>
|
|
|
+ <if test="productId != null">
|
|
|
+ and productId = #{productId}
|
|
|
+ </if>
|
|
|
+ <if test="orderStatus != null">
|
|
|
+ and orderStatus = #{orderStatus}
|
|
|
+ </if>
|
|
|
+ <if test="paymentType != null">
|
|
|
+ and paymentType = #{paymentType}
|
|
|
+ </if>
|
|
|
+ <if test="productLevelId != 0">
|
|
|
+ and productLevelId = #{productLevelId}
|
|
|
+ </if>
|
|
|
+ <if test="organizationId != 0">
|
|
|
+ and organizationId = #{organizationId}
|
|
|
+ </if>
|
|
|
+ <if test="payOrganizationId != 0">
|
|
|
+ and payOrganizationId = #{payOrganizationId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -66,6 +93,15 @@
|
|
|
<if test="paymentType != null">
|
|
|
and paymentType = #{paymentType}
|
|
|
</if>
|
|
|
+ <if test="productLevelId != 0">
|
|
|
+ and productLevelId = #{productLevelId}
|
|
|
+ </if>
|
|
|
+ <if test="organizationId != 0">
|
|
|
+ and organizationId = #{organizationId}
|
|
|
+ </if>
|
|
|
+ <if test="payOrganizationId != 0">
|
|
|
+ and payOrganizationId = #{payOrganizationId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -90,13 +126,22 @@
|
|
|
<if test="p.paymentType != null">
|
|
|
and paymentType = #{p.paymentType}
|
|
|
</if>
|
|
|
+ <if test="p.productLevelId != 0">
|
|
|
+ and productLevelId = #{p.productLevelId}
|
|
|
+ </if>
|
|
|
+ <if test="p.organizationId != 0">
|
|
|
+ and organizationId = #{p.organizationId}
|
|
|
+ </if>
|
|
|
+ <if test="p.payOrganizationId != 0">
|
|
|
+ and payOrganizationId = #{p.payOrganizationId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by createTime desc limit #{currIndex} , #{pageSize}
|
|
|
</select>
|
|
|
|
|
|
<insert id="save" useGeneratedKeys="true" keyProperty="id">
|
|
|
- INSERT INTO workark_orderInfo (createTime, title, orderNo, userId, productId, totalFee, codeUrl, orderStatus, paymentType, productCouponIds) VALUES
|
|
|
- (now(), #{title}, #{orderNo}, #{userId}, #{productId}, #{totalFee}, #{codeUrl}, #{orderStatus}, #{paymentType}, #{productCouponIds})
|
|
|
+ INSERT INTO workark_orderInfo (createTime, title, orderNo, userId, productId, totalFee, codeUrl, orderStatus, paymentType, productCouponIds, productLevelId, organizationId, payOrganizationId) VALUES
|
|
|
+ (now(), #{title}, #{orderNo}, #{userId}, #{productId}, #{totalFee}, #{codeUrl}, #{orderStatus}, #{paymentType}, #{productCouponIds}, #{productLevelId}, #{organizationId}, #{payOrganizationId})
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.bosshand.virgo.api.workark.model.OrderInfo">
|