# 报修待办--办结处理

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /comm-c2-repairsetting/repair-to-do/finish:
    put:
      summary: 报修待办--办结处理
      deprecated: false
      description: ''
      operationId: modifyStateToFinish
      tags:
        - c2/报修管理/报修待办
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RepairToDoUpdateToFinishDTO'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StringJsonVO'
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: c2/报修管理/报修待办
      x-apifox-status: integrating
      x-run-in-apifox: https://app.apifox.com/web/project/6386631/apis/api-305863957-run
components:
  schemas:
    RepairToDoUpdateToFinishDTO:
      type: object
      properties:
        repair_id:
          type: string
          description: 报修单id
          default: '822024021727861281'
        is_material:
          type: string
          description: 是否使用材料
          default: '1'
        materials:
          type: array
          description: 商品材料列表
          default:
            - res_id: '852025060109790015'
              material_name: 电池
              material_count: 1
              material_unit: 个
              material_specification: 1000mAh
              material_price: 10
          items:
            $ref: '#/components/schemas/RepairMaterialItemDTO'
        context:
          type: string
          description: 办结处理意见
          default: 处理意见：我要办结
        repair_before_photo_path:
          type: array
          description: 维修前照片路径
          default:
            - D:\computer practice\imgs\repair_before_1.jpg
            - D:\computer practice\imgs\repair_before_2.jpg
            - D:\computer practice\imgs\repair_before_3.jpg
          items:
            type: string
        repair_after_photo_path:
          type: array
          description: 维修后照片路径
          default:
            - D:\computer practice\imgs\repair_after_1.jpg
            - D:\computer practice\imgs\repair_after_2.jpg
            - D:\computer practice\imgs\repair_after_3.jpg
          items:
            type: string
        room_id:
          type: string
          description: 房间ID (如果是房屋报修则需要房间ID，否则不需要)
          default: '102025052701090065'
        pay_type:
          type: string
          description: 支付方式 (四种里面选一个 现金 微信转账 微信公众号 支付宝 我在后端写了判断)
          default: 微信转账
        total_price:
          type: string
          description: 总价(如果是房屋报修则需要总价，否则不需要)
          default: '2'
      required:
        - repair_id
        - is_material
        - context
        - repair_before_photo_path
        - repair_after_photo_path
      x-apifox-orders:
        - repair_id
        - is_material
        - materials
        - context
        - repair_before_photo_path
        - repair_after_photo_path
        - room_id
        - pay_type
        - total_price
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    RepairMaterialItemDTO:
      type: object
      properties:
        res_id:
          type: string
          description: 商品ID(先检查是否需要用料，如有需要，则给出用料ID)
          default: ''
        material_name:
          type: string
          description: 商品材料名称
          default: ''
        material_count:
          type: integer
          description: 商品材料数量
          default: 1
          minimum: -2147483648
          maximum: 2147483647
        material_unit:
          type: string
          description: 商品材料单位 (如果是房屋报修需要商品材料单位，否则不需要)
          default: ''
        material_specification:
          type: string
          description: 商品材料规格
          default: ''
        material_price:
          type: number
          format: double
          default: 0
      required:
        - res_id
        - material_name
        - material_count
      x-apifox-orders:
        - res_id
        - material_name
        - material_count
        - material_unit
        - material_specification
        - material_price
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    StringJsonVO:
      type: object
      properties:
        code:
          type: integer
          description: 状态码
          default: 10000
          minimum: -2147483648
          maximum: 2147483647
        message:
          type: string
          description: 提示信息
          default: success
        data:
          type: string
          description: 数据对象
      required:
        - code
        - message
      x-apifox-orders:
        - code
        - message
        - data
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    bearer_auth:
      type: jwt
      description: Default HTTP Bearer Authorization
      name: Authorization
      in: header
      scheme: bearer
      bearerFormat: JWT
    Authorization:
      type: apikey
      name: Authorization
      in: header
servers: []
security: []

```
