作者 yangfu

修改 机会审核/机会详情

... ... @@ -163,6 +163,9 @@ func (s SelfChecks) Compare(dst string) (rspChecks SelfChecks, err error) {
for i := range s {
c := s[i]
if v, ok := mapChecks[c.Key()]; ok {
if len(c.Answer) == 0 {
continue
}
//回答不一致
if !strings.EqualFold(c.Answer, v.Answer) {
rspChecks = append(rspChecks, c)
... ...
... ... @@ -552,6 +552,9 @@ func ChanceApproveProcess(header *protocol.RequestHeader, chance *models.Chance)
Name: process.UserName,
}
utils.JsonUnmarshal(process.SelfChecks, &item.SelfChecks)
if len(item.SelfChecks) > 0 {
item.SelfChecks.ClearEmpty()
}
if item.ApproveType == protocol.AuditBySpecailUser {
item.ApproveType = protocol.AuditByUser
}
... ...