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
02160003
Commit
02160003
authored
Apr 20, 2019
by
kevin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_mysql' of
https://gitee.com/Memorydoc/atms
into dev_mysql
parents
0e239500
dd9daf6f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
8 deletions
+25
-8
Constant.java
...api/src/main/java/pwc/taxtech/atms/constant/Constant.java
+2
-0
AnalysisJobServiceImpl.java
...pwc/taxtech/atms/service/impl/AnalysisJobServiceImpl.java
+13
-5
AnalysisServiceImpl.java
...va/pwc/taxtech/atms/service/impl/AnalysisServiceImpl.java
+9
-3
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+0
-0
AnalysisTest.java
...test/java/pwc/taxtech/atms/service/impl/AnalysisTest.java
+1
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/constant/Constant.java
View file @
02160003
...
...
@@ -179,4 +179,5 @@ public final class Constant {
}
}
\ No newline at end of file
atms-api/src/main/java/pwc/taxtech/atms/service/impl/AnalysisJobServiceImpl.java
View file @
02160003
...
...
@@ -203,12 +203,19 @@ public class AnalysisJobServiceImpl extends BaseService {
String
regionMeg
=
regionMap
.
get
(
o
.
getRegionId
());
List
<
String
>
regionMs
=
Lists
.
newArrayList
();
if
(
StringUtils
.
isNotEmpty
(
regionMeg
))
{
regionMs
=
Arrays
.
asList
(
regionMeg
.
split
(
"
.
"
));
regionMs
=
Arrays
.
asList
(
regionMeg
.
split
(
"
,
"
));
}
if
(!
regionMs
.
isEmpty
())
{
am
.
setProvince
(
regionMs
.
get
(
1
)
!=
null
?
regionMs
.
get
(
1
)
:
""
);
am
.
setCity
(
regionMs
.
get
(
2
)
!=
null
?
regionMs
.
get
(
2
)
:
""
);
am
.
setDistrict
(
regionMs
.
get
(
3
)
!=
null
?
regionMs
.
get
(
4
)
:
""
);
if
(
regionMs
.
size
()
==
4
){
am
.
setProvince
(
regionMs
.
get
(
1
)
!=
null
?
regionMs
.
get
(
1
)
:
""
);
am
.
setCity
(
regionMs
.
get
(
2
)
!=
null
?
regionMs
.
get
(
2
)
:
""
);
am
.
setDistrict
(
regionMs
.
get
(
3
)
!=
null
?
regionMs
.
get
(
3
)
:
""
);
}
else
if
(
regionMs
.
size
()
==
3
){
am
.
setProvince
(
regionMs
.
get
(
1
)
!=
null
?
regionMs
.
get
(
1
)
:
""
);
am
.
setCity
(
regionMs
.
get
(
2
)
!=
null
?
regionMs
.
get
(
2
)
:
""
);
}
else
if
(
regionMs
.
size
()
==
2
){
am
.
setProvince
(
regionMs
.
get
(
1
)
!=
null
?
regionMs
.
get
(
1
)
:
""
);
}
}
am
.
setBusinessLine
(
buMap
.
get
(
o
.
getBusinessUnitId
()));
am
.
setCode
(
o
.
getCode
());
...
...
@@ -223,7 +230,8 @@ public class AnalysisJobServiceImpl extends BaseService {
}
analysisMasterMapper
.
insertSelective
(
am
);
}
catch
(
Exception
e
)
{
logger
.
error
(
String
.
format
(
"公司:[%s]生成机构分析数据失败!"
,
o
.
getName
()),
e
);
e
.
printStackTrace
();
logger
.
error
(
String
.
format
(
"生成机构分析数据失败!"
,
e
.
getMessage
()));
}
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/AnalysisServiceImpl.java
View file @
02160003
...
...
@@ -932,7 +932,7 @@ public class AnalysisServiceImpl extends BaseService {
.
andCompanyNameEqualTo
(
getCellValue
(
sheetAt
.
getRow
(
i
).
getCell
(
3
),
false
).
toString
())
.
andPeriodEqualTo
(
period
);
List
<
AnalysisMaster
>
analysisMasters
=
analysisMasterMapper
.
selectByExample
(
example
);
if
(
breakFlag
>
3
)
{
if
(
breakFlag
>
20
)
{
logger
.
info
(
"大于三条数据不匹配,直接停止进程"
);
break
;
}
...
...
@@ -962,8 +962,14 @@ public class AnalysisServiceImpl extends BaseService {
salesList
.
add
(
sales
);
}
}
int
salesInt
=
analysisSalesMapper
.
insertBatch
(
salesList
);
int
taxInt
=
analysisTaxMapper
.
insertBatch
(
taxList
);
int
salesInt
=
0
;
if
(
salesList
.
size
()
!=
0
)
{
salesInt
=
analysisSalesMapper
.
insertBatch
(
salesList
);
}
int
taxInt
=
0
;
if
(
taxList
.
size
()
!=
0
)
{
taxInt
=
analysisTaxMapper
.
insertBatch
(
taxList
);
}
logger
.
info
(
"analysis_salesInt 更新数据条数"
+
salesInt
);
logger
.
info
(
"analysis_tax 更新数据条数"
+
taxInt
);
System
.
out
.
println
(
"数据初始化消耗: "
+
(
System
.
currentTimeMillis
()
-
now
));
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
02160003
This diff is collapsed.
Click to expand it.
atms-api/src/test/java/pwc/taxtech/atms/service/impl/AnalysisTest.java
View file @
02160003
...
...
@@ -10,6 +10,7 @@ import pwc.taxtech.atms.common.util.DateUtils;
import
pwc.taxtech.atms.constant.enums.EnumTbImportType
;
import
pwc.taxtech.atms.entity.Organization
;
import
pwc.taxtech.atms.entity.OrganizationExample
;
import
pwc.taxtech.atms.vat.entity.EbitCellData
;
import
java.io.FileInputStream
;
import
java.io.FileNotFoundException
;
...
...
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