Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
Aidea
Project
Project
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
sa_aidea
Aidea
Commits
b891a6a3
Commit
b891a6a3
authored
Feb 26, 2021
by
fanjr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
77f3700c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
13 deletions
+24
-13
PdaCouponrecordServiceImpl.java
...couponrecord/service/impl/PdaCouponrecordServiceImpl.java
+24
-13
No files found.
aidea-modules/couponrecord-module/src/main/java/com/cftech/couponrecord/service/impl/PdaCouponrecordServiceImpl.java
View file @
b891a6a3
...
@@ -45,18 +45,29 @@ public class PdaCouponrecordServiceImpl implements PdaCouponrecordService {
...
@@ -45,18 +45,29 @@ public class PdaCouponrecordServiceImpl implements PdaCouponrecordService {
Couponrecord
info
=
couponrecordMapper
.
isWriteOff
(
number
);
Couponrecord
info
=
couponrecordMapper
.
isWriteOff
(
number
);
if
(
info
!=
null
){
if
(
info
!=
null
){
if
(
info
.
getStatus
().
equals
(
"1"
)){
if
(
info
.
getStatus
().
equals
(
"1"
)){
long
hospitalId
=
couponrecordMapper
.
getHospitalIdByfaNo
(
facilityNo
);
Map
<
String
,
Object
>
map1
=
couponrecordMapper
.
getHospitalIdByfaNo
(
facilityNo
);
info
.
setStatus
(
"2"
);
if
(
map1
!=
null
&&
map1
.
size
()>
0
){
info
.
setVerifDate
(
new
Date
());
long
hospitalId
=
Long
.
valueOf
(
map1
.
get
(
"id"
)+
""
);
info
.
setFacilityNo
(
facilityNo
);
info
.
setStatus
(
"2"
);
info
.
setHospitalId
(
hospitalId
);
info
.
setVerifDate
(
new
Date
());
couponrecordMapper
.
update
(
info
);
info
.
setFacilityNo
(
facilityNo
);
rtnJson
.
put
(
"code"
,
200
);
info
.
setHospitalId
(
hospitalId
);
rtnJson
.
put
(
"msg"
,
"验证成功!"
);
couponrecordMapper
.
update
(
info
);
map
=
new
HashMap
<
String
,
Object
>();
rtnJson
.
put
(
"code"
,
200
);
map
.
put
(
"id"
,
logId
);
rtnJson
.
put
(
"msg"
,
"验证成功!"
);
map
.
put
(
"resultJson"
,
rtnJson
.
toString
());
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"status"
,
2
);
map
.
put
(
"id"
,
logId
);
map
.
put
(
"resultJson"
,
rtnJson
.
toString
());
map
.
put
(
"status"
,
2
);
}
else
{
rtnJson
.
put
(
"code"
,
500
);
rtnJson
.
put
(
"msg"
,
"未找到设备号对应的医院!"
);
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"id"
,
logId
);
map
.
put
(
"resultJson"
,
rtnJson
.
toString
());
map
.
put
(
"status"
,
1
);
couponrecordMapper
.
updatePdaLog
(
map
);
}
}
else
if
(
info
.
getStatus
().
equals
(
"0"
)){
}
else
if
(
info
.
getStatus
().
equals
(
"0"
)){
rtnJson
.
put
(
"code"
,
500
);
rtnJson
.
put
(
"code"
,
500
);
rtnJson
.
put
(
"msg"
,
"检测券未激活!"
);
rtnJson
.
put
(
"msg"
,
"检测券未激活!"
);
...
@@ -65,7 +76,7 @@ public class PdaCouponrecordServiceImpl implements PdaCouponrecordService {
...
@@ -65,7 +76,7 @@ public class PdaCouponrecordServiceImpl implements PdaCouponrecordService {
map
.
put
(
"resultJson"
,
rtnJson
.
toString
());
map
.
put
(
"resultJson"
,
rtnJson
.
toString
());
map
.
put
(
"status"
,
1
);
map
.
put
(
"status"
,
1
);
}
else
if
(
info
.
getStatus
().
equals
(
"2"
)){
}
else
if
(
info
.
getStatus
().
equals
(
"2"
)){
rtnJson
.
put
(
"code"
,
500
);
rtnJson
.
put
(
"code"
,
201
);
rtnJson
.
put
(
"msg"
,
"检测券已使用!"
);
rtnJson
.
put
(
"msg"
,
"检测券已使用!"
);
map
=
new
HashMap
<
String
,
Object
>();
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"id"
,
logId
);
map
.
put
(
"id"
,
logId
);
...
...
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