修复sql语句错误

This commit is contained in:
chfei committed 2026-08-27 17:17:06 +08:00
1 parent 3e80ac6ac0
commit ba5cb7b839
1 file changed
+1 -2
+1 -2
View File
@@ -592,8 +592,7 @@ namespace KJD_Web.BLL.WXXD
return 0;
// 2. 该oem所有账户的未结算流水,按id升序
sql = "SELECT * FROM wxxd.user_payment_record WHERE user_name IN ('" + string.Join("','", userLst) + "')" +
" AND type IN (20,23,26,16,31) AND settlement=0 AND is_deleted=0 ORDER BY id ASC";
sql = "SELECT * FROM `wxxd`.`user_payment_record` WHERE user_name IN ('" + string.Join("','", userLst) + "') AND type IN (20,23,26,16,31) AND settlement=0 AND is_deleted=0 ORDER BY id ASC";
var flowDt = mySql.ExecuteDataTable(sql);
if (!string.IsNullOrEmpty(mySql.Message) || flowDt == null || flowDt.Rows.Count == 0)
return 0;