Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-plan
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
INET-TWO
server
dcs-plan
Commits
881f6eae
Commit
881f6eae
authored
Aug 12, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在ExtIncomeContractServiceFeign中增加“重新计算收入到款”接口
parent
fd011fbc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
ExtIncomeContractService.java
...yonde/dcs/plan/core/service/ExtIncomeContractService.java
+7
-0
ExtIncomeContractServiceImpl.java
.../plan/core/service/impl/ExtIncomeContractServiceImpl.java
+11
-0
ExtIncomeContractServiceFeign.java
...m/yonde/dcs/plan/feign/ExtIncomeContractServiceFeign.java
+6
-0
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/ExtIncomeContractService.java
View file @
881f6eae
...
@@ -34,4 +34,11 @@ public interface ExtIncomeContractService<V extends ExtIncomeContractVO> extends
...
@@ -34,4 +34,11 @@ public interface ExtIncomeContractService<V extends ExtIncomeContractVO> extends
void
calculateIncomeByYear
(
Long
id
,
String
year
,
ExtIncomeContractVO
extIncomeContractVO
);
void
calculateIncomeByYear
(
Long
id
,
String
year
,
ExtIncomeContractVO
extIncomeContractVO
);
/**
* 重新计算收入到款
*
* @param id
*/
void
reCalculIncomeById
(
Long
id
);
}
}
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtIncomeContractServiceImpl.java
View file @
881f6eae
...
@@ -173,6 +173,17 @@ public class ExtIncomeContractServiceImpl<V extends ExtIncomeContractVO> impleme
...
@@ -173,6 +173,17 @@ public class ExtIncomeContractServiceImpl<V extends ExtIncomeContractVO> impleme
return
bigss
;
return
bigss
;
}
}
/**
* 重新计算xxx到款方法
*
* @param id
*/
@Override
public
void
reCalculIncomeById
(
Long
id
)
{
ExtIncomeContractVO
extIncomeContractVO
=
this
.
findRecursionExtIncomeContractVO
(
id
);
this
.
calculateIncomeByYear
(
id
,
null
,
extIncomeContractVO
);
}
}
}
...
...
dcs-plan-feign/src/main/java/com/yonde/dcs/plan/feign/ExtIncomeContractServiceFeign.java
View file @
881f6eae
...
@@ -26,4 +26,10 @@ public interface ExtIncomeContractServiceFeign<V extends ExtIncomeContractVO> ex
...
@@ -26,4 +26,10 @@ public interface ExtIncomeContractServiceFeign<V extends ExtIncomeContractVO> ex
@ApiOperation
(
value
=
"xxx年到款计算"
,
notes
=
"xxx年到款计算"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"xxx年到款计算"
,
notes
=
"xxx年到款计算"
,
httpMethod
=
"GET"
)
@GetMapping
(
"/calculateIncome"
)
@GetMapping
(
"/calculateIncome"
)
ExtIncomeContractVO
calculateIncomeByYear
(
@RequestParam
Long
id
,
String
year
);
ExtIncomeContractVO
calculateIncomeByYear
(
@RequestParam
Long
id
,
String
year
);
@ApiOperation
(
value
=
"重新计算收入到款"
,
notes
=
"重新计算收入到款"
,
httpMethod
=
"GET"
)
@GetMapping
(
"/reCalculIncomeById"
)
void
reCalculIncomeById
(
Long
id
);
}
}
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