Commit 17b5a24c authored by solho's avatar solho

feat:update

parent d84f8a0d
--需手動改 --需手動改
--報表管理
select * from [s_report_field] a select * from [s_report_field] a
where a.field_column ='int_due_date' where a.field_column ='int_due_date'
/****** SSMS 中 SelectTopNRows 命令的指令碼 ******/ SELECT *
SELECT [report_condition_id]
,[condition_value]
,[conditon_text]
,[condition_compare]
,[condition_type]
,[value_sql]
,[conditon_text_zh_cn]
,[conditon_text_en_us]
,[conditon_text_ja_jp]
,[conditon_text_zh_tw]
FROM [s_report_condition] FROM [s_report_condition]
where dbo.f_GB2BIG([conditon_text],1) like '%內部期限%' where dbo.f_GB2BIG([conditon_text],1) like '%內部期限%'
UpdateQueryOutConfig
--數據更新
select * from u_proc_config a
where a.text_zh_cn like '%内部%'
select * from [dbo].[s_dictionary] a
where a.text_zh_cn like '%内部期限%'
select * from essen_customer a
where a.customer_id='20E0DB09-FEB6-4273-902C-DAE9A9BD3673'
select * from evw_Employee a
where a.user_id='62751e83-10e6-4619-8f64-6c2e5cb55227'
select top 100 * from evw_p_file_list a
left join evw_p_case_info b on a.obj_id=b.case_id
where a.file_id='fa019897-a4ff-4fca-99f6-d48a00067024&file_size=90857'
select top 100 b.* from sys.all_columns a
left join sys.tables b on a.object_id=b.object_id
where a.name like '%mail_type%'
select * from s_menu_info select top 100 * from sys.tables a
\ No newline at end of file where a.name like '%Send%'
\ No newline at end of file
truncate table IPEasy_test.dbo.temp_rpt_CustCaseTot_board truncate table IPEasy_test.dbo.temp_rpt_CustCaseTot_board
insert into 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' exec [dbo].[rpt_CustCaseTot_board] @p_YM_F='2021-01', @p_YM_T='2021-12', @p_RptType ='byPeople_board', @p_CustName='' , @DisplayType ='Month', @DataMode='All'
insert into 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-02', @p_YM_T='2021-02', @p_RptType ='byPeople_board', @p_CustName='' , @DisplayType ='Month', @DataMode='All' 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 insert into IPEasy_test.dbo.temp_rpt_CustCaseTot_board
...@@ -41,4 +41,24 @@ select top 1000 CaseNo, ItemName ...@@ -41,4 +41,24 @@ select top 1000 CaseNo, ItemName
where a.ItemName='繳費領證' and a.Item_Type='新進' where a.ItemName='繳費領證' and a.Item_Type='新進'
group by CaseNo,ItemName ,Item_Type group by CaseNo,ItemName ,Item_Type
--having count(1) > 1 --having count(1) > 1
order by repeatcount desc,CaseNo,Item_Type order by repeatcount desc,CaseNo,Item_Type
\ No newline at end of file
select top 1000 ctrl_proc_zh_tw from temp_rpt_CustCaseTot_board a
where a.ctrl_proc_zh_tw like '%繳年費%' or a.ctrl_proc_zh_tw like '%Renewal%'
group by ctrl_proc_zh_tw
select * from temp_rpt_CustCaseTot_board a
where a.CaseNo='TP201583-TW'
select top 1000 * from evw_p_proc_info a
where a.ctrl_proc_id in('67809313-fc14-4947-9663-2561af707db0','0D074660-0E15-4715-B438-410F7B9FC434')
and create_time between '2021-01-01' and '2021-12-31'
select * from i_ctrl_proc a
where a.ctrl_proc_zh_tw like '%ids%'
ctrl_proc_id
76cc802a-0343-4a7f-9f17-8542d0079c81
\ No newline at end of file
begin tran tran1
update esn_todos_Settle set EmpDS_id=L1.targetid
from (
select a.id,b.ID as targetid,b.Emp_DS,b.Emp_DSContury from esn_todos_Settle a
left join evw_qResult_EmpDS b on a.DSNum=b.Emp_DSNum
) L1
where L1.id=esn_todos_Settle.id
select * from esn_todos_Settle
--commit tran tran1
rollback tran tran1
\ No newline at end of file
B ALTER PROCEDURE [dbo].[rpt_CustCaseTot_board] ( B ALTER PROCEDURE [dbo].[rpt_CustCaseTot_board] (
......
Binary files "a/\345\240\261\350\241\250/rpt_CustCaseTot_board_dev.sql" and /dev/null differ Binary files "a/\345\240\261\350\241\250/rpt_CustCaseTot_board_dev.sql" and /dev/null differ
Binary files "a/\345\240\261\350\241\250/rpt_CustCaseTot_board_test -dev.sql" and /dev/null differ Binary files "a/\345\240\261\350\241\250/rpt_CustCaseTot_board_test -dev.sql" and /dev/null differ
Binary files "a/\345\240\261\350\241\250/rpt_CustCaseTot_board_test.sql" and /dev/null differ Binary files "a/\345\240\261\350\241\250/rpt_CustCaseTot_board_test.sql" and /dev/null differ
Binary files "a/\345\240\261\350\241\250/rpt_NotFinishPoint_ite.sql" and /dev/null differ Binary files "a/\345\240\261\350\241\250/rpt_NotFinishPoint_ite.sql" and /dev/null differ
Binary files "a/\345\240\261\350\241\250/rpt_NotFinishPoint_test.sql" and /dev/null differ Binary files "a/\345\240\261\350\241\250/rpt_NotFinishPoint_test.sql" and /dev/null differ
BALTER PROCEDURE [dbo].[rpt_PointFinish_YM] ( BALTER PROCEDURE [dbo].[rpt_PointFinish_YM] (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment