正在显示
7 个修改的文件
包含
75 行增加
和
54 行删除
@@ -244,10 +244,27 @@ func (dividendsOrderService *DividendsOrderService) ListDividendsOrders(listDivi | @@ -244,10 +244,27 @@ func (dividendsOrderService *DividendsOrderService) ListDividendsOrders(listDivi | ||
244 | defer func() { | 244 | defer func() { |
245 | _ = transactionContext.RollbackTransaction() | 245 | _ = transactionContext.RollbackTransaction() |
246 | }() | 246 | }() |
247 | - if err := transactionContext.CommitTransaction(); err != nil { | ||
248 | - return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | 247 | + var dividendsOrderRepository domain.DividendsOrderRepository |
248 | + if value, err := factory.CreateDividendsOrderRepository(map[string]interface{}{ | ||
249 | + "transactionContext": transactionContext, | ||
250 | + }); err != nil { | ||
251 | + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | ||
252 | + } else { | ||
253 | + dividendsOrderRepository = value | ||
254 | + } | ||
255 | + if count, dividendsOrders, err := dividendsOrderRepository.Find(tool_funs.SimpleStructToMap(listDividendsOrdersQuery)); err != nil { | ||
256 | + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | ||
257 | + } else { | ||
258 | + if err := transactionContext.CommitTransaction(); err != nil { | ||
259 | + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | ||
260 | + } | ||
261 | + return map[string]interface{}{ | ||
262 | + "grid": map[string]interface{}{ | ||
263 | + "total": count, | ||
264 | + "list": dividendsOrders, | ||
265 | + }, | ||
266 | + }, nil | ||
249 | } | 267 | } |
250 | - return nil, nil | ||
251 | } | 268 | } |
252 | 269 | ||
253 | // RemoveDividendsOrder 移除分红订单实体对象 | 270 | // RemoveDividendsOrder 移除分红订单实体对象 |
@@ -305,13 +322,30 @@ func (dividendsOrderService *DividendsOrderService) SearchDividendsOrder(searchD | @@ -305,13 +322,30 @@ func (dividendsOrderService *DividendsOrderService) SearchDividendsOrder(searchD | ||
305 | defer func() { | 322 | defer func() { |
306 | _ = transactionContext.RollbackTransaction() | 323 | _ = transactionContext.RollbackTransaction() |
307 | }() | 324 | }() |
308 | - if err := transactionContext.CommitTransaction(); err != nil { | ||
309 | - return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | 325 | + var dividendsOrderRepository domain.DividendsOrderRepository |
326 | + if value, err := factory.CreateDividendsOrderRepository(map[string]interface{}{ | ||
327 | + "transactionContext": transactionContext, | ||
328 | + }); err != nil { | ||
329 | + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | ||
330 | + } else { | ||
331 | + dividendsOrderRepository = value | ||
332 | + } | ||
333 | + if count, dividendsOrders, err := dividendsOrderRepository.Find(tool_funs.SimpleStructToMap(searchDividendsOrderQuery)); err != nil { | ||
334 | + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | ||
335 | + } else { | ||
336 | + if err := transactionContext.CommitTransaction(); err != nil { | ||
337 | + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | ||
338 | + } | ||
339 | + return map[string]interface{}{ | ||
340 | + "grid": map[string]interface{}{ | ||
341 | + "total": count, | ||
342 | + "list": dividendsOrders, | ||
343 | + }, | ||
344 | + }, nil | ||
310 | } | 345 | } |
311 | - return nil, nil | ||
312 | } | 346 | } |
313 | 347 | ||
314 | -// SearchDividendsOrderNumber 查询分红订单方法 | 348 | +// SearchDividendsOrderNumber 查询分红订单号 |
315 | func (dividendsOrderService *DividendsOrderService) SearchDividendsOrderNumber(searchDividendsOrderNumberQuery *query.SearchDividendsOrderNumberQuery) (interface{}, error) { | 349 | func (dividendsOrderService *DividendsOrderService) SearchDividendsOrderNumber(searchDividendsOrderNumberQuery *query.SearchDividendsOrderNumberQuery) (interface{}, error) { |
316 | if err := searchDividendsOrderNumberQuery.ValidateQuery(); err != nil { | 350 | if err := searchDividendsOrderNumberQuery.ValidateQuery(); err != nil { |
317 | return nil, application.ThrowError(application.ARG_ERROR, err.Error()) | 351 | return nil, application.ThrowError(application.ARG_ERROR, err.Error()) |
@@ -326,10 +360,28 @@ func (dividendsOrderService *DividendsOrderService) SearchDividendsOrderNumber(s | @@ -326,10 +360,28 @@ func (dividendsOrderService *DividendsOrderService) SearchDividendsOrderNumber(s | ||
326 | defer func() { | 360 | defer func() { |
327 | _ = transactionContext.RollbackTransaction() | 361 | _ = transactionContext.RollbackTransaction() |
328 | }() | 362 | }() |
329 | - if err := transactionContext.CommitTransaction(); err != nil { | ||
330 | - return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | 363 | + var dividendsOrderRepository domain.DividendsOrderRepository |
364 | + if value, err := factory.CreateDividendsOrderRepository(map[string]interface{}{ | ||
365 | + "transactionContext": transactionContext, | ||
366 | + }); err != nil { | ||
367 | + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | ||
368 | + } else { | ||
369 | + dividendsOrderRepository = value | ||
370 | + } | ||
371 | + if _, dividendsOrders, err := dividendsOrderRepository.Find(tool_funs.SimpleStructToMap(searchDividendsOrderNumberQuery)); err != nil { | ||
372 | + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | ||
373 | + } else { | ||
374 | + if err := transactionContext.CommitTransaction(); err != nil { | ||
375 | + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | ||
376 | + } | ||
377 | + var dividendsOrderNumbers []string | ||
378 | + for _, dividendsOrder := range dividendsOrders { | ||
379 | + dividendsOrderNumbers = append(dividendsOrderNumbers, dividendsOrder.DividendsOrderNumber) | ||
380 | + } | ||
381 | + return map[string]interface{}{ | ||
382 | + "dividendsOrderNumber": dividendsOrderNumbers, | ||
383 | + }, nil | ||
331 | } | 384 | } |
332 | - return nil, nil | ||
333 | } | 385 | } |
334 | 386 | ||
335 | // UpdateDividendsOrder 更新分红订单实体对象 | 387 | // UpdateDividendsOrder 更新分红订单实体对象 |
1 | package domain | 1 | package domain |
2 | 2 | ||
3 | type AccountDetail struct { | 3 | type AccountDetail struct { |
4 | - // 承接人分红预算单号 | 4 | + // 分红预算单号 |
5 | DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"` | 5 | DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"` |
6 | // 分红类型 | 6 | // 分红类型 |
7 | DividendsType string `json:"dividendsType"` | 7 | DividendsType string `json:"dividendsType"` |
@@ -26,6 +26,7 @@ func (repository *DividendsOrderRepository) nextIdentify() (int64, error) { | @@ -26,6 +26,7 @@ func (repository *DividendsOrderRepository) nextIdentify() (int64, error) { | ||
26 | id, err := IdWorker.NextId() | 26 | id, err := IdWorker.NextId() |
27 | return id, err | 27 | return id, err |
28 | } | 28 | } |
29 | + | ||
29 | func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.DividendsOrder) (*domain.DividendsOrder, error) { | 30 | func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.DividendsOrder) (*domain.DividendsOrder, error) { |
30 | sqlBuildFields := []string{ | 31 | sqlBuildFields := []string{ |
31 | "dividends_order_id", | 32 | "dividends_order_id", |
@@ -95,7 +96,7 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend | @@ -95,7 +96,7 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend | ||
95 | dividendsOrder.Org, | 96 | dividendsOrder.Org, |
96 | dividendsOrder.Company, | 97 | dividendsOrder.Company, |
97 | dividendsOrder.CreatedAt, | 98 | dividendsOrder.CreatedAt, |
98 | - dividendsOrder.DeletedAt, | 99 | + nil, |
99 | dividendsOrder.UpdatedAt, | 100 | dividendsOrder.UpdatedAt, |
100 | dividendsOrder.OperateTime, | 101 | dividendsOrder.OperateTime, |
101 | dividendsOrder.Operator, | 102 | dividendsOrder.Operator, |
@@ -159,7 +160,7 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend | @@ -159,7 +160,7 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend | ||
159 | dividendsOrder.Org, | 160 | dividendsOrder.Org, |
160 | dividendsOrder.Company, | 161 | dividendsOrder.Company, |
161 | dividendsOrder.CreatedAt, | 162 | dividendsOrder.CreatedAt, |
162 | - dividendsOrder.DeletedAt, | 163 | + nil, |
163 | dividendsOrder.UpdatedAt, | 164 | dividendsOrder.UpdatedAt, |
164 | dividendsOrder.OperateTime, | 165 | dividendsOrder.OperateTime, |
165 | dividendsOrder.Operator, | 166 | dividendsOrder.Operator, |
@@ -254,6 +255,7 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend | @@ -254,6 +255,7 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend | ||
254 | } | 255 | } |
255 | return dividendsOrder, nil | 256 | return dividendsOrder, nil |
256 | } | 257 | } |
258 | + | ||
257 | func (repository *DividendsOrderRepository) Remove(dividendsOrder *domain.DividendsOrder) (*domain.DividendsOrder, error) { | 259 | func (repository *DividendsOrderRepository) Remove(dividendsOrder *domain.DividendsOrder) (*domain.DividendsOrder, error) { |
258 | tx := repository.transactionContext.PgTx | 260 | tx := repository.transactionContext.PgTx |
259 | dividendsOrderModel := new(models.DividendsOrder) | 261 | dividendsOrderModel := new(models.DividendsOrder) |
@@ -261,19 +263,15 @@ func (repository *DividendsOrderRepository) Remove(dividendsOrder *domain.Divide | @@ -261,19 +263,15 @@ func (repository *DividendsOrderRepository) Remove(dividendsOrder *domain.Divide | ||
261 | if _, err := tx.Model(dividendsOrderModel).WherePK().Delete(); err != nil { | 263 | if _, err := tx.Model(dividendsOrderModel).WherePK().Delete(); err != nil { |
262 | return dividendsOrder, err | 264 | return dividendsOrder, err |
263 | } else { | 265 | } else { |
264 | - // 获取订单产品 | 266 | + // 删除订单产品 |
265 | var orderGoodModels []*models.OrderGood | 267 | var orderGoodModels []*models.OrderGood |
266 | - orderGoodModelQuery := tx.Model(&orderGoodModels) | ||
267 | - if err := orderGoodModelQuery.Where("dividends_order_number = ?", dividendsOrderModel.DividendsOrderNumber).Select(); err != nil { | ||
268 | - return nil, err | ||
269 | - } | ||
270 | - // 批量删除订单产品 | ||
271 | - if _, err := tx.Model(&orderGoodModels).WherePK().Delete(); err != nil { | 268 | + if _, err := tx.Model(&orderGoodModels).Where("dividends_order_number = ?", dividendsOrder.DividendsOrderNumber).Delete(); err != nil { |
272 | return nil, err | 269 | return nil, err |
273 | } | 270 | } |
274 | } | 271 | } |
275 | return dividendsOrder, nil | 272 | return dividendsOrder, nil |
276 | } | 273 | } |
274 | + | ||
277 | func (repository *DividendsOrderRepository) FindOne(queryOptions map[string]interface{}) (*domain.DividendsOrder, error) { | 275 | func (repository *DividendsOrderRepository) FindOne(queryOptions map[string]interface{}) (*domain.DividendsOrder, error) { |
278 | tx := repository.transactionContext.PgTx | 276 | tx := repository.transactionContext.PgTx |
279 | dividendsOrderModel := new(models.DividendsOrder) | 277 | dividendsOrderModel := new(models.DividendsOrder) |
@@ -299,11 +297,15 @@ func (repository *DividendsOrderRepository) FindOne(queryOptions map[string]inte | @@ -299,11 +297,15 @@ func (repository *DividendsOrderRepository) FindOne(queryOptions map[string]inte | ||
299 | return transform.TransformToDividendsOrderDomainModelFromPgModels(dividendsOrderModel, orderGoodModels) | 297 | return transform.TransformToDividendsOrderDomainModelFromPgModels(dividendsOrderModel, orderGoodModels) |
300 | } | 298 | } |
301 | } | 299 | } |
300 | + | ||
302 | func (repository *DividendsOrderRepository) Find(queryOptions map[string]interface{}) (int64, []*domain.DividendsOrder, error) { | 301 | func (repository *DividendsOrderRepository) Find(queryOptions map[string]interface{}) (int64, []*domain.DividendsOrder, error) { |
303 | tx := repository.transactionContext.PgTx | 302 | tx := repository.transactionContext.PgTx |
304 | var dividendsOrderModels []*models.DividendsOrder | 303 | var dividendsOrderModels []*models.DividendsOrder |
305 | dividendsOrders := make([]*domain.DividendsOrder, 0) | 304 | dividendsOrders := make([]*domain.DividendsOrder, 0) |
306 | query := sqlbuilder.BuildQuery(tx.Model(÷ndsOrderModels), queryOptions) | 305 | query := sqlbuilder.BuildQuery(tx.Model(÷ndsOrderModels), queryOptions) |
306 | + if dividendsOrderNumber, ok := queryOptions["dividendsOrderNumber"]; ok && dividendsOrderNumber != "" { | ||
307 | + query.Where("dividends_order_number like ?", fmt.Sprintf("%%%s%%", dividendsOrderNumber)) | ||
308 | + } | ||
307 | offsetLimitFlag := true | 309 | offsetLimitFlag := true |
308 | if offsetLimit, ok := queryOptions["offsetLimit"]; ok { | 310 | if offsetLimit, ok := queryOptions["offsetLimit"]; ok { |
309 | offsetLimitFlag = offsetLimit.(bool) | 311 | offsetLimitFlag = offsetLimit.(bool) |
@@ -332,6 +334,7 @@ func (repository *DividendsOrderRepository) Find(queryOptions map[string]interfa | @@ -332,6 +334,7 @@ func (repository *DividendsOrderRepository) Find(queryOptions map[string]interfa | ||
332 | return int64(count), dividendsOrders, nil | 334 | return int64(count), dividendsOrders, nil |
333 | } | 335 | } |
334 | } | 336 | } |
337 | + | ||
335 | func NewDividendsOrderRepository(transactionContext *pgTransaction.TransactionContext) (*DividendsOrderRepository, error) { | 338 | func NewDividendsOrderRepository(transactionContext *pgTransaction.TransactionContext) (*DividendsOrderRepository, error) { |
336 | if transactionContext == nil { | 339 | if transactionContext == nil { |
337 | return nil, fmt.Errorf("transactionContext参数不能为nil") | 340 | return nil, fmt.Errorf("transactionContext参数不能为nil") |
@@ -14,7 +14,6 @@ func (controller *CooperationProjectController) ReleaseCooperationProject() { | @@ -14,7 +14,6 @@ func (controller *CooperationProjectController) ReleaseCooperationProject() { | ||
14 | cooperationProjectService := service.NewCooperationProjectService(nil) | 14 | cooperationProjectService := service.NewCooperationProjectService(nil) |
15 | releaseCooperationProjectCommand := &command.ReleaseCooperationProjectCommand{} | 15 | releaseCooperationProjectCommand := &command.ReleaseCooperationProjectCommand{} |
16 | _ = controller.Unmarshal(releaseCooperationProjectCommand) | 16 | _ = controller.Unmarshal(releaseCooperationProjectCommand) |
17 | - // 解析头部信息 | ||
18 | header := controller.GetRequestHeader(controller.Ctx) | 17 | header := controller.GetRequestHeader(controller.Ctx) |
19 | releaseCooperationProjectCommand.CompanyId = header.CompanyId | 18 | releaseCooperationProjectCommand.CompanyId = header.CompanyId |
20 | releaseCooperationProjectCommand.OrgId = header.OrgId | 19 | releaseCooperationProjectCommand.OrgId = header.OrgId |
@@ -28,7 +27,6 @@ func (controller *CooperationProjectController) CreateCooperationProject() { | @@ -28,7 +27,6 @@ func (controller *CooperationProjectController) CreateCooperationProject() { | ||
28 | cooperationProjectService := service.NewCooperationProjectService(nil) | 27 | cooperationProjectService := service.NewCooperationProjectService(nil) |
29 | createCooperationProjectCommand := &command.CreateCooperationProjectCommand{} | 28 | createCooperationProjectCommand := &command.CreateCooperationProjectCommand{} |
30 | _ = controller.Unmarshal(createCooperationProjectCommand) | 29 | _ = controller.Unmarshal(createCooperationProjectCommand) |
31 | - // 解析头部信息 | ||
32 | header := controller.GetRequestHeader(controller.Ctx) | 30 | header := controller.GetRequestHeader(controller.Ctx) |
33 | createCooperationProjectCommand.CompanyId = header.CompanyId | 31 | createCooperationProjectCommand.CompanyId = header.CompanyId |
34 | createCooperationProjectCommand.OrgId = header.OrgId | 32 | createCooperationProjectCommand.OrgId = header.OrgId |
@@ -42,7 +40,6 @@ func (controller *CooperationProjectController) UpdateCooperationProject() { | @@ -42,7 +40,6 @@ func (controller *CooperationProjectController) UpdateCooperationProject() { | ||
42 | cooperationProjectService := service.NewCooperationProjectService(nil) | 40 | cooperationProjectService := service.NewCooperationProjectService(nil) |
43 | updateCooperationProjectCommand := &command.UpdateCooperationProjectCommand{} | 41 | updateCooperationProjectCommand := &command.UpdateCooperationProjectCommand{} |
44 | _ = controller.Unmarshal(updateCooperationProjectCommand) | 42 | _ = controller.Unmarshal(updateCooperationProjectCommand) |
45 | - // 解析头部信息 | ||
46 | header := controller.GetRequestHeader(controller.Ctx) | 43 | header := controller.GetRequestHeader(controller.Ctx) |
47 | updateCooperationProjectCommand.CompanyId = header.CompanyId | 44 | updateCooperationProjectCommand.CompanyId = header.CompanyId |
48 | updateCooperationProjectCommand.OrgId = header.OrgId | 45 | updateCooperationProjectCommand.OrgId = header.OrgId |
@@ -57,7 +54,6 @@ func (controller *CooperationProjectController) UpdateCooperationProject() { | @@ -57,7 +54,6 @@ func (controller *CooperationProjectController) UpdateCooperationProject() { | ||
57 | func (controller *CooperationProjectController) GetCooperationProject() { | 54 | func (controller *CooperationProjectController) GetCooperationProject() { |
58 | cooperationProjectService := service.NewCooperationProjectService(nil) | 55 | cooperationProjectService := service.NewCooperationProjectService(nil) |
59 | getCooperationProjectQuery := &query.GetCooperationProjectQuery{} | 56 | getCooperationProjectQuery := &query.GetCooperationProjectQuery{} |
60 | - // 解析头部信息 | ||
61 | header := controller.GetRequestHeader(controller.Ctx) | 57 | header := controller.GetRequestHeader(controller.Ctx) |
62 | getCooperationProjectQuery.CompanyId = header.CompanyId | 58 | getCooperationProjectQuery.CompanyId = header.CompanyId |
63 | getCooperationProjectQuery.OrgId = header.OrgId | 59 | getCooperationProjectQuery.OrgId = header.OrgId |
@@ -73,7 +69,6 @@ func (controller *CooperationProjectController) RemoveCooperationProject() { | @@ -73,7 +69,6 @@ func (controller *CooperationProjectController) RemoveCooperationProject() { | ||
73 | cooperationProjectService := service.NewCooperationProjectService(nil) | 69 | cooperationProjectService := service.NewCooperationProjectService(nil) |
74 | removeCooperationProjectCommand := &command.RemoveCooperationProjectCommand{} | 70 | removeCooperationProjectCommand := &command.RemoveCooperationProjectCommand{} |
75 | _ = controller.Unmarshal(removeCooperationProjectCommand) | 71 | _ = controller.Unmarshal(removeCooperationProjectCommand) |
76 | - // 解析头部信息 | ||
77 | header := controller.GetRequestHeader(controller.Ctx) | 72 | header := controller.GetRequestHeader(controller.Ctx) |
78 | removeCooperationProjectCommand.CompanyId = header.CompanyId | 73 | removeCooperationProjectCommand.CompanyId = header.CompanyId |
79 | removeCooperationProjectCommand.OrgId = header.OrgId | 74 | removeCooperationProjectCommand.OrgId = header.OrgId |
@@ -89,7 +84,6 @@ func (controller *CooperationProjectController) SearchCooperationProject() { | @@ -89,7 +84,6 @@ func (controller *CooperationProjectController) SearchCooperationProject() { | ||
89 | cooperationProjectService := service.NewCooperationProjectService(nil) | 84 | cooperationProjectService := service.NewCooperationProjectService(nil) |
90 | searchCooperationProjectQuery := &query.SearchCooperationProjectQuery{} | 85 | searchCooperationProjectQuery := &query.SearchCooperationProjectQuery{} |
91 | controller.Unmarshal(searchCooperationProjectQuery) | 86 | controller.Unmarshal(searchCooperationProjectQuery) |
92 | - // 解析头部信息 | ||
93 | header := controller.GetRequestHeader(controller.Ctx) | 87 | header := controller.GetRequestHeader(controller.Ctx) |
94 | searchCooperationProjectQuery.CompanyId = header.CompanyId | 88 | searchCooperationProjectQuery.CompanyId = header.CompanyId |
95 | searchCooperationProjectQuery.OrgId = header.OrgId | 89 | searchCooperationProjectQuery.OrgId = header.OrgId |
@@ -102,7 +96,6 @@ func (controller *CooperationProjectController) SearchCooperationProject() { | @@ -102,7 +96,6 @@ func (controller *CooperationProjectController) SearchCooperationProject() { | ||
102 | func (controller *CooperationProjectController) CheckUndertaker() { | 96 | func (controller *CooperationProjectController) CheckUndertaker() { |
103 | cooperationProjectService := service.NewCooperationProjectService(nil) | 97 | cooperationProjectService := service.NewCooperationProjectService(nil) |
104 | checkUndertakerQuery := &query.CheckUndertakerQuery{} | 98 | checkUndertakerQuery := &query.CheckUndertakerQuery{} |
105 | - // 解析头部信息 | ||
106 | header := controller.GetRequestHeader(controller.Ctx) | 99 | header := controller.GetRequestHeader(controller.Ctx) |
107 | checkUndertakerQuery.CompanyId = header.CompanyId | 100 | checkUndertakerQuery.CompanyId = header.CompanyId |
108 | checkUndertakerQuery.OrgId = header.OrgId | 101 | checkUndertakerQuery.OrgId = header.OrgId |
@@ -115,7 +108,6 @@ func (controller *CooperationProjectController) CheckUndertaker() { | @@ -115,7 +108,6 @@ func (controller *CooperationProjectController) CheckUndertaker() { | ||
115 | func (controller *CooperationProjectController) ListCooperationProject() { | 108 | func (controller *CooperationProjectController) ListCooperationProject() { |
116 | cooperationProjectService := service.NewCooperationProjectService(nil) | 109 | cooperationProjectService := service.NewCooperationProjectService(nil) |
117 | listCooperationProjectQuery := &query.ListCooperationProjectQuery{} | 110 | listCooperationProjectQuery := &query.ListCooperationProjectQuery{} |
118 | - // 解析头部信息 | ||
119 | header := controller.GetRequestHeader(controller.Ctx) | 111 | header := controller.GetRequestHeader(controller.Ctx) |
120 | listCooperationProjectQuery.CompanyId = header.CompanyId | 112 | listCooperationProjectQuery.CompanyId = header.CompanyId |
121 | listCooperationProjectQuery.OrgId = header.OrgId | 113 | listCooperationProjectQuery.OrgId = header.OrgId |
@@ -14,7 +14,6 @@ func (controller *CreditAccountController) CreateCreditAccount() { | @@ -14,7 +14,6 @@ func (controller *CreditAccountController) CreateCreditAccount() { | ||
14 | creditAccountService := service.NewCreditAccountService(nil) | 14 | creditAccountService := service.NewCreditAccountService(nil) |
15 | createCreditAccountCommand := &command.CreateCreditAccountCommand{} | 15 | createCreditAccountCommand := &command.CreateCreditAccountCommand{} |
16 | _ = controller.Unmarshal(createCreditAccountCommand) | 16 | _ = controller.Unmarshal(createCreditAccountCommand) |
17 | - // 解析头部信息 | ||
18 | header := controller.GetRequestHeader(controller.Ctx) | 17 | header := controller.GetRequestHeader(controller.Ctx) |
19 | createCreditAccountCommand.CompanyId = header.CompanyId | 18 | createCreditAccountCommand.CompanyId = header.CompanyId |
20 | createCreditAccountCommand.OrgId = header.OrgId | 19 | createCreditAccountCommand.OrgId = header.OrgId |
@@ -28,7 +27,6 @@ func (controller *CreditAccountController) UpdateCreditAccount() { | @@ -28,7 +27,6 @@ func (controller *CreditAccountController) UpdateCreditAccount() { | ||
28 | creditAccountService := service.NewCreditAccountService(nil) | 27 | creditAccountService := service.NewCreditAccountService(nil) |
29 | updateCreditAccountCommand := &command.UpdateCreditAccountCommand{} | 28 | updateCreditAccountCommand := &command.UpdateCreditAccountCommand{} |
30 | _ = controller.Unmarshal(updateCreditAccountCommand) | 29 | _ = controller.Unmarshal(updateCreditAccountCommand) |
31 | - // 解析头部信息 | ||
32 | header := controller.GetRequestHeader(controller.Ctx) | 30 | header := controller.GetRequestHeader(controller.Ctx) |
33 | updateCreditAccountCommand.CompanyId = header.CompanyId | 31 | updateCreditAccountCommand.CompanyId = header.CompanyId |
34 | updateCreditAccountCommand.OrgId = header.OrgId | 32 | updateCreditAccountCommand.OrgId = header.OrgId |
@@ -43,7 +41,6 @@ func (controller *CreditAccountController) UpdateCreditAccount() { | @@ -43,7 +41,6 @@ func (controller *CreditAccountController) UpdateCreditAccount() { | ||
43 | func (controller *CreditAccountController) GetCreditAccount() { | 41 | func (controller *CreditAccountController) GetCreditAccount() { |
44 | creditAccountService := service.NewCreditAccountService(nil) | 42 | creditAccountService := service.NewCreditAccountService(nil) |
45 | getCreditAccountQuery := &query.GetCreditAccountQuery{} | 43 | getCreditAccountQuery := &query.GetCreditAccountQuery{} |
46 | - // 解析头部信息 | ||
47 | header := controller.GetRequestHeader(controller.Ctx) | 44 | header := controller.GetRequestHeader(controller.Ctx) |
48 | getCreditAccountQuery.CompanyId = header.CompanyId | 45 | getCreditAccountQuery.CompanyId = header.CompanyId |
49 | getCreditAccountQuery.OrgId = header.OrgId | 46 | getCreditAccountQuery.OrgId = header.OrgId |
@@ -59,7 +56,6 @@ func (controller *CreditAccountController) RemoveCreditAccount() { | @@ -59,7 +56,6 @@ func (controller *CreditAccountController) RemoveCreditAccount() { | ||
59 | creditAccountService := service.NewCreditAccountService(nil) | 56 | creditAccountService := service.NewCreditAccountService(nil) |
60 | removeCreditAccountCommand := &command.RemoveCreditAccountCommand{} | 57 | removeCreditAccountCommand := &command.RemoveCreditAccountCommand{} |
61 | _ = controller.Unmarshal(removeCreditAccountCommand) | 58 | _ = controller.Unmarshal(removeCreditAccountCommand) |
62 | - // 解析头部信息 | ||
63 | header := controller.GetRequestHeader(controller.Ctx) | 59 | header := controller.GetRequestHeader(controller.Ctx) |
64 | removeCreditAccountCommand.CompanyId = header.CompanyId | 60 | removeCreditAccountCommand.CompanyId = header.CompanyId |
65 | removeCreditAccountCommand.OrgId = header.OrgId | 61 | removeCreditAccountCommand.OrgId = header.OrgId |
@@ -74,7 +70,6 @@ func (controller *CreditAccountController) RemoveCreditAccount() { | @@ -74,7 +70,6 @@ func (controller *CreditAccountController) RemoveCreditAccount() { | ||
74 | func (controller *CreditAccountController) SearchCreditAccount() { | 70 | func (controller *CreditAccountController) SearchCreditAccount() { |
75 | creditAccountService := service.NewCreditAccountService(nil) | 71 | creditAccountService := service.NewCreditAccountService(nil) |
76 | searchCreditAccountQuery := &query.SearchCreditAccountQuery{} | 72 | searchCreditAccountQuery := &query.SearchCreditAccountQuery{} |
77 | - // 解析头部信息 | ||
78 | header := controller.GetRequestHeader(controller.Ctx) | 73 | header := controller.GetRequestHeader(controller.Ctx) |
79 | searchCreditAccountQuery.CompanyId = header.CompanyId | 74 | searchCreditAccountQuery.CompanyId = header.CompanyId |
80 | searchCreditAccountQuery.OrgId = header.OrgId | 75 | searchCreditAccountQuery.OrgId = header.OrgId |
@@ -88,7 +83,6 @@ func (controller *CreditAccountController) PayCreditAccount() { | @@ -88,7 +83,6 @@ func (controller *CreditAccountController) PayCreditAccount() { | ||
88 | creditAccountService := service.NewCreditAccountService(nil) | 83 | creditAccountService := service.NewCreditAccountService(nil) |
89 | payCreditAccountCommand := &command.PayCreditAccountCommand{} | 84 | payCreditAccountCommand := &command.PayCreditAccountCommand{} |
90 | _ = controller.Unmarshal(payCreditAccountCommand) | 85 | _ = controller.Unmarshal(payCreditAccountCommand) |
91 | - // 解析头部信息 | ||
92 | header := controller.GetRequestHeader(controller.Ctx) | 86 | header := controller.GetRequestHeader(controller.Ctx) |
93 | payCreditAccountCommand.CompanyId = header.CompanyId | 87 | payCreditAccountCommand.CompanyId = header.CompanyId |
94 | payCreditAccountCommand.OrgId = header.OrgId | 88 | payCreditAccountCommand.OrgId = header.OrgId |
@@ -101,7 +95,6 @@ func (controller *CreditAccountController) PayCreditAccount() { | @@ -101,7 +95,6 @@ func (controller *CreditAccountController) PayCreditAccount() { | ||
101 | func (controller *CreditAccountController) ListCreditAccount() { | 95 | func (controller *CreditAccountController) ListCreditAccount() { |
102 | creditAccountService := service.NewCreditAccountService(nil) | 96 | creditAccountService := service.NewCreditAccountService(nil) |
103 | listCreditAccountQuery := &query.ListCreditAccountQuery{} | 97 | listCreditAccountQuery := &query.ListCreditAccountQuery{} |
104 | - // 解析头部信息 | ||
105 | header := controller.GetRequestHeader(controller.Ctx) | 98 | header := controller.GetRequestHeader(controller.Ctx) |
106 | listCreditAccountQuery.CompanyId = header.CompanyId | 99 | listCreditAccountQuery.CompanyId = header.CompanyId |
107 | listCreditAccountQuery.OrgId = header.OrgId | 100 | listCreditAccountQuery.OrgId = header.OrgId |
@@ -14,7 +14,6 @@ func (controller *DividendsEstimateController) CreateDividendsEstimate() { | @@ -14,7 +14,6 @@ func (controller *DividendsEstimateController) CreateDividendsEstimate() { | ||
14 | dividendsEstimateService := service.NewDividendsEstimateService(nil) | 14 | dividendsEstimateService := service.NewDividendsEstimateService(nil) |
15 | createDividendsEstimateCommand := &command.CreateDividendsEstimateCommand{} | 15 | createDividendsEstimateCommand := &command.CreateDividendsEstimateCommand{} |
16 | _ = controller.Unmarshal(createDividendsEstimateCommand) | 16 | _ = controller.Unmarshal(createDividendsEstimateCommand) |
17 | - // 解析头部信息 | ||
18 | header := controller.GetRequestHeader(controller.Ctx) | 17 | header := controller.GetRequestHeader(controller.Ctx) |
19 | createDividendsEstimateCommand.CompanyId = header.CompanyId | 18 | createDividendsEstimateCommand.CompanyId = header.CompanyId |
20 | createDividendsEstimateCommand.OrgId = header.OrgId | 19 | createDividendsEstimateCommand.OrgId = header.OrgId |
@@ -28,7 +27,6 @@ func (controller *DividendsEstimateController) UpdateDividendsEstimate() { | @@ -28,7 +27,6 @@ func (controller *DividendsEstimateController) UpdateDividendsEstimate() { | ||
28 | dividendsEstimateService := service.NewDividendsEstimateService(nil) | 27 | dividendsEstimateService := service.NewDividendsEstimateService(nil) |
29 | updateDividendsEstimateCommand := &command.UpdateDividendsEstimateCommand{} | 28 | updateDividendsEstimateCommand := &command.UpdateDividendsEstimateCommand{} |
30 | _ = controller.Unmarshal(updateDividendsEstimateCommand) | 29 | _ = controller.Unmarshal(updateDividendsEstimateCommand) |
31 | - // 解析头部信息 | ||
32 | header := controller.GetRequestHeader(controller.Ctx) | 30 | header := controller.GetRequestHeader(controller.Ctx) |
33 | updateDividendsEstimateCommand.CompanyId = header.CompanyId | 31 | updateDividendsEstimateCommand.CompanyId = header.CompanyId |
34 | updateDividendsEstimateCommand.OrgId = header.OrgId | 32 | updateDividendsEstimateCommand.OrgId = header.OrgId |
@@ -43,7 +41,6 @@ func (controller *DividendsEstimateController) UpdateDividendsEstimate() { | @@ -43,7 +41,6 @@ func (controller *DividendsEstimateController) UpdateDividendsEstimate() { | ||
43 | func (controller *DividendsEstimateController) GetDividendsEstimate() { | 41 | func (controller *DividendsEstimateController) GetDividendsEstimate() { |
44 | dividendsEstimateService := service.NewDividendsEstimateService(nil) | 42 | dividendsEstimateService := service.NewDividendsEstimateService(nil) |
45 | getDividendsEstimateQuery := &query.GetDividendsEstimateQuery{} | 43 | getDividendsEstimateQuery := &query.GetDividendsEstimateQuery{} |
46 | - // 解析头部信息 | ||
47 | header := controller.GetRequestHeader(controller.Ctx) | 44 | header := controller.GetRequestHeader(controller.Ctx) |
48 | getDividendsEstimateQuery.CompanyId = header.CompanyId | 45 | getDividendsEstimateQuery.CompanyId = header.CompanyId |
49 | getDividendsEstimateQuery.OrgId = header.OrgId | 46 | getDividendsEstimateQuery.OrgId = header.OrgId |
@@ -59,7 +56,6 @@ func (controller *DividendsEstimateController) RemoveDividendsEstimate() { | @@ -59,7 +56,6 @@ func (controller *DividendsEstimateController) RemoveDividendsEstimate() { | ||
59 | dividendsEstimateService := service.NewDividendsEstimateService(nil) | 56 | dividendsEstimateService := service.NewDividendsEstimateService(nil) |
60 | removeDividendsEstimateCommand := &command.RemoveDividendsEstimateCommand{} | 57 | removeDividendsEstimateCommand := &command.RemoveDividendsEstimateCommand{} |
61 | _ = controller.Unmarshal(removeDividendsEstimateCommand) | 58 | _ = controller.Unmarshal(removeDividendsEstimateCommand) |
62 | - // 解析头部信息 | ||
63 | header := controller.GetRequestHeader(controller.Ctx) | 59 | header := controller.GetRequestHeader(controller.Ctx) |
64 | removeDividendsEstimateCommand.CompanyId = header.CompanyId | 60 | removeDividendsEstimateCommand.CompanyId = header.CompanyId |
65 | removeDividendsEstimateCommand.OrgId = header.OrgId | 61 | removeDividendsEstimateCommand.OrgId = header.OrgId |
@@ -75,7 +71,6 @@ func (controller *DividendsEstimateController) CancelDividendsEstimate() { | @@ -75,7 +71,6 @@ func (controller *DividendsEstimateController) CancelDividendsEstimate() { | ||
75 | dividendsEstimateService := service.NewDividendsEstimateService(nil) | 71 | dividendsEstimateService := service.NewDividendsEstimateService(nil) |
76 | cancelDividendsEstimateCommand := &command.CancelDividendsEstimateCommand{} | 72 | cancelDividendsEstimateCommand := &command.CancelDividendsEstimateCommand{} |
77 | _ = controller.Unmarshal(cancelDividendsEstimateCommand) | 73 | _ = controller.Unmarshal(cancelDividendsEstimateCommand) |
78 | - // 解析头部信息 | ||
79 | header := controller.GetRequestHeader(controller.Ctx) | 74 | header := controller.GetRequestHeader(controller.Ctx) |
80 | cancelDividendsEstimateCommand.CompanyId = header.CompanyId | 75 | cancelDividendsEstimateCommand.CompanyId = header.CompanyId |
81 | cancelDividendsEstimateCommand.OrgId = header.OrgId | 76 | cancelDividendsEstimateCommand.OrgId = header.OrgId |
@@ -104,7 +99,6 @@ func (controller *DividendsEstimateController) EstimateDividendsIncentives() { | @@ -104,7 +99,6 @@ func (controller *DividendsEstimateController) EstimateDividendsIncentives() { | ||
104 | dividendsEstimateService := service.NewDividendsEstimateService(nil) | 99 | dividendsEstimateService := service.NewDividendsEstimateService(nil) |
105 | estimateDividendsIncentivesCommand := &command.EstimateDividendsIncentivesCommand{} | 100 | estimateDividendsIncentivesCommand := &command.EstimateDividendsIncentivesCommand{} |
106 | _ = controller.Unmarshal(estimateDividendsIncentivesCommand) | 101 | _ = controller.Unmarshal(estimateDividendsIncentivesCommand) |
107 | - // 解析头部信息 | ||
108 | header := controller.GetRequestHeader(controller.Ctx) | 102 | header := controller.GetRequestHeader(controller.Ctx) |
109 | estimateDividendsIncentivesCommand.CompanyId = header.CompanyId | 103 | estimateDividendsIncentivesCommand.CompanyId = header.CompanyId |
110 | estimateDividendsIncentivesCommand.OrgId = header.OrgId | 104 | estimateDividendsIncentivesCommand.OrgId = header.OrgId |
@@ -118,7 +112,6 @@ func (controller *DividendsEstimateController) EstimateMoneyIncentives() { | @@ -118,7 +112,6 @@ func (controller *DividendsEstimateController) EstimateMoneyIncentives() { | ||
118 | dividendsEstimateService := service.NewDividendsEstimateService(nil) | 112 | dividendsEstimateService := service.NewDividendsEstimateService(nil) |
119 | estimateMoneyIncentivesCommand := &command.EstimateMoneyIncentivesCommand{} | 113 | estimateMoneyIncentivesCommand := &command.EstimateMoneyIncentivesCommand{} |
120 | _ = controller.Unmarshal(estimateMoneyIncentivesCommand) | 114 | _ = controller.Unmarshal(estimateMoneyIncentivesCommand) |
121 | - // 解析头部信息 | ||
122 | header := controller.GetRequestHeader(controller.Ctx) | 115 | header := controller.GetRequestHeader(controller.Ctx) |
123 | estimateMoneyIncentivesCommand.CompanyId = header.CompanyId | 116 | estimateMoneyIncentivesCommand.CompanyId = header.CompanyId |
124 | estimateMoneyIncentivesCommand.OrgId = header.OrgId | 117 | estimateMoneyIncentivesCommand.OrgId = header.OrgId |
@@ -131,7 +124,6 @@ func (controller *DividendsEstimateController) EstimateMoneyIncentives() { | @@ -131,7 +124,6 @@ func (controller *DividendsEstimateController) EstimateMoneyIncentives() { | ||
131 | func (controller *DividendsEstimateController) ListMoneyIncentives() { | 124 | func (controller *DividendsEstimateController) ListMoneyIncentives() { |
132 | dividendsEstimateService := service.NewDividendsEstimateService(nil) | 125 | dividendsEstimateService := service.NewDividendsEstimateService(nil) |
133 | listMoneyIncentivesQuery := &query.ListMoneyIncentivesQuery{} | 126 | listMoneyIncentivesQuery := &query.ListMoneyIncentivesQuery{} |
134 | - // 解析头部信息 | ||
135 | header := controller.GetRequestHeader(controller.Ctx) | 127 | header := controller.GetRequestHeader(controller.Ctx) |
136 | listMoneyIncentivesQuery.CompanyId = header.CompanyId | 128 | listMoneyIncentivesQuery.CompanyId = header.CompanyId |
137 | listMoneyIncentivesQuery.OrgId = header.OrgId | 129 | listMoneyIncentivesQuery.OrgId = header.OrgId |
@@ -144,7 +136,6 @@ func (controller *DividendsEstimateController) ListMoneyIncentives() { | @@ -144,7 +136,6 @@ func (controller *DividendsEstimateController) ListMoneyIncentives() { | ||
144 | func (controller *DividendsEstimateController) SearchMoneyIncentives() { | 136 | func (controller *DividendsEstimateController) SearchMoneyIncentives() { |
145 | dividendsEstimateService := service.NewDividendsEstimateService(nil) | 137 | dividendsEstimateService := service.NewDividendsEstimateService(nil) |
146 | searchMoneyIncentivesQuery := &query.SearchMoneyIncentivesQuery{} | 138 | searchMoneyIncentivesQuery := &query.SearchMoneyIncentivesQuery{} |
147 | - // 解析头部信息 | ||
148 | header := controller.GetRequestHeader(controller.Ctx) | 139 | header := controller.GetRequestHeader(controller.Ctx) |
149 | searchMoneyIncentivesQuery.CompanyId = header.CompanyId | 140 | searchMoneyIncentivesQuery.CompanyId = header.CompanyId |
150 | searchMoneyIncentivesQuery.OrgId = header.OrgId | 141 | searchMoneyIncentivesQuery.OrgId = header.OrgId |
@@ -157,7 +148,6 @@ func (controller *DividendsEstimateController) SearchMoneyIncentives() { | @@ -157,7 +148,6 @@ func (controller *DividendsEstimateController) SearchMoneyIncentives() { | ||
157 | func (controller *DividendsEstimateController) ListDividendsIncentives() { | 148 | func (controller *DividendsEstimateController) ListDividendsIncentives() { |
158 | dividendsEstimateService := service.NewDividendsEstimateService(nil) | 149 | dividendsEstimateService := service.NewDividendsEstimateService(nil) |
159 | listDividendsIncentivesQuery := &query.ListDividendsIncentivesQuery{} | 150 | listDividendsIncentivesQuery := &query.ListDividendsIncentivesQuery{} |
160 | - // 解析头部信息 | ||
161 | header := controller.GetRequestHeader(controller.Ctx) | 151 | header := controller.GetRequestHeader(controller.Ctx) |
162 | listDividendsIncentivesQuery.CompanyId = header.CompanyId | 152 | listDividendsIncentivesQuery.CompanyId = header.CompanyId |
163 | listDividendsIncentivesQuery.OrgId = header.OrgId | 153 | listDividendsIncentivesQuery.OrgId = header.OrgId |
@@ -170,7 +160,6 @@ func (controller *DividendsEstimateController) ListDividendsIncentives() { | @@ -170,7 +160,6 @@ func (controller *DividendsEstimateController) ListDividendsIncentives() { | ||
170 | func (controller *DividendsEstimateController) SearchDividendsIncentives() { | 160 | func (controller *DividendsEstimateController) SearchDividendsIncentives() { |
171 | dividendsEstimateService := service.NewDividendsEstimateService(nil) | 161 | dividendsEstimateService := service.NewDividendsEstimateService(nil) |
172 | searchDividendsIncentivesQuery := &query.SearchDividendsIncentivesQuery{} | 162 | searchDividendsIncentivesQuery := &query.SearchDividendsIncentivesQuery{} |
173 | - // 解析头部信息 | ||
174 | header := controller.GetRequestHeader(controller.Ctx) | 163 | header := controller.GetRequestHeader(controller.Ctx) |
175 | searchDividendsIncentivesQuery.CompanyId = header.CompanyId | 164 | searchDividendsIncentivesQuery.CompanyId = header.CompanyId |
176 | searchDividendsIncentivesQuery.OrgId = header.OrgId | 165 | searchDividendsIncentivesQuery.OrgId = header.OrgId |
@@ -183,7 +172,6 @@ func (controller *DividendsEstimateController) SearchDividendsIncentives() { | @@ -183,7 +172,6 @@ func (controller *DividendsEstimateController) SearchDividendsIncentives() { | ||
183 | func (controller *DividendsEstimateController) ListDividendsEstimate() { | 172 | func (controller *DividendsEstimateController) ListDividendsEstimate() { |
184 | dividendsEstimateService := service.NewDividendsEstimateService(nil) | 173 | dividendsEstimateService := service.NewDividendsEstimateService(nil) |
185 | listDividendsEstimateQuery := &query.ListDividendsEstimateQuery{} | 174 | listDividendsEstimateQuery := &query.ListDividendsEstimateQuery{} |
186 | - // 解析头部信息 | ||
187 | header := controller.GetRequestHeader(controller.Ctx) | 175 | header := controller.GetRequestHeader(controller.Ctx) |
188 | listDividendsEstimateQuery.CompanyId = header.CompanyId | 176 | listDividendsEstimateQuery.CompanyId = header.CompanyId |
189 | listDividendsEstimateQuery.OrgId = header.OrgId | 177 | listDividendsEstimateQuery.OrgId = header.OrgId |
@@ -14,7 +14,6 @@ func (controller *DividendsOrderController) CreateDividendsOrder() { | @@ -14,7 +14,6 @@ func (controller *DividendsOrderController) CreateDividendsOrder() { | ||
14 | dividendsOrderService := service.NewDividendsOrderService(nil) | 14 | dividendsOrderService := service.NewDividendsOrderService(nil) |
15 | createDividendsOrderCommand := &command.CreateDividendsOrderCommand{} | 15 | createDividendsOrderCommand := &command.CreateDividendsOrderCommand{} |
16 | _ = controller.Unmarshal(createDividendsOrderCommand) | 16 | _ = controller.Unmarshal(createDividendsOrderCommand) |
17 | - // 解析头部信息 | ||
18 | header := controller.GetRequestHeader(controller.Ctx) | 17 | header := controller.GetRequestHeader(controller.Ctx) |
19 | createDividendsOrderCommand.CompanyId = header.CompanyId | 18 | createDividendsOrderCommand.CompanyId = header.CompanyId |
20 | createDividendsOrderCommand.OrgId = header.OrgId | 19 | createDividendsOrderCommand.OrgId = header.OrgId |
@@ -28,7 +27,6 @@ func (controller *DividendsOrderController) UpdateDividendsOrder() { | @@ -28,7 +27,6 @@ func (controller *DividendsOrderController) UpdateDividendsOrder() { | ||
28 | dividendsOrderService := service.NewDividendsOrderService(nil) | 27 | dividendsOrderService := service.NewDividendsOrderService(nil) |
29 | updateDividendsOrderCommand := &command.UpdateDividendsOrderCommand{} | 28 | updateDividendsOrderCommand := &command.UpdateDividendsOrderCommand{} |
30 | _ = controller.Unmarshal(updateDividendsOrderCommand) | 29 | _ = controller.Unmarshal(updateDividendsOrderCommand) |
31 | - // 解析头部信息 | ||
32 | header := controller.GetRequestHeader(controller.Ctx) | 30 | header := controller.GetRequestHeader(controller.Ctx) |
33 | updateDividendsOrderCommand.CompanyId = header.CompanyId | 31 | updateDividendsOrderCommand.CompanyId = header.CompanyId |
34 | updateDividendsOrderCommand.OrgId = header.OrgId | 32 | updateDividendsOrderCommand.OrgId = header.OrgId |
@@ -43,7 +41,6 @@ func (controller *DividendsOrderController) UpdateDividendsOrder() { | @@ -43,7 +41,6 @@ func (controller *DividendsOrderController) UpdateDividendsOrder() { | ||
43 | func (controller *DividendsOrderController) GetDividendsOrder() { | 41 | func (controller *DividendsOrderController) GetDividendsOrder() { |
44 | dividendsOrderService := service.NewDividendsOrderService(nil) | 42 | dividendsOrderService := service.NewDividendsOrderService(nil) |
45 | getDividendsOrderQuery := &query.GetDividendsOrderQuery{} | 43 | getDividendsOrderQuery := &query.GetDividendsOrderQuery{} |
46 | - // 解析头部信息 | ||
47 | header := controller.GetRequestHeader(controller.Ctx) | 44 | header := controller.GetRequestHeader(controller.Ctx) |
48 | getDividendsOrderQuery.CompanyId = header.CompanyId | 45 | getDividendsOrderQuery.CompanyId = header.CompanyId |
49 | getDividendsOrderQuery.OrgId = header.OrgId | 46 | getDividendsOrderQuery.OrgId = header.OrgId |
@@ -59,7 +56,6 @@ func (controller *DividendsOrderController) RemoveDividendsOrder() { | @@ -59,7 +56,6 @@ func (controller *DividendsOrderController) RemoveDividendsOrder() { | ||
59 | dividendsOrderService := service.NewDividendsOrderService(nil) | 56 | dividendsOrderService := service.NewDividendsOrderService(nil) |
60 | removeDividendsOrderCommand := &command.RemoveDividendsOrderCommand{} | 57 | removeDividendsOrderCommand := &command.RemoveDividendsOrderCommand{} |
61 | _ = controller.Unmarshal(removeDividendsOrderCommand) | 58 | _ = controller.Unmarshal(removeDividendsOrderCommand) |
62 | - // 解析头部信息 | ||
63 | header := controller.GetRequestHeader(controller.Ctx) | 59 | header := controller.GetRequestHeader(controller.Ctx) |
64 | removeDividendsOrderCommand.CompanyId = header.CompanyId | 60 | removeDividendsOrderCommand.CompanyId = header.CompanyId |
65 | removeDividendsOrderCommand.OrgId = header.OrgId | 61 | removeDividendsOrderCommand.OrgId = header.OrgId |
@@ -74,7 +70,6 @@ func (controller *DividendsOrderController) RemoveDividendsOrder() { | @@ -74,7 +70,6 @@ func (controller *DividendsOrderController) RemoveDividendsOrder() { | ||
74 | func (controller *DividendsOrderController) SearchDividendsOrder() { | 70 | func (controller *DividendsOrderController) SearchDividendsOrder() { |
75 | dividendsOrderService := service.NewDividendsOrderService(nil) | 71 | dividendsOrderService := service.NewDividendsOrderService(nil) |
76 | searchDividendsOrderQuery := &query.SearchDividendsOrderQuery{} | 72 | searchDividendsOrderQuery := &query.SearchDividendsOrderQuery{} |
77 | - // 解析头部信息 | ||
78 | header := controller.GetRequestHeader(controller.Ctx) | 73 | header := controller.GetRequestHeader(controller.Ctx) |
79 | searchDividendsOrderQuery.CompanyId = header.CompanyId | 74 | searchDividendsOrderQuery.CompanyId = header.CompanyId |
80 | searchDividendsOrderQuery.OrgId = header.OrgId | 75 | searchDividendsOrderQuery.OrgId = header.OrgId |
@@ -87,7 +82,6 @@ func (controller *DividendsOrderController) SearchDividendsOrder() { | @@ -87,7 +82,6 @@ func (controller *DividendsOrderController) SearchDividendsOrder() { | ||
87 | func (controller *DividendsOrderController) SearchDividendsOrderNumber() { | 82 | func (controller *DividendsOrderController) SearchDividendsOrderNumber() { |
88 | dividendsOrderService := service.NewDividendsOrderService(nil) | 83 | dividendsOrderService := service.NewDividendsOrderService(nil) |
89 | searchDividendsOrderNumberQuery := &query.SearchDividendsOrderNumberQuery{} | 84 | searchDividendsOrderNumberQuery := &query.SearchDividendsOrderNumberQuery{} |
90 | - // 解析头部信息 | ||
91 | header := controller.GetRequestHeader(controller.Ctx) | 85 | header := controller.GetRequestHeader(controller.Ctx) |
92 | searchDividendsOrderNumberQuery.CompanyId = header.CompanyId | 86 | searchDividendsOrderNumberQuery.CompanyId = header.CompanyId |
93 | searchDividendsOrderNumberQuery.OrgId = header.OrgId | 87 | searchDividendsOrderNumberQuery.OrgId = header.OrgId |
@@ -100,7 +94,6 @@ func (controller *DividendsOrderController) SearchDividendsOrderNumber() { | @@ -100,7 +94,6 @@ func (controller *DividendsOrderController) SearchDividendsOrderNumber() { | ||
100 | func (controller *DividendsOrderController) ListDividendsOrders() { | 94 | func (controller *DividendsOrderController) ListDividendsOrders() { |
101 | dividendsOrderService := service.NewDividendsOrderService(nil) | 95 | dividendsOrderService := service.NewDividendsOrderService(nil) |
102 | listDividendsOrdersQuery := &query.ListDividendsOrdersQuery{} | 96 | listDividendsOrdersQuery := &query.ListDividendsOrdersQuery{} |
103 | - // 解析头部信息 | ||
104 | header := controller.GetRequestHeader(controller.Ctx) | 97 | header := controller.GetRequestHeader(controller.Ctx) |
105 | listDividendsOrdersQuery.CompanyId = header.CompanyId | 98 | listDividendsOrdersQuery.CompanyId = header.CompanyId |
106 | listDividendsOrdersQuery.OrgId = header.OrgId | 99 | listDividendsOrdersQuery.OrgId = header.OrgId |
-
请 注册 或 登录 后发表评论