Browse Source

Ferroalloy/QueryTHJPurchaseTransferDetail 增加出参

zhou.xiaoning 2 năm trước cách đây
mục cha
commit
3751d476a4
5 tập tin đã thay đổi với 18 bổ sung5 xóa
  1. 4 4
      controllers/guangzuan/tradeService.go
  2. 4 0
      docs/docs.go
  3. 4 0
      docs/swagger.json
  4. 3 0
      docs/swagger.yaml
  5. 3 1
      models/ferroalloy.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]

+ 4 - 0
docs/docs.go

@@ -44315,6 +44315,10 @@ const docTemplate = `{
         "models.THJPurchaseTradeDetail_Goodsinfo": {
             "type": "object",
             "properties": {
+                "minivalue": {
+                    "description": "最小变动值",
+                    "type": "integer"
+                },
                 "pictureurls": {
                     "description": "详情图片(逗号分隔)",
                     "type": "string"

+ 4 - 0
docs/swagger.json

@@ -44306,6 +44306,10 @@
         "models.THJPurchaseTradeDetail_Goodsinfo": {
             "type": "object",
             "properties": {
+                "minivalue": {
+                    "description": "最小变动值",
+                    "type": "integer"
+                },
                 "pictureurls": {
                     "description": "详情图片(逗号分隔)",
                     "type": "string"

+ 3 - 0
docs/swagger.yaml

@@ -18577,6 +18577,9 @@ definitions:
     type: object
   models.THJPurchaseTradeDetail_Goodsinfo:
     properties:
+      minivalue:
+        description: 最小变动值
+        type: integer
       pictureurls:
         description: 详情图片(逗号分隔)
         type: string

+ 3 - 1
models/ferroalloy.go

@@ -1146,6 +1146,7 @@ type THJPurchaseTradeDetail_Goodsinfo struct {
 	PICTUREURLS    string `json:"pictureurls" xorm:"PICTUREURLS"`                             // 详情图片(逗号分隔)
 	REFGOODSID     int64  `json:"refgoodsid" xorm:"REFGOODSID"`                               // 参考商品ID
 	REFGOODSCODE   string `json:"refgoodscode" xorm:"REFGOODSCODE"`                           // 参考商品代码
+	MINIVALUE      int64  `json:"minivalue" xorm:"MINIVALUE"`                                 // 最小变动值
 }
 
 type THJPurchaseTradeDetail_Date struct {
@@ -1202,7 +1203,8 @@ func (r *THJPurchaseTradeDetailReq) GetData() (rsp *THJPurchaseTradeDetailRsp, e
 			t.UNITID        ,
 			t.PICTUREURLS   ,
 			t.REFGOODSID    ,
-			t.REFGOODSCODE
+			t.REFGOODSCODE,
+			t.MINIVALUE
 		from wrstandard t
 		where t.wrstandardid = %v
 	`, r.WRSTANDARDID)