Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
b8fcb563
Commit
b8fcb563
authored
Apr 18, 2019
by
Cheng C Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pom Add analysis_excel_init
parent
83586368
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
TaxDocumentServiceImpl.java
...pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
+18
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
View file @
b8fcb563
...
...
@@ -193,6 +193,15 @@ public class TaxDocumentServiceImpl {
@Transactional
public
synchronized
boolean
addTaxDocumentList
(
MultipartFile
file
,
TaxDocument
taxDocument
)
{
try
{
TaxDocumentExample
taxDocumentExample
=
new
TaxDocumentExample
();
taxDocumentExample
.
createCriteria
().
andFileNameEqualTo
(
taxDocument
.
getFileName
());
List
<
TaxDocument
>
list
=
taxDocumentMapper
.
selectByExample
(
taxDocumentExample
);
if
(
list
.
size
()
>
0
)
{
return
false
;
}
//上传文件
if
(
StringUtils
.
isBlank
(
taxDocument
.
getFileUploadId
()))
{
...
...
@@ -311,6 +320,15 @@ public class TaxDocumentServiceImpl {
public
boolean
editFilesType
(
TaxDocument
taxDocument
)
{
try
{
TaxDocumentExample
taxDocumentExample
=
new
TaxDocumentExample
();
taxDocumentExample
.
createCriteria
().
andFileNameEqualTo
(
taxDocument
.
getFileName
());
List
<
TaxDocument
>
list
=
taxDocumentMapper
.
selectByExample
(
taxDocumentExample
);
if
(
list
.
size
()
>
0
)
{
return
false
;
}
taxDocument
.
setUpdateTime
(
new
Date
());
int
num
=
taxDocumentMapper
.
updateByPrimaryKey
(
taxDocument
);
if
(
num
>
0
)
{
...
...
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