Browse Source

异常检测

pull/256/head
DESKTOP-4672LME\Xu Tengfei 3 years ago
parent
commit
5af524df78
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      services/ap/implments/Balance.service.impl.go

+ 3
- 0
services/ap/implments/Balance.service.impl.go View File

@ -2142,6 +2142,9 @@ func (impl *BalanceServiceImplement) makeMpsGroup(data_ArticleStock []model_base
sort.Slice(finalArticleDemandList, func(i, j int) bool {
return finalArticleDemandList[i].DemandKey < finalArticleDemandList[j].DemandKey
})
if len(finalArticleDemandList) == 0{
return nil, nil, nil, grmi.NewBusinessError("物料没有对应主要资源数据"), true
}
// mps分组
mpsGroupInfo := &model.ArticleResourceMpsGroup{


Loading…
Cancel
Save