解决库存状态统计的bug
This commit is contained in:
@@ -298,8 +298,10 @@ public class DepotItemController {
|
||||
item.put("thisSum", thisSum);
|
||||
for(MaterialExtend me:meList) {
|
||||
if(me.getMaterialId().longValue() == diEx.getMId().longValue()) {
|
||||
item.put("UnitPrice", me.getPurchaseDecimal());
|
||||
item.put("thisAllPrice", thisSum.multiply(me.getPurchaseDecimal()));
|
||||
if(me.getPurchaseDecimal()!=null) {
|
||||
item.put("UnitPrice", me.getPurchaseDecimal());
|
||||
item.put("thisAllPrice", thisSum.multiply(me.getPurchaseDecimal()));
|
||||
}
|
||||
}
|
||||
}
|
||||
dataArray.add(item);
|
||||
|
||||
@@ -117,8 +117,6 @@ public interface DepotHeadMapperEx {
|
||||
|
||||
List<DepotHead> getDepotHeadListByHandsPersonIds(@Param("handsPersonIds") String[] handsPersonIds);
|
||||
|
||||
List<DepotHead> getDepotHeadListByDepotIds(@Param("depotIds") String[] depotIds);
|
||||
|
||||
BigDecimal getBuyAndSaleStatistics(
|
||||
@Param("type") String type,
|
||||
@Param("subType") String subType,
|
||||
|
||||
@@ -238,21 +238,6 @@ public class DepotService {
|
||||
}
|
||||
String [] idArray=ids.split(",");
|
||||
|
||||
/**
|
||||
* 校验单据主表 jsh_depothead
|
||||
* */
|
||||
List<DepotHead> depotHeadList=null;
|
||||
try{
|
||||
depotHeadList= depotHeadMapperEx.getDepotHeadListByDepotIds(idArray);
|
||||
}catch(Exception e){
|
||||
JshException.readFail(logger, e);
|
||||
}
|
||||
if(depotHeadList!=null&&depotHeadList.size()>0){
|
||||
logger.error("异常码[{}],异常提示[{}],参数,DepotIds[{}]",
|
||||
ExceptionConstants.DELETE_FORCE_CONFIRM_CODE,ExceptionConstants.DELETE_FORCE_CONFIRM_MSG,ids);
|
||||
throw new BusinessRunTimeException(ExceptionConstants.DELETE_FORCE_CONFIRM_CODE,
|
||||
ExceptionConstants.DELETE_FORCE_CONFIRM_MSG);
|
||||
}
|
||||
/**
|
||||
* 校验单据子表 jsh_depotitem
|
||||
* */
|
||||
|
||||
Reference in New Issue
Block a user