...
|
...
|
@@ -359,7 +359,7 @@ func (cooperationProjectService *CooperationProjectService) GetCooperationProjec |
|
|
undertakerTypesUncheckedAvailable = append(undertakerTypesUncheckedAvailable, 3)
|
|
|
}
|
|
|
|
|
|
// TODO 判断项目关联的合约承接人类型
|
|
|
// 判断项目关联的合约承接人类型
|
|
|
undertakers := make([]*domain.Undertaker, 0)
|
|
|
if countContracts, cooperationContracts, err := cooperationContractRepository.Find(map[string]interface{}{
|
|
|
"offsetLimit": false,
|
...
|
...
|
@@ -390,6 +390,7 @@ func (cooperationProjectService *CooperationProjectService) GetCooperationProjec |
|
|
undertakerUserTypes = append(undertakerUserTypes, int32(3))
|
|
|
}
|
|
|
|
|
|
// 取项目承接人和合约承接人的交集
|
|
|
newUndertakerTypesUncheckedAvailable := utils.Intersect32(undertakerTypesUncheckedAvailable, undertakerUserTypes)
|
|
|
|
|
|
log.Logger.Info("承接人类型", map[string]interface{}{
|
...
|
...
|
|