Commit 5a2e32d8 authored by 韩桐桐's avatar 韩桐桐

fix(jg):证书下载

parent 57a1c20b
......@@ -244,7 +244,14 @@ public class JgUseRegistrationManageController extends BaseController {
}
/**
* 使用登记证 相关打印
* 证的 相关打印
* @param response 响应
* @param printType certificateNormalPrint:使用登记证 普打
* certificateNestedPrint:使用登记证 套打
* useFlagNormalPrint:使用标志 普打
* useFlagNestedPrint:使用标志 套打
* exportSummaryTable;工业管道和气瓶 汇总表下载
* @param certificateSeq 证书的seq
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/printCertificate")
......
......@@ -350,8 +350,9 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
/**
* 标志/使用登记证/汇总表 打印
* @param response 响应
* @param printType 打印类型
*
* @param response 响应
* @param printType 打印类型
* @param certificateSeq 使用登记证的seq
*/
public void printCertificate(HttpServletResponse response, String printType, String certificateSeq) {
......@@ -367,10 +368,10 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
String equCategoryCode = manage.getEquCategoryCode();
switch (printType) {
case "certificateNormalPrint":
case "certificateNestedPrint":
case "useFlagNormalPrint":
case "useFlagNestedPrint":
case "certificateNormalPrint":// 使用登记证 普打
case "certificateNestedPrint":// 使用登记证 套打
case "useFlagNormalPrint":// 使用标志 普打
case "useFlagNestedPrint":// 使用标志 套打
if (BusinessTypeEnum.JG_VEHICLE_GAS_APPLICATION.getName().equals(regType)) {
JgVehicleInformation vehicleInformation = jgVehicleInformationService.getOne(
new LambdaQueryWrapper<JgVehicleInformation>()
......@@ -385,7 +386,7 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
jgUseRegistrationService.exportUseRegistrationCertificate(sequenceNbr, response, getPrintTypeCode(printType));
}
break;
case "exportSummaryTable":
case "exportSummaryTable":// 工业管道和气瓶 汇总表下载
JgUseRegistration useRegistration = jgUseRegistrationService.getOne(
new LambdaQueryWrapper<JgUseRegistration>()
.eq(JgUseRegistration::getUseRegistrationCode, useRegistrationCode));
......
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