Browse Source

目检打点

develop
娄文智 1 year ago
parent
commit
4b9b7b3a72
2 changed files with 1 additions and 5 deletions
  1. +1
    -1
      services/qm/implments/DefectRecord.service.impl.go
  2. +0
    -4
      services/qm/implments/View.service.impl.go

+ 1
- 1
services/qm/implments/DefectRecord.service.impl.go View File

@ -282,7 +282,7 @@ func (impl *DefectRecordServiceImplement) Insert(user *global.User, entities mod
if info == nil {
return grmi.NewBusinessError("该记录不存在!")
}
if info.Status != common.WO_STATUS_FINISHED {
if info.Status != common.WO_STATUS_FINISHED && count <= 0 {
return grmi.NewBusinessError("该工单状态未完成或已取消!")
}


+ 0
- 4
services/qm/implments/View.service.impl.go View File

@ -12,7 +12,6 @@ import (
"LAPP_ACURA_MOM_BACKEND/grmi"
baseMeta "LAPP_ACURA_MOM_BACKEND/meta/base"
meta "LAPP_ACURA_MOM_BACKEND/meta/qm"
common "LAPP_ACURA_MOM_BACKEND/models/base"
model "LAPP_ACURA_MOM_BACKEND/models/qm"
"fmt"
"github.com/go-xorm/xorm"
@ -621,9 +620,6 @@ func (impl *ViewServiceImplement) ViewsOfArticle(user *global.User, orderId stri
return nil, grmi.NewBusinessError("序列订单查询错误!")
}
if statusInfo.Status != common.WO_STATUS_FINISHED {
return nil, grmi.NewBusinessError("该工单前序未完成!")
}
// 获取Article
articleDAO := dalOfBase.NewArticleDAO(session, user.PlantNr, user.UserId)
articleLi, err := articleDAO.Select([]grmi.Predicate{baseMeta.Article_ArtId.NewPredicate(grmi.Equal, artId)}, nil)


Loading…
Cancel
Save