|
@@ -12,6 +12,7 @@ import (
|
|
. "personnelBehavior/internal/common"
|
|
. "personnelBehavior/internal/common"
|
|
"personnelBehavior/internal/consts"
|
|
"personnelBehavior/internal/consts"
|
|
"personnelBehavior/internal/model"
|
|
"personnelBehavior/internal/model"
|
|
|
|
+ "personnelBehavior/internal/utils"
|
|
"strconv"
|
|
"strconv"
|
|
"time"
|
|
"time"
|
|
)
|
|
)
|
|
@@ -133,6 +134,7 @@ func (dao *PersonnelDao) BatchExecInsert(ctx context.Context, in []*model.Person
|
|
_, err = g.DB().Model(dao.Model()).Data(insertData).Insert()
|
|
_, err = g.DB().Model(dao.Model()).Data(insertData).Insert()
|
|
if err != nil {
|
|
if err != nil {
|
|
g.Log().Error(ctx, "batch insert false, --err:", err)
|
|
g.Log().Error(ctx, "batch insert false, --err:", err)
|
|
|
|
+ utils.SendMsgByWXURL(fmt.Sprintf("人员行为统计数据存储异常。\n错误信息:\n%s", err.Error()), g.Config().MustGet(ctx, "webhookURL").Strings())
|
|
return
|
|
return
|
|
}
|
|
}
|
|
return
|
|
return
|