作者 tangxvhui

bug 修复

... ... @@ -6,6 +6,7 @@ import (
"oppmg/models"
"oppmg/protocol"
"oppmg/utils"
"time"
)
//GetChanceCheckResultInfo 获取机会自查内容筛选详情
... ... @@ -243,7 +244,8 @@ func ChanceCheckResultPass(chanceId int64, companyId int64) error {
return protocol.NewErrWithMessage("1")
}
chanceData.CheckResultStatus = models.CheckResultStatusPass
err = models.UpdateChanceById(chanceData, []string{"CheckResultStatus"})
chanceData.CheckTime = time.Now()
err = models.UpdateChanceById(chanceData, []string{"CheckResultStatus", "CheckTime"})
if err != nil {
log.Error("更新chance数据失败,err;%s", err)
}
... ... @@ -265,7 +267,8 @@ func ChanceCheckResultNoPass(chanceId int64, companyId int64) error {
return protocol.NewErrWithMessage("1")
}
chanceData.CheckResultStatus = models.CheckResultStatusNOPass
err = models.UpdateChanceById(chanceData, []string{"CheckResultStatus"})
chanceData.CheckTime = time.Now()
err = models.UpdateChanceById(chanceData, []string{"CheckResultStatus", "CheckTime"})
if err != nil {
log.Error("更新chance数据失败,err;%s", err)
}
... ...