自动化立体仓库 - WMS系统
zyx
2024-02-23 d16c9ca6307adde5d4b9734c540e276477940686
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
package com.zy.asrs.mapper;
 
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zy.asrs.entity.Pla;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
 
import java.util.List;
import java.util.Map;
 
@Mapper
@Repository
public interface PlaMapper extends BaseMapper<Pla> {
 
    @Select("select brand, matnr, sum(weight_anfme) as weight from asr_pla_detl where brand = #{brand} GROUP BY brand,matnr ORDER BY weight")
    List<Pla> getStockStatisAllByBrand(@Param("brand") String brand);
 
    @Select("select brand, matnr, sum(weight_anfme) as weight from asr_pla_detl GROUP BY brand,matnr ORDER BY weight")
    List<Pla> getStockStatisAll();
 
 
    Integer getStockStatisCountAll(Map<String, Object> map);
 
}