作者 tangxvhui

bug 修复

... ... @@ -478,7 +478,9 @@ func checkSelfCheckData(data []protocol.TemplateSelfCheck) error {
func auditFlowMustActionTypeOr(auditflow protocol.AuditFlowConfig) error {
for _, v := range auditflow.ProcessConfig {
if v.ApproveType == models.AuditByUser && len(v.ToUser) == 1 {
continue
}
if v.AcitonType != models.ActionTypeOr {
return protocol.NewErrWithMessage("10129")
}
... ...
... ... @@ -254,7 +254,8 @@ func editSelfCheckData(templateId int64, data []protocol.TemplateSelfCheck, om o
if m.Id == 0 {
m.Id = idworker.NextId()
newSelfCheckData = append(newSelfCheckData, m)
} else if _, ok := oldSelfCheckMap[m.Id]; ok {
}
if _, ok := oldSelfCheckMap[m.Id]; ok {
updateSelfCheck = append(updateSelfCheck, m)
delete(oldSelfCheckMap, m.Id)
}
... ... @@ -271,7 +272,8 @@ func editSelfCheckData(templateId int64, data []protocol.TemplateSelfCheck, om o
if mm.Id == 0 {
mm.Id = idworker.NextId()
newSelfCheckData = append(newSelfCheckData, mm)
} else if _, ok := oldSelfCheckMap[m.Id]; ok {
}
if _, ok := oldSelfCheckMap[m.Id]; ok {
updateSelfCheck = append(updateSelfCheck, mm)
delete(oldSelfCheckMap, mm.Id)
}
... ...