|
@@ -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
|
}
|