|
@@ -1,8 +1,8 @@
|
|
|
package roadshow
|
|
|
|
|
|
import (
|
|
|
- "time"
|
|
|
"github.com/rdlucklib/rdluck_tools/orm"
|
|
|
+ "time"
|
|
|
)
|
|
|
|
|
|
type RsCalendarResearcher struct {
|
|
@@ -22,6 +22,7 @@ type RsCalendarResearcher struct {
|
|
|
RefuseReason string `description:"拒绝理由"`
|
|
|
RefuseTime time.Time `description:"拒绝时间"`
|
|
|
DeleteReason string `description:"删除理由"`
|
|
|
+ UnionCode string `description:"公开会议联合编码"`
|
|
|
}
|
|
|
|
|
|
func GetRsCalendarResearcher(endDate, endTime string) (list []*RsCalendarResearcher, err error) {
|
|
@@ -67,4 +68,42 @@ func ModifyRsMattersStatus(rsMattersId int) (err error) {
|
|
|
o := orm.NewOrm()
|
|
|
_, err = o.Raw(sql, rsMattersId).Exec()
|
|
|
return
|
|
|
+}
|
|
|
+
|
|
|
+type RsCalendar struct {
|
|
|
+ RsCalendarId int `orm:"column(rs_calendar_id);pk"`
|
|
|
+ SysUserId int `description:"创建人id"`
|
|
|
+ SysUserRealName string `description:"创建人名称"`
|
|
|
+ ActivityType string `description:"活动类型"`
|
|
|
+ RoadshowType string `description:"路演形式"`
|
|
|
+ RoadshowPlatform string `description:"路演平台"`
|
|
|
+ CompanyId int `description:"客户id"`
|
|
|
+ CompanyName string `description:"客户名称"`
|
|
|
+ Province string `description:"省"`
|
|
|
+ ProvinceCode string `description:"省编码"`
|
|
|
+ City string `description:"市"`
|
|
|
+ CityCode string `description:"市编码"`
|
|
|
+ Theme string `description:"会议主题"`
|
|
|
+ CooperationName string `description:"合作方名称"`
|
|
|
+ Title string `description:"展示在日历的标题"`
|
|
|
+ Source int8 `description:"来源,0:自系统,1:上海方的"`
|
|
|
+ CreateTime time.Time
|
|
|
+ ModifyTime time.Time
|
|
|
+ ActivityCategory string `description:"活动类别"`
|
|
|
+ IsSynced int `description:"是否与上海同步 0:未同步 1:已同步"`
|
|
|
+ UnionCode string `description:"公开会议联合编码"`
|
|
|
+}
|
|
|
+
|
|
|
+func GetRsCalendarById(rsCalendarId int) (item *RsCalendar, err error) {
|
|
|
+ o := orm.NewOrm()
|
|
|
+ sql := `SELECT * FROM rs_calendar WHERE rs_calendar_id=? `
|
|
|
+ err = o.Raw(sql, rsCalendarId).QueryRow(&item)
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
+func GetRsCalendarResearcherById(rsCalendarId int) (item *RsCalendarResearcher, err error) {
|
|
|
+ sql := `SELECT * FROM rs_calendar_researcher WHERE rs_calendar_researcher_id=? `
|
|
|
+ o := orm.NewOrm()
|
|
|
+ err = o.Raw(sql, rsCalendarId).QueryRow(&item)
|
|
|
+ return
|
|
|
}
|