feat:增加门诊缴费模板-T2
This commit is contained in:
@@ -20,8 +20,12 @@ public enum ReceiptTemplateEnum {
|
||||
/**
|
||||
* 门诊缴费的模板
|
||||
*/
|
||||
OUTPATIENT_PAYMENT("3", "outpatientPayment", "门诊缴费的小票"),
|
||||
OUTPATIENT_T1("3", "outpatientPayment", "门诊缴费的小票-T1"),
|
||||
|
||||
/**
|
||||
* 门诊缴费的模板
|
||||
*/
|
||||
OUTPATIENT_T2("4", "department", "门诊缴费的小票-T2"),
|
||||
|
||||
;
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ public class RegisterServiceImpl implements PrintService {
|
||||
}
|
||||
|
||||
} catch (IOException e) {
|
||||
log.error("");
|
||||
log.error("图片分段错误");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}else {
|
||||
@@ -101,24 +101,26 @@ public class RegisterServiceImpl implements PrintService {
|
||||
param.put("alignment", 0); // 对齐方式
|
||||
param.put("offsetX", 0); // x
|
||||
param.put("offsetY", 0); // y
|
||||
param.put("resolution", 8); // 1\2\4\6\8打印的清晰度
|
||||
param.put("resolution", 1); // 1\2\4\6\8打印的清晰度
|
||||
param.put("mediaCtrl", 1); // 媒介类型,当前为:打印缓冲区 + 弹出 + 剪纸
|
||||
param.put("fields", StringUtils.join(filePathList, "&"));
|
||||
lexMarkDTO.setParam(param.toJSONString());
|
||||
LexMarkResultDTO<LexMarkResultDTO.Param> paramLexMarkResultDTO = thirdService.callDevice(lexMarkDTO, LexMarkResultDTO.Param.class);
|
||||
|
||||
for (String path : deletePathList) {
|
||||
File file = new File(path);
|
||||
// 检查文件是否存在
|
||||
if (file.exists() ) {
|
||||
// 尝试删除文件
|
||||
if (file.delete()) {
|
||||
log.info("文件删除成功: " + path);
|
||||
if ( path != null && !path.isEmpty()) {
|
||||
File file = new File(path);
|
||||
// 检查文件是否存在
|
||||
if (file.exists()) {
|
||||
// 尝试删除文件
|
||||
if (file.delete()) {
|
||||
log.info("文件删除成功: " + path);
|
||||
} else {
|
||||
log.info("文件删除失败: " + path);
|
||||
}
|
||||
} else {
|
||||
log.info("文件删除失败: " + path);
|
||||
log.info("文件不存在: " + path);
|
||||
}
|
||||
} else {
|
||||
log.info("文件不存在: " + path);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user