|
@@ -435,24 +435,6 @@ public class SupplierInfoServiceImpl extends ServiceImpl<SupplierInfoMapper, Sup
|
|
|
@Override
|
|
|
public SupplierInfo findSupplierById(Long id) {
|
|
|
SupplierInfo supplierInfo = getById(id);
|
|
|
- List<BusinessProcessingLog> list = businessProcessingLogService.lambdaQuery()
|
|
|
- .eq(BusinessProcessingLog::getBusinessType, ConstantUtil.SUPPLIER_INFO)
|
|
|
- .eq(BusinessProcessingLog::getBusnessKey, id)
|
|
|
- .isNotNull(BusinessProcessingLog::getEndTime)
|
|
|
- .orderByDesc(BusinessProcessingLog::getGmtCreate).list();
|
|
|
- if(CollectionUtil.isNotEmpty(list)){
|
|
|
- String reason = null;
|
|
|
- BusinessProcessingLog businessProcessingLog = list.get(0);
|
|
|
- if(ConstantUtil.FIRST_REVIEW.equals(businessProcessingLog.getTaskDefKey())){
|
|
|
- SupplierApprovalFirst supplierApprovalFirst = supplierApprovalFirstService.getById(businessProcessingLog.getFormBusinessId());
|
|
|
- reason = supplierApprovalFirst.getApprovalComment();
|
|
|
- }
|
|
|
- if(ConstantUtil.SECOND_REVIEW.equals(businessProcessingLog.getTaskDefKey())){
|
|
|
- SupplierApprovalSecond supplierApprovalSecond = supplierApprovalSecondService.getById(businessProcessingLog.getId());
|
|
|
- reason = supplierApprovalSecond.getApprovalComment();
|
|
|
- }
|
|
|
- supplierInfo.setReason(reason);
|
|
|
- }
|
|
|
Enterprise enterprise = enterpriseService.getById(supplierInfo.getcEnterpriseId());
|
|
|
//sop获取企业省市区
|
|
|
String getEnterpriseAreaUrl = getEnterpriseArea + "?comprehensiveRiskInvestigationId=" + enterprise.getcComprehensiveRiskInvestigationId();
|
|
@@ -801,6 +783,24 @@ public class SupplierInfoServiceImpl extends ServiceImpl<SupplierInfoMapper, Sup
|
|
|
} else if (supplierInfo.getStatus().equals(SupplierStatusEnums.DUE_DILIGENCE_APPOINTMENT.getCode())) {
|
|
|
supplierInfo.setStatusStr(SupplierStatusEnums.VOTE.getDesc());
|
|
|
}
|
|
|
+ List<BusinessProcessingLog> list = businessProcessingLogService.lambdaQuery()
|
|
|
+ .eq(BusinessProcessingLog::getBusinessType, ConstantUtil.SUPPLIER_INFO)
|
|
|
+ .eq(BusinessProcessingLog::getBusnessKey, supplierInfo.getId())
|
|
|
+ .isNotNull(BusinessProcessingLog::getEndTime)
|
|
|
+ .orderByDesc(BusinessProcessingLog::getGmtCreate).list();
|
|
|
+ if(CollectionUtil.isNotEmpty(list)){
|
|
|
+ String reason = null;
|
|
|
+ BusinessProcessingLog businessProcessingLog = list.get(0);
|
|
|
+ if(ConstantUtil.FIRST_REVIEW.equals(businessProcessingLog.getTaskDefKey())){
|
|
|
+ SupplierApprovalFirst supplierApprovalFirst = supplierApprovalFirstService.getById(businessProcessingLog.getFormBusinessId());
|
|
|
+ reason = supplierApprovalFirst.getApprovalComment();
|
|
|
+ }
|
|
|
+ if(ConstantUtil.SECOND_REVIEW.equals(businessProcessingLog.getTaskDefKey())){
|
|
|
+ SupplierApprovalSecond supplierApprovalSecond = supplierApprovalSecondService.getById(businessProcessingLog.getFormBusinessId());
|
|
|
+ reason = supplierApprovalSecond.getApprovalComment();
|
|
|
+ }
|
|
|
+ supplierInfo.setReason(reason);
|
|
|
+ }
|
|
|
}
|
|
|
return supplierInfos;
|
|
|
}
|