Преглед изворни кода

ThjpurchasetransferDetail:添加"TRANSFERQTY"

gitmuchinfo пре 3 година
родитељ
комит
1fccee06db
4 измењених фајлова са 16 додато и 1 уклоњено
  1. 4 0
      docs/docs.go
  2. 4 0
      docs/swagger.json
  3. 3 0
      docs/swagger.yaml
  4. 5 1
      models/ferroalloy.go

+ 4 - 0
docs/docs.go

@@ -44599,6 +44599,10 @@ const docTemplate = `{
                     "description": "转让价格",
                     "type": "number"
                 },
+                "transferqty": {
+                    "description": "转让数量",
+                    "type": "integer"
+                },
                 "transferstatus": {
                     "description": "转让状态 - 1:挂牌中 2:已撤销 3:处理中 4:已转让",
                     "type": "integer"

+ 4 - 0
docs/swagger.json

@@ -44590,6 +44590,10 @@
                     "description": "转让价格",
                     "type": "number"
                 },
+                "transferqty": {
+                    "description": "转让数量",
+                    "type": "integer"
+                },
                 "transferstatus": {
                     "description": "转让状态 - 1:挂牌中 2:已撤销 3:处理中 4:已转让",
                     "type": "integer"

+ 3 - 0
docs/swagger.yaml

@@ -19047,6 +19047,9 @@ definitions:
       transferprice:
         description: 转让价格
         type: number
+      transferqty:
+        description: 转让数量
+        type: integer
       transferstatus:
         description: 转让状态 - 1:挂牌中 2:已撤销 3:处理中 4:已转让
         type: integer

+ 5 - 1
models/ferroalloy.go

@@ -1346,6 +1346,9 @@ type ThjpurchasetransferDetail struct {
 	WAREHOUSENAME    string  `json:"warehousename" xorm:"WAREHOUSENAME"`              // 仓库名称
 	BUYUSERNAME      string  `json:"buyusername" xorm:"BUYUSERNAME"`                  // 受让人
 	SELLUSERNAME     string  `json:"sellusername" xorm:"SELLUSERNAME"`                // 转让人
+
+	TRANSFERQTY int32 `json:"transferqty" xorm:"TRANSFERQTY"` // 转让数量
+
 }
 
 func (r *ThjpurchasetransferDetail) calc() {
@@ -1368,7 +1371,8 @@ func (r *ThjpurchasetransferDetail) buildSql() string {
 		wr.WRSTANDARDNAME,
 		wh.WAREHOUSENAME,
 		u1.accountname BUYUSERNAME,
-		u2.accountname SELLUSERNAME
+		u2.accountname SELLUSERNAME,
+		t.TRANSFERQTY
 	from THJ_PurchaseTransfer t 
 	inner join THJ_PurchaseTradeDetail d on d.WRTRADEDETAILID = t.WRTRADEDETAILID 
 	left join wrstandard wr on wr.wrstandardid = t.wrtradedetailid