Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
code
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
code
Commits
c90c1bbd
Commit
c90c1bbd
authored
Apr 20, 2022
by
solho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:發票抬頭 標準版 取消INSERT資料
feat:審核歷史新增運營辦流程LOG
parent
a0b90a6b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
16 deletions
+5
-16
WebAPI/Controllers/CustomerController.cs
WebAPI/Controllers/CustomerController.cs
+1
-3
WebAPI/Controllers/Esn_Subitem/Esn_Todos_FlowController.cs
WebAPI/Controllers/Esn_Subitem/Esn_Todos_FlowController.cs
+4
-13
No files found.
WebAPI/Controllers/CustomerController.cs
View file @
c90c1bbd
...
@@ -168,9 +168,7 @@ namespace WebAPI.Controllers
...
@@ -168,9 +168,7 @@ namespace WebAPI.Controllers
CommandText
=
@"MERGE INTO essen_customer WITH(HOLDLOCK) as target USING(
CommandText
=
@"MERGE INTO essen_customer WITH(HOLDLOCK) as target USING(
select @request_customer_id as request_customer_id, @customer_id as customer_id ) as source (request_id,customer_id)
select @request_customer_id as request_customer_id, @customer_id as customer_id ) as source (request_id,customer_id)
on(target.customer_id = source.customer_id )
on(target.customer_id = source.customer_id )
WHEN MATCHED THEN UPDATE SET request_customer_id = @request_customer_id
WHEN MATCHED THEN UPDATE SET request_customer_id = @request_customer_id ;"
WHEN NOT MATCHED THEN INSERT(request_customer_id,customer_id)
VALUES(@request_customer_id,@customer_id );"
};
};
...
...
WebAPI/Controllers/Esn_Subitem/Esn_Todos_FlowController.cs
View file @
c90c1bbd
...
@@ -62,17 +62,8 @@ namespace WebAPI.Controllers
...
@@ -62,17 +62,8 @@ namespace WebAPI.Controllers
Esn_Todos_FlowModel
hisT
=
new
Esn_Todos_FlowModel
();
Esn_Todos_FlowModel
hisT
=
new
Esn_Todos_FlowModel
();
SqlCommand
cmd
=
new
SqlCommand
(
""
,
Conn
)
SqlCommand
cmd
=
new
SqlCommand
(
""
,
Conn
)
{
{
CommandText
=
@" select a.ConfirmTime,Case When isnull(e.Names,'')='' then '其他' else e.Names End as ConfirmUserClass
CommandText
=
@"select ConfirmTime,ConfirmUserClass,ConfirmMethod,Create_time,Create_User_Name,""From"", ""To"",
,Case When isnull(f.Names,'')='' then '其他' else f.Names end as ConfirmMethod
Description from dbo.efn_Get_Flow_editing_log(@Flow_id)"
,a.Create_time,d.cn_name as Create_User_Name,b.Step_Text as ""From"",c.Step_Text as ""To"",a.Description
from esn_Todos_flow_his a
left join esn_todos_Flow_StepType b on a.FromType_id = b.id
left join esn_todos_Flow_StepType c on a.ToType_id = c.id
left join evw_Employee d on a.Create_User_id = d.user_id
left join esn_category e on e.ParentId='Flow_Role' and a.ConfirmUserClass = e.QryKey1
left join esn_category f on f.ParentId='Flow_Method' and a.ConfirmMethod = f.QryKey1
where a.Flow_id = @Flow_id
"
};
};
cmd
.
Parameters
.
AddWithValue
(
"@Flow_id"
,
obj_input
[
"Flowid"
].
ToString
());
cmd
.
Parameters
.
AddWithValue
(
"@Flow_id"
,
obj_input
[
"Flowid"
].
ToString
());
DataSet
ds
=
SqlToDs
(
cmd
);
DataSet
ds
=
SqlToDs
(
cmd
);
...
@@ -443,11 +434,11 @@ namespace WebAPI.Controllers
...
@@ -443,11 +434,11 @@ namespace WebAPI.Controllers
CStepTypeNext
=
AllStepType
.
Where
(
p
=>
p
.
id
==
StepType_id_Previous
).
FirstOrDefault
();
CStepTypeNext
=
AllStepType
.
Where
(
p
=>
p
.
id
==
StepType_id_Previous
).
FirstOrDefault
();
#
region
重置結算日期
,
是否已解算
#
region
重置結算日期
,
是否已解算
if
(
JtSn
[
"validclass"
].
ToString
()
==
"PG"
||
JtSn
[
"validclass"
].
ToString
()
==
"Leader"
)
if
(
JtSn
[
"validclass"
].
ToString
()
==
"PG"
||
JtSn
[
"validclass"
].
ToString
()
==
"Leader"
)
//強制撤回
{
{
TOopExecSP
+=
String
.
Format
(
@"update esn_todos_points set date_points_settlement=null where sn="
+
dsr
[
"sn"
]
+
";"
);
TOopExecSP
+=
String
.
Format
(
@"update esn_todos_points set date_points_settlement=null where sn="
+
dsr
[
"sn"
]
+
";"
);
TOopExecSP
+=
String
.
Format
(
@"update esn_todos_Flow set Is_Settlement=0 where esn_todos_sn="
+
dsr
[
"sn"
]
+
";"
);
TOopExecSP
+=
String
.
Format
(
@"update esn_todos_Flow set Is_Settlement=0 where esn_todos_sn="
+
dsr
[
"sn"
]
+
";"
);
if
(
JtSn
[
"validclass"
].
ToString
()
==
"PG"
)
//
if (JtSn["validclass"].ToString() == "PG")
{
TOopExecSP
+=
String
.
Format
(
@"exec [dbo].esp_esn_Todos_V3_AssignStatus 'AS05Back' ,"
+
dsr
[
"sn"
]
+
@",'',@Reject_Description_{0},'',@Wade_User_ID ;"
,
i
);
//強制拉回需重置運營辦狀態
{
TOopExecSP
+=
String
.
Format
(
@"exec [dbo].esp_esn_Todos_V3_AssignStatus 'AS05Back' ,"
+
dsr
[
"sn"
]
+
@",'',@Reject_Description_{0},'',@Wade_User_ID ;"
,
i
);
//強制拉回需重置運營辦狀態
}
}
}
}
...
...
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