liujiandao
2023-12-14 e170c5fe4273a9635f27290028a5231500c3ace6
出入库明细添加业务类型
5个文件已修改
29 ■■■■■ 已修改文件
controllers/report_forms_controller.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
response/report_forms_response.go 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/report_forms_controller.go
@@ -265,8 +265,8 @@
    }
    detailsSearch.Orm = detailsSearch.Orm.Model(&models.MoveHistory{}).
        Select("number, updated_at as date, product_name as product_name, from_location_id, operation_id," +
            "to_location_id, amount, unit, operator as contacted_name, base_operation_type, weight, product_id, from_location, to_location").Order("id desc")
        Select("number, updated_at as date, product_name as product_name, from_location_id, operation_id,to_location_id, amount, " +
            "unit, operator as contacted_name, base_operation_type, weight, product_id, from_location, to_location, operation_type_name").Order("id desc")
    if len(ids) > 0 {
        detailsSearch.Orm = detailsSearch.Orm.Where("id in ?", ids)
    }
docs/docs.go
@@ -3708,6 +3708,10 @@
                "fromLocationId": {
                    "type": "integer"
                },
                "number": {
                    "description": "Unit           string          ` + "`" + `json:\"unit\"` + "`" + `",
                    "type": "string"
                },
                "productId": {
                    "type": "string"
                },
@@ -4708,6 +4712,10 @@
                "operationId": {
                    "type": "integer"
                },
                "operationTypeName": {
                    "description": "作业类型名称",
                    "type": "string"
                },
                "productId": {
                    "type": "string"
                },
@@ -4834,6 +4842,8 @@
    Description:      "",
    InfoInstanceName: "swagger",
    SwaggerTemplate:  docTemplate,
    LeftDelim:        "{{",
    RightDelim:       "}}",
}
func init() {
docs/swagger.json
@@ -3696,6 +3696,10 @@
                "fromLocationId": {
                    "type": "integer"
                },
                "number": {
                    "description": "Unit           string          `json:\"unit\"`",
                    "type": "string"
                },
                "productId": {
                    "type": "string"
                },
@@ -4696,6 +4700,10 @@
                "operationId": {
                    "type": "integer"
                },
                "operationTypeName": {
                    "description": "作业类型名称",
                    "type": "string"
                },
                "productId": {
                    "type": "string"
                },
docs/swagger.yaml
@@ -845,6 +845,9 @@
        type: number
      fromLocationId:
        type: integer
      number:
        description: Unit           string          `json:"unit"`
        type: string
      productId:
        type: string
      sourceNumber:
@@ -1534,6 +1537,9 @@
        type: string
      operationId:
        type: integer
      operationTypeName:
        description: 作业类型名称
        type: string
      productId:
        type: string
      productName:
response/report_forms_response.go
@@ -34,6 +34,7 @@
    FromLocationId    int                        `json:"fromLocationId"`
    ToLocationId      int                        `json:"toLocationId"`
    OperationId       int                        `json:"operationId"`
    OperationTypeName string                     `json:"operationTypeName"` //作业类型名称
}
type LocationForms struct {