|
@@ -1837,7 +1837,7 @@ func ActivitySpecialPointsBillSubmitMeetingReduce(log models.YanXuanActivityPoin
|
|
|
}
|
|
|
|
|
|
//func init() {
|
|
|
-// SpecialActivityPointsBillRoadShowReduce(1893)
|
|
|
+// SpecialActivityPointsBillRoadShowReduce(1895)
|
|
|
//}
|
|
|
|
|
|
// 13: 给公司添加路演,对应专项调研扣点处理
|
|
@@ -1986,6 +1986,7 @@ func SpecialActivityPointsBillRoadShowReduce(log models.YanXuanActivityPointsRed
|
|
|
}
|
|
|
} else {
|
|
|
if mapActivityPointsBill[keyBill] != nil && mapActivityPointsBill[keyBill].DoType == 1 {
|
|
|
+ mapOldResearcherId[keyBill] = true
|
|
|
userItem := mapActivityPointsBill[keyBill]
|
|
|
points := mapCompanyPoints[companyId] - userItem.BillDetailed
|
|
|
item.BillDetailed = -userItem.BillDetailed
|
|
@@ -2015,7 +2016,7 @@ func SpecialActivityPointsBillRoadShowReduce(log models.YanXuanActivityPointsRed
|
|
|
|
|
|
if len(itemsOld) > 0 {
|
|
|
for _, user := range itemsOld {
|
|
|
- keyBill := fmt.Sprint(user.ResearcherId, "_CID", companyId)
|
|
|
+ keyBill := fmt.Sprint(user.ResearcherId, "_CID", user.CompanyId)
|
|
|
if mapOldResearcherId[keyBill] {
|
|
|
continue
|
|
|
}
|
|
@@ -2036,8 +2037,8 @@ func SpecialActivityPointsBillRoadShowReduce(log models.YanXuanActivityPointsRed
|
|
|
item.Total = fmt.Sprint(points, "次")
|
|
|
item.TableSource = utils.CYGX_OBJ_ROADSHOW
|
|
|
|
|
|
- item.CompanyId = rsCalendar.CompanyId
|
|
|
- item.CompanyName = rsCalendar.CompanyName
|
|
|
+ item.CompanyId = user.CompanyId
|
|
|
+ item.CompanyName = user.CompanyName
|
|
|
item.ResearcherId = user.ResearcherId
|
|
|
item.ResearcherName = user.ResearcherName
|
|
|
items = append(items, item)
|