作者 陈志颖

合并分支 'dev' 到 'test'

Dev



查看合并请求 !73
@@ -26,6 +26,8 @@ type OneClickApprovalCooperationApplicationCommand struct { @@ -26,6 +26,8 @@ type OneClickApprovalCooperationApplicationCommand struct {
26 CooperationApplicationStatus int32 `cname:"共创申请审核状态" json:"cooperationApplicationStatus"` 26 CooperationApplicationStatus int32 `cname:"共创申请审核状态" json:"cooperationApplicationStatus"`
27 // 查询限制 27 // 查询限制
28 OffsetLimit bool `cname:"查询限制" json:"offsetLimit"` 28 OffsetLimit bool `cname:"查询限制" json:"offsetLimit"`
  29 + // 是否取消标志
  30 + IsCanceled int32 `cname:"是否删除" json:"isCanceled"`
29 } 31 }
30 32
31 func (oneClickApprovalCooperationApplicationCommand *OneClickApprovalCooperationApplicationCommand) Valid(validation *validation.Validation) { 33 func (oneClickApprovalCooperationApplicationCommand *OneClickApprovalCooperationApplicationCommand) Valid(validation *validation.Validation) {
@@ -445,7 +445,7 @@ func (cooperationApplicationService *CooperationApplicationService) OneClickAppr @@ -445,7 +445,7 @@ func (cooperationApplicationService *CooperationApplicationService) OneClickAppr
445 // 获取审核人 445 // 获取审核人
446 var verifier *domain.User 446 var verifier *domain.User
447 if data, err := userService.UserFrom(oneClickApprovalCooperationApplicationCommand.CompanyId, oneClickApprovalCooperationApplicationCommand.OrgId, oneClickApprovalCooperationApplicationCommand.UserId); err != nil { 447 if data, err := userService.UserFrom(oneClickApprovalCooperationApplicationCommand.CompanyId, oneClickApprovalCooperationApplicationCommand.OrgId, oneClickApprovalCooperationApplicationCommand.UserId); err != nil {
448 - return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取申请人失败") 448 + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取审核人失败")
449 } else { 449 } else {
450 verifier = data 450 verifier = data
451 } 451 }
@@ -453,6 +453,10 @@ func (cooperationApplicationService *CooperationApplicationService) OneClickAppr @@ -453,6 +453,10 @@ func (cooperationApplicationService *CooperationApplicationService) OneClickAppr
453 // 查询共创申请 453 // 查询共创申请
454 oneClickApprovalCooperationApplicationCommand.CooperationApplicationStatus = 1 // 待审核 454 oneClickApprovalCooperationApplicationCommand.CooperationApplicationStatus = 1 // 待审核
455 oneClickApprovalCooperationApplicationCommand.OffsetLimit = false 455 oneClickApprovalCooperationApplicationCommand.OffsetLimit = false
  456 + oneClickApprovalCooperationApplicationCommand.IsCanceled = int32(1)
  457 + oneClickApprovalCooperationApplicationCommand.UserBaseId = 0
  458 + oneClickApprovalCooperationApplicationCommand.UserId = 0
  459 +
456 if count, cooperationApplications, err := cooperationApplicationRepository.Find(tool_funs.SimpleStructToMap(oneClickApprovalCooperationApplicationCommand)); err != nil { 460 if count, cooperationApplications, err := cooperationApplicationRepository.Find(tool_funs.SimpleStructToMap(oneClickApprovalCooperationApplicationCommand)); err != nil {
457 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) 461 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
458 } else { 462 } else {
@@ -160,7 +160,6 @@ func (domainService *CancelDividendsEstimateService) CancelEstimate(dividendsEst @@ -160,7 +160,6 @@ func (domainService *CancelDividendsEstimateService) CancelEstimate(dividendsEst
160 }); err4 != nil { 160 }); err4 != nil {
161 return nil, err4 161 return nil, err4
162 } else { 162 } else {
163 -  
164 if countDividendsOrder > 0 { 163 if countDividendsOrder > 0 {
165 for i, order := range orders { 164 for i, order := range orders {
166 // 取消分红的订单产品 165 // 取消分红的订单产品
@@ -230,7 +229,7 @@ func (domainService *CancelDividendsEstimateService) CancelEstimate(dividendsEst @@ -230,7 +229,7 @@ func (domainService *CancelDividendsEstimateService) CancelEstimate(dividendsEst
230 if countDividendsReturnedOrder > 0 { 229 if countDividendsReturnedOrder > 0 {
231 for i, returnedOrder := range returnedOrders { 230 for i, returnedOrder := range returnedOrders {
232 // 已取消的退货单产品 231 // 已取消的退货单产品
233 - newReturnedOrderGoodIds := utils.RemoveDuplicationInt64(orderGoodMaps[returnedOrder.DividendsOrderNumber]) 232 + newReturnedOrderGoodIds := utils.RemoveDuplicationInt64(orderGoodMaps[returnedOrder.DividendsReturnedOrderNumber])
234 var goodIds []int64 233 var goodIds []int64
235 for _, good := range returnedOrder.Goods { 234 for _, good := range returnedOrder.Goods {
236 if good.OrderGoodDividendsStatus == 2 { 235 if good.OrderGoodDividendsStatus == 2 {