Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
7f35c3f1
提交
7f35c3f1
authored
5月 10, 2023
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(维修模块): 维修撤回bug
维修撤回bug
上级
d1301c76
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
12 行增加
和
11 行删除
+12
-11
FileController.java
...a/com/tykj/dev/device/file/Controller/FileController.java
+3
-3
DocumentDevice.java
.../java/com/tykj/dev/device/file/entity/DocumentDevice.java
+4
-5
JavaToPdfHtmlFreeMarker.java
...om/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
+1
-1
RepairBackBillServiceImpl.java
...device/repair/service/impl/RepairBackBillServiceImpl.java
+2
-1
application-dev.properties
dev-union/src/main/resources/application-dev.properties
+2
-1
没有找到文件。
dev-file/src/main/java/com/tykj/dev/device/file/Controller/FileController.java
浏览文件 @
7f35c3f1
...
...
@@ -222,7 +222,7 @@ public class FileController {
documents
.
setReplyNum
(
"123123123131"
);
documents
.
setSenderUnit
(
"浙江省"
);
documents
.
setTitle
(
"密码装备清退单"
);
documents
.
setId
(
1
);
documents
.
setId
(
null
);
List
<
DocumentDevice
>
documentDevices
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
20
;
i
++){
DocumentDevice
documentDevice
=
new
DocumentDevice
();
...
...
@@ -238,8 +238,8 @@ public class FileController {
documentDevices
.
add
(
documentDevice
);
}
documents
.
setDocumentDevices
(
documentDevices
);
String
[]
content
=
JavaToPdfHtmlFreeMarker
.
freeMarkerRender
(
documents
,
url
+
"htmlModel/"
);
//
String[] content = JavaToPdfHtmlFreeMarker.freeMarkerRender(documents,url+"htmlModel/");
String
[]
content
=
JavaToPdfHtmlFreeMarker
.
freeMarkerRenderRepair
(
documents
,
url
+
"htmlModel/"
);
log
.
info
(
"[file] 调用了生成出入单据对接口 documents"
);
return
ResponseEntity
.
ok
(
JavaToPdfHtmlFreeMarker
.
createPdf
(
content
,
url
,
preview
,
"documents/"
));
...
...
dev-file/src/main/java/com/tykj/dev/device/file/entity/DocumentDevice.java
浏览文件 @
7f35c3f1
...
...
@@ -92,18 +92,17 @@ public class DocumentDevice {
}
public
String
changeWord
(
String
keyword
)
{
String
returnVal
=
keyword
;
if
(
StringUtils
.
isNotBlank
(
keyword
))
{
if
(
keyword
.
contains
(
"&"
))
{
returnVal
=
keyword
.
replace
(
"&"
,
"&"
);
keyword
=
keyword
.
replace
(
"&"
,
"&"
);
}
if
(
keyword
.
contains
(
"<"
))
{
returnVal
=
keyword
.
replace
(
"<"
,
"<"
);
keyword
=
keyword
.
replace
(
"<"
,
"<"
);
}
if
(
keyword
.
contains
(
">"
))
{
returnVal
=
keyword
.
replace
(
">"
,
">"
);
keyword
=
keyword
.
replace
(
">"
,
">"
);
}
}
return
returnVal
;
return
keyword
;
}
}
dev-file/src/main/java/com/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
浏览文件 @
7f35c3f1
...
...
@@ -115,7 +115,7 @@ public class JavaToPdfHtmlFreeMarker {
String
url
=
new
File
(
htmlFile
).
toURI
().
toURL
().
toString
();
ByteArrayOutputStream
os
=
new
ByteArrayOutputStream
();
ITextRenderer
renderer
=
new
ITextRenderer
();
renderer
.
setDocument
(
htmlFile
);
renderer
.
setDocument
(
url
);
// 解决中文不显示问题
ITextFontResolver
fontResolver
=
renderer
.
getFontResolver
();
fontResolver
.
addFont
(
ResourceUtils
.
getURL
(
"classpath:"
).
getPath
()+
"font/simhei.ttf"
,
BaseFont
.
IDENTITY_H
,
BaseFont
.
NOT_EMBEDDED
);
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/service/impl/RepairBackBillServiceImpl.java
浏览文件 @
7f35c3f1
...
...
@@ -73,7 +73,8 @@ public class RepairBackBillServiceImpl implements RepairBackBillService {
@Override
public
boolean
delete
(
Integer
id
)
{
return
false
;
deviceRepairBackBillDao
.
deleteById
(
id
);
return
true
;
}
@Override
...
...
dev-union/src/main/resources/application-dev.properties
浏览文件 @
7f35c3f1
...
...
@@ -13,7 +13,8 @@ spring.jpa.hibernate.ddl-auto=update
#spring.jpa.hibernate.ddl-auto=update
#file.path=C:/Users/dengdiyi/Documents/file/
# spring boot admin
file.path
=
/Users/ozoz/data/
#file.path=/Users/ozoz/data/
file.path
=
/Users/zhoushaopan/Desktop/data/
preview.path
=
http://192.168.102.169:8087/file/
spring.boot.admin.client.url
=
http://localhost:8769
spring.boot.admin.client.instance.serviceBaseUrl
=
http://localhost:8087
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论