Procházet zdrojové kódy

feature(优化):跟进过滤修改,项目添加时删除跟进计划

ZZH-wl před 2 roky
rodič
revize
955b2a555d

+ 4 - 4
opms_parent/app/model/proj/proj_business.go

@@ -67,10 +67,10 @@ type AddProjBusinessReq struct {
 	Remark           string      `json:"remark"`           // 备注
 
 	// 跟进日程
-	FollowTime     *gtime.Time `json:"followTime"       v:"required#跟进时间不能为空"`    // 跟进时间
-	FollowUserId   int         `json:"followUserId"`                              // 关联跟进负责人
-	FollowUserName string      `json:"followUserName"`                            // 跟进负责人姓名
-	FollowContent  string      `json:"followContent"       v:"required#跟进内容不能为空"` // 跟进内容
+	//FollowTime     *gtime.Time `json:"followTime"       v:"required#跟进时间不能为空"`    // 跟进时间
+	//FollowUserId   int         `json:"followUserId"`                              // 关联跟进负责人
+	//FollowUserName string      `json:"followUserName"`                            // 跟进负责人姓名
+	//FollowContent  string      `json:"followContent"       v:"required#跟进内容不能为空"` // 跟进内容
 
 	Products []BusinessProduct `json:"products"      v:"required#产品列表不能为空"` // 产品列表
 }

+ 1 - 1
opms_parent/app/service/plat/plat_followup.go

@@ -143,7 +143,7 @@ func (s *followupService) GetListByDay(req *model.SearchPlatFollowupReq) (total
 		followupModel = followupModel.Where("created_by", s.GetCxtUserId())
 	}
 	// 日期条件
-	if req.DaysBeforeToday >= 0 { // 获取前N天的跟进记录
+	if req.DaysBeforeToday > 0 { // 获取前N天的跟进记录
 		now := gtime.Now()
 		begin := now.AddDate(0, 0, -req.DaysBeforeToday).Format("Y-m-d 00:00:00")
 		followupModel = followupModel.Where("follow_date>=?", begin)