|
@@ -1382,11 +1382,12 @@ func GetReportContentTextSub(content string) (contentSub string, err error) {
|
|
|
|
|
|
// GetOrmInReplace 获取orm的in查询替换?的方法
|
|
|
func GetOrmInReplace(num int) string {
|
|
|
- template := make([]string, num)
|
|
|
- for i := 0; i < num; i++ {
|
|
|
- template[i] = "?"
|
|
|
- }
|
|
|
- return strings.Join(template, ",")
|
|
|
+ //template := make([]string, num)
|
|
|
+ //for i := 0; i < num; i++ {
|
|
|
+ // template[i] = "?"
|
|
|
+ //}
|
|
|
+ //return strings.Join(template, ",")
|
|
|
+ return "?"
|
|
|
}
|
|
|
|
|
|
// RevSlice 反转切片
|