修改状态
This commit is contained in:
parent
509137b200
commit
c92fbfc554
|
|
@ -146,7 +146,7 @@ public class PayService {
|
|||
}
|
||||
|
||||
|
||||
List<TbCashierCart> cashierCarts= tbCashierCartMapper.selectByOrderId(orderId,"closed");
|
||||
List<TbCashierCart> cashierCarts= tbCashierCartMapper.selectByOrderId(orderId,null);
|
||||
if(ObjectUtil.isEmpty(cashierCarts)||ObjectUtil.isNull(cashierCarts)){
|
||||
return Result.fail("购物车信息不存在");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -372,6 +372,11 @@
|
|||
</update>
|
||||
|
||||
<select id="selectByOrderId" resultMap="BaseResultMap">
|
||||
select * from tb_cashier_cart where order_id=#{orderId} and `status`=#{status}
|
||||
select * from tb_cashier_cart where order_id=#{orderId}
|
||||
<if test="status != null">
|
||||
and `status`=#{status}
|
||||
</if>
|
||||
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue