liujiandao
2024-04-15 32f4f2b0d507c99d9b4fb7d555b0c2523a92c503
添加字段
5个文件已修改
99 ■■■■■ 已修改文件
docs/docs.go 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/operation.go 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
request/operation.go 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go
@@ -3625,6 +3625,9 @@
                "accountant": {
                    "type": "string"
                },
                "accountantId": {
                    "type": "string"
                },
                "auditDate": {
                    "type": "string"
                },
@@ -3655,6 +3658,9 @@
                    "type": "string"
                },
                "custodian": {
                    "type": "string"
                },
                "custodianId": {
                    "type": "string"
                },
                "details": {
@@ -3689,6 +3695,9 @@
                    "type": "number"
                },
                "manager": {
                    "type": "string"
                },
                "managerId": {
                    "type": "string"
                },
                "number": {
@@ -4121,6 +4130,9 @@
                "accountant": {
                    "type": "string"
                },
                "accountantId": {
                    "type": "string"
                },
                "comment": {
                    "description": "备注",
                    "type": "string"
@@ -4144,6 +4156,9 @@
                "custodian": {
                    "type": "string"
                },
                "custodianId": {
                    "type": "string"
                },
                "details": {
                    "type": "array",
                    "items": {
@@ -4165,6 +4180,9 @@
                    "type": "number"
                },
                "manager": {
                    "type": "string"
                },
                "managerId": {
                    "type": "string"
                },
                "number": {
@@ -4864,6 +4882,9 @@
                "accountant": {
                    "type": "string"
                },
                "accountantId": {
                    "type": "string"
                },
                "baseOperationType": {
                    "description": "基础作业类型",
                    "allOf": [
@@ -4895,6 +4916,9 @@
                "custodian": {
                    "type": "string"
                },
                "custodianId": {
                    "type": "string"
                },
                "details": {
                    "type": "array",
                    "items": {
@@ -4918,6 +4942,9 @@
                "manager": {
                    "type": "string"
                },
                "managerId": {
                    "type": "string"
                },
                "number": {
                    "description": "单号",
                    "type": "string"
docs/swagger.json
@@ -3613,6 +3613,9 @@
                "accountant": {
                    "type": "string"
                },
                "accountantId": {
                    "type": "string"
                },
                "auditDate": {
                    "type": "string"
                },
@@ -3643,6 +3646,9 @@
                    "type": "string"
                },
                "custodian": {
                    "type": "string"
                },
                "custodianId": {
                    "type": "string"
                },
                "details": {
@@ -3677,6 +3683,9 @@
                    "type": "number"
                },
                "manager": {
                    "type": "string"
                },
                "managerId": {
                    "type": "string"
                },
                "number": {
@@ -4109,6 +4118,9 @@
                "accountant": {
                    "type": "string"
                },
                "accountantId": {
                    "type": "string"
                },
                "comment": {
                    "description": "备注",
                    "type": "string"
@@ -4132,6 +4144,9 @@
                "custodian": {
                    "type": "string"
                },
                "custodianId": {
                    "type": "string"
                },
                "details": {
                    "type": "array",
                    "items": {
@@ -4153,6 +4168,9 @@
                    "type": "number"
                },
                "manager": {
                    "type": "string"
                },
                "managerId": {
                    "type": "string"
                },
                "number": {
@@ -4852,6 +4870,9 @@
                "accountant": {
                    "type": "string"
                },
                "accountantId": {
                    "type": "string"
                },
                "baseOperationType": {
                    "description": "基础作业类型",
                    "allOf": [
@@ -4883,6 +4904,9 @@
                "custodian": {
                    "type": "string"
                },
                "custodianId": {
                    "type": "string"
                },
                "details": {
                    "type": "array",
                    "items": {
@@ -4906,6 +4930,9 @@
                "manager": {
                    "type": "string"
                },
                "managerId": {
                    "type": "string"
                },
                "number": {
                    "description": "单号",
                    "type": "string"
docs/swagger.yaml
@@ -676,6 +676,8 @@
    properties:
      accountant:
        type: string
      accountantId:
        type: string
      auditDate:
        type: string
      baseOperationType:
@@ -695,6 +697,8 @@
      createTime:
        type: string
      custodian:
        type: string
      custodianId:
        type: string
      details:
        items:
@@ -717,6 +721,8 @@
        description: 物流重量
        type: number
      manager:
        type: string
      managerId:
        type: string
      number:
        description: 单号
@@ -1010,6 +1016,8 @@
    properties:
      accountant:
        type: string
      accountantId:
        type: string
      comment:
        description: 备注
        type: string
@@ -1027,6 +1035,8 @@
        type: string
      custodian:
        type: string
      custodianId:
        type: string
      details:
        items:
          $ref: '#/definitions/request.OperationDetails'
@@ -1042,6 +1052,8 @@
        description: 物流重量
        type: number
      manager:
        type: string
      managerId:
        type: string
      number:
        description: 单号
@@ -1528,6 +1540,8 @@
    properties:
      accountant:
        type: string
      accountantId:
        type: string
      baseOperationType:
        allOf:
        - $ref: '#/definitions/constvar.BaseOperationType'
@@ -1549,6 +1563,8 @@
        type: string
      custodian:
        type: string
      custodianId:
        type: string
      details:
        items:
          $ref: '#/definitions/request.OperationDetails'
@@ -1565,6 +1581,8 @@
        type: number
      manager:
        type: string
      managerId:
        type: string
      number:
        description: 单号
        type: string
models/operation.go
@@ -50,9 +50,12 @@
        ToLocation         Location `json:"toLocation"      gorm:"foreignKey:ToLocationID;references:Id"` //目标位置
        SalesDetailsNumber string   `gorm:"type:varchar(191);comment:销售明细编码" json:"salesDetailsNumber"`
        Manager    string `json:"manager" gorm:"type:varchar(255);comment:主管"`
        Accountant string `json:"accountant" gorm:"type:varchar(255);comment:会计"`
        Custodian  string `json:"custodian" gorm:"type:varchar(255);comment:保管员"`
        ManagerId    string `json:"managerId" gorm:"type:varchar(255);comment:主管id"`
        Manager      string `json:"manager" gorm:"type:varchar(255);comment:主管名称"`
        AccountantId string `json:"accountantId" gorm:"type:varchar(255);comment:会计id"`
        Accountant   string `json:"accountant" gorm:"type:varchar(255);comment:会计名称"`
        CustodianId  string `json:"custodianId" gorm:"type:varchar(255);comment:保管员id"`
        Custodian    string `json:"custodian" gorm:"type:varchar(255);comment:保管员名称"`
    }
    OperationSearch struct {
request/operation.go
@@ -30,9 +30,12 @@
    ReceiverAddr      string              `json:"receiverAddr" gorm:"type:varchar(255);comment:收货地址"`
    LocationId        int                 `json:"locationId"   gorm:"type:int;not null;comment:源位置id"`     //源位置id
    ToLocationId      int                 `json:"toLocationId"    gorm:"type:int;not null;comment:仓库位置id"` //目标位置id
    Manager           string              `json:"manager" gorm:"type:varchar(255);comment:主管"`
    Accountant        string              `json:"accountant" gorm:"type:varchar(255);comment:会计"`
    Custodian         string              `json:"custodian" gorm:"type:varchar(255);comment:保管员"`
    ManagerId         string              `json:"managerId" gorm:"type:varchar(255);comment:主管id"`
    Manager           string              `json:"manager" gorm:"type:varchar(255);comment:主管名称"`
    AccountantId      string              `json:"accountantId" gorm:"type:varchar(255);comment:会计id"`
    Accountant        string              `json:"accountant" gorm:"type:varchar(255);comment:会计名称"`
    CustodianId       string              `json:"custodianId" gorm:"type:varchar(255);comment:保管员id"`
    Custodian         string              `json:"custodian" gorm:"type:varchar(255);comment:保管员名称"`
}
type OperationDetails struct {
@@ -79,9 +82,12 @@
    ReceiverAddr      string                     `json:"receiverAddr" gorm:"type:varchar(255);comment:收货地址"`
    LocationId        int                        `json:"locationId"   gorm:"type:int;not null;comment:源位置id"`     //源位置id
    ToLocationId      int                        `json:"toLocationId"    gorm:"type:int;not null;comment:仓库位置id"` //目标位置id
    Manager           string                     `json:"manager" gorm:"type:varchar(255);comment:主管"`
    Accountant        string                     `json:"accountant" gorm:"type:varchar(255);comment:会计"`
    Custodian         string                     `json:"custodian" gorm:"type:varchar(255);comment:保管员"`
    ManagerId         string                     `json:"managerId" gorm:"type:varchar(255);comment:主管id"`
    Manager           string                     `json:"manager" gorm:"type:varchar(255);comment:主管名称"`
    AccountantId      string                     `json:"accountantId" gorm:"type:varchar(255);comment:会计id"`
    Accountant        string                     `json:"accountant" gorm:"type:varchar(255);comment:会计名称"`
    CustodianId       string                     `json:"custodianId" gorm:"type:varchar(255);comment:保管员id"`
    Custodian         string                     `json:"custodian" gorm:"type:varchar(255);comment:保管员名称"`
}
type OperationAllList struct {