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
ffe1e3d0
Commit
ffe1e3d0
authored
Feb 26, 2021
by
谢希宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://106.14.62.141:8081/sa_aidea/aidea
parents
5fb19f0c
b891a6a3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
15 deletions
+26
-15
CouponrecordMapper.java
.../java/com/cftech/couponrecord/dao/CouponrecordMapper.java
+1
-1
CouponrecordMapper.xml
...n/java/com/cftech/couponrecord/dao/CouponrecordMapper.xml
+1
-1
PdaCouponrecordServiceImpl.java
...couponrecord/service/impl/PdaCouponrecordServiceImpl.java
+24
-13
No files found.
aidea-modules/couponrecord-module/src/main/java/com/cftech/couponrecord/dao/CouponrecordMapper.java
View file @
ffe1e3d0
...
...
@@ -56,5 +56,5 @@ public interface CouponrecordMapper extends GenericDao<Couponrecord> {
* @param facilityNo
* @return
*/
Long
getHospitalIdByfaNo
(
String
facilityNo
);
Map
<
String
,
Object
>
getHospitalIdByfaNo
(
String
facilityNo
);
}
\ No newline at end of file
aidea-modules/couponrecord-module/src/main/java/com/cftech/couponrecord/dao/CouponrecordMapper.xml
View file @
ffe1e3d0
...
...
@@ -313,7 +313,7 @@
FROM t_aidea_coupon_record
where number = #{number}
</select>
<select
id=
"getHospitalIdByfaNo"
resultType=
"
java.lang.Long
"
>
<select
id=
"getHospitalIdByfaNo"
resultType=
"
map
"
>
SELECT id
FROM t_aidea_hospital t
WHERE t.facility_no = #{facilityNo}
...
...
aidea-modules/couponrecord-module/src/main/java/com/cftech/couponrecord/service/impl/PdaCouponrecordServiceImpl.java
View file @
ffe1e3d0
...
...
@@ -45,7 +45,9 @@ public class PdaCouponrecordServiceImpl implements PdaCouponrecordService {
Couponrecord
info
=
couponrecordMapper
.
isWriteOff
(
number
);
if
(
info
!=
null
){
if
(
info
.
getStatus
().
equals
(
"1"
)){
long
hospitalId
=
couponrecordMapper
.
getHospitalIdByfaNo
(
facilityNo
);
Map
<
String
,
Object
>
map1
=
couponrecordMapper
.
getHospitalIdByfaNo
(
facilityNo
);
if
(
map1
!=
null
&&
map1
.
size
()>
0
){
long
hospitalId
=
Long
.
valueOf
(
map1
.
get
(
"id"
)+
""
);
info
.
setStatus
(
"2"
);
info
.
setVerifDate
(
new
Date
());
info
.
setFacilityNo
(
facilityNo
);
...
...
@@ -57,6 +59,15 @@ public class PdaCouponrecordServiceImpl implements PdaCouponrecordService {
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"
)){
rtnJson
.
put
(
"code"
,
500
);
rtnJson
.
put
(
"msg"
,
"检测券未激活!"
);
...
...
@@ -65,7 +76,7 @@ public class PdaCouponrecordServiceImpl implements PdaCouponrecordService {
map
.
put
(
"resultJson"
,
rtnJson
.
toString
());
map
.
put
(
"status"
,
1
);
}
else
if
(
info
.
getStatus
().
equals
(
"2"
)){
rtnJson
.
put
(
"code"
,
500
);
rtnJson
.
put
(
"code"
,
201
);
rtnJson
.
put
(
"msg"
,
"检测券已使用!"
);
map
=
new
HashMap
<
String
,
Object
>();
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