Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
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
platform
hp-smart
Commits
34b77f4d
Commit
34b77f4d
authored
Apr 23, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.计划绑定二维码
parent
6cbef9ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
HPSCTools.java
src/main/java/com/baosight/hpjx/hp/sc/tools/HPSCTools.java
+7
-6
No files found.
src/main/java/com/baosight/hpjx/hp/sc/tools/HPSCTools.java
View file @
34b77f4d
package
com
.
baosight
.
hpjx
.
hp
.
sc
.
tools
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baosight.hpjx.core.dao.DaoBase
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.security.UserSessionUtils
;
...
...
@@ -19,6 +18,7 @@ import com.baosight.hpjx.hp.sc.domain.HPSC007;
import
com.baosight.hpjx.util.AssertUtils
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.StringUtils
;
import
com.baosight.iplat4j.core.ioc.spring.PlatApplicationContext
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
org.apache.commons.collections.CollectionUtils
;
...
...
@@ -429,11 +429,12 @@ public class HPSCTools {
*/
public
static
void
createQrCode
(
Long
id
)
throws
Exception
{
AssertUtils
.
isNull
(
id
,
"节点ID不能为空"
);
// 生成二维码
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"id"
,
id
);
jsonObject
.
put
(
"remark"
,
"计划ID"
);
Map
<
String
,
Object
>
resultMap
=
QrCodeUtils
.
create
(
jsonObject
.
toJSONString
());
// 取配置地址
String
url
=
PlatApplicationContext
.
getProperty
(
"iplat.planInfo.qrcode.url"
);
if
(
StringUtils
.
isBlank
(
url
))
{
return
;
}
Map
<
String
,
Object
>
resultMap
=
QrCodeUtils
.
create
(
String
.
format
(
url
,
id
));
Map
map
=
new
HashMap
();
map
.
put
(
"id"
,
id
);
map
.
put
(
"qrcodeDocId"
,
resultMap
.
get
(
"docId"
));
...
...
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