作者 tangxuhui

调整 companyId 获取方式

1 -{"D:\\workspaceGo\\src\\allied-creation-basic\\pkg\\port\\beego":1629095831904365000}  
  1 +{"D:\\workspaceGo\\src\\allied-creation-basic\\pkg\\port\\beego":1629096718570970200}
@@ -21,7 +21,7 @@ func (controller *NoticeSettingController) UpdateNoticeSetting() { @@ -21,7 +21,7 @@ func (controller *NoticeSettingController) UpdateNoticeSetting() {
21 } 21 }
22 Id, _ := controller.GetInt64(":settingId") 22 Id, _ := controller.GetInt64(":settingId")
23 updateNoticeSettingCommand.NoticeSettingId = Id 23 updateNoticeSettingCommand.NoticeSettingId = Id
24 - // updateNoticeSettingCommand.CompanyId = controller.GetCompanyId() 24 + updateNoticeSettingCommand.CompanyId = controller.GetCompanyId()
25 data, err := noticeSettingService.UpdateNoticeSetting(updateNoticeSettingCommand) 25 data, err := noticeSettingService.UpdateNoticeSetting(updateNoticeSettingCommand)
26 controller.Response(data, err) 26 controller.Response(data, err)
27 } 27 }
@@ -42,7 +42,7 @@ func (controller *NoticeSettingController) ListNoticeSetting() { @@ -42,7 +42,7 @@ func (controller *NoticeSettingController) ListNoticeSetting() {
42 if err != nil { 42 if err != nil {
43 log.Logger.Debug(err.Error()) 43 log.Logger.Debug(err.Error())
44 } 44 }
45 - // listNoticeSettingQuery.CompanyId = controller.GetCompanyId() 45 + listNoticeSettingQuery.CompanyId = controller.GetCompanyId()
46 count, listdata, err := noticeSettingService.ListNoticeSetting(listNoticeSettingQuery) 46 count, listdata, err := noticeSettingService.ListNoticeSetting(listNoticeSettingQuery)
47 data := map[string]interface{}{ 47 data := map[string]interface{}{
48 "noticeSettings": listdata, 48 "noticeSettings": listdata,
@@ -18,7 +18,7 @@ func (controller *SystemSettingController) UpdateSystemSetting() { @@ -18,7 +18,7 @@ func (controller *SystemSettingController) UpdateSystemSetting() {
18 if err != nil { 18 if err != nil {
19 log.Logger.Debug(err.Error()) 19 log.Logger.Debug(err.Error())
20 } 20 }
21 - // updateSystemSettingCommand.CompanyId = controller.GetCompanyId() 21 + updateSystemSettingCommand.CompanyId = controller.GetCompanyId()
22 data, err := systemSettingService.UpdateSystemSetting(updateSystemSettingCommand) 22 data, err := systemSettingService.UpdateSystemSetting(updateSystemSettingCommand)
23 controller.Response(data, err) 23 controller.Response(data, err)
24 } 24 }
@@ -30,7 +30,7 @@ func (controller *SystemSettingController) GetSystemSetting() { @@ -30,7 +30,7 @@ func (controller *SystemSettingController) GetSystemSetting() {
30 if err != nil { 30 if err != nil {
31 log.Logger.Debug(err.Error()) 31 log.Logger.Debug(err.Error())
32 } 32 }
33 - // getSystemSettingQuery.CompanyId = controller.GetCompanyId() 33 + getSystemSettingQuery.CompanyId = controller.GetCompanyId()
34 data, err := systemSettingService.GetSystemSetting(getSystemSettingQuery) 34 data, err := systemSettingService.GetSystemSetting(getSystemSettingQuery)
35 controller.Response(data, err) 35 controller.Response(data, err)
36 } 36 }
@@ -38,7 +38,7 @@ func (controller *SystemSettingController) GetSystemSetting() { @@ -38,7 +38,7 @@ func (controller *SystemSettingController) GetSystemSetting() {
38 func (controller *SystemSettingController) ListSystemSetting() { 38 func (controller *SystemSettingController) ListSystemSetting() {
39 systemSettingService := service.NewSystemSettingService(nil) 39 systemSettingService := service.NewSystemSettingService(nil)
40 listSystemSettingQuery := &query.ListSystemSettingQuery{} 40 listSystemSettingQuery := &query.ListSystemSettingQuery{}
41 - // listSystemSettingQuery.CompanyId = controller.GetCompanyId() 41 + listSystemSettingQuery.CompanyId = controller.GetCompanyId()
42 data, err := systemSettingService.ListSystemSetting(listSystemSettingQuery) 42 data, err := systemSettingService.ListSystemSetting(listSystemSettingQuery)
43 controller.Response(data, err) 43 controller.Response(data, err)
44 } 44 }