|
@@ -361,7 +361,7 @@ var (
|
|
|
)
|
|
|
|
|
|
// UseEntPack 企业数据包扣除
|
|
|
-func (this *dataExportPackStruct) UseEntPack(sess *httpsession.Session, userId, entId string, selectId string, phone, email string) error {
|
|
|
+func (this *dataExportPackStruct) UseEntPack(sess *httpsession.Session, userId, entId string, selectId string, exportPhone, exportEmail string) error {
|
|
|
if phone := getAndCacheUserPhone(sess, userId); phone != "" {
|
|
|
res := util.Mysql.FindOne("entniche_user", map[string]interface{}{"phone": phone, "ent_id": entId}, "id,ent_id", "")
|
|
|
if res == nil || len(*res) == 0 {
|
|
@@ -408,10 +408,10 @@ func (this *dataExportPackStruct) UseEntPack(sess *httpsession.Session, userId,
|
|
|
FilterId: selectId,
|
|
|
}
|
|
|
filterStr, _ := json.Marshal(filter)
|
|
|
- dataexport.SaveExportLog(util.Mysql, entIdInt, entUserId, count, newCount, remain_nums, export_nums, xlsxUrl, "2", string(filterStr), phone, email)
|
|
|
+ dataexport.SaveExportLog(util.Mysql, entIdInt, entUserId, count, newCount, remain_nums, export_nums, xlsxUrl, "2", string(filterStr), exportPhone, exportEmail)
|
|
|
dataexport.DeductNum(util.Mysql, util.Mgo_Qyfw, entIdInt, newCount)
|
|
|
cacheResult(nil, xlsxUrl, fmt.Sprintf("entPackResult_%s_%s", userId, selectId))
|
|
|
- sendPackExportMail(userId, selectId, email, xlsxUrl)
|
|
|
+ sendPackExportMail(userId, selectId, exportEmail, xlsxUrl)
|
|
|
for _, v := range *data {
|
|
|
util.MQFW.Save("entdataexport", v)
|
|
|
}
|