|
@@ -68,9 +68,7 @@ func (this *SaleClueService) Add(ctx context.Context) (int64, string) {
|
|
|
}
|
|
|
transferArr = append(transferArr, resp.PositionId)
|
|
|
baseUserIdArr = append(baseUserIdArr, resp.UserId)
|
|
|
- //查询mgo
|
|
|
}
|
|
|
-
|
|
|
//线索
|
|
|
args = append(args, this.PositionId, this.EntId, this.EntUserId, this.ClueName, this.CluesSource, this.Summary, this.EmployInfoId, 0, nowtime, this.CreateName)
|
|
|
//任务
|
|
@@ -95,15 +93,15 @@ func (this *SaleClueService) Add(ctx context.Context) (int64, string) {
|
|
|
baseUserIdArr = append(baseUserIdArr, this.BaseUserId)
|
|
|
|
|
|
//自办 创建 群聊
|
|
|
- gp := &Group{
|
|
|
- EntId: this.EntId,
|
|
|
- PositionId: this.PositionId,
|
|
|
- UserIdArr: []int64{},
|
|
|
- AppId: this.AppId,
|
|
|
- EntUserId: this.EntUserId,
|
|
|
- AccountId: this.AccountId,
|
|
|
- }
|
|
|
- groupId = gp.GroupAdd()
|
|
|
+ // gp := &Group{
|
|
|
+ // EntId: this.EntId,
|
|
|
+ // PositionId: this.PositionId,
|
|
|
+ // UserIdArr: []int64{},
|
|
|
+ // AppId: this.AppId,
|
|
|
+ // EntUserId: this.EntUserId,
|
|
|
+ // AccountId: this.AccountId,
|
|
|
+ // }
|
|
|
+ // groupId = gp.GroupAdd()
|
|
|
}
|
|
|
u := &User{BaseUserIds: baseUserIdArr}
|
|
|
|
|
@@ -114,13 +112,17 @@ func (this *SaleClueService) Add(ctx context.Context) (int64, string) {
|
|
|
vb.WriteString(gconv.String(v) + ",")
|
|
|
userId := strings.TrimRight(kb.String(), ",")
|
|
|
positionId := strings.TrimRight(vb.String(), ",")
|
|
|
- pcHref := ""
|
|
|
+ content, pcHref := "", ""
|
|
|
+ next := strings.Replace(time.Unix(this.FollowUpTime, 0).Format(YYYYMMDDHHMM), " ", "%20", -1)
|
|
|
+
|
|
|
if this.Types == 1 {
|
|
|
pcHref = fmt.Sprintf(cm.Push.SaleClue.Create.MyselfPcHref, positionId, taskId, clueId)
|
|
|
+ content = fmt.Sprintf(cm.Push.SaleClue.Create.MySelfContent, this.CreateName, strings.Replace(date.NowFormat(YYYYMMDDHHMM), " ", "%20", -1), next)
|
|
|
} else if this.Types == 2 {
|
|
|
pcHref = fmt.Sprintf(cm.Push.SaleClue.Create.TransferPcHref, positionId)
|
|
|
+ content = fmt.Sprintf(cm.Push.SaleClue.Create.TransferContent, this.CreateName, strings.Replace(date.NowFormat(YYYYMMDDHHMM), " ", "%20", -1), next)
|
|
|
}
|
|
|
- StationMailPush(userId, positionId, cm.Push.SaleClue.Create.Title, fmt.Sprintf(cm.Push.SaleClue.Create.Content, this.CreateName, strings.Replace(date.NowFormat(YYYYMMDDHHMM), " ", "%20", -1)), pcHref, cm.Push.SaleClue.Create.MobileHref)
|
|
|
+ StationMailPush(userId, positionId, cm.Push.SaleClue.Create.Title, content, pcHref, cm.Push.SaleClue.Create.MobileHref)
|
|
|
}
|
|
|
return 1, groupId
|
|
|
}
|