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
77da1d2c
Commit
77da1d2c
authored
Apr 15, 2021
by
谢希宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Submit by Strive
Date 2021/04/115 Project End
parent
60e88cfe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
140 additions
and
189 deletions
+140
-189
consultSheetReport.html
...webapp/WEB-INF/views/consultSheet/consultSheetReport.html
+1
-1
reportlist.html
...-web/src/main/webapp/WEB-INF/views/report/reportlist.html
+3
-3
ReportMapper.xml
...dule/src/main/java/com/cftech/report/dao/ReportMapper.xml
+12
-12
ReportJob.java
...module/src/main/java/com/cftech/report/job/ReportJob.java
+105
-173
view_order_record.sql
cftech-common-web/src/main/resources/view_order_record.sql
+19
-0
No files found.
aidea-modules/consult-module-web/src/main/webapp/WEB-INF/views/consultSheet/consultSheetReport.html
View file @
77da1d2c
...
@@ -400,7 +400,7 @@
...
@@ -400,7 +400,7 @@
"aTargets"
:
[
3
],
"aTargets"
:
[
3
],
"mData"
:
"userName"
,
"mData"
:
"userName"
,
"mRender"
:
function
(
a
,
b
,
c
,
d
)
{
"mRender"
:
function
(
a
,
b
,
c
,
d
)
{
if
(
c
)
{
if
(
c
.
userName
)
{
return
c
.
userName
.
slice
(
0
,
1
)
+
'*'
+
c
.
userName
.
slice
(
2
,
c
.
userName
.
length
);
return
c
.
userName
.
slice
(
0
,
1
)
+
'*'
+
c
.
userName
.
slice
(
2
,
c
.
userName
.
length
);
}
else
{
}
else
{
return
null
;
return
null
;
...
...
aidea-modules/reportform-module-web/src/main/webapp/WEB-INF/views/report/reportlist.html
View file @
77da1d2c
...
@@ -151,8 +151,8 @@
...
@@ -151,8 +151,8 @@
<th
style=
"width: 50px"
>
大区
</th>
<th
style=
"width: 50px"
>
大区
</th>
<th
style=
"width: 50px"
>
省份
</th>
<th
style=
"width: 50px"
>
省份
</th>
<th
style=
"width: 50px"
>
城市
</th>
<th
style=
"width: 50px"
>
城市
</th>
<th
style=
"width: 60px"
>
销售代表
</th>
<th
style=
"width: 65px"
>
医院
</th>
<th
style=
"width: 65px"
>
医院
</th>
<th
style=
"width: 60px"
>
销售代表
</th>
<th
style=
"width: 50px"
>
科室
</th>
<th
style=
"width: 50px"
>
科室
</th>
<th
style=
"width: 60px"
>
医生姓名
</th>
<th
style=
"width: 60px"
>
医生姓名
</th>
<th
style=
"width: 60px"
>
医生职称
</th>
<th
style=
"width: 60px"
>
医生职称
</th>
...
@@ -277,10 +277,10 @@
...
@@ -277,10 +277,10 @@
"mData"
:
"city"
"mData"
:
"city"
},
},
{
{
"mData"
:
"
salesRepresent
"
"mData"
:
"
hospital
"
},
},
{
{
"mData"
:
"
hospital
"
"mData"
:
"
salesRepresent
"
},
},
{
{
"mData"
:
"department"
"mData"
:
"department"
...
...
aidea-modules/reportform-module/src/main/java/com/cftech/report/dao/ReportMapper.xml
View file @
77da1d2c
...
@@ -294,18 +294,18 @@
...
@@ -294,18 +294,18 @@
<!--查询报表人员信息-->
<!--查询报表人员信息-->
<select
id=
"selectReportPeopleInfo"
resultMap=
"resultMapPeopleInfo"
parameterType=
"java.util.Map"
>
<select
id=
"selectReportPeopleInfo"
resultMap=
"resultMapPeopleInfo"
parameterType=
"java.util.Map"
>
SELECT
SELECT
product.product
_name productName,
product.common
_name productName,
detail.drugs_num drugsNum,
detail.drugs_num drugsNum,
ord.number orderNumber,
ord.number orderNumber,
consult.consult_id consultNumber,
consult.consult_id consultNumber,
CONVERT ( AES_DECRYPT( consult.user_name, 'aideakey' ) USING UTF8 ) userName,
CONVERT ( AES_DECRYPT( consult.user_name, 'aideakey' ) USING UTF8 ) userName,
CONVERT ( AES_DECRYPT( consult.phone, 'aideakey' ) USING UTF8 ) phone,
CONVERT ( AES_DECRYPT( consult.phone, 'aideakey' ) USING UTF8 ) phone,
qyuser.`name` cfDoctor,
qyuser.`name` cfDoctor,
org1.org_name cfHospital,
org1.org_name cfHospital,
ord.pay_time fkTime,
ord.pay_time fkTime,
waybill.send_express_date fhTime,
waybill.send_express_date fhTime,
waybill.accept_express_date sjTime,
waybill.accept_express_date sjTime,
ord.openid openId
ord.openid openId
FROM
FROM
t_order_details detail
t_order_details detail
LEFT JOIN t_aidea_product product ON product.id = detail.drugs_id AND product.del_flag = 0
LEFT JOIN t_aidea_product product ON product.id = detail.drugs_id AND product.del_flag = 0
...
...
aidea-modules/reportform-module/src/main/java/com/cftech/report/job/ReportJob.java
View file @
77da1d2c
This diff is collapsed.
Click to expand it.
cftech-common-web/src/main/resources/view_order_record.sql
0 → 100644
View file @
77da1d2c
-- 订单已付款视图
create
view
view_order_record
as
SELECT
o
.
id
,
--订单主键
o
.
number
,
--订单编码
o
.
total_amount
,
--订单总金额
od
.
drugs_num
,
--订单数量
sb
.
drugs_num
split_num
,
--拆分数量
sb
.
drugs_batchno
,
--拆分批次号
p
.
product_name
,
--产品名称
p
.
product_number
,
--产品编码
o
.
create_time
,
--创建时间
o
.
pay_time
--付款时间
FROM
t_order
o
LEFT
JOIN
t_order_details
od
ON
o
.
id
=
od
.
order_id
AND
od
.
del_flag
=
0
LEFT
JOIN
t_order_split_batch
sb
ON
o
.
id
=
sb
.
order_id
AND
sb
.
del_flag
=
0
LEFT
JOIN
t_aidea_product
p
ON
od
.
drugs_id
=
p
.
id
AND
p
.
del_flag
=
0
WHERE
o
.
status
IN
(
'2'
,
'3'
,
'4'
)
-- 待发货、待收货、已完成订单
\ No newline at end of file
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