1
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user