Browse Source

添加workplacenr的映射

pull/66/head
zhangxin 3 years ago
parent
commit
ba75ea1494
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      services/base/implments/OPCBasicComInfo.service.impl.go
  2. +1
    -0
      services/base/implments/TightenWrenchInfo.service.impl.go

+ 2
- 0
services/base/implments/OPCBasicComInfo.service.impl.go View File

@ -151,6 +151,7 @@ func (impl *OPCBasicComInfoServiceImplement) InsertOne(user *models.Usertab, ent
rule.StepDesc = entity.StepDesc
rule.OperationId = entity.OperationId
rule.ProjectId = entity.ProjectId
rule.WorkPlaceNr = entity.WorkPlaceNr
if rule.DBlockValueType == model.DBlockValueType_VALUE_MAP {
if len(rule.OPCComDetailRuleLi) == 0 {
_ = session.Rollback()
@ -167,6 +168,7 @@ func (impl *OPCBasicComInfoServiceImplement) InsertOne(user *models.Usertab, ent
detail.StepDesc = rule.StepDesc
detail.OperationId = rule.OperationId
detail.ProjectId = rule.ProjectId
detail.WorkPlaceNr = rule.WorkPlaceNr
rule.OPCComDetailRuleLi[index] = detail
}
err = detailDao.Insert(&rule.OPCComDetailRuleLi)


+ 1
- 0
services/base/implments/TightenWrenchInfo.service.impl.go View File

@ -158,6 +158,7 @@ func (impl *TightenWrenchInfoServiceImplement) InsertOne(user *models.Usertab, e
rule.StepDesc = entity.StepDesc
rule.OperationId = entity.OperationId
rule.ProjectId = entity.ProjectId
rule.WorkPlaceNr = entity.WorkPlaceNr
ruleLi[index] = rule
}
err = ruleDao.Insert(&ruleLi)


Loading…
Cancel
Save