合并商品的库存到商品列表接口一起查询

This commit is contained in:
季圣华
2019-06-16 21:38:22 +08:00
parent 27c58a8d3c
commit d9627ac020
8 changed files with 36 additions and 206 deletions

View File

@@ -290,8 +290,8 @@ public class DepotItemService {
return depotItemMapper.updateByPrimaryKeySelective(depotItem);
}
public int findByTypeAndMaterialId(String type, Long mId) throws Exception{
int result =0;
public Long findByTypeAndMaterialId(String type, Long mId) throws Exception{
Long result = 0l;
try{
if(type.equals(TYPE)) {
result= depotItemMapperEx.findByTypeAndMaterialIdIn(mId);