Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
Wade_Database
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
solho
Wade_Database
Commits
ea976a82
Commit
ea976a82
authored
Feb 10, 2022
by
solho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:繳費領證取最早日期 修改,增加測試script
parent
e2e5990d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
其他/案件統(運營看板)SP 測試資料生成與測試SQL.sql
其他/案件統(運營看板)SP 測試資料生成與測試SQL.sql
+43
-0
報表/rpt_CustCaseTot_board_dev.sql
報表/rpt_CustCaseTot_board_dev.sql
+0
-0
報表/rpt_CustCaseTot_board_test -dev.sql
報表/rpt_CustCaseTot_board_test -dev.sql
+0
-0
No files found.
其他/案件統(運營看板)SP 測試資料生成與測試SQL.sql
0 → 100644
View file @
ea976a82
truncate
table
IPEasy_test
.
dbo
.
temp_rpt_CustCaseTot_board
insert
into
IPEasy_test
.
dbo
.
temp_rpt_CustCaseTot_board
exec
[
dbo
].[
rpt_CustCaseTot_board
]
@
p_YM_F
=
'2021-01'
,
@
p_YM_T
=
'2021-01'
,
@
p_RptType
=
'byPeople_board'
,
@
p_CustName
=
''
,
@
DisplayType
=
'Month'
,
@
DataMode
=
'All'
insert
into
IPEasy_test
.
dbo
.
temp_rpt_CustCaseTot_board
exec
[
dbo
].[
rpt_CustCaseTot_board
]
@
p_YM_F
=
'2021-02'
,
@
p_YM_T
=
'2021-02'
,
@
p_RptType
=
'byPeople_board'
,
@
p_CustName
=
''
,
@
DisplayType
=
'Month'
,
@
DataMode
=
'All'
insert
into
IPEasy_test
.
dbo
.
temp_rpt_CustCaseTot_board
exec
[
dbo
].[
rpt_CustCaseTot_board
]
@
p_YM_F
=
'2021-03'
,
@
p_YM_T
=
'2021-03'
,
@
p_RptType
=
'byPeople_board'
,
@
p_CustName
=
''
,
@
DisplayType
=
'Month'
,
@
DataMode
=
'All'
insert
into
IPEasy_test
.
dbo
.
temp_rpt_CustCaseTot_board
exec
[
dbo
].[
rpt_CustCaseTot_board
]
@
p_YM_F
=
'2021-04'
,
@
p_YM_T
=
'2021-04'
,
@
p_RptType
=
'byPeople_board'
,
@
p_CustName
=
''
,
@
DisplayType
=
'Month'
,
@
DataMode
=
'All'
insert
into
IPEasy_test
.
dbo
.
temp_rpt_CustCaseTot_board
exec
[
dbo
].[
rpt_CustCaseTot_board
]
@
p_YM_F
=
'2021-05'
,
@
p_YM_T
=
'2021-05'
,
@
p_RptType
=
'byPeople_board'
,
@
p_CustName
=
''
,
@
DisplayType
=
'Month'
,
@
DataMode
=
'All'
insert
into
IPEasy_test
.
dbo
.
temp_rpt_CustCaseTot_board
exec
[
dbo
].[
rpt_CustCaseTot_board
]
@
p_YM_F
=
'2021-06'
,
@
p_YM_T
=
'2021-06'
,
@
p_RptType
=
'byPeople_board'
,
@
p_CustName
=
''
,
@
DisplayType
=
'Month'
,
@
DataMode
=
'All'
insert
into
IPEasy_test
.
dbo
.
temp_rpt_CustCaseTot_board
exec
[
dbo
].[
rpt_CustCaseTot_board
]
@
p_YM_F
=
'2021-07'
,
@
p_YM_T
=
'2021-07'
,
@
p_RptType
=
'byPeople_board'
,
@
p_CustName
=
''
,
@
DisplayType
=
'Month'
,
@
DataMode
=
'All'
insert
into
IPEasy_test
.
dbo
.
temp_rpt_CustCaseTot_board
exec
[
dbo
].[
rpt_CustCaseTot_board
]
@
p_YM_F
=
'2021-08'
,
@
p_YM_T
=
'2021-08'
,
@
p_RptType
=
'byPeople_board'
,
@
p_CustName
=
''
,
@
DisplayType
=
'Month'
,
@
DataMode
=
'All'
insert
into
IPEasy_test
.
dbo
.
temp_rpt_CustCaseTot_board
exec
[
dbo
].[
rpt_CustCaseTot_board
]
@
p_YM_F
=
'2021-09'
,
@
p_YM_T
=
'2021-09'
,
@
p_RptType
=
'byPeople_board'
,
@
p_CustName
=
''
,
@
DisplayType
=
'Month'
,
@
DataMode
=
'All'
insert
into
IPEasy_test
.
dbo
.
temp_rpt_CustCaseTot_board
exec
[
dbo
].[
rpt_CustCaseTot_board
]
@
p_YM_F
=
'2021-10'
,
@
p_YM_T
=
'2021-10'
,
@
p_RptType
=
'byPeople_board'
,
@
p_CustName
=
''
,
@
DisplayType
=
'Month'
,
@
DataMode
=
'All'
insert
into
IPEasy_test
.
dbo
.
temp_rpt_CustCaseTot_board
exec
[
dbo
].[
rpt_CustCaseTot_board
]
@
p_YM_F
=
'2021-11'
,
@
p_YM_T
=
'2021-11'
,
@
p_RptType
=
'byPeople_board'
,
@
p_CustName
=
''
,
@
DisplayType
=
'Month'
,
@
DataMode
=
'All'
insert
into
IPEasy_test
.
dbo
.
temp_rpt_CustCaseTot_board
exec
[
dbo
].[
rpt_CustCaseTot_board
]
@
p_YM_F
=
'2021-12'
,
@
p_YM_T
=
'2021-12'
,
@
p_RptType
=
'byPeople_board'
,
@
p_CustName
=
''
,
@
DisplayType
=
'Month'
,
@
DataMode
=
'All'
--ﭫƦ
return
--proc_id
select
CaseNo
,[
YM_DATE
],
ItemName
,
Item_Type
,
proc_id
,
count
(
1
)
as
repeatcount
from
temp_rpt_CustCaseTot_board
a
group
by
CaseNo
,[
YM_DATE
],
ItemName
,
Item_Type
,
proc_id
having
count
(
proc_id
)
>
1
--úO
select
top
1000
CaseNo
,
ItemName
,
Item_Type
,
count
(
1
)
as
repeatcount
from
temp_rpt_CustCaseTot_board
a
where
a
.
ItemName
=
'úO'
and
a
.
Item_Type
=
'si'
group
by
CaseNo
,
ItemName
,
Item_Type
--having count(1) > 1
order
by
repeatcount
desc
,
CaseNo
,
Item_Type
\ No newline at end of file
報表/rpt_CustCaseTot_board_dev.sql
View file @
ea976a82
B
B
...
...
報表/rpt_CustCaseTot_board_test -dev.sql
View file @
ea976a82
B
B
...
...
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