Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-cost-system
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
bltdc
dc-cost-system
Commits
2cf3038d
Commit
2cf3038d
authored
Jan 09, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d387373e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
CostDomain.java
...main/java/com/blt/other/module/cost/model/CostDomain.java
+11
-1
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/model/CostDomain.java
View file @
2cf3038d
...
@@ -22,6 +22,8 @@ import java.text.DecimalFormat;
...
@@ -22,6 +22,8 @@ import java.text.DecimalFormat;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
value
=
"cost"
,
autoResultMap
=
true
)
@TableName
(
value
=
"cost"
,
autoResultMap
=
true
)
...
@@ -235,6 +237,8 @@ public class CostDomain implements Serializable {
...
@@ -235,6 +237,8 @@ public class CostDomain implements Serializable {
private
String
costCurrentReviewer
;
private
String
costCurrentReviewer
;
private
static
final
String
REGEX_CHINESE
=
"[\u4e00-\u9fa5]"
;
// 中文正则
public
CostDto
castToDto
()
{
public
CostDto
castToDto
()
{
StatusMapper
statusMapper
=
SpringContextUtil
.
getBean
(
StatusMapper
.
class
);
StatusMapper
statusMapper
=
SpringContextUtil
.
getBean
(
StatusMapper
.
class
);
...
@@ -256,7 +260,13 @@ public class CostDomain implements Serializable {
...
@@ -256,7 +260,13 @@ public class CostDomain implements Serializable {
// 获取文件名
// 获取文件名
String
filePath
=
this
.
getFilePath
();
String
filePath
=
this
.
getFilePath
();
if
(
null
!=
filePath
&&
filePath
.
contains
(
"&"
))
{
if
(
null
!=
filePath
&&
filePath
.
contains
(
"&"
))
{
costDto
.
setFileName
(
filePath
.
substring
(
filePath
.
lastIndexOf
(
"&"
)
+
1
));
String
fileName
=
filePath
.
substring
(
filePath
.
lastIndexOf
(
"&"
)
+
1
);
// 去除中文
Pattern
pat
=
Pattern
.
compile
(
REGEX_CHINESE
);
Matcher
mat
=
pat
.
matcher
(
fileName
);
costDto
.
setFileName
(
mat
.
replaceAll
(
""
));
}
}
// 抵个税
// 抵个税
if
(
1
==
costDto
.
getCostForm
())
{
if
(
1
==
costDto
.
getCostForm
())
{
...
...
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