package org.ta.pddserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.ta.pddserver.entity.OrderCreateEntity;
import org.ta.pddserver.entity.OrderEntity;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<OrderEntity> {
    @Update("UPDATE `order` SET `packageQuantity` = ${packageQuantity} WHERE `logisticsOrderCode` = #{logisticsOrderCode};")
    Boolean savePackageQuantity(String logisticsOrderCode, long packageQuantity);
}
