Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
klck
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
位宇华
klck
Commits
cfcd5c0a
Commit
cfcd5c0a
authored
Jun 18, 2024
by
刘_震
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
汇总接口的实现(财务)-bug修改
parent
273ea06e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
ruoyi-wages/src/main/java/com/ruoyi/system/service/impl/WagesServiceImpl.java
.../java/com/ruoyi/system/service/impl/WagesServiceImpl.java
+7
-1
No files found.
ruoyi-wages/src/main/java/com/ruoyi/system/service/impl/WagesServiceImpl.java
View file @
cfcd5c0a
...
...
@@ -307,6 +307,11 @@ public class WagesServiceImpl implements WagesService {
return
"完成"
;
}
/**
* 林西矿汇总
* @param wagesFormulaListDto
* @return
*/
@Override
public
List
<
WagesLxVo
>
lxSummary
(
WagesFormulaListDto
wagesFormulaListDto
)
{
//定义一个集合用来存储前端所需要的返回值
...
...
@@ -345,6 +350,7 @@ public class WagesServiceImpl implements WagesService {
String
valueFromDAO
=
(
String
)
compilationExcelDAOS
.
getClass
().
getMethod
(
"get"
+
fieldName
.
toUpperCase
()).
invoke
(
compilationExcelDAOS
);
if
(
s
.
equals
(
valueFromDAO
))
{
matchedFieldNames
.
add
(
fieldName
);
value
=
StringUtils
.
replaceOnce
(
value
,
s
,
fieldName
);
}
}
catch
(
Exception
e
)
{
// 处理反射过程中的异常,如方法不存在、访问权限等
...
...
@@ -364,7 +370,7 @@ public class WagesServiceImpl implements WagesService {
// 使用反射获取该字段的值
String
valueFromDAO
=
(
String
)
wagesDetailsExcelDAO
.
getClass
().
getMethod
(
getterMethodName
).
invoke
(
wagesDetailsExcelDAO
);
valueFromDAO
=
(
valueFromDAO
==
null
||
valueFromDAO
.
equals
(
"null"
))
?
"0"
:
valueFromDAO
;
v
=
StringUtils
.
replaceOnce
(
v
,
formula
.
get
(
i
)
,
valueFromDAO
);
v
=
StringUtils
.
replaceOnce
(
v
,
matchedFieldName
,
valueFromDAO
);
}
catch
(
Exception
e
)
{
// 处理反射过程中的异常,如方法不存在、访问权限等
e
.
printStackTrace
();
...
...
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