新增了用户参与记录导出1
This commit is contained in:
parent
269c95f4af
commit
88a884b6ff
@ -171,6 +171,14 @@ func (r *UserBehaviorRecordDao) GetExportUserRecordListSearch(req requests.Expor
|
|||||||
query = query.Where("platform_id = ?", req.PlatformId)
|
query = query.Where("platform_id = ?", req.PlatformId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if req.ProjectId != "" {
|
||||||
|
subQuery := global.Db.Model(&model.Case{}).
|
||||||
|
Select("case_id").
|
||||||
|
Where("project_id = ?", req.ProjectId)
|
||||||
|
|
||||||
|
query = query.Where(gorm.Expr("case_id IN (?)", subQuery))
|
||||||
|
}
|
||||||
|
|
||||||
// 当前搜索数据
|
// 当前搜索数据
|
||||||
if req.Type == 1 {
|
if req.Type == 1 {
|
||||||
if req.PlatformId != "" {
|
if req.PlatformId != "" {
|
||||||
|
|||||||
@ -10,5 +10,6 @@ type ExportUserRecord struct {
|
|||||||
Id string `json:"id" form:"id" label:"id"`
|
Id string `json:"id" form:"id" label:"id"`
|
||||||
PlatformId string `json:"platform_id" form:"platform_id" label:"平台id"`
|
PlatformId string `json:"platform_id" form:"platform_id" label:"平台id"`
|
||||||
CaseId string `json:"case_id" form:"case_id" label:"病例id"`
|
CaseId string `json:"case_id" form:"case_id" label:"病例id"`
|
||||||
|
ProjectId string `json:"project_id" form:"project_id" label:"项目id" validate:"required"`
|
||||||
Keyword string `json:"Keyword" form:"Keyword" label:"关键词" validate:"required"`
|
Keyword string `json:"Keyword" form:"Keyword" label:"关键词" validate:"required"`
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user