Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
bailuntec-cost
Commits
a7db52e0
Commit
a7db52e0
authored
Jan 30, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 更新
parent
0c255e49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
CostTypeMapper.xml
cost-service/src/main/resources/mapper/CostTypeMapper.xml
+8
-0
OtherApplicationTests.java
...ce/src/test/java/com/blt/other/OtherApplicationTests.java
+6
-1
No files found.
cost-service/src/main/resources/mapper/CostTypeMapper.xml
View file @
a7db52e0
...
...
@@ -94,5 +94,13 @@
and t2.id is null;
</select>
<select
id=
"selectByTypeNameAndAccountSubjectName"
resultType=
"com.blt.other.database.model.CostTypeDomain"
>
select *
from bailun_other.cost_type t1
left join bailun_other.accounting_subject t2 on t1.accounting_subject_id = t2.id
where t1.type_name = #{typeName}
and t2.name = #{accountSubjectName}
limit 1;
</select>
</mapper>
cost-service/src/test/java/com/blt/other/OtherApplicationTests.java
View file @
a7db52e0
...
...
@@ -270,7 +270,7 @@ public class OtherApplicationTests {
@Test
public
void
importCost
()
{
CostListener
costListener
=
new
CostListener
();
EasyExcel
.
read
(
"/Users/huluobin/Library/Containers/com.tencent.WeWorkMac/Data/Library/Application Support/WXWork/Data/1688853793439460/Cache/File/2021-01/1月份费用系统数据更新.xls"
,
CostItem
.
class
,
costListener
).
sheet
().
doRead
();
EasyExcel
.
read
(
"/Users/huluobin/Library/Containers/com.tencent.WeWorkMac/Data/Library/Application Support/WXWork/Data/1688853793439460/Cache/File/2021-01/1月份费用系统数据更新
V1
.xls"
,
CostItem
.
class
,
costListener
).
sheet
().
doRead
();
}
@Data
...
...
@@ -322,6 +322,11 @@ public class OtherApplicationTests {
costDomain
.
setTypeName
(
item
.
getTypeName
());
CostTypeDomain
costTypeDomain
=
costTypeDao
.
selectByTypeNameAndAccountSubjectName
(
item
.
getTypeName
(),
item
.
getAccountSubjectName
());
if
(
costTypeDomain
!=
null
)
{
costDomain
.
setTypeId
(
costTypeDomain
.
getId
());
}
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
costDao
.
updateById
(
costDomain
);
});
}
...
...
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