Quellcode durchsuchen

CREATETIME string `json:"createtime" xorm:"CREATETIME"` // 创建时间\申请时间

deng.yinping vor 2 Jahren
Ursprung
Commit
76137d2ecf
4 geänderte Dateien mit 9 neuen und 11 gelöschten Zeilen
  1. 2 2
      docs/docs.go
  2. 2 2
      docs/swagger.json
  3. 2 2
      docs/swagger.yaml
  4. 3 5
      models/guangzuan.go

+ 2 - 2
docs/docs.go

@@ -35004,8 +35004,8 @@ const docTemplate = `{
                     "description": "采购保证金值",
                     "type": "number"
                 },
-                "createtime2": {
-                    "description": "申请时间",
+                "createtime": {
+                    "description": "创建时间\\申请时间",
                     "type": "string"
                 },
                 "customername": {

+ 2 - 2
docs/swagger.json

@@ -34995,8 +34995,8 @@
                     "description": "采购保证金值",
                     "type": "number"
                 },
-                "createtime2": {
-                    "description": "申请时间",
+                "createtime": {
+                    "description": "创建时间\\申请时间",
                     "type": "string"
                 },
                 "customername": {

+ 2 - 2
docs/swagger.yaml

@@ -10800,8 +10800,8 @@ definitions:
       buymarginvalue:
         description: 采购保证金值
         type: number
-      createtime2:
-        description: 申请时间
+      createtime:
+        description: 创建时间\申请时间
         type: string
       customername:
         description: 企业名称(预售方\卖方)

+ 3 - 5
models/guangzuan.go

@@ -4199,8 +4199,7 @@ type GZPresell struct {
 	PLACEQTY           int64     `json:"placeqty" xorm:"PLACEQTY"`                                                   // 已配售量
 	MARKETID           int32     `json:"marketid" xorm:"MARKETID" form:"marketid" binding:"required"`                // 市场ID
 	SELLWRTRADEORDERID int64     `json:"sellwrtradeorderid" xorm:"SELLWRTRADEORDERID"`                               // 发行方卖委托单ID
-	CREATETIME         time.Time `json:"-" xorm:"CREATETIME"`                                                        // 创建时间
-	CREATETIME2        string    `json:"createtime2" xorm:"CREATETIME2"`                                             // 申请时间
+	CREATETIME         string    `json:"createtime" xorm:"CREATETIME"`                                               // 创建时间\申请时间
 	TRADEDATE          string    `json:"tradedate" xorm:"TRADEDATE"`                                                 // 交易日
 	LUCKYNUMS          string    `json:"luckynums" xorm:"LUCKYNUMS"`                                                 // 中签号码(按顺序逗号分隔)
 	LASTPRICE          float64   `json:"lastprice" xorm:"LASTPRICE"`                                                 // 实际价格(64)
@@ -4270,9 +4269,8 @@ func (r *GZPresell) buildSql() string {
 		pi.LUCKYQTY,
 		pi.PLACEQTY,
 		pi.MARKETID,
-		pi.SELLWRTRADEORDERID,
-		pi.CREATETIME,
-		to_char(pi.CREATETIME,'yyyy-mm-dd hh24:mi:ss') CREATETIME2,
+		pi.SELLWRTRADEORDERID,		
+		to_char(pi.CREATETIME,'yyyy-mm-dd hh24:mi:ss') CREATETIME,
 		pi.TRADEDATE,
 		pi.LUCKYNUMS,
 		pi.LASTPRICE,