mapper
This commit is contained in:
parent
96796fd381
commit
47b9bee58a
|
|
@ -61,5 +61,5 @@ public interface OrderInfoService extends IService<OrderInfo> {
|
|||
Boolean cancelledPlaceOrder(Long shopId, Long orderId, Integer placeNum);
|
||||
|
||||
|
||||
Boolean updatePayOrderId(Long shopId, Long orderId, String payType);
|
||||
Boolean updatePayOrderId(Long orderId, Long paymentId, String payType);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -140,5 +140,5 @@ public interface OrderInfoMapper extends BaseMapper<OrderInfo> {
|
|||
|
||||
int decrMoney(@Param("id") Long id, @Param("amount") BigDecimal amount);
|
||||
|
||||
int updatePayOrderId(@Param("shopId") Long shopId, @Param("orderId") Long orderId, @Param("payType") String payType);
|
||||
int updatePayOrderId(@Param("orderId") Long orderId, @Param("paymentId") Long paymentId, @Param("payType") String payType);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1390,8 +1390,8 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Boolean updatePayOrderId(Long shopId, Long orderId, String payType) {
|
||||
mapper.updatePayOrderId(shopId, orderId, payType);
|
||||
public Boolean updatePayOrderId(Long orderId, Long paymentId, String payType) {
|
||||
mapper.updatePayOrderId(orderId, paymentId, payType);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
<update id="updatePayOrderId">
|
||||
update tb_order_info
|
||||
set pay_order_id = #{payOrderId},
|
||||
set pay_order_id = #{paymentId},
|
||||
pay_type = #{payType},
|
||||
update_time=now()
|
||||
where id = #{orderId};
|
||||
|
|
|
|||
Loading…
Reference in New Issue