|
@@ -1,25 +0,0 @@
|
|
|
-package models
|
|
|
-
|
|
|
-import (
|
|
|
- "github.com/beego/beego/v2/client/orm"
|
|
|
- "hongze/hongze_cygx/utils"
|
|
|
-)
|
|
|
-
|
|
|
-type IndustrialSubject struct {
|
|
|
- IndustrialSubjectId int `orm:"column(industrial_subject_id);pk" description:"标的id"`
|
|
|
- IndustrialManagementId int `description:"产业id"`
|
|
|
- SubjectName string `description:"标的名称"`
|
|
|
- IndustryName string `description:"产业名称"`
|
|
|
- LayoutTime string `description:"产业布局时间"`
|
|
|
-}
|
|
|
-
|
|
|
-// 标的列表
|
|
|
-func GetIndustrialSubjectListById(subjectIdArr []int) (items []*IndustrialSubject, err error) {
|
|
|
- if len(subjectIdArr) == 0 {
|
|
|
- return
|
|
|
- }
|
|
|
- o := orm.NewOrm()
|
|
|
- sql := `SELECT * FROM cygx_industrial_subject WHERE industrial_subject_id IN (` + utils.GetOrmInReplace(len(subjectIdArr)) + `) `
|
|
|
- _, err = o.Raw(sql, subjectIdArr).QueryRows(&items)
|
|
|
- return
|
|
|
-}
|