瀏覽代碼

签约银行“BANK_BANKINFO” 返回按OrderIndex排序

gitmuchinfo 3 年之前
父節點
當前提交
0b8c9bb543
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/qhj.go

+ 1 - 1
models/qhj.go

@@ -970,7 +970,7 @@ func (r *QhjBankInfo) calc() {
 }
 
 func (r *QhjBankInfo) buildSql() string {
-	var sqlId utils.SQLVal = "SELECT t.BANKID,t.BANKNAME,t.CLEARBANKNO,t.STATUS,t.ORDERINDEX FROM BANK_BANKINFO t WHERE 1=1 and t.status=0"
+	var sqlId utils.SQLVal = "SELECT t.BANKID,t.BANKNAME,t.CLEARBANKNO,t.STATUS,t.ORDERINDEX FROM BANK_BANKINFO t WHERE 1=1 and t.status=0 order by t.orderindex"
 
 	return sqlId.String()
 }