|
@@ -18,6 +18,9 @@
|
|
|
<result column="roleId" property="roleId"/>
|
|
|
<result column="remark" property="remark"/>
|
|
|
<result column="status" property="status"/>
|
|
|
+ <result column="type" property="type"/>
|
|
|
+ <result column="totalFee" property="totalFee"/>
|
|
|
+ <result column="payStatus" property="payStatus"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="get" resultMap="result">
|
|
@@ -37,8 +40,8 @@
|
|
|
</select>
|
|
|
|
|
|
<insert id="save" parameterType="com.bosshand.virgo.api.workark.model.ProceModel" useGeneratedKeys="true" keyProperty="id">
|
|
|
- INSERT into workark_proce(name, parentId, orderId, productId, productLevelId, sequence, attachment, attachmentNumber, attachmentContent, roleId, remark)
|
|
|
- values(#{name}, #{parentId}, #{orderId}, #{productId}, #{productLevelId}, #{sequence}, #{attachment}, #{attachmentNumber}, #{attachmentContent}, #{roleId}, #{remark})
|
|
|
+ INSERT into workark_proce(name, parentId, orderId, productId, productLevelId, sequence, attachment, attachmentNumber, attachmentContent, roleId, remark, type, totalFee)
|
|
|
+ values(#{name}, #{parentId}, #{orderId}, #{productId}, #{productLevelId}, #{sequence}, #{attachment}, #{attachmentNumber}, #{attachmentContent}, #{roleId}, #{remark}, #{type}, #{totalFee)
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.bosshand.virgo.api.workark.model.ProceModel">
|
|
@@ -53,6 +56,8 @@
|
|
|
<if test="roleId!=0">roleId=#{roleId},</if>
|
|
|
<if test="remark!=null">remark=#{remark},</if>
|
|
|
<if test="attachmentContent!=null">attachmentContent=#{attachmentContent},</if>
|
|
|
+ <if test="type!=null">type=#{type},</if>
|
|
|
+ <if test="totalFee!=null">totalFee=#{totalFee},</if>
|
|
|
attachmentNumber=#{attachmentNumber},
|
|
|
sequence=#{sequence},
|
|
|
</trim>
|
|
@@ -66,6 +71,10 @@
|
|
|
</foreach>
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updatePayStatus" parameterType="com.bosshand.virgo.api.workark.model.ProceModel">
|
|
|
+ UPDATE workark_proce set payStatus = #{payStatus} WHERE id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
<delete id="delete">
|
|
|
DELETE FROM workark_proce where id = #{id}
|
|
|
</delete>
|