提交 87fa1bb3 作者: zhenjie

付款凭证审核修改

上级 4e5dc6d5
...@@ -12,4 +12,6 @@ public interface UavCartDao { ...@@ -12,4 +12,6 @@ public interface UavCartDao {
void addCart(UavCartDO uavCartDO); void addCart(UavCartDO uavCartDO);
void remove(Integer id); void remove(Integer id);
UavCartDO getUavCartDO(Integer id);
} }
...@@ -33,6 +33,10 @@ public class UavCartServiceImpl implements UavCartService { ...@@ -33,6 +33,10 @@ public class UavCartServiceImpl implements UavCartService {
@Override @Override
public ResultBody updateNum(Integer id, Integer buyNum) { public ResultBody updateNum(Integer id, Integer buyNum) {
UavCartDO uavCartDO = uavCartDao.getUavCartDO(id);
if (uavCartDO != null) {
return ResultBody.error("购物车信息不存在!");
}
return null; return null;
} }
......
...@@ -524,6 +524,11 @@ public class UavOrderServiceImpl implements UavOrderService { ...@@ -524,6 +524,11 @@ public class UavOrderServiceImpl implements UavOrderService {
uavPurchaseOrderDO.setStatusCode(UavOrderStatus.CONFIRM.getCode()); uavPurchaseOrderDO.setStatusCode(UavOrderStatus.CONFIRM.getCode());
uavPODao.addPurchaseOrder(uavPurchaseOrderDO); uavPODao.addPurchaseOrder(uavPurchaseOrderDO);
} }
}else {
if (uavOrderDO.getStatusCode().equals(UavOrderStatus.FINISH_PAYING.getCode())) {
// 第一次未通过,需要走回上一步
this.updateUavOrderStatus(beforeUavOrderPayDO.getUavOrderId(), UavOrderStatus.SIGN);
}
} }
UavOrderPayDO uavOrderPayDO = new UavOrderPayDO(uavOrderPayVO); UavOrderPayDO uavOrderPayDO = new UavOrderPayDO(uavOrderPayVO);
uavOrderDao.checkPay(uavOrderPayDO); uavOrderDao.checkPay(uavOrderPayDO);
......
...@@ -213,6 +213,11 @@ public class UavPOServiceImpl implements UavPOService { ...@@ -213,6 +213,11 @@ public class UavPOServiceImpl implements UavPOService {
uavPOrder.getStatusCode().equals(UavOrderStatus.FINISH_PAYING.getCode())) { uavPOrder.getStatusCode().equals(UavOrderStatus.FINISH_PAYING.getCode())) {
// 只有待付款凭证需要修改状态 // 只有待付款凭证需要修改状态
this.updateUavPOrderStatus(uavPOrder.getId(), UavOrderStatus.FINISH_PAYING); this.updateUavPOrderStatus(uavPOrder.getId(), UavOrderStatus.FINISH_PAYING);
}else {
if (uavPOrder.getStatusCode().equals(UavOrderStatus.FINISH_PAYING.getCode())) {
// 第一次未通过,需要走回上一步
this.updateUavPOrderStatus(uavPOrder.getId(), UavOrderStatus.SIGN);
}
} }
UavPurchaseOrderPayDO uavOrderPayDO = new UavPurchaseOrderPayDO(uavOrderPayVO); UavPurchaseOrderPayDO uavOrderPayDO = new UavPurchaseOrderPayDO(uavOrderPayVO);
uavPODao.updateUavPOrderPay(uavOrderPayDO); uavPODao.updateUavPOrderPay(uavOrderPayDO);
......
...@@ -9,7 +9,18 @@ ...@@ -9,7 +9,18 @@
#{priceStockId}, #{productSpec}, #{orderNum}, #{salePrice}, #{skuImage}, #{skuNo}, NOW()); #{priceStockId}, #{productSpec}, #{orderNum}, #{salePrice}, #{skuImage}, #{skuNo}, NOW());
</insert> </insert>
<sql id="cart_column">
id, user_account_id, third_back_user_account_id, company_name, mall_goods_id, trade_name, price_stock_id,
product_spec, order_num, sale_price, sku_image, sku_no, create_time
</sql>
<update id="remove"> <update id="remove">
update uav_cart set is_deleted = 1 where id = #{id} update uav_cart set is_deleted = 1 where id = #{id}
</update> </update>
<select id="getUavCartDO" resultType="com.mmc.oms.entity.uav.UavCartDO">
select <include refid="cart_column"/>
from uav_cart
where id = #{id}
</select>
</mapper> </mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论