muchinfo 1 vuosi sitten
vanhempi
commit
f69d27f836
4 muutettua tiedostoa jossa 10 lisäystä ja 6 poistoa
  1. 3 0
      README.md
  2. 4 4
      controllers/guangzuan/tradeService.go
  3. 1 0
      models/account.go
  4. 2 2
      pb/generate_go.bat

+ 3 - 0
README.md

@@ -0,0 +1,3 @@
+# MTP20_IF
+
+MTP2.0 Go 查询服务

+ 4 - 4
controllers/guangzuan/tradeService.go

@@ -18,8 +18,8 @@ import (
 // @Security Group
 // @Param    userid   query    int    true  "用户ID"
 // @Param    executestatus query    int false "执行状态 - 1:未生效 2:进行中 3:已结束"
-// @Param    page     query    int    false "页码"
-// @Param    pagesize query    int    false "每页条数"
+// @Param    page          query    int false "页码"
+// @Param    pagesize      query    int false "每页条数"
 // @Success  200           {array}  models.GzcjjcorderM
 // @Failure  500     {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrder [get]
@@ -39,8 +39,8 @@ func QueryGZCJJCOrder(c *gin.Context) {
 // @Security Group
 // @Param    userid        query    int true  "用户ID"
 // @Param    orderid  query    string false "单据ID"
-// @Param    page          query    int false "页码"
-// @Param    pagesize      query    int false "每页条数"
+// @Param    page     query    int    false "页码"
+// @Param    pagesize query    int    false "每页条数"
 // @Success  200      {array}  models.GzcjjcorderdetailM
 // @Failure  500           {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrderDetail [get]

+ 1 - 0
models/account.go

@@ -1499,6 +1499,7 @@ func (r *Gtwithholddepositapply) buildSql() string {
 		sqlId.JoinFormat(" AND (t.trandate >= '%v' AND t.trandate <= '%v')", r.BeginDate, r.EndDate)
 	}
 	sqlId.AndEx("t.billresult", r.BILLRESULT, r.BILLRESULT != "")
+	sqlId.OrderByDesc("t.createtime")
 
 	sqlId.Page(r.Page, r.PageSize)
 	return sqlId.String()

+ 2 - 2
pb/generate_go.bat

@@ -1,2 +1,2 @@
-protoc.exe --proto_path=./ -I=./ --go_out=./  *.proto
-pause
+protoc.exe --proto_path=./ -I=./ --go_out=./  *.proto
+pause