|
@@ -451,12 +451,6 @@ func (this *ETATrialController) ApplyEnable() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if len(req.MobileList) <= 0 {
|
|
|
- br.Msg = "至少选中一条记录"
|
|
|
- br.ErrMsg = "至少选中一条记录"
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
seller, e := system.GetSysAdminById(sysUser.AdminId)
|
|
|
if e != nil {
|
|
|
err = e
|
|
@@ -467,20 +461,20 @@ func (this *ETATrialController) ApplyEnable() {
|
|
|
var pars []interface{}
|
|
|
if req.IsCheckAll {
|
|
|
if len(req.MobileList) > 0 {
|
|
|
- condition += " and mobile not in (" + strings.Join(req.MobileList, ",") + ")"
|
|
|
+ condition += " and mobile not in (" + utils.GetOrmInReplace(len(req.MobileList)) + ")"
|
|
|
for _, mobile := range req.MobileList {
|
|
|
pars = append(pars, mobile)
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
if len(req.MobileList) > 0 {
|
|
|
- condition += " and mobile in (" + strings.Join(req.MobileList, ",") + ")"
|
|
|
+ condition += " and mobile in (" + utils.GetOrmInReplace(len(req.MobileList)) + ")"
|
|
|
for _, mobile := range req.MobileList {
|
|
|
pars = append(pars, mobile)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- trialApprovalList, err := eta_trial.GetETATrialApprovalByCondition(condition, pars)
|
|
|
+ trialApprovalList, err := eta_trial.GetETATrialByCondition(condition, pars)
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|