修改状态
This commit is contained in:
@@ -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)){
|
if(ObjectUtil.isEmpty(cashierCarts)||ObjectUtil.isNull(cashierCarts)){
|
||||||
return Result.fail("购物车信息不存在");
|
return Result.fail("购物车信息不存在");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -372,6 +372,11 @@
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="selectByOrderId" resultMap="BaseResultMap">
|
<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>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user