소스 검색

1.查挂单增加有效期字段

zou.yingbin 4 년 전
부모
커밋
cc0f120c0e
4개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      docs/docs.go
  2. 4 0
      docs/swagger.json
  3. 3 0
      docs/swagger.yaml
  4. 2 0
      models/wrTrade2.go

+ 4 - 0
docs/docs.go

@@ -32062,6 +32062,10 @@ var doc = `{
                     "description": "用户ID",
                     "type": "integer"
                 },
+                "validtime": {
+                    "description": "挂牌有效期",
+                    "type": "string"
+                },
                 "warehouseid": {
                     "description": "仓库ID",
                     "type": "integer"

+ 4 - 0
docs/swagger.json

@@ -32046,6 +32046,10 @@
                     "description": "用户ID",
                     "type": "integer"
                 },
+                "validtime": {
+                    "description": "挂牌有效期",
+                    "type": "string"
+                },
                 "warehouseid": {
                     "description": "仓库ID",
                     "type": "integer"

+ 3 - 0
docs/swagger.yaml

@@ -14400,6 +14400,9 @@ definitions:
       userid:
         description: 用户ID
         type: integer
+      validtime:
+        description: 挂牌有效期
+        type: string
       warehouseid:
         description: 仓库ID
         type: integer

+ 2 - 0
models/wrTrade2.go

@@ -651,6 +651,7 @@ type WrOrderDetail struct {
 	ACCOUNTID          int64    `json:"accountid"  xorm:"'ACCOUNTID'"`                      // 交易账号(资金账号)
 	MATCHUSERID        int64    `json:"matchuserid"  xorm:"'MATCHUSERID'"`                  // 对手方id
 	MATCHUSERNAME      string   `json:"matchusername"  xorm:"'MATCHUSERNAME'"`              // 对手方名称(当ISSPECIFIED=1时,有值,指定朋友的名称)
+	VALIDTIME          string   `json:"validtime"  xorm:"'VALIDTIME'"`                      // 挂牌有效期
 	TANAME             string   `json:"taname"  xorm:"'TANAME'"`                            // 交易用户名称(资金账号名称)
 
 	Wr2FactorType `xorm:"extends"`
@@ -701,6 +702,7 @@ with tmp as
       on w.unitid = e.enumitemname
      and e.enumdiccode = 'goodsunit')
 select t.HASWR,
+       to_char(t.validtime,'yyyy-mm-dd hh24:mi:ss) validtime',
        to_char(t.WRTRADEORDERID) WRTRADEORDERID,
        t.TRADEDATE,
        t.DELIVERYMONTH,