xingzai 1 жил өмнө
parent
commit
bc02ac72c7

+ 11 - 0
models/cygx/report_mapping_celue.go

@@ -45,6 +45,17 @@ func GetCygxReportMappingCelueMaxDetail() (item *CygxReportMappingCelue, err err
 	return
 }
 
+// 列表
+func GetCygxReportMappingList(condition string, pars []interface{}) (items []*CygxReportMappingCelueResp, err error) {
+	o := orm.NewOrm()
+	sql := `SELECT * FROM cygx_report_mapping   WHERE 1= 1 `
+	if condition != "" {
+		sql += condition
+	}
+	_, err = o.Raw(sql, pars).QueryRows(&items)
+	return
+}
+
 // 列表
 func GetCygxReportMappingCelueList(condition string, pars []interface{}) (items []*CygxReportMappingCelueResp, err error) {
 	o := orm.NewOrm()

+ 1 - 1
services/cygx/report_mapping.go

@@ -46,7 +46,7 @@ func GetCygxArticlePerssionNameListMap(articleIdArr []int) (mapResp map[int]stri
 	var condition string
 	var pars []interface{}
 	//获取分类名称
-	perssionNameList, e := cygx.GetCygxReportMappingCelueList(condition, pars)
+	perssionNameList, e := cygx.GetCygxReportMappingList(condition, pars)
 	if e != nil {
 		err = errors.New("GetCygxReportMappingCelueList, Err: " + e.Error())
 		return