记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
15b3966b
Commit
15b3966b
authored
Jul 19, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
833dac86
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
2 additions
and
254 deletions
+2
-254
CodeUtil.java
...ent/admin/zhengzai/admin/service/impl/utils/CodeUtil.java
+2
-5
COD.jpg
.../zhengzai/admin/service/impl/utils/tmphtml/images/COD.jpg
+0
-0
POD.png
.../zhengzai/admin/service/impl/utils/tmphtml/images/POD.png
+0
-0
erweima.png
...ngzai/admin/service/impl/utils/tmphtml/images/erweima.png
+0
-0
iconJi.png
...engzai/admin/service/impl/utils/tmphtml/images/iconJi.png
+0
-0
iconShou.png
...gzai/admin/service/impl/utils/tmphtml/images/iconShou.png
+0
-0
yiweima.png
...ngzai/admin/service/impl/utils/tmphtml/images/yiweima.png
+0
-0
QRCode.png
...engzai/admin/service/impl/utils/tmphtml/qrcode/QRCode.png
+0
-0
shunfeng.html
...n/zhengzai/admin/service/impl/utils/tmphtml/shunfeng.html
+0
-248
PerformancesExpressServiceImpl.java
...ai/kylin/service/impl/PerformancesExpressServiceImpl.java
+0
-1
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/admin/service/impl/utils/CodeUtil.java
View file @
15b3966b
...
...
@@ -49,7 +49,8 @@ public class CodeUtil {
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
CodeUtil
.
class
);
public
static
String
pathName
=
System
.
getProperty
(
"user.dir"
).
concat
(
"/liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/admin/service/impl/utils/tmphtml/"
);
public
static
String
pathName
=
"/data/images/tmphtml/"
;
// public static String pathName = "/Users/jiangxiulong/Desktop/tmphtml/";
public
static
String
getQRCode
(
String
content
,
int
width
,
int
height
)
{
if
(!
StringUtils
.
isEmpty
(
content
))
{
...
...
@@ -77,7 +78,6 @@ public class CodeUtil {
//
// return resultImage;
}
catch
(
Exception
e
)
{
logger
.
error
(
e
.
getMessage
());
e
.
printStackTrace
();
}
finally
{
if
(
stream
!=
null
)
{
...
...
@@ -117,7 +117,6 @@ public class CodeUtil {
// return resultImage;
}
catch
(
Exception
e
)
{
logger
.
error
(
e
.
getMessage
());
e
.
printStackTrace
();
return
null
;
}
...
...
@@ -193,14 +192,12 @@ public class CodeUtil {
public
static
String
html2img
(
KylinOrderExpress
kylinOrderExpress
,
String
jContact
,
String
jAddress
,
String
jTel
,
KylinOrderTickets
orderInfo
)
{
logger
.
error
(
"test1"
);
String
barCode
=
getBarCode
(
kylinOrderExpress
.
getMailno
(),
90
,
13
);
logger
.
error
(
barCode
);
String
qrCode
=
getQRCode
(
"2453657424"
,
25
,
25
);
logger
.
error
(
qrCode
);
String
html
=
tmpHtml
();
logger
.
error
(
html
);
// 码图
String
replace1
=
html
.
replace
(
"images/yiweima.png"
,
barCode
).
replace
(
"images/erweima.png"
,
qrCode
);
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/admin/service/impl/utils/tmphtml/images/COD.jpg
deleted
100644 → 0
View file @
833dac86
3.92 KB
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/admin/service/impl/utils/tmphtml/images/POD.png
deleted
100644 → 0
View file @
833dac86
1.27 KB
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/admin/service/impl/utils/tmphtml/images/erweima.png
deleted
100644 → 0
View file @
833dac86
36.8 KB
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/admin/service/impl/utils/tmphtml/images/iconJi.png
deleted
100644 → 0
View file @
833dac86
3.08 KB
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/admin/service/impl/utils/tmphtml/images/iconShou.png
deleted
100644 → 0
View file @
833dac86
3.33 KB
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/admin/service/impl/utils/tmphtml/images/yiweima.png
deleted
100644 → 0
View file @
833dac86
15.5 KB
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/admin/service/impl/utils/tmphtml/qrcode/QRCode.png
deleted
100644 → 0
View file @
833dac86
164 Bytes
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/admin/service/impl/utils/tmphtml/shunfeng.html
deleted
100644 → 0
View file @
833dac86
<!DOCTYPE html>
<html
lang=
"en"
style=
"width: 100mm;"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"renderer"
content=
"webkit"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"Cache-Control"
content=
"no-transform"
>
<meta
http-equiv=
"Access-Control-Allow-Origin"
content=
"*"
/>
<meta
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
name=
"viewport"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
/>
<meta
name=
"format-detection"
content=
"address=no"
/>
<meta
name=
"keywords"
content=
""
>
<meta
name=
"description"
content=
""
>
</head>
<body>
<!-- 顺丰快递面单打印,尺寸:100mm*150mm模版 -->
<div
style=
"width: 96mm;
height: 150mm;
padding-top: 5mm;
border: 1px solid #000;
text-align: center;"
>
<!-- 1. 运单打印系统来源及时间等 -->
<div
style=
"width: 100%;
font-family: 宋体;
font-size: 4pt;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-end;"
>
<!-- 1.1 打印系统来源(太长放不下了,所以去掉了) -->
<!-- <div class="source">
SCP顺丰云打印
</div> -->
<!-- 1.2 打印次数/时间 -->
<!-- <div
style="width: 80%;
font-family: 宋体;
font-size: 4pt;
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-end;"
>
第一次打印 2020-05-05 12:00 第8/10个
</div> -->
<!-- 3 时效类型 -->
<div
style=
"font-family: 黑体;
font-size: 18pt;
font-weight: bolder;
margin-right: 2mm;"
>
<!-- 3.1 特快即日、特快A、特快、标快、标快陆运、特惠、电商标快 -->
特快
</div>
</div>
<!-- 2. 条码区 -->
<div>
<!-- 2.1 条码 -->
<div>
<img
src=
"images/yiweima.png"
style=
"width: 90%; height: 13mm; margin: 0 5mm;"
>
</div>
<!-- 2.2 子母件单号、汉字、件数标识、 -->
<div
style=
"font-family: 黑体;
font-size: 10pt;
display: flex;
flex-direction: column;"
>
<div>
运单号:SF1010874393776
</div>
<!-- <div>
母单号:SF1 010 874 393 776
</div> -->
</div>
</div>
<!-- 4 目的地 -->
<!-- 4.1 路由信息 暂无-->
<div
style=
"margin: 0 auto;
border: 1px solid #000;
border-bottom: none;
width: 92mm;"
>
<!-- 2.3 运单号 -->
<div
style=
"font-size: 22pt; font-weight: bold;"
>
755W-BA-0123456789
</div>
<!-- 5 收方信息 -->
<div
style=
"text-align: left;"
>
<!-- 5.1 收 -->
<div
style=
"display: inline-block; width: 9mm; text-align: center;"
>
<img
src=
"images/iconShou.png"
style=
"width:7mm; height:7mm"
>
</div>
<!-- 5.2 收件人姓名/电话/地址 -->
<div
style=
"display: inline-block; width: 62mm; font-family: 宋体; font-size: 9pt; text-align: left;"
>
<div>
<span>
收货姓名
</span>
<span>
18510988888
</span>
</div>
<div>
<span>
收货地址北京市朝阳区摩登天空测试地址
</span>
</div>
</div>
<!-- 5.3 单元区域编码 暂无-->
<!-- 6 代收货款 -->
<div
style=
"display: inline-block;"
>
<!-- 6.1 COD -->
<img
src=
"images/COD.jpg"
style=
"width: 17mm; height:9mm"
>
</div>
</div>
</div>
<table
border=
"1"
style=
"margin: 0 auto; border: 1px solid #000; width: 92.5mm; border-collapse:collapse;"
>
<tr>
<td
style=
"font-family: 宋体; font-size: 9pt;"
>
到付22元
</td>
<td
rowspan=
"3"
>
<img
src=
"images/erweima.png"
style=
"width: 25mm; height: 25mm"
>
</td>
<!-- 13 已验视 -->
<td
rowspan=
"3"
style=
"font-family: 黑体; font-size: 22pt; font-weight: bold; color: #272727b3;"
>
已
<br>
验
<br>
视
</td>
<!-- 产品名称 限时限时KC24字段 -->
<td
rowspan=
"2"
style=
"font-family: 宋体; font-size: 12pt; width: 20mm;"
>
限时
KC24
</td>
</tr>
<tr>
<td
rowspan=
"2"
style=
"font-family: 黑体; font-size: 22pt; font-weight: bold;"
>
A22
</td>
</tr>
<tr>
<td>
1A
</td>
</tr>
</table>
<!-- 14 寄方信息 -->
<div
style=
"border-left: 1px solid #000;
border-right: 1px solid #000;
width: 92mm;
margin: 0 auto;
text-align: left;"
>
<div
style=
"display: inline-block; width: 9mm; text-align: center;"
>
<img
src=
"images/iconJi.png"
style=
"width:7mm; height:7mm"
>
</div>
<!-- 14.1 寄件人人姓名/电话/地址 -->
<div
style=
"display: inline-block; width: 62mm; font-family: 宋体; font-size: 9pt; text-align: left;"
>
<div>
<span>
寄件人姓名
</span>
<span>
18510989999
</span>
</div>
<div>
<span>
寄件地址北京市朝阳区摩登天空测试地址
</span>
</div>
</div>
</div>
<table
border=
"1"
style=
"
margin: 0 auto;
border: 1px solid #000;
width: 92.5mm;
font-family: 宋体;
font-size: 9pt;
text-align: left;
border-collapse:collapse;"
>
<tr>
<!-- 15 托寄物 -->
<td
rowspan=
"2"
>
托寄物:演出票
</td>
<!-- 16 增值服务 -->
<!-- <td>
增值服务:
</td> -->
</tr>
<!-- 17 其他信息 -->
<tr>
<!-- 17. 1重量 -->
<!-- 17.2 付款方式、费用等 -->
<td>
<div>
计费重量:1kg
</div>
<div>
实际重量:1kg
</div>
<div>
费用合计:22元
</div>
<div>
付款方式:到付
</div>
</td>
</tr>
<tr>
<!-- 18 客户自定义区 -->
<td>
票种:
<br>
数量:
</td>
<!-- 19 图标区域 -->
<td>
<!-- 图标区域 -->
<!-- 贴纸信息 -->
</td>
</tr>
</table>
</div>
</body>
</html>
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/PerformancesExpressServiceImpl.java
View file @
15b3966b
...
...
@@ -574,7 +574,6 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
Wrappers
.
lambdaQuery
(
KylinOrderTickets
.
class
)
.
eq
(
KylinOrderTickets:
:
getOrderTicketsId
,
kylinOrderExpress
.
getOrderTicketsId
())
);
log
.
error
(
"jContact"
,
jContact
);
String
imgPath
=
codeUtil
.
html2img
(
kylinOrderExpress
,
jContact
,
jProvince
.
concat
(
jCity
).
concat
(
jAddress
),
jTel
,
orderInfo
);
log
.
error
(
"imgPath"
,
imgPath
);
codeUtil
.
drawImage
(
imgPath
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment