Merge remote-tracking branch 'origin/dev-tmp1' into dev-tmp1
commit
a949922f10
|
|
@ -28,7 +28,6 @@ import org.qinan.safetyeval.infrastructure.dataobject.*;
|
|||
import org.qinan.safetyeval.infrastructure.mapper.*;
|
||||
import org.qinan.safetyeval.infrastructure.persistence.mapper.QualFilingPersonnelChangeMapper;
|
||||
import org.qinan.safetyeval.infrastructure.support.InsertFieldDefaults;
|
||||
import org.qinan.safetyeval.infrastructure.utils.CommonUtil;
|
||||
import org.qinan.safetyeval.infrastructure.utils.ComplianceCheckUtil;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
|
|
@ -195,6 +194,7 @@ public class QualFilingChangeExecutor implements QualFilingChangeApi {
|
|||
domainQuery.setFilingUnitName(query.getFilingUnitName());
|
||||
domainQuery.setFilingTerritoryCode(query.getFilingTerritoryCode());
|
||||
domainQuery.setFilingStatusCode(query.getFilingStatusCode());
|
||||
domainQuery.setCreditCode(query.getCreditCode());
|
||||
PageResult<QualFilingChangeEntity> pageResult = qualFilingChangeDomainService.page(domainQuery);
|
||||
return PageResponse.of(
|
||||
pageResult.getRecords().stream().map(this::toCO).collect(java.util.stream.Collectors.toList()),
|
||||
|
|
@ -275,8 +275,6 @@ public class QualFilingChangeExecutor implements QualFilingChangeApi {
|
|||
public SingleResponse<List<QualFilingComplianceCheckResultCO>> aggregationSaveOrEdit(
|
||||
AggregationSaveOrEditQualFilingChangeCmd cmd, boolean throwException) {
|
||||
validateBeforeSaveOrEdit(cmd);
|
||||
|
||||
cmd.getQualFilingCommitmentChangeAddCmd().setLegalRepSignatureUrl(CommonUtil.COLON);
|
||||
// 合规性校验:只要有一项未通过则抛出异常
|
||||
AggregationSaveOrEditQualFilingCmd qualFilingCmd = convertToQualFilingCmd(cmd);
|
||||
List<QualFilingComplianceCheckResultCO> complianceResults = ComplianceCheckUtil.complianceCheck(qualFilingCmd, throwException);
|
||||
|
|
|
|||
|
|
@ -5,19 +5,14 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|||
import org.qinan.safetyeval.app.executor.support.EvalProjectNodeOverviewAssembler;
|
||||
import org.qinan.safetyeval.app.executor.support.RegulatorMonitorCoConverter;
|
||||
import org.qinan.safetyeval.client.api.regulator.RegulatorEvalProjectMonitorApi;
|
||||
import org.qinan.safetyeval.client.co.regulator.RegulatorEvalProjectMonitorCO;
|
||||
import org.qinan.safetyeval.client.co.regulator.RegulatorEvalProjectMonitorPageCO;
|
||||
import org.qinan.safetyeval.client.co.regulator.RegulatorEvalProjectMonitorStatCO;
|
||||
import org.qinan.safetyeval.client.co.regulator.RegulatorEvalProjectNodeOverviewCO;
|
||||
import org.qinan.safetyeval.client.co.regulator.RegulatorEvalProjectSurveyPageCO;
|
||||
import org.qinan.safetyeval.client.co.regulator.RegulatorEvalProjectSurveyStatCO;
|
||||
import org.qinan.safetyeval.client.co.regulator.RegulatorEvalSurveyClockInCO;
|
||||
import org.qinan.safetyeval.client.co.regulator.*;
|
||||
import org.qinan.safetyeval.client.dto.PageResponse;
|
||||
import org.qinan.safetyeval.client.dto.SingleResponse;
|
||||
import org.qinan.safetyeval.client.dto.regulator.RegulatorEvalProjectMonitorPageQuery;
|
||||
import org.qinan.safetyeval.client.dto.regulator.RegulatorEvalProjectMonitorRealtimePageQuery;
|
||||
import org.qinan.safetyeval.client.dto.regulator.RegulatorEvalProjectSurveyPageQuery;
|
||||
import org.qinan.safetyeval.domain.constant.ProjectProcessWaringStatusEnum;
|
||||
import org.qinan.safetyeval.domain.constant.ProjectRoleEnum;
|
||||
import org.qinan.safetyeval.domain.entity.EvalProjectEntity;
|
||||
import org.qinan.safetyeval.domain.exception.BizException;
|
||||
import org.qinan.safetyeval.domain.exception.ErrorCode;
|
||||
|
|
@ -136,7 +131,13 @@ public class RegulatorEvalProjectMonitorExecutor implements RegulatorEvalProject
|
|||
|
||||
@Override
|
||||
public SingleResponse<List<RegulatorEvalSurveyClockInCO>> surveyClockInList(String projectId) {
|
||||
return SingleResponse.success(evalProjectMapper.selectRegulatorSurveyClockInList(Long.parseLong(projectId)));
|
||||
List<RegulatorEvalSurveyClockInCO> regulatorEvalSurveyClockInCOS = evalProjectMapper.selectRegulatorSurveyClockInList(Long.parseLong(projectId));
|
||||
for (RegulatorEvalSurveyClockInCO regulatorEvalSurveyClockInCO : regulatorEvalSurveyClockInCOS) {
|
||||
if (regulatorEvalSurveyClockInCO.getRole() != null) {
|
||||
regulatorEvalSurveyClockInCO.setRole(ProjectRoleEnum.fromVals(regulatorEvalSurveyClockInCO.getRole()));
|
||||
}
|
||||
}
|
||||
return SingleResponse.success(regulatorEvalSurveyClockInCOS);
|
||||
}
|
||||
|
||||
private void fillDisplayFields(RegulatorEvalProjectMonitorPageCO co) {
|
||||
|
|
|
|||
|
|
@ -27,4 +27,7 @@ public class QualFilingChangePageQuery extends BasePageQuery {
|
|||
|
||||
@ApiModelProperty(value = "备案状态编码(1已备案2审核中3已打回4变更审核中5暂存)")
|
||||
private Long filingStatusCode;
|
||||
|
||||
@ApiModelProperty(value = "统一社会信用代码")
|
||||
private String creditCode;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,4 +38,5 @@ public class QualFilingChangeQuery {
|
|||
|
||||
/** 备案状态 */
|
||||
private Long filingStatusCode;
|
||||
private String creditCode;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,6 +128,9 @@ public class QualFilingChangeGatewayImpl implements QualFilingChangeGateway {
|
|||
if (StringUtils.hasText(query.getFilingUnitName())) {
|
||||
wrapper.like(QualFilingChangeDO::getFilingUnitName, query.getFilingUnitName());
|
||||
}
|
||||
if (StringUtils.hasText(query.getCreditCode())) {
|
||||
wrapper.eq(QualFilingChangeDO::getCreditCode, query.getCreditCode());
|
||||
}
|
||||
if (StringUtils.hasText(query.getFilingTerritoryCode())) {
|
||||
String territory = query.getFilingTerritoryCode();
|
||||
wrapper.and(w -> w.eq(QualFilingChangeDO::getFilingTerritoryCode, territory)
|
||||
|
|
|
|||
Loading…
Reference in New Issue