Commit 83fdbae4 authored by tianbo's avatar tianbo

使用登记证-登记证(套打)、登记证(普打)

parent 69e9e962
package com.yeejoin.amos.boot.module.jg.api.enums;
/**
* 办理状态枚举
*/
public enum PrintingTypeEnum {
/**
* 登记证(普打)
*/
REGULAR(2, "登记证(普打)"),
/**
* 登记证(电子版)
*/
ELECTRONIC(1, "登记证(电子版)");
private final Integer code;
private final String name;
PrintingTypeEnum(Integer code, String name) {
this.code = code;
this.name = name;
}
public Integer getCode() {
return code;
}
public String getName() {
return name;
}
}
......@@ -23,6 +23,7 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
import com.yeejoin.amos.boot.module.jg.api.dto.*;
import com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum;
import com.yeejoin.amos.boot.module.jg.api.enums.EquipTypeEnum;
import com.yeejoin.amos.boot.module.jg.api.enums.PrintingTypeEnum;
import com.yeejoin.amos.boot.module.jg.api.mapper.CommonMapper;
import com.yeejoin.amos.boot.module.jg.api.service.IJgChangeRegistrationTransferService;
import com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeService;
......@@ -611,7 +612,8 @@ public class CommonServiceImpl implements ICommonService {
// 生成二维码,之前为设备监管码,调整为申请单号
String qrCode = ImageUtils.generateQRCode(Optional.ofNullable(map.get("applyNo")).orElse("").toString(), 100, 100);
map.put("supervisoryCode", qrCode); // 监管二维码
// 默认普打
map.put("printingType", PrintingTypeEnum.REGULAR.getCode());
// word转pdf
File pdfFile;
try {
......
......@@ -130376,6 +130376,7 @@ AAAAAAAAAAAAAAAAAAAAAAAAAAAAHCEWdd8QA8gAAAAASUVORK5CYII=
<o:lock v:ext="edit" aspectratio="f"/>
<v:textbox>
<w:txbxContent>
<#if printingType == 1>
<w:p>
<w:pPr>
<w:keepNext w:val="off"/>
......@@ -130408,6 +130409,40 @@ AAAAAAAAAAAAAAAAAAAAAAAAAAAAHCEWdd8QA8gAAAAASUVORK5CYII=
<w:t>${(receiveOrgName)!''}</w:t>
</w:r>
</w:p>
<#elseif printingType == 2>
<w:p>
<w:pPr>
<w:keepNext w:val="off"/>
<w:keepLines w:val="off"/>
<w:pageBreakBefore w:val="off"/>
<w:widowControl w:val="off"/>
<w:kinsoku/>
<w:wordWrap/>
<w:overflowPunct/>
<w:topLinePunct w:val="off"/>
<w:adjustRightInd/>
<w:snapToGrid/>
<w:spacing w:line="120" w:line-rule="auto"/>
<w:jc w:val="left"/>
<w:textAlignment w:val="auto"/>
<w:rPr>
<w:rFonts w:ascii="黑体" w:h-ansi="黑体" w:fareast="黑体" w:cs="黑体" w:hint="default"/>
<w:sz w:val="32"/>
<w:sz-cs w:val="32"/>
<w:lang w:val="EN-US" w:fareast="ZH-CN"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:ascii="黑体" w:h-ansi="黑体" w:fareast="黑体" w:cs="黑体" w:hint="default"/>
<w:sz w:val="32"/>
<w:sz-cs w:val="32"/>
<w:lang w:val="EN-US" w:fareast="ZH-CN"/>
</w:rPr>
<w:t>(名称与公章)</w:t>
</w:r>
</w:p>
</#if>
</w:txbxContent>
</v:textbox>
</v:shape>
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