Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
3e92581b
Commit
3e92581b
authored
May 18, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
核算单元及组别数据验证
parent
fda2b70d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
3 deletions
+39
-3
performance/Performance.Api/Controllers/ConfigController.cs
+13
-0
performance/Performance.Repository/PerforCofdirectorRepository.cs
+6
-0
performance/Performance.Services/ConfigService.cs
+20
-3
No files found.
performance/Performance.Api/Controllers/ConfigController.cs
View file @
3e92581b
...
@@ -594,6 +594,19 @@ public ApiResponse AccountingDelete([FromRoute] int accountingId)
...
@@ -594,6 +594,19 @@ public ApiResponse AccountingDelete([FromRoute] int accountingId)
return
new
ApiResponse
(
ResponseType
.
Fail
);
return
new
ApiResponse
(
ResponseType
.
Fail
);
return
new
ApiResponse
(
ResponseType
.
OK
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
/// <summary>
/// 核算单元及组别数据验证
/// </summary>
/// <param name="allotId"></param>
/// <returns></returns>
[
Route
(
"accountingverify/{allotId}"
)]
[
HttpPost
]
public
ApiResponse
AccountingVerify
([
FromRoute
]
int
allotId
)
{
_configService
.
AccoungtingVerify
(
allotId
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
#
endregion
#
endregion
/// <summary>
/// <summary>
...
...
performance/Performance.Repository/PerforCofdirectorRepository.cs
View file @
3e92581b
...
@@ -219,5 +219,11 @@ union all
...
@@ -219,5 +219,11 @@ union all
return
flag
;
return
flag
;
}
}
}
}
public
int
VerifyAccountingAndUnittype
(
int
allotId
)
{
return
Execute
(
"call proc_verify_accoungingunit_unittype(@allotId);"
,
new
{
allotId
});
}
}
}
}
}
performance/Performance.Services/ConfigService.cs
View file @
3e92581b
...
@@ -643,9 +643,15 @@ public bool AgainDelete(CofAgainRequest request)
...
@@ -643,9 +643,15 @@ public bool AgainDelete(CofAgainRequest request)
/// <returns></returns>
/// <returns></returns>
public
List
<
cof_accounting
>
GetAccountingList
(
AccoungingRequest
request
)
public
List
<
cof_accounting
>
GetAccountingList
(
AccoungingRequest
request
)
{
{
var
list
=
request
.
Type
!=
2
?
cofaccountingRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
)
switch
(
request
.
Type
)
:
cofaccountingRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
&&
t
.
UnitType
==
request
.
UnitType
);
{
return
list
;
case
1
:
//返回accounting列表
case
2
:
//返回核算单元类型
default
:
return
cofaccountingRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
);
case
3
:
//返回核算单元
return
cofaccountingRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
&&
t
.
UnitType
==
request
.
UnitType
);
}
}
}
/// <summary>
/// <summary>
...
@@ -700,6 +706,17 @@ public bool AccountingDelete(int accountingId)
...
@@ -700,6 +706,17 @@ public bool AccountingDelete(int accountingId)
return
cofaccountingRepository
.
Remove
(
entity
);
return
cofaccountingRepository
.
Remove
(
entity
);
}
}
/// <summary>
/// 删除数据
/// </summary>
/// <param name="accountingId"></param>
/// <returns></returns>
public
void
AccoungtingVerify
(
int
allotId
)
{
_directorRepository
.
VerifyAccountingAndUnittype
(
allotId
);
}
#
endregion
#
endregion
#
region
Copy
#
region
Copy
...
...
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