|
@@ -27,6 +27,7 @@
|
|
|
<result column="productLevelId" property="productLevelId"/>
|
|
|
<result column="organizationId" property="organizationId"/>
|
|
|
<result column="payOrganizationId" property="payOrganizationId"/>
|
|
|
+ <result column="proceId" property="proceId"/>
|
|
|
<collection property="invoice" ofType="com.bosshand.virgo.api.workark.model.Invoice" resultMap="com.bosshand.virgo.api.workark.dao.InvoiceDao.result" columnPrefix="invoice_"/>
|
|
|
</resultMap>
|
|
|
|
|
@@ -103,6 +104,9 @@
|
|
|
<if test="payOrganizationId != 0">
|
|
|
and a.payOrganizationId = #{payOrganizationId}
|
|
|
</if>
|
|
|
+ <if test="proceId != 0">
|
|
|
+ and a.proceId = #{proceId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -139,6 +143,9 @@
|
|
|
<if test="payOrganizationId != 0">
|
|
|
and payOrganizationId = #{payOrganizationId}
|
|
|
</if>
|
|
|
+ <if test="proceId != 0">
|
|
|
+ and proceId = #{proceId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -175,13 +182,16 @@
|
|
|
<if test="p.payOrganizationId != 0">
|
|
|
and a.payOrganizationId = #{p.payOrganizationId}
|
|
|
</if>
|
|
|
+ <if test="p.proceId != 0">
|
|
|
+ and a.proceId = #{p.proceId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by a.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, productLevelId, organizationId, payOrganizationId) VALUES
|
|
|
- (now(), #{title}, #{orderNo}, #{userId}, #{productId}, #{totalFee}, #{codeUrl}, #{orderStatus}, #{paymentType}, #{productCouponIds}, #{productLevelId}, #{organizationId}, #{payOrganizationId})
|
|
|
+ INSERT INTO workark_orderInfo (createTime, title, orderNo, userId, productId, totalFee, codeUrl, orderStatus, paymentType, productCouponIds, productLevelId, organizationId, payOrganizationId, proceId) VALUES
|
|
|
+ (now(), #{title}, #{orderNo}, #{userId}, #{productId}, #{totalFee}, #{codeUrl}, #{orderStatus}, #{paymentType}, #{productCouponIds}, #{productLevelId}, #{organizationId}, #{payOrganizationId}, #{proceId})
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.bosshand.virgo.api.workark.model.OrderInfo">
|