Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warehouse
Overview
Overview
Details
Activity
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
胡懿
warehouse
Commits
c0b4402b
Commit
c0b4402b
authored
Feb 21, 2023
by
胡懿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改二维码生成
parent
4f545015
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
GoodsService.java
...jeeplus/modules/warehouse/goods/service/GoodsService.java
+6
-1
IKSegmenterTest.java
...jeeplus/modules/warehouse/ikanalyzer/IKSegmenterTest.java
+1
-1
No files found.
src/main/java/com/jeeplus/modules/warehouse/goods/service/GoodsService.java
View file @
c0b4402b
...
@@ -174,7 +174,12 @@ public class GoodsService extends CrudService<GoodsMapper, Goods> {
...
@@ -174,7 +174,12 @@ public class GoodsService extends CrudService<GoodsMapper, Goods> {
String
url
=
qrCode
.
getUrl
();
String
url
=
qrCode
.
getUrl
();
if
(
null
!=
url
&&
url
.
contains
(
"image"
))
{
if
(
null
!=
url
&&
url
.
contains
(
"image"
))
{
String
photo
=
url
.
split
(
"image/"
)[
1
];
String
photo
=
url
.
split
(
"image/"
)[
1
];
FileUtil
.
deleteFile
(
new
File
(
Global
.
getAttachmentDir
()
+
"image/"
+
photo
));
File
file
=
new
File
(
Global
.
getAttachmentDir
()
+
"image/"
+
photo
);
if
(
file
.
exists
())
{
FileUtil
.
deleteFile
(
new
File
(
Global
.
getAttachmentDir
()
+
"image/"
+
photo
));
}
else
{
logger
.
info
(
"二维码路径不存在,执行删除"
);
}
}
}
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
src/main/java/com/jeeplus/modules/warehouse/ikanalyzer/IKSegmenterTest.java
View file @
c0b4402b
...
@@ -50,7 +50,7 @@ public class IKSegmenterTest {
...
@@ -50,7 +50,7 @@ public class IKSegmenterTest {
return
strs
;
return
strs
;
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
String
text
=
"185的绿
色
军鞋15双"
;
String
text
=
"185的绿军鞋15双"
;
System
.
out
.
println
(
"使用智能分词结果:"
+
splitStr
(
text
,
true
));
System
.
out
.
println
(
"使用智能分词结果:"
+
splitStr
(
text
,
true
));
System
.
out
.
println
(
"最细粒度分词结果:"
+
splitStr
(
text
,
false
));
System
.
out
.
println
(
"最细粒度分词结果:"
+
splitStr
(
text
,
false
));
}
}
...
...
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