|
@@ -5,16 +5,14 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.ozs.base.domain.BaseAgency;
|
|
|
import com.ozs.base.domain.BaseExpert;
|
|
|
+import com.ozs.base.domain.vo.BaseExpertVo;
|
|
|
import com.ozs.base.service.BaseAgencyService;
|
|
|
import com.ozs.base.service.BaseExpertService;
|
|
|
import com.ozs.common.annotation.Log;
|
|
|
import com.ozs.common.constant.ModularConstans;
|
|
|
import com.ozs.common.core.controller.BaseController;
|
|
|
import com.ozs.common.core.domain.AjaxResult;
|
|
|
-import com.ozs.common.enums.BusinessType;
|
|
|
-import com.ozs.common.enums.NameListType;
|
|
|
-import com.ozs.common.enums.PmProjectStatus;
|
|
|
-import com.ozs.common.enums.SysFileRefEnum;
|
|
|
+import com.ozs.common.enums.*;
|
|
|
import com.ozs.common.utils.RandomUtil;
|
|
|
import com.ozs.common.utils.StringUtils;
|
|
|
import com.ozs.pm.doman.PmBidOpening;
|
|
@@ -31,6 +29,7 @@ import com.ozs.system.domain.SysFileRef;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -509,17 +508,22 @@ public class PmPurchaseExecutionController extends BaseController {
|
|
|
pmDemandExpertRefLambdaQueryWrapper.eq(PmDemandExpertRef::getDemandId,demandId);
|
|
|
pmDemandExpertRefLambdaQueryWrapper.eq(PmDemandExpertRef::getAccessTime,accessTime);
|
|
|
List<PmDemandExpertRef> pmDemandExpertRefList = pmDemandExpertRefService.list(pmDemandExpertRefLambdaQueryWrapper);
|
|
|
- List<BaseExpert> list = new ArrayList<>();
|
|
|
+ List<BaseExpertVo> baseExpertVoList = new ArrayList<>();
|
|
|
if(!ObjectUtils.isEmpty(pmDemandExpertRefList)) {
|
|
|
for(PmDemandExpertRef pmDemandExpertRef : pmDemandExpertRefList) {
|
|
|
BaseExpert baseExpert = baseExpertService.getById(pmDemandExpertRef.getExpertId());
|
|
|
if(baseExpert != null){
|
|
|
- list.add(baseExpert);
|
|
|
+ BaseExpertVo baseExpertVo = new BaseExpertVo();
|
|
|
+ BeanUtils.copyProperties(baseExpert,baseExpertVo);
|
|
|
+ baseExpertVo.setMajorTypeName(MajorType.getCodeToInfo(baseExpertVo.getMajorType()));
|
|
|
+ baseExpertVo.setExpertTypeName(ExpertType.getCodeToInfo(baseExpertVo.getExpertType()));
|
|
|
+ baseExpertVo.setVarietyPurchaseName(PurchaseType.getCodeToInfo(baseExpertVo.getVarietyPurchase()));
|
|
|
+ baseExpertVoList.add(baseExpertVo);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return success(list);
|
|
|
+ return success(baseExpertVoList);
|
|
|
}
|
|
|
|
|
|
/**
|