Commit d7c00b74 authored by suhuiguang's avatar suhuiguang

fix(开通):bug修改

1.导出异常信息不抛处修改
parent ed83939d
......@@ -1321,7 +1321,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
inspectionCompanyPublicityDtos.forEach(c -> {
c.setDetectionRegion(this.castRegionCode2Name(c.getDetectionRegion()));
c.setApprovalInfo(this.breakNewLineForApprovalInfo(c.getApprovalInfo()));
c.setOpenBizType(this.castOpenBizTypeCode2Name(c.getOpenBizType()));
c.setOpenBizType(this.getOpenBizTypeName(c.getOpenBizType()));
});
return inspectionCompanyPublicityDtos;
}
......@@ -1336,15 +1336,11 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
return "";
}
private String castOpenBizTypeCode2Name(String openBizType) {
return OpenBizTypeEnum.getOneByCode(openBizType).getName();
}
public void exportData(HttpServletResponse response, List<String> ids) {
List<JyjcOpeningApplicationVo> exportData = jyjcOpeningApplicationMapper.queryJyjcOpeningApplicationListByIds(ids);
for (JyjcOpeningApplicationVo data : exportData) {
data.setOpenBizType(this.castOpenBizTypeCode2Name(data.getOpenBizType()));
data.setOpenBizType(this.getOpenBizTypeName(data.getOpenBizType()));
}
ExcelUtil.createTemplate(response, "检验检测开通列表数据", "检验检测开通列表", exportData, JyjcOpeningApplicationVo.class, null, false);
}
......
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