Browse Source

Merge pull request 'feature_mps_2' (#256) from feature_mps_2 into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_CHEERSSON_BACKEND/pulls/256
pull/257/head
yehongyang 3 years ago
parent
commit
ca95725635
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