|
@@ -807,9 +807,9 @@ func (d *ApproverDao) BackHandlerWithId(auditType string, id int, uid int, times
|
|
|
if curAuditor.Progress >= 1 && auditor.Progress == 0 {
|
|
|
var sql string
|
|
|
if auditType == "safe" {
|
|
|
- sql = "update cm_tree set safe_rectification = safe_rectification_in + 1 and safe_rectification_in = if(safe_rectification_in >= 1, safe_rectification_in - 1, 0) where bidseciont_id = ?"
|
|
|
+ sql = "update cm_tree set safe_rectification = safe_rectification_in + 1 and safe_rectification_in = if(safe_rectification_in >= 1, safe_rectification_in - 1, 0) where bidsection_id = ?"
|
|
|
} else {
|
|
|
- sql = "update cm_tree set quality_rectification = quality_rectification_in + 1 and quality_rectification_in = if(quality_rectification_in >= 1, quality_rectification_in - 1, 0) where bidseciont_id = ?"
|
|
|
+ sql = "update cm_tree set quality_rectification = quality_rectification_in + 1 and quality_rectification_in = if(quality_rectification_in >= 1, quality_rectification_in - 1, 0) where bidsection_id = ?"
|
|
|
}
|
|
|
_, err = session.Exec(sql, auditor.BidsectionId)
|
|
|
if err != nil {
|