From 329095b4c501351cda9316f26d1e617b1b0bc3ec Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 09 四月 2024 15:11:27 +0800
Subject: [PATCH] 纤度检验表返回设备登记表详情

---
 docs/swagger.yaml |  374 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 372 insertions(+), 2 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 2370fa4..299d5d9 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -6,13 +6,33 @@
     - 3
     type: integer
     x-enum-comments:
-      AllCar: 鍏ㄨ溅
+      AllCar: 鍏ㄨ溅缁撴潫
       LeftHalfCar: 宸﹀崐杞�
       RightHalfCar: 鍙冲崐杞�
     x-enum-varnames:
     - LeftHalfCar
     - RightHalfCar
     - AllCar
+  constvar.CheckItem:
+    enum:
+    - 1
+    - 2
+    - 3
+    - 4
+    - 5
+    type: integer
+    x-enum-comments:
+      CheckItemCleanliness: 娓呮磥鍒�
+      CheckItemDeviation: 绾ゅ害鍋忓樊
+      CheckItemMaxDeviation: 鏈�澶у亸宸�
+      CheckItemPurity: 娲佸噣鍒�
+      CheckItemTwiceChange: 浜屾鍙樺寲
+    x-enum-varnames:
+    - CheckItemDeviation
+    - CheckItemTwiceChange
+    - CheckItemCleanliness
+    - CheckItemPurity
+    - CheckItemMaxDeviation
   constvar.DictType:
     enum:
     - 0
@@ -59,6 +79,98 @@
       remark:
         description: 澶囨敞
         type: string
+      updatedAt:
+        type: string
+    type: object
+  models.FinenessCheck:
+    properties:
+      averageFineness:
+        description: 骞冲潎绾ゅ害
+        type: number
+      cleanliness:
+        description: 娓呮磥搴�
+        type: number
+      createdAt:
+        type: string
+      deletedAt:
+        $ref: '#/definitions/gorm.DeletedAt'
+      deviation:
+        description: 鍋忓樊
+        type: number
+      finenessGrade:
+        description: 绾ゅ害绛夌骇
+        type: string
+      finenessRegister:
+        allOf:
+        - $ref: '#/definitions/models.FinenessRegister'
+        description: 绾ゅ害鐧昏
+      finenessRegisterID:
+        description: 绾ゅ害鐧昏琛↖D
+        type: integer
+      id:
+        type: integer
+      inspector:
+        description: 妫�楠屽憳
+        type: string
+      marketProcessOrderNumber:
+        description: 搴勫彛宸ヨ壓鍗曠紪鍙�
+        type: string
+      measureFineness:
+        description: 鍏噺绾ゅ害
+        type: number
+      purity:
+        description: 娲佸噣搴�
+        type: number
+      totalDeviation:
+        description: 鎬诲樊
+        type: number
+      twiceChange:
+        description: 浜屽害鍙樺寲
+        type: number
+      updatedAt:
+        type: string
+    type: object
+  models.FinenessCheckItem:
+    properties:
+      cleanliness:
+        description: 娓呮磥搴�
+        type: number
+      createdAt:
+        type: string
+      deletedAt:
+        $ref: '#/definitions/gorm.DeletedAt'
+      deviation:
+        description: 鍋忓樊
+        type: number
+      finenessGrade:
+        description: 绾ゅ害绛夌骇
+        type: string
+      finenessRegisterID:
+        description: 绾ゅ害鐧昏琛↖D
+        type: integer
+      finenessRoundingItems:
+        description: 绾ゅ害鍒楄〃
+        items:
+          $ref: '#/definitions/models.FinenessRoundingItem'
+        type: array
+      id:
+        type: integer
+      position:
+        description: FinenessCheckID       uint                    `gorm:"not null;comment:绾ゅ害妫�楠岃〃ID"
+          json:"finenessCheckID"`    //绾ゅ害妫�楠岃〃ID
+        type: integer
+      purity:
+        description: 娲佸噣搴�
+        type: number
+      remark:
+        description: 澶囨敞
+        type: string
+      totalDeviation:
+        description: 鎬诲樊
+        type: number
+      twiceChange:
+        description: 浜屽害鍙樺寲
+        type: number
       updatedAt:
         type: string
     type: object
@@ -114,6 +226,9 @@
       number:
         description: 缂栧彿
         type: string
+      position:
+        description: 鏈�鍚庝竴涓溅鍙�
+        type: integer
       spec:
         description: 瑙勬牸
         type: string
@@ -128,7 +243,16 @@
         type: string
       workshopGroup:
         description: 杞︾粍
-        type: string
+        type: integer
+    type: object
+  models.FinenessRoundingItem:
+    properties:
+      fineness:
+        description: 绾ゅ害
+        type: number
+      quantity:
+        description: 鏁伴噺
+        type: integer
     type: object
   models.RawSilkPriceStandard:
     properties:
@@ -215,6 +339,9 @@
       number:
         description: 缂栧彿
         type: string
+      position:
+        description: 鏈�鍚庝竴涓溅鍙�
+        type: integer
       spec:
         description: 瑙勬牸
         type: string
@@ -229,7 +356,19 @@
         type: integer
       workshopGroup:
         description: 杞︾粍
+        type: integer
+    type: object
+  request.DynamicsRank:
+    properties:
+      rankName:
+        description: 绛夌骇鍚嶇О
         type: string
+      rankProp:
+        description: 鍓嶇紑key
+        type: string
+      rankValue:
+        description: 绛夌骇鍊�
+        type: number
     type: object
   request.FinenessItem:
     properties:
@@ -245,6 +384,42 @@
       sum:
         description: 鍚堣
         type: number
+    type: object
+  request.RankStandard:
+    properties:
+      checkItem:
+        allOf:
+        - $ref: '#/definitions/constvar.CheckItem'
+        description: 妫�鏌ラ」鐩悕绉�
+      dynamicsRanks:
+        items:
+          $ref: '#/definitions/request.DynamicsRank'
+        type: array
+      endFineness:
+        description: 缁撴潫绾ゅ害
+        type: number
+      lineId:
+        description: 琛宨d
+        type: string
+      rankA:
+        description: 閲庣氦
+        type: number
+      rankB:
+        description: 澶ч噹
+        type: number
+      rankC:
+        description: 鐗归噹
+        type: number
+      startFineness:
+        description: 寮�濮嬬氦搴�
+        type: number
+    type: object
+  request.SaveRankStandard:
+    properties:
+      rankStandard:
+        items:
+          $ref: '#/definitions/request.RankStandard'
+        type: array
     type: object
   request.UpdateDict:
     properties:
@@ -263,6 +438,56 @@
       remark:
         description: 澶囨敞
         type: string
+    type: object
+  response.DynamicsRank:
+    properties:
+      rankName:
+        description: 绛夌骇鍚嶇О
+        type: string
+      rankProp:
+        description: 鍓嶇紑key
+        type: string
+      rankValue:
+        description: 绛夌骇鍊�
+        type: number
+    type: object
+  response.FinenessCheckInfo:
+    properties:
+      info:
+        $ref: '#/definitions/models.FinenessCheck'
+      items:
+        items:
+          $ref: '#/definitions/models.FinenessCheckItem'
+        type: array
+    type: object
+  response.RankStandard:
+    properties:
+      checkItem:
+        allOf:
+        - $ref: '#/definitions/constvar.CheckItem'
+        description: 妫�鏌ラ」鐩悕绉�
+      dynamicsRanks:
+        items:
+          $ref: '#/definitions/response.DynamicsRank'
+        type: array
+      endFineness:
+        description: 缁撴潫绾ゅ害
+        type: number
+      lineId:
+        description: 琛宨d
+        type: string
+      rankA:
+        description: 閲庣氦
+        type: number
+      rankB:
+        description: 澶ч噹
+        type: number
+      rankC:
+        description: 鐗归噹
+        type: number
+      startFineness:
+        description: 寮�濮嬬氦搴�
+        type: number
     type: object
   util.Response:
     properties:
@@ -288,9 +513,101 @@
 info:
   contact: {}
 paths:
+  /api-jl/v1/fineness/check:
+    get:
+      parameters:
+      - in: query
+        name: keyword
+        type: string
+      - description: 椤电爜
+        in: query
+        name: page
+        type: integer
+      - description: 姣忛〉澶у皬
+        in: query
+        name: pageSize
+        type: integer
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/util.ResponseList'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/models.FinenessCheck'
+                  type: array
+              type: object
+      summary: 绾ゅ害妫�楠屽垪琛�
+      tags:
+      - 绾ゅ害妫�楠�
+    post:
+      parameters:
+      - description: 瀛楀吀淇℃伅
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/models.FinenessCheck'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 绾ゅ害妫�楠屼慨鏀�
+      tags:
+      - 绾ゅ害妫�楠�
+  /api-jl/v1/fineness/check/{id}:
+    delete:
+      parameters:
+      - description: 瀛楀吀淇℃伅
+        in: path
+        name: id
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 绾ゅ害妫�楠屽垹闄�
+      tags:
+      - 绾ゅ害妫�楠�
+    get:
+      parameters:
+      - description: 瀛楀吀淇℃伅
+        in: path
+        name: id
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/util.ResponseList'
+            - properties:
+                data:
+                  $ref: '#/definitions/response.FinenessCheckInfo'
+              type: object
+      summary: 绾ゅ害妫�楠岃鎯�
+      tags:
+      - 绾ゅ害妫�楠�
   /api-jl/v1/fineness/register:
     get:
       parameters:
+      - in: query
+        name: keyword
+        type: string
       - description: 椤电爜
         in: query
         name: page
@@ -324,6 +641,11 @@
         required: true
         schema:
           $ref: '#/definitions/request.AddFinenessRegister'
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
       produces:
       - application/json
       responses:
@@ -542,9 +864,33 @@
       summary: 鑾峰彇鐢熶笣瀹氫环鏍囧噯
       tags:
       - 绯荤粺璁剧疆/鐢熶笣瀹氫环鏍囧噯
+  /api-jl/v1/system/getRankStandard:
+    get:
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/util.ResponseList'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/response.RankStandard'
+                  type: array
+              type: object
+      summary: 鑾峰彇鐢熶笣瀹氱骇鏍囧噯
+      tags:
+      - 绯荤粺璁剧疆/鐢熶笣瀹氱骇鏍囧噯
   /api-jl/v1/system/getWorkshopManageList:
     get:
       parameters:
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
       - in: query
         name: keyWord
         type: string
@@ -592,6 +938,25 @@
       summary: 淇濆瓨鐢熶笣瀹氫环鏍囧噯
       tags:
       - 绯荤粺璁剧疆/鐢熶笣瀹氫环鏍囧噯
+  /api-jl/v1/system/saveRankStandard:
+    post:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.SaveRankStandard'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 淇濆瓨鐢熶笣瀹氱骇鏍囧噯
+      tags:
+      - 绯荤粺璁剧疆/鐢熶笣瀹氱骇鏍囧噯
   /api-jl/v1/system/saveWorkshopManage:
     post:
       parameters:
@@ -601,6 +966,11 @@
         required: true
         schema:
           $ref: '#/definitions/models.WorkshopManage'
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
       produces:
       - application/json
       responses:

--
Gitblit v1.8.0