优化商品库存报表的查询逻辑
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class MaterialInitialStockWithMaterial {
|
||||
|
||||
private Long materialId;
|
||||
|
||||
private BigDecimal number;
|
||||
|
||||
public Long getMaterialId() {
|
||||
return materialId;
|
||||
}
|
||||
|
||||
public void setMaterialId(Long materialId) {
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public BigDecimal getNumber() {
|
||||
return number;
|
||||
}
|
||||
|
||||
public void setNumber(BigDecimal number) {
|
||||
this.number = number;
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,9 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.AccountHead;
|
||||
import com.jsh.erp.datasource.entities.Material;
|
||||
import com.jsh.erp.datasource.entities.MaterialVo4Unit;
|
||||
import com.jsh.erp.datasource.entities.Unit;
|
||||
import com.jsh.erp.datasource.entities.*;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -110,6 +108,9 @@ public interface MaterialMapperEx {
|
||||
@Param("barCodeArray") String [] barCodeArray,
|
||||
@Param("mId") Long mId);
|
||||
|
||||
List<MaterialInitialStockWithMaterial> getInitialStockWithMaterial(
|
||||
@Param("depotList") List<Long> depotList);
|
||||
|
||||
List<MaterialVo4Unit> getListWithStock(
|
||||
@Param("depotList") List<Long> depotList,
|
||||
@Param("idList") List<Long> idList,
|
||||
|
||||
Reference in New Issue
Block a user