|
|
@@ -46,12 +46,7 @@
|
|
|
order by wpp.create_time DESC
|
|
|
</select>
|
|
|
|
|
|
- <!-- 根据主键ID查询运费支付记录 -->
|
|
|
- <select id="selectWalletPayablePayById" resultMap="walletPayablePayMap">
|
|
|
- SELECT
|
|
|
- <include refid="allColumns" />
|
|
|
- FROM wallet_payable_pay wpp WHERE wpp.id = #{id}
|
|
|
- </select>
|
|
|
+
|
|
|
|
|
|
<!-- 根据主键ID查询运费支付记录 -->
|
|
|
<select id="selectPayableUnPayById" resultMap="walletPayablePayMap">
|
|
|
@@ -67,97 +62,6 @@
|
|
|
FROM wallet_payable_pay wpp WHERE wpp.order_no = #{orderNo}
|
|
|
</select>
|
|
|
|
|
|
- <!-- 根据主键ID列表查询运费支付记录列表 -->
|
|
|
- <select id="selectWalletPayablePayByIds" resultMap="walletPayablePayMap">
|
|
|
- SELECT
|
|
|
- <include refid="allColumns" />
|
|
|
- FROM wallet_payable_pay wpp WHERE wpp.id IN
|
|
|
- <foreach collection="idList" index="index" item="id" open="(" separator="," close=")">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- </select>
|
|
|
-
|
|
|
- <!-- This code was generated by TableGo tools, mark 2 begin. -->
|
|
|
- <!-- 新增运费支付记录 -->
|
|
|
- <insert id="insertWalletPayablePay" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
- INSERT INTO wallet_payable_pay
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">id,</if>
|
|
|
- <if test="payableId != null">payable_id,</if>
|
|
|
- <if test="applyOrderNo != null">apply_order_no,</if>
|
|
|
- <if test="orderNo != null">order_no,</if>
|
|
|
- <if test="applyAmount != null">apply_amount,</if>
|
|
|
- <if test="receivedAmount != null">received_amount,</if>
|
|
|
- <if test="status != null">status,</if>
|
|
|
- <if test="remark != null">remark,</if>
|
|
|
- <if test="delFlag != null">del_flag,</if>
|
|
|
- <if test="createBy != null">create_by,</if>
|
|
|
- <if test="createTime != null">create_time,</if>
|
|
|
- <if test="updateBy != null">update_by,</if>
|
|
|
- <if test="updateTime != null">update_time</if>
|
|
|
- </trim>
|
|
|
- <trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">#{id},</if>
|
|
|
- <if test="payableId != null">#{payableId},</if>
|
|
|
- <if test="applyOrderNo != null">#{applyOrderNo},</if>
|
|
|
- <if test="orderNo != null">#{orderNo},</if>
|
|
|
- <if test="applyAmount != null">#{applyAmount},</if>
|
|
|
- <if test="receivedAmount != null">#{receivedAmount},</if>
|
|
|
- <if test="status != null">#{status},</if>
|
|
|
- <if test="remark != null">#{remark},</if>
|
|
|
- <if test="delFlag != null">#{delFlag},</if>
|
|
|
- <if test="createBy != null">#{createBy},</if>
|
|
|
- <if test="createTime != null">#{createTime},</if>
|
|
|
- <if test="updateBy != null">#{updateBy},</if>
|
|
|
- <if test="updateTime != null">#{updateTime}</if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
-
|
|
|
- <!-- 修改运费支付记录 -->
|
|
|
- <update id="updateWalletPayablePay">
|
|
|
- UPDATE wallet_payable_pay
|
|
|
- <set>
|
|
|
- <if test="payableId != null">payable_id = #{payableId},</if>
|
|
|
- <if test="applyOrderNo != null">apply_order_no = #{applyOrderNo},</if>
|
|
|
- <if test="orderNo != null">order_no = #{orderNo},</if>
|
|
|
- <if test="applyAmount != null">apply_amount = #{applyAmount},</if>
|
|
|
- <if test="receivedAmount != null">received_amount = #{receivedAmount},</if>
|
|
|
- <if test="status != null">status = #{status},</if>
|
|
|
- <if test="remark != null">remark = #{remark},</if>
|
|
|
- <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
- <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
- <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
- <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
- <if test="updateTime != null">update_time = #{updateTime}</if>
|
|
|
- </set>
|
|
|
- WHERE id = #{id}
|
|
|
- </update>
|
|
|
- <!-- This code was generated by TableGo tools, mark 2 end. -->
|
|
|
-
|
|
|
- <!-- 删除运费支付记录 -->
|
|
|
- <delete id="deleteWalletPayablePayById">
|
|
|
- DELETE FROM wallet_payable_pay WHERE id = #{id}
|
|
|
- </delete>
|
|
|
|
|
|
- <!-- 批量删除运费支付记录 -->
|
|
|
- <delete id="deleteWalletPayablePayByIds">
|
|
|
- DELETE FROM wallet_payable_pay WHERE id IN
|
|
|
- <foreach collection="idList" index="index" item="id" open="(" separator="," close=")">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- </delete>
|
|
|
|
|
|
- <!-- 批量逻辑删除运费支付记录 -->
|
|
|
- <update id="deleteWalletPayablePayLogicByIds">
|
|
|
- UPDATE wallet_payable_pay
|
|
|
- <set>
|
|
|
- DEL_FLAG = '2',
|
|
|
- UPDATE_TIME = NOW(),
|
|
|
- <if test="loginName != null and loginName != ''">UPDATE_BY = #{loginName}</if>
|
|
|
- </set>
|
|
|
- WHERE DEL_FLAG = '0' AND id IN
|
|
|
- <foreach collection="idList" index="index" item="id" open="(" separator="," close=")">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- </update>
|
|
|
</mapper>
|