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
04109897
Commit
04109897
authored
Sep 15, 2021
by
谢希宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:微问诊图文对接完整流程
parent
8bab67be
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
3 deletions
+63
-3
prescriptionlist.html
...n/webapp/WEB-INF/views/prescription/prescriptionlist.html
+12
-1
PrescriptionService.java
.../com/cftech/prescription/service/PrescriptionService.java
+8
-0
PrescriptionServiceImpl.java
...ch/prescription/service/impl/PrescriptionServiceImpl.java
+29
-0
MobilePrecriptionController.java
.../cftech/prescription/web/MobilePrecriptionController.java
+12
-0
common.properties
cftech-common-web/src/main/resources/common.properties
+2
-2
No files found.
aidea-modules/prescription-module-web/src/main/webapp/WEB-INF/views/prescription/prescriptionlist.html
View file @
04109897
...
...
@@ -78,7 +78,7 @@
<div
class=
"box-header"
>
<form
id=
"seachTableForm"
action=
"#springUrl('/a/prescription/list')"
method=
"get"
>
<div
class=
"col-xs-5"
>
<div
class=
"col-xs-
2
"
>
<div
class=
"col-xs-
4
"
>
<input
type=
"text"
class=
"form-control"
name=
"number"
placeholder=
"处方编码"
>
</div>
...
...
@@ -299,6 +299,17 @@
}
}
},
{
"aTargets"
:
[
12
],
"mData"
:
"payAmount"
,
"mRender"
:
function
(
a
,
b
,
c
,
d
)
{
if
(
a
!=
null
&&
a
!=
''
&&
a
>
100
)
{
return
(
a
/
100
).
toFixed
(
2
);
}
else
{
return
''
;
}
}
},
{
"aTargets"
:
[
13
],
"mData"
:
"payTime"
,
...
...
aidea-modules/prescription-module/src/main/java/com/cftech/prescription/service/PrescriptionService.java
View file @
04109897
...
...
@@ -81,4 +81,12 @@ public interface PrescriptionService extends GenericService<Prescription> {
* @return
*/
boolean
refund
(
String
id
);
/**
* 获取最近的处方单信息
* @param appId
* @param openId
* @return
*/
JSONObject
findPrescriptDetail
(
String
appId
,
String
openId
);
}
aidea-modules/prescription-module/src/main/java/com/cftech/prescription/service/impl/PrescriptionServiceImpl.java
View file @
04109897
...
...
@@ -119,6 +119,7 @@ public class PrescriptionServiceImpl extends GenericServiceImpl<Prescription> im
data
.
put
(
"unit"
,
params
.
get
(
"unit"
));
data
.
put
(
"storeNo"
,
storeNo
);
data
.
put
(
"prepayId"
,
prescription
.
getPrepayId
());
data
.
put
(
"ftAppId"
,
SystemConfig
.
p
.
getProperty
(
"cdfortis.appid"
));
//微问诊Appid
retObj
.
put
(
"errorNo"
,
0
);
retObj
.
put
(
"data"
,
data
);
...
...
@@ -149,6 +150,7 @@ public class PrescriptionServiceImpl extends GenericServiceImpl<Prescription> im
data
.
put
(
"productNo"
,
params
.
get
(
"productNumber"
));
data
.
put
(
"unit"
,
params
.
get
(
"unit"
));
data
.
put
(
"storeNo"
,
storeNo
);
data
.
put
(
"ftAppId"
,
SystemConfig
.
p
.
getProperty
(
"cdfortis.appid"
));
//微问诊Appid
retObj
.
put
(
"errorNo"
,
0
);
retObj
.
put
(
"data"
,
data
);
...
...
@@ -251,6 +253,33 @@ public class PrescriptionServiceImpl extends GenericServiceImpl<Prescription> im
}
return
retObj
;
}
@Override
public
JSONObject
findPrescriptDetail
(
String
appId
,
String
openId
)
{
JSONObject
retObj
=
new
JSONObject
();
try
{
//获取最新处方单数据
Conds
conds
=
new
Conds
();
conds
.
equal
(
"t.del_flag"
,
Constants
.
DEL_FLAG_0
);
conds
.
equal
(
"t.openid"
,
openId
);
conds
.
equal
(
"t.description"
,
"2"
);
//已获取返回结果
conds
.
equal
(
"t.doc_status"
,
"0"
);
//医生已审批
Sort
sort
=
new
Sort
(
"t.create_time"
,
OrderType
.
DESC
);
List
<
Prescription
>
list
=
this
.
fetchSearchByPage
(
conds
,
sort
,
0
,
0
);
if
(
CollectionUtils
.
isEmpty
(
list
))
{
retObj
.
put
(
"errorNo"
,
1
);
retObj
.
put
(
"errorMsg"
,
"处方暂未开具"
);
return
retObj
;
}
retObj
.
put
(
"errorNo"
,
0
);
retObj
.
put
(
"data"
,
list
.
get
(
0
));
}
catch
(
Exception
e
)
{
retObj
.
put
(
"errorNo"
,
1
);
e
.
printStackTrace
();
}
return
retObj
;
}
@Override
public
List
<
Prescription
>
findPreScriptionList
(
int
iDisplayStart
,
int
iDisplayLength
)
throws
Exception
{
return
findPreScriptionList
(
iDisplayStart
,
iDisplayLength
,
null
,
null
);
...
...
aidea-modules/prescription-module/src/main/java/com/cftech/prescription/web/MobilePrecriptionController.java
View file @
04109897
...
...
@@ -38,6 +38,18 @@ public class MobilePrecriptionController {
return
prescriptionService
.
findLastPrescription
(
appId
,
openId
);
}
/**
* 获取处方单详情,用于记载上一次处方单信息
* @param appId
* @param openId
* @return
*/
@RequestMapping
(
value
=
"findPrescriptDetail"
,
method
=
{
RequestMethod
.
POST
},
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
JSONObject
findPrescriptDetail
(
@RequestParam
String
appId
,
@RequestParam
String
openId
)
{
return
prescriptionService
.
findPrescriptDetail
(
appId
,
openId
);
}
/**
* 更新处方单
* @param appId
...
...
cftech-common-web/src/main/resources/common.properties
View file @
04109897
...
...
@@ -134,9 +134,9 @@ mch.pay_url=https://api.mch.weixin.qq.com/pay/unifiedorder
#\u5546\u6237\u53F7\u9000\u6B3E\u63A5\u53E3
msh.refund_url
=
https://api.mch.weixin.qq.com/secapi/pay/refund
#\u5546\u6237\u53F7\u4ED8\u6B3E\u6210\u529F\u56DE\u8C03url
mch.notify_url
=
https://p
d.shxrtech.com
/aidea/mobile/auth/order/wechatPayCallback
mch.notify_url
=
https://p
e.aidea.com.cn
/aidea/mobile/auth/order/wechatPayCallback
#\u5546\u6237\u53F7\u9000\u6B3E\u6210\u529F\u56DE\u8C03url
mch.refund_notify_url
=
https://p
d.shxrtech.com
/aidea/mobile/auth/order/wechatRefundCallback
mch.refund_notify_url
=
https://p
e.aidea.com.cn
/aidea/mobile/auth/order/wechatRefundCallback
#\u8BC1\u4E66\u5E8F\u5217\u53F7
mch.queue_no
=
4CB908135B122F41E127F6B60E41349E43A725C7
#\u8BC1\u4E66\u8DEF\u5F84
...
...
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