Преглед изворни кода

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 {