作者 陈志颖

合并分支 'dev' 到 'test'

Dev



查看合并请求 !36
@@ -654,7 +654,6 @@ func (cooperationProjectService *CooperationProjectService) UpdateCooperationPro @@ -654,7 +654,6 @@ func (cooperationProjectService *CooperationProjectService) UpdateCooperationPro
654 if k1 != 0 && k2 != 0 { 654 if k1 != 0 && k2 != 0 {
655 undertakerTypes = append(undertakerTypes, 4) 655 undertakerTypes = append(undertakerTypes, 4)
656 } 656 }
657 -  
658 // 校验可以修改的承接人(申请人)类型 657 // 校验可以修改的承接人(申请人)类型
659 for _, t := range undertakerTypes { 658 for _, t := range undertakerTypes {
660 if !utils.IsContain(updateCooperationProjectCommand.CooperationProjectUndertakerTypes, t) { 659 if !utils.IsContain(updateCooperationProjectCommand.CooperationProjectUndertakerTypes, t) {
@@ -663,7 +662,7 @@ func (cooperationProjectService *CooperationProjectService) UpdateCooperationPro @@ -663,7 +662,7 @@ func (cooperationProjectService *CooperationProjectService) UpdateCooperationPro
663 return nil, application.ThrowError(application.BUSINESS_ERROR, "承接对象'员工'存在业务数据,不可取消勾选") 662 return nil, application.ThrowError(application.BUSINESS_ERROR, "承接对象'员工'存在业务数据,不可取消勾选")
664 case 2: 663 case 2:
665 return nil, application.ThrowError(application.BUSINESS_ERROR, "承接对象'共创用户'存在业务数据,不可取消勾选") 664 return nil, application.ThrowError(application.BUSINESS_ERROR, "承接对象'共创用户'存在业务数据,不可取消勾选")
666 - case 4: 665 + case 3:
667 return nil, application.ThrowError(application.BUSINESS_ERROR, "承接对象'公开'存在业务数据,不可取消勾选") 666 return nil, application.ThrowError(application.BUSINESS_ERROR, "承接对象'公开'存在业务数据,不可取消勾选")
668 } 667 }
669 } 668 }
@@ -1236,7 +1236,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) UpdateDivide @@ -1236,7 +1236,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) UpdateDivide
1236 UpdatedAt: time.Now(), 1236 UpdatedAt: time.Now(),
1237 }) 1237 })
1238 // 计算分红退货单金额 1238 // 计算分红退货单金额
1239 - dividendsReturnedOrderAmount, _ = decimal.NewFromFloat(dividendsReturnedOrderAmount).Add(decimal.NewFromFloat(orderGood.OrderGoodAmount)).Float64() 1239 + dividendsReturnedOrderAmount, _ = decimal.NewFromFloat(dividendsReturnedOrderAmount).Add(decimal.NewFromFloat(orderGoodAmount)).Float64()
1240 } 1240 }
1241 1241
1242 if err := dividendsReturnedOrder.Update(tool_funs.SimpleStructToMap(updateDividendsReturnedOrderCommand)); err != nil { 1242 if err := dividendsReturnedOrder.Update(tool_funs.SimpleStructToMap(updateDividendsReturnedOrderCommand)); err != nil {