This commit is contained in:
邹宗楠
2024-07-25 15:19:21 +08:00
parent 9d73cf1cd0
commit 7e0f8155cd
2 changed files with 17 additions and 0 deletions

View File

@@ -1231,6 +1231,15 @@ func notifyStoreOperatorChanged(ctx *jxcontext.Context, storeID int, operatorRol
}
}
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, user.GetID(), fmt.Sprintf("门店%s变更", operatorRoleName), fmt.Sprintf("门店:%d,原%s:%s,变更为:%s操作人%s", storeID, operatorRoleName, user.GetName(), curUserName, ctx.GetFullUser().GetName()))
AddEventDetail(db, ctx, model.OperateUpdate, storeID, model.ThingTypeStore, storeID, BuildDiffData(map[string]interface{}{
"storeId": storeID,
operatorRoleName: user.GetName(),
"operator": ctx.GetFullUser().GetName(),
}), BuildDiffData(map[string]interface{}{
"storeId": storeID,
operatorRoleName: curUserName,
"operator": ctx.GetFullUser().GetName(),
}))
}
}
}
@@ -4775,6 +4784,12 @@ func UpdateVendorStoreBussinessStatus(ctx *jxcontext.Context, storeID int, vendo
}
}
vendorIDStr := ""
for _, v := range vendorID {
vendorIDStr += utils.Int2Str(v)
}
AddEventDetail(db, ctx, model.OperateUpdate, storeID, model.ThingTypeStore, storeID, "", utils.Int2Str(status))
event.AddOperateEvent(ctx, ctx.GetTrackInfo(), fmt.Sprintf("修改门店状态平台[%s],状态[%d]", vendorIDStr, status), "", "", 10, "UpdateStore")
if errList.GetErrListAsOne() != nil {
return errList.GetErrListAsOne()
}