作者 tangxuhui

调整 companyId 获取方式

{"D:\\workspaceGo\\src\\allied-creation-basic\\pkg\\port\\beego":1629095831904365000}
\ No newline at end of file
{"D:\\workspaceGo\\src\\allied-creation-basic\\pkg\\port\\beego":1629096718570970200}
\ No newline at end of file
... ...
... ... @@ -21,7 +21,7 @@ func (controller *NoticeSettingController) UpdateNoticeSetting() {
}
Id, _ := controller.GetInt64(":settingId")
updateNoticeSettingCommand.NoticeSettingId = Id
// updateNoticeSettingCommand.CompanyId = controller.GetCompanyId()
updateNoticeSettingCommand.CompanyId = controller.GetCompanyId()
data, err := noticeSettingService.UpdateNoticeSetting(updateNoticeSettingCommand)
controller.Response(data, err)
}
... ... @@ -42,7 +42,7 @@ func (controller *NoticeSettingController) ListNoticeSetting() {
if err != nil {
log.Logger.Debug(err.Error())
}
// listNoticeSettingQuery.CompanyId = controller.GetCompanyId()
listNoticeSettingQuery.CompanyId = controller.GetCompanyId()
count, listdata, err := noticeSettingService.ListNoticeSetting(listNoticeSettingQuery)
data := map[string]interface{}{
"noticeSettings": listdata,
... ...
... ... @@ -18,7 +18,7 @@ func (controller *SystemSettingController) UpdateSystemSetting() {
if err != nil {
log.Logger.Debug(err.Error())
}
// updateSystemSettingCommand.CompanyId = controller.GetCompanyId()
updateSystemSettingCommand.CompanyId = controller.GetCompanyId()
data, err := systemSettingService.UpdateSystemSetting(updateSystemSettingCommand)
controller.Response(data, err)
}
... ... @@ -30,7 +30,7 @@ func (controller *SystemSettingController) GetSystemSetting() {
if err != nil {
log.Logger.Debug(err.Error())
}
// getSystemSettingQuery.CompanyId = controller.GetCompanyId()
getSystemSettingQuery.CompanyId = controller.GetCompanyId()
data, err := systemSettingService.GetSystemSetting(getSystemSettingQuery)
controller.Response(data, err)
}
... ... @@ -38,7 +38,7 @@ func (controller *SystemSettingController) GetSystemSetting() {
func (controller *SystemSettingController) ListSystemSetting() {
systemSettingService := service.NewSystemSettingService(nil)
listSystemSettingQuery := &query.ListSystemSettingQuery{}
// listSystemSettingQuery.CompanyId = controller.GetCompanyId()
listSystemSettingQuery.CompanyId = controller.GetCompanyId()
data, err := systemSettingService.ListSystemSetting(listSystemSettingQuery)
controller.Response(data, err)
}
... ...