缺少待付款/已发布

This commit is contained in:
kuang.yife 2023-06-01 21:41:59 +08:00
parent d5847db0b9
commit 3a829cae26
4 changed files with 14 additions and 0 deletions

View File

@ -225,6 +225,7 @@ public class OrderController extends BaseController {
orderMaster.setCustomerId(customer.getCustomerId()); orderMaster.setCustomerId(customer.getCustomerId());
orderMaster.setGoodsId(goods.getGoodsId()); orderMaster.setGoodsId(goods.getGoodsId());
orderMaster.setPayType(0); orderMaster.setPayType(0);
orderMaster.setOrderMode(request.getOrderMode());
// 服务时间 // 服务时间
String[] split = request.getServTime().split("-"); String[] split = request.getServTime().split("-");
try { try {

View File

@ -139,4 +139,6 @@ public class OrderMaster extends BaseEntity {
* 超时扣款次数 * 超时扣款次数
*/ */
private Integer timeoutFineTimes; private Integer timeoutFineTimes;
private String orderMode;
} }

View File

@ -47,4 +47,7 @@ public class SysOrderAssignRequest {
private String servDate; private String servDate;
private String servTime; private String servTime;
private String orderMode;
} }

View File

@ -11,6 +11,7 @@
<result property="customerId" column="customer_id"/> <result property="customerId" column="customer_id"/>
<result property="addressId" column="address_id"/> <result property="addressId" column="address_id"/>
<result property="orderType" column="order_type"/> <result property="orderType" column="order_type"/>
<result property="orderMode" column="order_mode"/>
<result property="orderStatus" column="order_status"/> <result property="orderStatus" column="order_status"/>
<result property="payType" column="pay_type"/> <result property="payType" column="pay_type"/>
<result property="payStatus" column="pay_status"/> <result property="payStatus" column="pay_status"/>
@ -38,6 +39,7 @@
customer_id, customer_id,
address_id, address_id,
order_type, order_type,
order_mode,
order_status, order_status,
pay_type, pay_type,
pay_status, pay_status,
@ -63,6 +65,7 @@
om.customer_id, om.customer_id,
om.address_id, om.address_id,
om.order_type, om.order_type,
om.order_mode,
om.order_status, om.order_status,
om.pay_type, om.pay_type,
om.pay_status, om.pay_status,
@ -82,6 +85,7 @@
FROM order_master om FROM order_master om
LEFT JOIN customer_address ca ON ca.customer_address_id = om.address_id LEFT JOIN customer_address ca ON ca.customer_address_id = om.address_id
LEFT JOIN goods g ON g.goods_id = om.goods_id LEFT JOIN goods g ON g.goods_id = om.goods_id
LEFT JOIN financial_master fm ON om.id = fm.order_master_id
</sql> </sql>
<select id="selectOrderMasterList" parameterType="com.ghy.order.domain.OrderMaster" resultMap="OrderMasterResult"> <select id="selectOrderMasterList" parameterType="com.ghy.order.domain.OrderMaster" resultMap="OrderMasterResult">
@ -128,6 +132,8 @@
</if> </if>
<if test="workerId == -1"> <if test="workerId == -1">
AND om.worker_id IS NULL AND om.worker_id IS NULL
AND ( (om.order_mode in ('01','03','04'))
OR (om.order_mode = '02' and fm.pay_status = 1) )
</if> </if>
<if test="goodsCategoryId != null"> <if test="goodsCategoryId != null">
AND g.dept_goods_category_id = #{goodsCategoryId} AND g.dept_goods_category_id = #{goodsCategoryId}
@ -295,6 +301,7 @@
<if test="addressId != null and addressId != 0">address_id,</if> <if test="addressId != null and addressId != 0">address_id,</if>
<if test="goodsId != null and goodsId != 0">goods_id,</if> <if test="goodsId != null and goodsId != 0">goods_id,</if>
<if test="orderType != null">order_type,</if> <if test="orderType != null">order_type,</if>
<if test="orderMode != null">order_mode,</if>
<if test="orderStatus != null">order_status,</if> <if test="orderStatus != null">order_status,</if>
<if test="payType != null">pay_type,</if> <if test="payType != null">pay_type,</if>
<if test="payStatus != null">pay_status,</if> <if test="payStatus != null">pay_status,</if>
@ -313,6 +320,7 @@
<if test="addressId != null and addressId != 0">#{addressId},</if> <if test="addressId != null and addressId != 0">#{addressId},</if>
<if test="goodsId != null and goodsId != 0">#{goodsId},</if> <if test="goodsId != null and goodsId != 0">#{goodsId},</if>
<if test="orderType != null">#{orderType},</if> <if test="orderType != null">#{orderType},</if>
<if test="orderMode != null">#{orderMode},</if>
<if test="orderStatus != null">#{orderStatus},</if> <if test="orderStatus != null">#{orderStatus},</if>
<if test="payType != null">#{payType},</if> <if test="payType != null">#{payType},</if>
<if test="payStatus != null">#{payStatus},</if> <if test="payStatus != null">#{payStatus},</if>