|
@@ -337,8 +337,7 @@ public class PmPurchaseExecutionController extends BaseController {
|
|
|
}
|
|
|
|
|
|
LambdaQueryWrapper<BaseExpert> lw = new LambdaQueryWrapper<BaseExpert>();
|
|
|
- lw.eq(BaseExpert::getVarietyPurchase, pmDemand.getProjectType())
|
|
|
- .eq(BaseExpert::getStatus, NameListType.WHITE.getCode());
|
|
|
+ lw.eq(BaseExpert::getStatus, NameListType.WHITE.getCode());
|
|
|
List<BaseExpert> baseExpertList = baseExpertService.list(lw);
|
|
|
List<String> idNumberList = new ArrayList<>();
|
|
|
if (!ObjectUtils.isEmpty(baseExpertList)) {
|
|
@@ -368,9 +367,6 @@ public class PmPurchaseExecutionController extends BaseController {
|
|
|
if (NameListType.BLACK.getCode().equals(baseExpert.getStatus())) {
|
|
|
return error("该专家属于黑名单");
|
|
|
}
|
|
|
- if (!ObjectUtils.isEmpty(pmDemand.getProjectType()) && !pmDemand.getProjectType().equals(baseExpert.getVarietyPurchase())) {
|
|
|
- return error("该专家所属采购品种和项目类型不匹配");
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
return success(baseExpert);
|
|
@@ -424,20 +420,6 @@ public class PmPurchaseExecutionController extends BaseController {
|
|
|
return success(set);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "获取回避单位下拉列表(抽取专家时,显示与项目类型和专家类型相符的部门)", notes = "查询条件:采购品种")
|
|
|
- @PostMapping("/getExpertUnitListBC")
|
|
|
- @Log(title = ModularConstans.professional, businessType = BusinessType.QUERY)
|
|
|
- public AjaxResult getExpertUnitListBC(@RequestBody BaseUnitInformation unitInformation) {
|
|
|
- List<BaseUnitInformation> baseUnitInformationList = baseExpertService.getBaseUnitInformationListBC(unitInformation);
|
|
|
- if (ObjectUtils.isEmpty(baseUnitInformationList)) {
|
|
|
- return error("专家单位列表是空的");
|
|
|
- }
|
|
|
- Set<String> set = new HashSet<>();
|
|
|
- for (BaseUnitInformation baseUnitInformation : baseUnitInformationList) {
|
|
|
- set.add(baseUnitInformation.getUnitName());
|
|
|
- }
|
|
|
- return success(set);
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
* 抽取专家
|
|
@@ -801,7 +783,6 @@ public class PmPurchaseExecutionController extends BaseController {
|
|
|
BeanUtils.copyProperties(baseExpert, baseExpertVo);
|
|
|
baseExpertVo.setMajorTypeName(getMajorTypeName(baseExpertVo.getMajorType()));
|
|
|
baseExpertVo.setExpertTypeName(ExpertType.getCodeToInfo(baseExpertVo.getExpertType()));
|
|
|
- baseExpertVo.setVarietyPurchaseName(PurchaseType.getCodeToInfo(baseExpertVo.getVarietyPurchase()));
|
|
|
baseExpertVoList.add(baseExpertVo);
|
|
|
}
|
|
|
}
|
|
@@ -840,7 +821,6 @@ public class PmPurchaseExecutionController extends BaseController {
|
|
|
BeanUtils.copyProperties(baseExpert, baseExpertVo);
|
|
|
baseExpertVo.setMajorTypeName(getMajorTypeName(baseExpertVo.getMajorType()));
|
|
|
baseExpertVo.setExpertTypeName(ExpertType.getCodeToInfo(baseExpertVo.getExpertType()));
|
|
|
- baseExpertVo.setVarietyPurchaseName(PurchaseType.getCodeToInfo(baseExpertVo.getVarietyPurchase()));
|
|
|
baseExpertVoList.add(baseExpertVo);
|
|
|
}
|
|
|
}
|