|
@@ -1979,7 +1979,7 @@ func (this *IndustrialSubjectController) ReportMappingAdd() {
|
|
}
|
|
}
|
|
|
|
|
|
//func init() {
|
|
//func init() {
|
|
-// initRsList()
|
|
|
|
|
|
+// initAct()
|
|
//}
|
|
//}
|
|
|
|
|
|
func initart() {
|
|
func initart() {
|
|
@@ -2045,6 +2045,8 @@ func initart() {
|
|
cellC.Value = "公司名称"
|
|
cellC.Value = "公司名称"
|
|
cellD := rowTitle.AddCell()
|
|
cellD := rowTitle.AddCell()
|
|
cellD.Value = "所属销售"
|
|
cellD.Value = "所属销售"
|
|
|
|
+ cellDfw := rowTitle.AddCell()
|
|
|
|
+ cellDfw.Value = "服务销售"
|
|
|
|
|
|
cellDCreatedTime := rowTitle.AddCell()
|
|
cellDCreatedTime := rowTitle.AddCell()
|
|
cellDCreatedTime.Value = "阅读时间(最后一次)"
|
|
cellDCreatedTime.Value = "阅读时间(最后一次)"
|
|
@@ -2234,6 +2236,7 @@ func initart() {
|
|
cellCData := row.AddCell()
|
|
cellCData := row.AddCell()
|
|
//cellCData.Value = item.CompanyName
|
|
//cellCData.Value = item.CompanyName
|
|
cellDData := row.AddCell()
|
|
cellDData := row.AddCell()
|
|
|
|
+ cellDDataFw := row.AddCell()
|
|
//cellDData.Value = item.SellerName
|
|
//cellDData.Value = item.SellerName
|
|
cellEData := row.AddCell()
|
|
cellEData := row.AddCell()
|
|
cellEData.Value = item.CreateTime
|
|
cellEData.Value = item.CreateTime
|
|
@@ -2257,6 +2260,7 @@ func initart() {
|
|
if mapuserMapbil[item.Mobile] != nil {
|
|
if mapuserMapbil[item.Mobile] != nil {
|
|
cellCData.Value = mapuserMapbil[item.Mobile].CompanyName
|
|
cellCData.Value = mapuserMapbil[item.Mobile].CompanyName
|
|
cellDData.Value = mapuserMapbil[item.Mobile].SellerName
|
|
cellDData.Value = mapuserMapbil[item.Mobile].SellerName
|
|
|
|
+ cellDDataFw.Value = mapuserMapbil[item.Mobile].ShareSeller
|
|
cellStatusData.Value = mapuserMapbil[item.Mobile].Status
|
|
cellStatusData.Value = mapuserMapbil[item.Mobile].Status
|
|
cellermissionNameData.Value = mapuserMapbil[item.Mobile].ChartPermissionName
|
|
cellermissionNameData.Value = mapuserMapbil[item.Mobile].ChartPermissionName
|
|
}
|
|
}
|
|
@@ -2273,23 +2277,23 @@ func initart() {
|
|
func initAct() {
|
|
func initAct() {
|
|
var condition string
|
|
var condition string
|
|
mapMobile := make(map[string]bool)
|
|
mapMobile := make(map[string]bool)
|
|
- //condition = " AND s.activity_id = 5747 AND duration != '' AND s.create_time < '2024-08-28 18:00:00' "
|
|
|
|
- //condition = " AND s.activity_id = 5734 AND is_meeting = 1 AND s.create_time < '2024-08-28 18:00:00' "
|
|
|
|
- //list_H, err := cygx.GetActivityMeetByUser(condition, 0, 1000)
|
|
|
|
- //if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
|
- // fmt.Println(err)
|
|
|
|
- // return
|
|
|
|
- //}
|
|
|
|
- //
|
|
|
|
|
|
|
|
- //
|
|
|
|
- //for _, v := range list_H {
|
|
|
|
- // mapMobile[v.Mobile] = true
|
|
|
|
- //}
|
|
|
|
|
|
+ activityId := "5865"
|
|
|
|
+ //condition = " AND s.activity_id = " + activityId + " AND duration != '' AND s.create_time < '2024-09-06 09:20' "
|
|
|
|
+ condition = " AND s.activity_id = " + activityId + " AND is_meeting = 1 AND s.create_time < '2024-09-06 09:20' "
|
|
|
|
+ list_H, err := cygx.GetActivityMeetByUser(condition, 0, 1000)
|
|
|
|
+ if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
|
+ fmt.Println(err)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ for _, v := range list_H {
|
|
|
|
+ mapMobile[v.Mobile] = true
|
|
|
|
+ }
|
|
|
|
|
|
//condition = " AND s.activity_id = 5833 AND duration != '' "
|
|
//condition = " AND s.activity_id = 5833 AND duration != '' "
|
|
- condition = " AND s.activity_id = 5832 AND duration != '' " // 2024-09-06 09:20
|
|
|
|
- //condition = " AND s.activity_id = 5805 AND is_meeting = 1 "
|
|
|
|
|
|
+ //condition = " AND s.activity_id = " + activityId + " AND duration != '' " // 2024-09-06 09:20
|
|
|
|
+ condition = " AND s.activity_id = " + activityId + " AND is_meeting = 1 "
|
|
list, err := cygx.GetActivityMeetByUser(condition, 0, 1000)
|
|
list, err := cygx.GetActivityMeetByUser(condition, 0, 1000)
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
fmt.Println(err)
|
|
fmt.Println(err)
|
|
@@ -2370,6 +2374,10 @@ func initAct() {
|
|
}
|
|
}
|
|
//标头
|
|
//标头
|
|
rowTitle := sheet.AddRow()
|
|
rowTitle := sheet.AddRow()
|
|
|
|
+
|
|
|
|
+ cellAct := rowTitle.AddCell()
|
|
|
|
+ cellAct.Value = "活动名称"
|
|
|
|
+
|
|
cellA := rowTitle.AddCell()
|
|
cellA := rowTitle.AddCell()
|
|
cellA.Value = "姓名"
|
|
cellA.Value = "姓名"
|
|
cellB := rowTitle.AddCell()
|
|
cellB := rowTitle.AddCell()
|
|
@@ -2379,6 +2387,9 @@ func initAct() {
|
|
cellD := rowTitle.AddCell()
|
|
cellD := rowTitle.AddCell()
|
|
cellD.Value = "所属销售"
|
|
cellD.Value = "所属销售"
|
|
|
|
|
|
|
|
+ cellDfw := rowTitle.AddCell()
|
|
|
|
+ cellDfw.Value = "服务销售"
|
|
|
|
+
|
|
cellStatus := rowTitle.AddCell()
|
|
cellStatus := rowTitle.AddCell()
|
|
cellStatus.Value = "客户状态"
|
|
cellStatus.Value = "客户状态"
|
|
|
|
|
|
@@ -2390,6 +2401,10 @@ func initAct() {
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
row := sheet.AddRow()
|
|
row := sheet.AddRow()
|
|
|
|
+
|
|
|
|
+ cellActData := row.AddCell()
|
|
|
|
+ cellActData.Value = item.ActivityName
|
|
|
|
+
|
|
cellAData := row.AddCell()
|
|
cellAData := row.AddCell()
|
|
cellAData.Value = item.RealName
|
|
cellAData.Value = item.RealName
|
|
//if item.Ly == "1" {
|
|
//if item.Ly == "1" {
|
|
@@ -2400,6 +2415,7 @@ func initAct() {
|
|
cellCData := row.AddCell()
|
|
cellCData := row.AddCell()
|
|
//cellCData.Value = item.CompanyName
|
|
//cellCData.Value = item.CompanyName
|
|
cellDData := row.AddCell()
|
|
cellDData := row.AddCell()
|
|
|
|
+ cellDDatafw := row.AddCell()
|
|
//cellDData.Value = item.SellerName
|
|
//cellDData.Value = item.SellerName
|
|
|
|
|
|
cellStatusData := row.AddCell()
|
|
cellStatusData := row.AddCell()
|
|
@@ -2407,6 +2423,7 @@ func initAct() {
|
|
if mapuserMapbil[item.CompanyId] != nil {
|
|
if mapuserMapbil[item.CompanyId] != nil {
|
|
cellCData.Value = mapuserMapbil[item.CompanyId].CompanyName
|
|
cellCData.Value = mapuserMapbil[item.CompanyId].CompanyName
|
|
cellDData.Value = mapuserMapbil[item.CompanyId].SellerName
|
|
cellDData.Value = mapuserMapbil[item.CompanyId].SellerName
|
|
|
|
+ cellDDatafw.Value = mapuserMapbil[item.CompanyId].ShareSeller
|
|
cellStatusData.Value = mapuserMapbil[item.CompanyId].Status
|
|
cellStatusData.Value = mapuserMapbil[item.CompanyId].Status
|
|
cellermissionNameData.Value = mapuserMapbil[item.CompanyId].ChartPermissionName
|
|
cellermissionNameData.Value = mapuserMapbil[item.CompanyId].ChartPermissionName
|
|
}
|
|
}
|