Kaynağa Gözat

QueryTHJPurchaseTransferOrder:添加返回字段
pointflag, pointprice,pointincome

deng.yinping 2 yıl önce
ebeveyn
işleme
d72cb0ffc4
4 değiştirilmiş dosya ile 41 ekleme ve 1 silme
  1. 12 0
      docs/docs.go
  2. 12 0
      docs/swagger.json
  3. 9 0
      docs/swagger.yaml
  4. 8 1
      models/ferroalloy.go

+ 12 - 0
docs/docs.go

@@ -47535,6 +47535,18 @@ const docTemplate = `{
                     "description": "买方已付定金(预付款)",
                     "type": "number"
                 },
+                "pointflag": {
+                    "description": "是否已点价",
+                    "type": "boolean"
+                },
+                "pointincome": {
+                    "description": "点价总收益",
+                    "type": "number"
+                },
+                "pointprice": {
+                    "description": "已点价格",
+                    "type": "number"
+                },
                 "presaleapplyid": {
                     "description": "预售申请ID(184+Unix秒时间戳(10位)+xxxxxx)",
                     "type": "string"

+ 12 - 0
docs/swagger.json

@@ -47526,6 +47526,18 @@
                     "description": "买方已付定金(预付款)",
                     "type": "number"
                 },
+                "pointflag": {
+                    "description": "是否已点价",
+                    "type": "boolean"
+                },
+                "pointincome": {
+                    "description": "点价总收益",
+                    "type": "number"
+                },
+                "pointprice": {
+                    "description": "已点价格",
+                    "type": "number"
+                },
                 "presaleapplyid": {
                     "description": "预售申请ID(184+Unix秒时间戳(10位)+xxxxxx)",
                     "type": "string"

+ 9 - 0
docs/swagger.yaml

@@ -20243,6 +20243,15 @@ definitions:
       payeddeposit:
         description: 买方已付定金(预付款)
         type: number
+      pointflag:
+        description: 是否已点价
+        type: boolean
+      pointincome:
+        description: 点价总收益
+        type: number
+      pointprice:
+        description: 已点价格
+        type: number
       presaleapplyid:
         description: 预售申请ID(184+Unix秒时间戳(10位)+xxxxxx)
         type: string

+ 8 - 1
models/ferroalloy.go

@@ -1346,6 +1346,10 @@ type Thjpurchasetransfer struct {
 
 	PRESALESTATUS int32 `json:"presalestatus" xorm:"PRESALESTATUS"` // 预售状态 1:未开始 2:进行中 3:已结束 4:已关闭 5:处理中 6::处理失败 7:已完成
 
+	POINTFLAG   bool    `json:"pointflag" xorm:"POINTFLAG"`     // 是否已点价
+	POINTPRICE  float64 `json:"pointprice" xorm:"POINTPRICE"`   // 已点价格
+	POINTINCOME float64 `json:"pointincome" xorm:"POINTINCOME"` // 点价总收益
+
 	PageEx `xorm:"extends"` // 页码信息
 }
 
@@ -1389,7 +1393,10 @@ func (r *Thjpurchasetransfer) buildSql() string {
 		pi.PRESALESTATUS,
 		to_char(t.CREATETIME, 'yyyy-MM-dd hh24:mi:ss') CREATETIME,
 		to_char(t.TRANSFERTRADETIME, 'yyyy-MM-dd hh24:mi:ss') TRANSFERTRADETIME,
-		%v ORDERTYPE
+		%v ORDERTYPE,
+		p.POINTFLAG, 
+        p.POINTPRICE,
+        p.POINTINCOME
 	from THJ_PurchaseTransfer t
 	inner join THJ_PurchaseTradeDetail p on t.wrtradedetailid = p.wrtradedetailid
 	inner join wr_presaleinfo pi on pi.presaleapplyid = t.presaleapplyid