|
@@ -669,12 +669,14 @@ func (this *TradeCommonController) ExportoilchemList() {
|
|
|
}
|
|
|
if req.IsSelectedAll {
|
|
|
if len(req.IndexCode) > 0 {
|
|
|
- condition += ` AND index_code NOT IN (` + utils.GetOrmInReplace(len(req.IndexCode)) + `)`
|
|
|
+ //condition += ` AND index_code NOT IN (` + utils.GetOrmInReplace(len(req.IndexCode)) + `)`
|
|
|
+ condition += ` AND index_code NOT IN ?`
|
|
|
pars = append(pars, req.IndexCode)
|
|
|
}
|
|
|
} else {
|
|
|
if len(req.IndexCode) > 0 {
|
|
|
- condition += ` AND index_code IN (` + utils.GetOrmInReplace(len(req.IndexCode)) + `)`
|
|
|
+ //condition += ` AND index_code IN (` + utils.GetOrmInReplace(len(req.IndexCode)) + `)`
|
|
|
+ condition += ` AND index_code IN ?`
|
|
|
pars = append(pars, req.IndexCode)
|
|
|
}
|
|
|
}
|