100 lines
2.3 KiB
Java
100 lines
2.3 KiB
Java
|
|
package com.wms.mapper;
|
|||
|
|
|
|||
|
|
import com.wms.entity.table.AppOrderIn;
|
|||
|
|
import com.wms.entity.table.Location;
|
|||
|
|
import com.wms.entity.table.OrderOut;
|
|||
|
|
import com.wms.entity.table.Vehicle;
|
|||
|
|
import org.apache.ibatis.annotations.Param;
|
|||
|
|
import org.mapstruct.Mapper;
|
|||
|
|
|
|||
|
|
import java.math.BigDecimal;
|
|||
|
|
import java.util.List;
|
|||
|
|
import java.util.Map;
|
|||
|
|
|
|||
|
|
@Mapper
|
|||
|
|
public interface AppOrderInMapper {
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 条件查询,结果会按照创建时间倒序排列
|
|||
|
|
* @param queryParam 查询条件
|
|||
|
|
* @return 查询结果
|
|||
|
|
*/
|
|||
|
|
List<AppOrderIn> select(AppOrderIn queryParam);
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 插入一条数据
|
|||
|
|
* @param appOrderIn 要插入的数据
|
|||
|
|
* @return 插入的数据行数
|
|||
|
|
*/
|
|||
|
|
int insert(AppOrderIn appOrderIn);
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 批量插入数据
|
|||
|
|
* @param appOrderInList 要插入的数据
|
|||
|
|
* @return 插入的数据行数
|
|||
|
|
*/
|
|||
|
|
int insertList(List<Location> appOrderInList);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 更新一条数据
|
|||
|
|
* @param appOrderIn 要更新的数据
|
|||
|
|
* @return 更新的数据行数
|
|||
|
|
*/
|
|||
|
|
int update(AppOrderIn appOrderIn);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 删除一条数据
|
|||
|
|
* @param rowId 要删除的数据的rowId
|
|||
|
|
* @return 删除的数据行数
|
|||
|
|
*/
|
|||
|
|
int delete(String rowId);
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 条件查询
|
|||
|
|
* @param searchStr 查询字符串
|
|||
|
|
* @param orderStatus 状态
|
|||
|
|
* @return 查询结果
|
|||
|
|
*/
|
|||
|
|
List<AppOrderIn> selectWithParams(@Param("searchStr") String searchStr, @Param("orderStatus") List<Integer> orderStatus);
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 根据车辆编号更新状态
|
|||
|
|
* @param vehicleNo 车辆编号
|
|||
|
|
* @param orderStatus 状态
|
|||
|
|
* @return 更新的数据行数
|
|||
|
|
*/
|
|||
|
|
int updateStatusWithVehicleNo(@Param("vehicleNo") String vehicleNo, @Param("orderStatus") Integer orderStatus);
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 根据车辆编号查询
|
|||
|
|
* @param vehicleNo 车辆编号
|
|||
|
|
* @return 查询结果
|
|||
|
|
*/
|
|||
|
|
List<AppOrderIn> selectWithVehicle(@Param("vehicleNo") String vehicleNo);
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
List<AppOrderIn> selectWithGoodsId(@Param("goodsId") String goodsId);
|
|||
|
|
|
|||
|
|
|
|||
|
|
List<AppOrderIn> selectWithRowId(@Param("rowId") String rowId);
|
|||
|
|
|
|||
|
|
|
|||
|
|
//List<AppOrderIn> selectWithBatchNo(@Param("batchNo") String batchNo, @Param("goodsNum") BigDecimal goodsNum);
|
|||
|
|
|
|||
|
|
List<AppOrderIn> selectWithBatchNo(Map<String, Object> params);
|
|||
|
|
|
|||
|
|
|
|||
|
|
int deleteByCheckNoGood(String remark);
|
|||
|
|
}
|