选煤厂生产管理平台后台代码
dongyukun
2024-12-10 532d0b7f83815ebeb4be9aa1f7a6683ede831b6a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.iailab.module.pms.production.warehouse.dao;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.iailab.framework.common.pojo.PageResult;
import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.iailab.module.pms.production.warehouse.entity.WarehouseStockEntity;
import com.iailab.module.pms.production.warehouse.entity.WarehouseStockEntity;
import com.iailab.module.pms.production.warehouse.entity.WarehouseStockEntity;
import com.iailab.module.pms.production.warehouse.vo.WarehouseStockPageReqVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author DongYukun
 * @Description
 * @createTime 2023年01月04日 10:19:00
 */
@Mapper
public interface WarehouseStockDao extends BaseMapperX<WarehouseStockEntity> {
 
    /**
     * 分页查询
     *
     * @param page 分页信息
     * @param queryWrapper 检索条件
     * @return 分页结果
     */
    IPage<WarehouseStockEntity> daySelectPage(IPage page, @Param(Constants.WRAPPER) QueryWrapper<WarehouseStockEntity> queryWrapper);
 
    /**
     * 库存数据最新日期
     *
     * @param params
     * @return
     */
    List<WarehouseStockEntity> getLastRq(Map<String, Object> params);
 
    String selectStockByName(@Param("name") String name);
 
    List<WarehouseStockEntity> selectListByRq(@Param("rq") String rq, @Param("before") String before);
 
    default PageResult<WarehouseStockEntity> selectPage(WarehouseStockPageReqVO Entity) {
        return selectPage(Entity, new LambdaQueryWrapperX<WarehouseStockEntity>()
                .orderByDesc(WarehouseStockEntity::getRq));
    }
}