瀏覽代碼

Merge branch 'master' of http://192.168.1.41:3000/caipin/construction_management

caipin 4 年之前
父節點
當前提交
af936d5c42
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dao/approver_dao.go

+ 2 - 2
dao/approver_dao.go

@@ -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 {