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
87e91179
Commit
87e91179
authored
Apr 23, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.fixBug:二维码连接中传计划号
parent
a971e3ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
ServiceHPSC003.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
+1
-1
HPSC003.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC003.xml
+1
-1
HPSCTools.java
src/main/java/com/baosight/hpjx/hp/sc/tools/HPSCTools.java
+5
-4
No files found.
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
View file @
87e91179
...
@@ -217,7 +217,7 @@ public class ServiceHPSC003 extends ServiceBase {
...
@@ -217,7 +217,7 @@ public class ServiceHPSC003 extends ServiceBase {
HPSCTools
.
HpSc003
.
updateStatus
(
id
,
HPConstant
.
planStatus
.
S_1
);
HPSCTools
.
HpSc003
.
updateStatus
(
id
,
HPConstant
.
planStatus
.
S_1
);
// 生成二维码
// 生成二维码
if
(
StringUtils
.
isBlank
(
dbSc003
.
getQrcodeDocId
()))
{
if
(
StringUtils
.
isBlank
(
dbSc003
.
getQrcodeDocId
()))
{
HPSCTools
.
HpSc003
.
createQrCode
(
id
);
HPSCTools
.
HpSc003
.
createQrCode
(
dbSc003
.
getPlanInfoNo
()
);
}
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"提交成功"
);
inInfo
.
setMsg
(
"提交成功"
);
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC003.xml
View file @
87e91179
...
@@ -241,7 +241,7 @@
...
@@ -241,7 +241,7 @@
SET
SET
QRCODE_DOC_ID = #qrcodeDocId#,
QRCODE_DOC_ID = #qrcodeDocId#,
<include
refid=
"updateRevise"
/>
<include
refid=
"updateRevise"
/>
WHERE
ID = #id
#
WHERE
PLAN_INFO_NO = #planInfoNo
#
</update>
</update>
</sqlMap>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/sc/tools/HPSCTools.java
View file @
87e91179
...
@@ -426,17 +426,18 @@ public class HPSCTools {
...
@@ -426,17 +426,18 @@ public class HPSCTools {
* 生成二维码
* 生成二维码
*
*
* @param id
* @param id
* @param planInfoNo
*/
*/
public
static
void
createQrCode
(
Long
id
)
throws
Exception
{
public
static
void
createQrCode
(
String
planInfoNo
)
throws
Exception
{
AssertUtils
.
isNull
(
id
,
"节点ID
不能为空"
);
AssertUtils
.
isNull
(
planInfoNo
,
"计划号
不能为空"
);
// 取配置地址
// 取配置地址
String
url
=
PlatApplicationContext
.
getProperty
(
"iplat.planInfo.qrcode.url"
);
String
url
=
PlatApplicationContext
.
getProperty
(
"iplat.planInfo.qrcode.url"
);
if
(
StringUtils
.
isBlank
(
url
))
{
if
(
StringUtils
.
isBlank
(
url
))
{
return
;
return
;
}
}
Map
<
String
,
Object
>
resultMap
=
QrCodeUtils
.
create
(
String
.
format
(
url
,
id
));
Map
<
String
,
Object
>
resultMap
=
QrCodeUtils
.
create
(
String
.
format
(
url
,
planInfoNo
));
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
"
id"
,
id
);
map
.
put
(
"
planInfoNo"
,
planInfoNo
);
map
.
put
(
"qrcodeDocId"
,
resultMap
.
get
(
"docId"
));
map
.
put
(
"qrcodeDocId"
,
resultMap
.
get
(
"docId"
));
DaoUtils
.
update
(
HPSqlConstant
.
HPSC003
.
UPDATE_QRCODE
,
map
);
DaoUtils
.
update
(
HPSqlConstant
.
HPSC003
.
UPDATE_QRCODE
,
map
);
}
}
...
...
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