Commit 8270221d authored by hcing's avatar hcing

feat(tcm):风险报送接口中敏感数据处理

parent aa6946c5
...@@ -35,6 +35,7 @@ import org.springframework.stereotype.Service; ...@@ -35,6 +35,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import org.typroject.tyboot.core.foundation.context.RequestContext; import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService; import org.typroject.tyboot.core.rdbms.service.BaseService;
import java.time.LocalDate; import java.time.LocalDate;
...@@ -329,6 +330,9 @@ public class RiskReportServiceImpl extends BaseService<RiskReport, RiskReport, R ...@@ -329,6 +330,9 @@ public class RiskReportServiceImpl extends BaseService<RiskReport, RiskReport, R
// 清除单位code,避免泄露信息 // 清除单位code,避免泄露信息
riskReportDto.setRiskDisposalUnitCode(null); riskReportDto.setRiskDisposalUnitCode(null);
riskReportDto.setReportCompanyCode(null); riskReportDto.setReportCompanyCode(null);
// 清除单位名称中的code(个人主体)
riskReportDto.setRiskCompanyName(ValidationUtil.isEmpty(riskReportDto.getRiskCompanyName()) ? null : riskReportDto.getRiskCompanyName().split("_")[1]);
riskReportDto.setReportCompanyName(ValidationUtil.isEmpty(riskReportDto.getReportCompanyName()) ? null : riskReportDto.getReportCompanyName().split("_")[1]);
riskReportDto.setRiskProcesses(riskProcesses); riskReportDto.setRiskProcesses(riskProcesses);
if (riskReport.getRiskCompanySeq() != null) { if (riskReport.getRiskCompanySeq() != null) {
riskReportDto.setRiskCompany(riskReport.getRiskCompanySeq() + "_" + riskReport.getRiskCompanyName()); riskReportDto.setRiskCompany(riskReport.getRiskCompanySeq() + "_" + riskReport.getRiskCompanyName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment