feat:完善信息
This commit is contained in:
@ -91,16 +91,18 @@ func (c *Agent) Instance(tenantID uint64, name string, status int, page, pageSiz
|
||||
Total int `json:"total"`
|
||||
Complete int `json:"complete"`
|
||||
}{}
|
||||
// 筛选处理需求信息
|
||||
for _, val := range strings.Split(v.Demand, ";") {
|
||||
objs := strings.Split(val, ":")
|
||||
if v.Demand != "" {
|
||||
// 筛选处理需求信息
|
||||
for _, val := range strings.Split(v.Demand, ";") {
|
||||
objs := strings.Split(val, ":")
|
||||
|
||||
count := utils.StringToInt(objs[1])
|
||||
count := utils.StringToInt(objs[1])
|
||||
|
||||
if model2.TechnologyDemandServiceStatus(utils.StringToInt(objs[0])) == model2.TechnologyDemandServiceStatusForClosedQuestions {
|
||||
demand.Complete = count
|
||||
if model2.TechnologyDemandServiceStatus(utils.StringToInt(objs[0])) == model2.TechnologyDemandServiceStatusForClosedQuestions {
|
||||
demand.Complete = count
|
||||
}
|
||||
demand.Total += count
|
||||
}
|
||||
demand.Total += count
|
||||
}
|
||||
list = append(list, &AgentInfo{
|
||||
ID: v.GetEncodeID(), Name: v.Name, Mobile: v.Mobile, Industrys: industrys,
|
||||
|
@ -70,7 +70,7 @@ func (*Activity) ApplyDelete(c *gin.Context) {
|
||||
func (*Activity) Joins(c *gin.Context) {
|
||||
form := &struct {
|
||||
Title string `json:"title" form:"title"`
|
||||
Status int `json:"status" form:"status"` // 1:未开始,2:进行中,3:已结束
|
||||
Status int `json:"status" form:"status"`
|
||||
api.PageForm
|
||||
}{}
|
||||
if err := api.Bind(form)(c); err != nil {
|
||||
|
@ -139,7 +139,7 @@ func (this *Instance) Handle() {
|
||||
&synchronized{iModel: model.NewTechnologyProject()}, &synchronized{iModel: model.NewTechnologyTopic()},
|
||||
&synchronized{iModel: model.NewTechnologyDemandService()}, &synchronized{iModel: model.NewTechnologyDemandServiceProgress()},
|
||||
&synchronized{iModel: model.NewTechnologyPatent()}, &synchronized{iModel: model.NewTechnologyPatentExpert()}, &synchronized{iModel: model.NewTechnologyPatentClassify()},
|
||||
&synchronized{iModel: model.NewServiceDocking()},
|
||||
&synchronized{iModel: model.NewServiceDocking()}, &synchronized{iModel: model.NewServiceDemand()},
|
||||
&synchronized{iModel: model.NewServiceMessage()}, &synchronized{iModel: model.NewServiceMessageLog()},
|
||||
&synchronized{iModel: model.NewServiceSolutionCase()}, &synchronized{iModel: model.NewServiceSolutionCaseKind()},
|
||||
&synchronized{iModel: model.NewServiceInnovate()}, &synchronized{iModel: model.NewServiceInnovateKind()},
|
||||
|
Reference in New Issue
Block a user