Parcourir la source

后端: bugfix-sql错误

baichengfei il y a 4 ans
Parent
commit
bb62e5fc2c

+ 2 - 2
src/dashoo.cn/backend/api/business/oilsupplier/suppliercertcommon/oilsuppliercertCheckStatus.go

@@ -102,11 +102,11 @@ func (s *OilSupplierCertCheckStatus) CheckOilSupplierCertIsNeedConcentrateAudit(
 
 func (s *OilSupplierCertCheckStatus) CheckOilSupplierCertHavePayed(certId string) bool {
 	var paymentInfoEntity paymentinfo.OilPaymentInfo
-	where := "where isPay='2' and SrcId='" + certId + "' and SupplierCertId='" + certId + "'"
+	where := " isPay='2' and SrcId='" + certId + "' and SupplierCertId='" + certId + "' "
 	s.GetEntityByWhere("OilPaymentInfo", where, &paymentInfoEntity)
 	if paymentInfoEntity.Id > 0 {
 		return true
 	} else {
 		return false
 	}
-}
+}