苍穹外卖--处理支付功能的操作
This commit is contained in:
@@ -4,6 +4,9 @@ import com.sky.entity.Orders;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Options;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Mapper
|
||||
public interface OrderMapper {
|
||||
@@ -16,4 +19,8 @@ public interface OrderMapper {
|
||||
"#{deliveryStatus}, #{packAmount}, #{tablewareNumber}, #{tablewareStatus})")
|
||||
@Options(useGeneratedKeys = true,keyProperty = "id")
|
||||
void insert(Orders orders);
|
||||
|
||||
//处理支付pem问题
|
||||
@Update("update orders set status = #{orderStatus},pay_status = #{orderPaidStatus},checkout_time = #{checkOutTime} where id = #{id}")
|
||||
void updateStatus(Integer orderStatus, Integer orderPaidStatus, LocalDateTime checkOutTime, Long id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user