zhangqian
2023-11-01 530fed8ec225453572d57b15c200ab062c335457
model/contract.go
@@ -22,6 +22,7 @@
      File                  string                `json:"file" gorm:"column:file;type:varchar(255);comment:合同文件"`
      CreatedAt             *CustomTime           `json:"created_at" gorm:"column:created_at;type:datetime;comment:创建时间"`
      CodeStandID           string                `json:"codeStandID" gorm:"column:code_stand_id;type:varchar(255);comment:编码id"`
      SendTime              string                `json:"sendTime" gorm:"column:send_time;type:varchar(255);comment:发货时间"`
      gormModel
   }
@@ -79,6 +80,10 @@
            if key == "member_id" {
               db = db.Where(key+"= ?", v)
            }
         case []int:
            if key == "member_ids" {
               db = db.Where("contract.member_id in ?", v)
            }
         }
      }
   }