食谱计划生成修改,根据客户ID重新生成,暂停记录不需要加订单ID

This commit is contained in:
xiezhijun
2021-04-01 18:45:41 +08:00
parent e8b0ae2cd7
commit 5d95de3a2a
15 changed files with 231 additions and 114 deletions

View File

@@ -144,4 +144,18 @@
where sop.del_flag = 0 and sop.order_id = #{orderId} order by sop.pause_start_date asc
</select>
<!-- 根据客户ID或订单ID获取暂停记录客户ID、订单ID不能都为空 -->
<select id="getPauseListByCusIdAndOrderId" parameterType="SysOrderPause" resultMap="SysOrderPauseResult">
<include refid="selectSysOrderPauseVo"></include>
where sop.del_flag = 0
<if test="cusId != null and orderId == null">
and sop.cus_id = #{cusId}
</if>
<if test="cusId == null and orderId != null">
and sop.order_id = #{orderId}
</if>
<if test="cusId != null and orderId != null">
and (sop.cus_id = #{cusId} or sop.order_id = #{orderId})
</if>
</select>
</mapper>