|
@@ -628,9 +628,11 @@ func (this *SpeechRecognitionController) SaveTag() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
+
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
func (this *SpeechRecognitionController) List() {
|
|
func (this *SpeechRecognitionController) List() {
|
|
@@ -683,9 +685,24 @@ func (this *SpeechRecognitionController) List() {
|
|
cond += fmt.Sprintf(` AND (%s BETWEEN ? AND ?)`, speech_recognition.SpeechRecognitionCols.CreateTime)
|
|
cond += fmt.Sprintf(` AND (%s BETWEEN ? AND ?)`, speech_recognition.SpeechRecognitionCols.CreateTime)
|
|
pars = append(pars, st, ed)
|
|
pars = append(pars, st, ed)
|
|
}
|
|
}
|
|
- if params.CreateUserId > 0 {
|
|
+ if params.CreateUserId != "" {
|
|
- cond += fmt.Sprintf(` AND %s = ?`, speech_recognition.SpeechRecognitionCols.SysUserId)
|
|
+ userArr := strings.Split(strings.TrimSpace(params.CreateUserId), ",")
|
|
- pars = append(pars, params.CreateUserId)
|
|
+ if len(userArr) > 0 {
|
|
|
|
+ userIds := make([]int, 0)
|
|
|
|
+ for _, v := range userArr {
|
|
|
|
+ t, _ := strconv.Atoi(v)
|
|
|
|
+ userIds = append(userIds, t)
|
|
|
|
+ }
|
|
|
|
+ if len(userIds) == 0 {
|
|
|
|
+ br.Data = dataResp
|
|
|
|
+ br.Ret = 200
|
|
|
|
+ br.Success = true
|
|
|
|
+ br.Msg = "获取成功"
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ cond += fmt.Sprintf(` AND %s IN (%s)`, speech_recognition.SpeechRecognitionCols.SysUserId, utils.GetOrmInReplace(len(userIds)))
|
|
|
|
+ pars = append(pars, userIds)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
if params.MenuId > 0 && !params.IsTagMenu {
|
|
if params.MenuId > 0 && !params.IsTagMenu {
|
|
@@ -919,7 +936,7 @@ func (this *SpeechRecognitionController) Detail() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
+
|
|
func (this *SpeechRecognitionController) Export() {
|
|
func (this *SpeechRecognitionController) Export() {
|
|
br := new(models.BaseResponse).Init()
|
|
br := new(models.BaseResponse).Init()
|
|
defer func() {
|
|
defer func() {
|
|
@@ -937,7 +954,7 @@ func (this *SpeechRecognitionController) Export() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
var req speech_recognition.SpeechRecognitionContentExportReq
|
|
var req speech_recognition.SpeechRecognitionContentExportReq
|
|
- if e := json.Unmarshal(this.Ctx.Input.RequestBody, &req); e != nil {
|
|
+ if e := this.ParseForm(req); e != nil {
|
|
br.Msg = "参数有误"
|
|
br.Msg = "参数有误"
|
|
br.ErrMsg = "参数解析失败, Err: " + e.Error()
|
|
br.ErrMsg = "参数解析失败, Err: " + e.Error()
|
|
return
|
|
return
|