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
c6b39183
Commit
c6b39183
authored
Jan 16, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
d4bd1f78
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
CostDomain.java
...main/java/com/blt/other/module/cost/model/CostDomain.java
+14
-3
No files found.
cost-service/src/main/java/com/blt/other/module/cost/model/CostDomain.java
View file @
c6b39183
...
...
@@ -31,8 +31,6 @@ import java.text.DecimalFormat;
import
java.time.LocalDateTime
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
@Accessors
(
chain
=
true
)
@TableName
(
value
=
"cost"
,
autoResultMap
=
true
)
...
...
@@ -382,7 +380,7 @@ public class CostDomain implements Serializable {
return
print
;
}
private
final
static
List
<
String
>
picFilter
=
Lists
.
newArrayList
(
"png"
,
"jpg
,
"
,
"bmp,"
,
"gif"
);
private
final
static
List
<
String
>
picFilter
=
Lists
.
newArrayList
(
"png"
,
"jpg"
,
"bmp,"
,
"gif"
);
public
CostDto
castToDto
()
{
...
...
@@ -438,6 +436,19 @@ public class CostDomain implements Serializable {
return
costDto
;
}
public
static
void
main
(
String
[]
args
)
{
String
filePath
=
"2132131.jpg"
;
if
(
StringUtils
.
isNotEmpty
(
filePath
))
{
int
i
=
filePath
.
lastIndexOf
(
'.'
);
String
extension
=
""
;
if
(
i
>
0
)
{
extension
=
filePath
.
substring
(
i
+
1
);
}
System
.
out
.
println
(
extension
);
System
.
out
.
println
(
picFilter
.
contains
(
extension
));
}
}
public
void
setCostTemplateIdByFrom
()
{
if
(
costForm
==
1
)
{
...
...
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