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
b2991ee2
Commit
b2991ee2
authored
Mar 21, 2019
by
chase
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_mysql' of
http://code.tech.tax.asia.pwcinternal.com/root/atms
into dev_mysql
parents
606f4439
8093e0da
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
420 additions
and
83 deletions
+420
-83
AnalysisJob.java
...in/java/pwc/taxtech/atms/common/schedule/AnalysisJob.java
+7
-7
OrgSyncJob.java
...ain/java/pwc/taxtech/atms/common/schedule/OrgSyncJob.java
+1
-0
DateUtils.java
...src/main/java/pwc/taxtech/atms/common/util/DateUtils.java
+19
-0
HttpUtil.java
.../src/main/java/pwc/taxtech/atms/common/util/HttpUtil.java
+41
-0
RedLetterInfoTableDto.java
...pwc/taxtech/atms/dto/vatdto/dd/RedLetterInfoTableDto.java
+39
-3
DtsTokenService.java
...in/java/pwc/taxtech/atms/security/dd/DtsTokenService.java
+6
-11
AnalysisJobServiceImpl.java
...pwc/taxtech/atms/service/impl/AnalysisJobServiceImpl.java
+0
-0
BaseService.java
.../main/java/pwc/taxtech/atms/service/impl/BaseService.java
+3
-0
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+28
-15
UserServiceImpl.java
...n/java/pwc/taxtech/atms/service/impl/UserServiceImpl.java
+9
-3
applicationContext-job.xml
atms-api/src/main/resources/applicationContext-job.xml
+16
-0
AnalysisTest.java
...test/java/pwc/taxtech/atms/service/impl/AnalysisTest.java
+88
-0
GaryTest.java
...src/test/java/pwc/taxtech/atms/service/impl/GaryTest.java
+1
-0
ProjectMapper.java
...dao/src/main/java/pwc/taxtech/atms/dao/ProjectMapper.java
+2
-1
UserRoleInfo.java
...-dao/src/main/java/pwc/taxtech/atms/dpo/UserRoleInfo.java
+0
-7
RedLetterInfoTable.java
.../java/pwc/taxtech/atms/vat/entity/RedLetterInfoTable.java
+39
-3
RedLetterInfoTableExample.java
...wc/taxtech/atms/vat/entity/RedLetterInfoTableExample.java
+70
-10
ProjectExtendsMapper.xml
...ces/pwc/taxtech/atms/dao/extends/ProjectExtendsMapper.xml
+2
-2
RedLetterInfoTableMapper.xml
...ces/pwc/taxtech/atms/vat/dao/RedLetterInfoTableMapper.xml
+26
-11
PeriodCellDataExtendsMapper.xml
...tech/atms/vat/dao/extends/PeriodCellDataExtendsMapper.xml
+1
-1
vat.json
atms-web/src/main/webapp/app-resources/i18n/en-us/vat.json
+2
-0
vat.json
atms-web/src/main/webapp/app-resources/i18n/zh-CN/vat.json
+2
-0
organization-manage.ctrl.js
...astructure/organizationManage/organization-manage.ctrl.js
+7
-2
organization-manage.less
...nfrastructure/organizationManage/organization-manage.less
+1
-0
user-manage-list.ctrl.js
...in/infrastructure/userManageList/user-manage-list.ctrl.js
+1
-1
constant.js
atms-web/src/main/webapp/app/common/utils/constant.js
+5
-4
vat-revenue-conf-mapping.ctrl.js
...vat-revenue-conf-mapping/vat-revenue-conf-mapping.ctrl.js
+2
-1
vat-revenue-config.ctrl.js
.../dataImport/vat-revenue-config/vat-revenue-config.ctrl.js
+2
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/schedule/An
y
lysisJob.java
→
atms-api/src/main/java/pwc/taxtech/atms/common/schedule/An
a
lysisJob.java
View file @
b2991ee2
...
...
@@ -18,8 +18,8 @@ import pwc.taxtech.atms.service.impl.AnalysisServiceImpl;
import
javax.annotation.Resource
;
import
java.util.List
;
public
class
An
y
lysisJob
extends
QuartzJobBean
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
An
y
lysisJob
.
class
);
public
class
An
a
lysisJob
extends
QuartzJobBean
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
An
a
lysisJob
.
class
);
@Resource
private
OrganizationMapper
organizationMapper
;
...
...
@@ -43,19 +43,19 @@ public class AnylysisJob extends QuartzJobBean {
logger
.
info
(
String
.
format
(
"开始分析%s预期返还税数据"
,
period
));
analysisJobService
.
analysisExpectedTax
(
orgs
,
period
,
EnumTbImportType
.
CoverImport
.
getCode
());
logger
.
info
(
String
.
format
(
"开始分析%s
预期返还税
数据"
,
period
));
logger
.
info
(
String
.
format
(
"开始分析%s
费用
数据"
,
period
));
analysisJobService
.
analysisFee
(
orgs
,
period
,
EnumTbImportType
.
CoverImport
.
getCode
());
logger
.
info
(
String
.
format
(
"开始分析%s
预期返还税
数据"
,
period
));
logger
.
info
(
String
.
format
(
"开始分析%s
档案管理
数据"
,
period
));
analysisJobService
.
analysisFileManagement
(
orgs
,
period
,
EnumTbImportType
.
CoverImport
.
getCode
());
logger
.
info
(
String
.
format
(
"开始分析%s
预期返还税
数据"
,
period
));
logger
.
info
(
String
.
format
(
"开始分析%s
机构
数据"
,
period
));
analysisJobService
.
analysisMaster
(
orgs
,
period
,
EnumTbImportType
.
CoverImport
.
getCode
());
logger
.
info
(
String
.
format
(
"开始分析%s
预期返还税
数据"
,
period
));
logger
.
info
(
String
.
format
(
"开始分析%s
申报表
数据"
,
period
));
analysisJobService
.
analysisSales
(
orgs
,
period
,
EnumTbImportType
.
CoverImport
.
getCode
());
logger
.
info
(
String
.
format
(
"开始分析%s
预期返还
税数据"
,
period
));
logger
.
info
(
String
.
format
(
"开始分析%s
返还后
税数据"
,
period
));
analysisJobService
.
analysisTaxReturnEnd
(
orgs
,
period
,
EnumTbImportType
.
CoverImport
.
getCode
());
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/common/schedule/OrgSyncJob.java
View file @
b2991ee2
...
...
@@ -45,6 +45,7 @@ public class OrgSyncJob extends QuartzJobBean {
protected
void
executeInternal
(
JobExecutionContext
jobExecutionContext
)
throws
JobExecutionException
{
JobDataMap
dataMap
=
jobExecutionContext
.
getJobDetail
().
getJobDataMap
();
Map
<
String
,
String
>
headers
=
new
HashMap
<>();
// todo 这里token需确认
headers
.
put
(
"token"
,
token
);
headers
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded"
);
headers
.
put
(
"Idap"
,
"eddie.wu_v"
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/common/util/DateUtils.java
View file @
b2991ee2
...
...
@@ -289,6 +289,25 @@ public class DateUtils {
return
hour
;
}
public
static
Date
getZero
(){
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
new
Date
());
calendar
.
set
(
Calendar
.
HOUR_OF_DAY
,
0
);
calendar
.
set
(
Calendar
.
MINUTE
,
0
);
calendar
.
set
(
Calendar
.
SECOND
,
0
);
return
calendar
.
getTime
();
}
public
static
Date
getThreeDayZero
(){
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
new
Date
());
calendar
.
set
(
Calendar
.
DAY_OF_MONTH
,-
3
);
calendar
.
set
(
Calendar
.
HOUR_OF_DAY
,
0
);
calendar
.
set
(
Calendar
.
MINUTE
,
0
);
calendar
.
set
(
Calendar
.
SECOND
,
0
);
return
calendar
.
getTime
();
}
/**
* 得到现在分钟
*
...
...
atms-api/src/main/java/pwc/taxtech/atms/common/util/HttpUtil.java
View file @
b2991ee2
...
...
@@ -138,6 +138,47 @@ public class HttpUtil {
return
result
;
}
public
static
String
post
(
String
url
,
Map
<
String
,
String
>
headers
,
String
mimeType
,
String
charset
,
Integer
connTimeout
,
Integer
readTimeout
)
throws
ConnectTimeoutException
,
SocketTimeoutException
,
Exception
{
HttpClient
client
=
null
;
HttpPost
post
=
new
HttpPost
(
url
);
String
result
=
""
;
try
{
if
(
headers
!=
null
&&
!
headers
.
isEmpty
())
{
for
(
Entry
<
String
,
String
>
entry
:
headers
.
entrySet
())
{
post
.
addHeader
(
entry
.
getKey
(),
entry
.
getValue
());
}
}
// 设置参数
Builder
customReqConf
=
RequestConfig
.
custom
();
if
(
connTimeout
!=
null
)
{
customReqConf
.
setConnectTimeout
(
connTimeout
);
}
if
(
readTimeout
!=
null
)
{
customReqConf
.
setSocketTimeout
(
readTimeout
);
}
post
.
setConfig
(
customReqConf
.
build
());
HttpResponse
res
;
if
(
url
.
startsWith
(
"https"
))
{
// 执行 Https 请求.
client
=
createSSLInsecureClient
();
res
=
client
.
execute
(
post
);
}
else
{
// 执行 Http 请求.
client
=
HttpUtil
.
client
;
res
=
client
.
execute
(
post
);
}
result
=
IOUtils
.
toString
(
res
.
getEntity
().
getContent
(),
charset
);
}
finally
{
post
.
releaseConnection
();
if
(
url
.
startsWith
(
"https"
)
&&
client
!=
null
&&
client
instanceof
CloseableHttpClient
)
{
((
CloseableHttpClient
)
client
).
close
();
}
}
return
result
;
}
/**
* 提交form表单
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/dd/RedLetterInfoTableDto.java
View file @
b2991ee2
...
...
@@ -50,6 +50,17 @@ public class RedLetterInfoTableDto implements Serializable {
*/
private
String
projectId
;
/**
* Database Column Remarks:
* 期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column red_letter_info_table.period
*
* @mbg.generated
*/
private
Integer
period
;
/**
* Database Column Remarks:
* 税务系统期间
...
...
@@ -70,7 +81,7 @@ public class RedLetterInfoTableDto implements Serializable {
*
* @mbg.generated
*/
private
Integer
fillInDate
;
private
Date
fillInDate
;
/**
* Database Column Remarks:
...
...
@@ -295,6 +306,30 @@ public class RedLetterInfoTableDto implements Serializable {
this
.
projectId
=
projectId
==
null
?
null
:
projectId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.period
*
* @return the value of red_letter_info_table.period
*
* @mbg.generated
*/
public
Integer
getPeriod
()
{
return
period
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column red_letter_info_table.period
*
* @param period the value for red_letter_info_table.period
*
* @mbg.generated
*/
public
void
setPeriod
(
Integer
period
)
{
this
.
period
=
period
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.tms_period
...
...
@@ -327,7 +362,7 @@ public class RedLetterInfoTableDto implements Serializable {
*
* @mbg.generated
*/
public
Integer
getFillInDate
()
{
public
Date
getFillInDate
()
{
return
fillInDate
;
}
...
...
@@ -339,7 +374,7 @@ public class RedLetterInfoTableDto implements Serializable {
*
* @mbg.generated
*/
public
void
setFillInDate
(
Integer
fillInDate
)
{
public
void
setFillInDate
(
Date
fillInDate
)
{
this
.
fillInDate
=
fillInDate
;
}
...
...
@@ -670,6 +705,7 @@ public class RedLetterInfoTableDto implements Serializable {
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", organizationId="
).
append
(
organizationId
);
sb
.
append
(
", projectId="
).
append
(
projectId
);
sb
.
append
(
", period="
).
append
(
period
);
sb
.
append
(
", tmsPeriod="
).
append
(
tmsPeriod
);
sb
.
append
(
", fillInDate="
).
append
(
fillInDate
);
sb
.
append
(
", subjectNum="
).
append
(
subjectNum
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/security/dd/DtsTokenService.java
View file @
b2991ee2
...
...
@@ -3,6 +3,7 @@ import org.apache.commons.codec.binary.Base64;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
pwc.taxtech.atms.exception.ServiceException
;
import
pwc.taxtech.atms.service.impl.ProjectServiceImpl
;
import
sun.misc.BASE64Decoder
;
...
...
@@ -24,16 +25,13 @@ import java.util.TimeZone;
* @Date: 20/03/2019 20:41
* @Description:
*/
@Service
public
class
DtsTokenService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ProjectServiceImpl
.
class
);
private
static
String
PUBKEY
;
@Value
(
"${dd_pubkey}"
)
public
void
setDriver
(
String
pubkey
)
{
PUBKEY
=
pubkey
;
}
private
String
pubKey
;
public
static
final
String
KEY_ALGORITHM
=
"RSA"
;
...
...
@@ -49,7 +47,6 @@ public class DtsTokenService {
* @throws
*/
public
String
encryptInput
(){
String
pubKey
=
PUBKEY
;
BASE64Encoder
base64
=
new
BASE64Encoder
();
BASE64Decoder
base64Decoder
=
new
BASE64Decoder
();
byte
[]
encodeData
;
...
...
@@ -60,11 +57,9 @@ public class DtsTokenService {
long
rNum
=
generateRandomNumber
();
String
inputStr1
=
sDate
+
"@@"
+
"DTS"
+
"@@"
+
nonce
+
rNum
;
byte
[]
data1
=
inputStr1
.
getBytes
();
logger
.
info
(
"原文:"
+
inputStr1
);
logger
.
debug
(
"原文:"
+
inputStr1
);
encodeData
=
encryptByPublicKey
(
data1
,
publicKey
);
logger
.
info
(
"公钥加密后:"
+
base64
.
encode
(
encodeData
));
logger
.
debug
(
"公钥加密后:"
+
base64
.
encode
(
encodeData
));
}
catch
(
Exception
ex
)
{
throw
new
ServiceException
(
"cus"
+
ex
);
}
...
...
@@ -98,7 +93,7 @@ public class DtsTokenService {
private
byte
[]
encryptByPublicKey
(
byte
[]
data
,
byte
[]
key
)
throws
Exception
{
private
static
byte
[]
encryptByPublicKey
(
byte
[]
data
,
byte
[]
key
)
throws
Exception
{
X509EncodedKeySpec
x509KeySpec
=
new
X509EncodedKeySpec
(
key
);
KeyFactory
keyFactory
=
KeyFactory
.
getInstance
(
KEY_ALGORITHM
);
PublicKey
publicKey
=
keyFactory
.
generatePublic
(
x509KeySpec
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/AnalysisJobServiceImpl.java
View file @
b2991ee2
This diff is collapsed.
Click to expand it.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/BaseService.java
View file @
b2991ee2
...
...
@@ -8,6 +8,7 @@ import pwc.taxtech.atms.common.AtmsApiSettings;
import
pwc.taxtech.atms.common.AuthUserHelper
;
import
pwc.taxtech.atms.common.ResponseMessageBuilder
;
import
pwc.taxtech.atms.common.util.BeanUtil
;
import
pwc.taxtech.atms.security.dd.DtsTokenService
;
public
class
BaseService
{
protected
final
Logger
logger
=
LoggerFactory
.
getLogger
(
this
.
getClass
());
...
...
@@ -28,5 +29,7 @@ public class BaseService {
protected
CommonDocumentHelper
commonDocumentHelper
;
@Autowired
protected
ResponseMessageBuilder
responseMessageBuilder
;
@Autowired
protected
DtsTokenService
dtsTokenService
;
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
b2991ee2
...
...
@@ -42,6 +42,7 @@ import pwc.taxtech.atms.dto.vatdto.TrialBalanceDto;
import
pwc.taxtech.atms.dto.vatdto.TrialBalanceParam
;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.exception.ServiceException
;
import
pwc.taxtech.atms.security.dd.DtsTokenService
;
import
pwc.taxtech.atms.vat.dao.*
;
import
pwc.taxtech.atms.vat.entity.*
;
...
...
@@ -972,7 +973,7 @@ public class DataImportService extends BaseService {
OrganizationExample
organizationExample
=
new
OrganizationExample
();
organizationExample
.
createCriteria
().
andCodeEqualTo
(
companyCode
);
Integer
period
=
rlits
.
get
(
0
).
get
FillInDate
();
Integer
period
=
rlits
.
get
(
0
).
get
Period
();
List
<
Organization
>
orgs
=
organizationMapper
.
selectByExample
(
organizationExample
);
DataImportLog
dataImportLog
=
generalDataImportLog
(
rlits
.
get
(
0
).
getSubjectNum
(),
""
,
""
,
...
...
@@ -1535,7 +1536,8 @@ public class DataImportService extends BaseService {
rlit
.
setSubjectNum
(
getCellStringValue
(
row
.
getCell
(
0
)));
rlit
.
setSubjectName
(
getCellStringValue
(
row
.
getCell
(
1
)));
rlit
.
setRedLetterInvoiceInfoTableNum
(
getCellStringValue
(
row
.
getCell
(
2
)));
rlit
.
setFillInDate
(
DateUtils
.
dateToPeriod
(
row
.
getCell
(
3
).
getDateCellValue
()));
rlit
.
setPeriod
(
DateUtils
.
dateToPeriod
(
row
.
getCell
(
3
).
getDateCellValue
()));
rlit
.
setFillInDate
(
row
.
getCell
(
3
).
getDateCellValue
());
rlit
.
setSalesTaxNumber
(
getCellStringValue
(
row
.
getCell
(
4
)));
rlit
.
setSalespersonName
(
getCellStringValue
(
row
.
getCell
(
5
)));
rlit
.
setTotalAmount
(
getCellBigDecimalValue
(
row
.
getCell
(
6
)));
...
...
@@ -1849,7 +1851,7 @@ public class DataImportService extends BaseService {
orgs
.
forEach
(
o
->
{
try
{
Callable
callEbs
=
new
CallEbsThread
(
type
,
o
,
ebsCallUrl
,
dataImportLogMapper
,
authUserHelper
,
idService
,
period
,
effectiveDateFrom
,
effectiveDateTo
);
idService
,
dtsTokenService
,
period
,
effectiveDateFrom
,
effectiveDateTo
);
executorService
.
submit
(
callEbs
);
// resList.add(future);
}
catch
(
RejectedExecutionException
rje
)
{
...
...
@@ -1872,6 +1874,12 @@ public class DataImportService extends BaseService {
logger
.
error
(
String
.
format
(
EnumApiCodeMsg
.
CALLFAILED
.
getMsg
(),
e
.
getMessage
()),
e
);
}
});
// 三天外的日志隐藏
DataImportLog
dil
=
new
DataImportLog
();
dil
.
setDisplay
(
false
);
DataImportLogExample
e
=
new
DataImportLogExample
();
e
.
createCriteria
().
andCreateTimeLessThan
(
DateUtils
.
getThreeDayZero
());
dataImportLogMapper
.
updateByExampleSelective
(
dil
,
e
);
});
// 校验是否全部调用成功 这里有点问题
/*int res = 0;
...
...
@@ -1957,18 +1965,21 @@ public class DataImportService extends BaseService {
private
DistributedIdService
idService
;
private
DtsTokenService
dtsTokenService
;
private
String
effectiveDateFrom
;
private
String
effectiveDateTo
;
CallEbsThread
(
int
type
,
Organization
org
,
String
ebsCallUrl
,
DataImportLogMapper
dataImportLogMapper
,
AuthUserHelper
authUserHelper
,
DistributedIdService
idService
,
String
period
,
String
effectiveDateFrom
,
String
effectiveDateTo
)
{
CallEbsThread
(
int
type
,
Organization
org
,
String
ebsCallUrl
,
DataImportLogMapper
dataImportLogMapper
,
AuthUserHelper
authUserHelper
,
DistributedIdService
idService
,
DtsTokenService
dtsTokenService
,
String
period
,
String
effectiveDateFrom
,
String
effectiveDateTo
)
{
this
.
type
=
type
;
this
.
org
=
org
;
this
.
period
=
period
;
this
.
ebsCallUrl
=
ebsCallUrl
;
this
.
authUserHelper
=
authUserHelper
;
this
.
dtsTokenService
=
dtsTokenService
;
this
.
idService
=
idService
;
this
.
dataImportLogMapper
=
dataImportLogMapper
;
this
.
effectiveDateFrom
=
effectiveDateFrom
;
...
...
@@ -2008,44 +2019,46 @@ public class DataImportService extends BaseService {
dataImportLogMapper
.
insertSelective
(
log
);
return
0
;
}
String
secureToken
=
dtsTokenService
.
encryptInput
();
Map
<
String
,
String
>
headers
=
new
HashMap
<>();
headers
.
put
(
"secureToken"
,
secureToken
);
switch
(
type
)
{
case
EbsExtractTypeConstant
.
TB
:
response
=
HttpUtil
.
post
(
ebsCallUrl
+
"/glMonthlyBal?ledgerId="
+
ledgerId
+
"&companyCode="
+
code
+
"&period="
+
period
,
""
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
headers
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
break
;
case
EbsExtractTypeConstant
.
JE
:
// 这里BA反馈可按期间获取当月日记账即可
String
effecDateFrom
=
DateUtils
.
getFirstDayOfMonth
(
year
,
month
);
String
effecDateTo
=
DateUtils
.
getLastDayOfMonth
(
year
,
month
);
response
=
HttpUtil
.
post
(
ebsCallUrl
+
"/glJeLines"
+
"?ledgerId="
+
ledgerId
+
"&companyCode="
+
code
+
"&effectiveDateFrom="
+
effecDateFrom
+
"&effectiveDateTo="
+
effecDateTo
,
""
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
headers
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
break
;
case
EbsExtractTypeConstant
.
BSPRC
:
response
=
HttpUtil
.
post
(
ebsCallUrl
+
"/fsgAsset"
+
"?ledgerId="
+
ledgerId
+
"&companyCode="
+
code
+
"&period="
+
period
+
"&prcFlag=Y"
,
""
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
headers
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
break
;
case
EbsExtractTypeConstant
.
PLPRC
:
response
=
HttpUtil
.
post
(
ebsCallUrl
+
"/fsgProfit"
+
"?ledgerId="
+
ledgerId
+
"&companyCode="
+
code
+
"&period="
+
period
+
"&prcFlag=Y"
,
""
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
headers
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
break
;
case
EbsExtractTypeConstant
.
BS
:
response
=
HttpUtil
.
post
(
ebsCallUrl
+
"/fsgAsset"
+
"?ledgerId="
+
ledgerId
+
"&companyCode="
+
code
+
"&period="
+
period
+
"&prcFlag=N"
,
""
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
headers
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
break
;
case
EbsExtractTypeConstant
.
PL
:
response
=
HttpUtil
.
post
(
ebsCallUrl
+
"/fsgProfit"
+
"?ledgerId="
+
ledgerId
+
"&companyCode="
+
code
+
"&period="
+
period
+
"&prcFlag=N"
,
""
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
headers
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
break
;
case
EbsExtractTypeConstant
.
CF
:
response
=
HttpUtil
.
post
(
ebsCallUrl
+
"/fsgCash"
+
"?ledgerId="
+
ledgerId
+
"&companyCode="
+
code
+
"&period="
+
period
,
""
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
headers
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
break
;
case
EbsExtractTypeConstant
.
OCTB
:
break
;
case
EbsExtractTypeConstant
.
RATE
:
response
=
HttpUtil
.
post
(
ebsCallUrl
+
"/dailyRates"
+
"?period="
+
period
,
""
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
headers
,
"application/json;charset=utf-8"
,
"UTF-8"
,
10000
,
10000
);
break
;
default
:
break
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/UserServiceImpl.java
View file @
b2991ee2
...
...
@@ -1046,13 +1046,19 @@ public class UserServiceImpl extends AbstractService {
if
(
data
.
size
()<
1
){
throw
new
ServiceException
(
ErrorMessage
.
ExportFailed
);
}
data
.
forEach
(
d
->
{
for
(
UserRoleInfo
d
:
data
)
{
if
(!
d
.
getRoleInfoList
().
isEmpty
()){
List
<
String
>
rList
=
d
.
getRoleInfoList
().
stream
().
map
(
RoleInfo:
:
getName
).
collect
(
Collectors
.
toList
());
d
.
setRoleList
(
JSON
.
toJSONString
(
rList
));
}
d
.
setStatusStr
(
d
.
getStatus
());
});
String
statusStr
=
""
;
if
(
d
.
getStatus
()
==
0
){
statusStr
=
"禁用"
;
}
else
{
statusStr
=
"启用"
;
}
d
.
setStatusStr
(
statusStr
);
}
OutputStream
outputStream
=
commonDocumentHelper
.
toXlsxFileUsingJxls
(
data
,
excelTemplatePathInClassPath
);
try
{
...
...
atms-api/src/main/resources/applicationContext-job.xml
View file @
b2991ee2
...
...
@@ -36,12 +36,14 @@
<list>
<ref
bean=
"lgApiJobTrigger"
/>
<ref
bean=
"orgSyncJobTrigger"
/>
<ref
bean=
"analysisJobTrigger"
/>
</list>
</property>
<property
name=
"jobDetails"
>
<list>
<ref
bean=
"lgGlBalanceJob"
/>
<ref
bean=
"orgSyncJob"
/>
<ref
bean=
"analysisJob"
/>
</list>
</property>
<property
name=
"taskExecutor"
ref=
"executor"
/>
...
...
@@ -68,11 +70,24 @@
<property
name=
"description"
value=
"机构信息同步"
/>
</bean>
<bean
name=
"analysisJob"
class=
"org.springframework.scheduling.quartz.JobDetailFactoryBean"
>
<property
name=
"jobClass"
value=
"pwc.taxtech.atms.common.schedule.AnalysisJob"
/>
<property
name=
"durability"
value=
"true"
/>
<property
name=
"requestsRecovery"
value=
"false"
/>
<property
name=
"description"
value=
"分析模块"
/>
</bean>
<!-- 每月1日执行一次-->
<bean
id=
"orgSyncJobTrigger"
class=
"org.springframework.scheduling.quartz.CronTriggerFactoryBean"
>
<property
name=
"jobDetail"
ref=
"orgSyncJob"
/>
<property
name=
"cronExpression"
value=
"0 0 0 1 * ?"
/>
</bean>
<!-- 每天凌晨一点执行一次-->
<bean
id=
"analysisJobTrigger"
class=
"org.springframework.scheduling.quartz.CronTriggerFactoryBean"
>
<property
name=
"jobDetail"
ref=
"analysisJob"
/>
<property
name=
"cronExpression"
value=
"0 0 1 * * ?"
/>
</bean>
<!-- 分布式事务配置 end -->
</beans>
\ No newline at end of file
atms-api/src/test/java/pwc/taxtech/atms/service/impl/AnalysisTest.java
0 → 100644
View file @
b2991ee2
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
org.junit.Test
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
pwc.taxtech.atms.CommonIT
;
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
java.util.List
;
/**
* @Auther: Gary J Li
* @Date: 21/03/2019 11:37
* @Description:
*/
public
class
AnalysisTest
extends
CommonIT
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
DataInitTest
.
class
);
@Autowired
private
AnalysisJobServiceImpl
analysisJobService
;
@Test
public
void
analysisExpectedTax
(){
Integer
period
=
DateUtils
.
getPeriodNow
();
OrganizationExample
e
=
new
OrganizationExample
();
e
.
createCriteria
().
andIsActiveEqualTo
(
true
);
List
<
Organization
>
orgs
=
organizationMapper
.
selectByExample
(
e
);
logger
.
info
(
String
.
format
(
"开始分析%s预期返还税数据"
,
period
));
analysisJobService
.
analysisExpectedTax
(
orgs
,
period
,
EnumTbImportType
.
CoverImport
.
getCode
());
}
@Test
public
void
analysisFee
(){
Integer
period
=
DateUtils
.
getPeriodNow
();
OrganizationExample
e
=
new
OrganizationExample
();
e
.
createCriteria
().
andIsActiveEqualTo
(
true
);
List
<
Organization
>
orgs
=
organizationMapper
.
selectByExample
(
e
);
logger
.
info
(
String
.
format
(
"开始分析%s费用数据"
,
period
));
analysisJobService
.
analysisFee
(
orgs
,
period
,
EnumTbImportType
.
CoverImport
.
getCode
());
}
@Test
public
void
analysisFileManagement
(){
Integer
period
=
DateUtils
.
getPeriodNow
();
OrganizationExample
e
=
new
OrganizationExample
();
e
.
createCriteria
().
andIsActiveEqualTo
(
true
);
List
<
Organization
>
orgs
=
organizationMapper
.
selectByExample
(
e
);
logger
.
info
(
String
.
format
(
"开始分析%s文档管理数据"
,
period
));
analysisJobService
.
analysisFileManagement
(
orgs
,
period
,
EnumTbImportType
.
CoverImport
.
getCode
());
}
@Test
public
void
analysisMaster
(){
Integer
period
=
DateUtils
.
getPeriodNow
();
OrganizationExample
e
=
new
OrganizationExample
();
e
.
createCriteria
().
andIsActiveEqualTo
(
true
);
List
<
Organization
>
orgs
=
organizationMapper
.
selectByExample
(
e
);
logger
.
info
(
String
.
format
(
"开始分析%s机构数据"
,
period
));
analysisJobService
.
analysisMaster
(
orgs
,
period
,
EnumTbImportType
.
CoverImport
.
getCode
());
}
@Test
public
void
analysisSales
(){
Integer
period
=
DateUtils
.
getPeriodNow
();
OrganizationExample
e
=
new
OrganizationExample
();
e
.
createCriteria
().
andIsActiveEqualTo
(
true
);
List
<
Organization
>
orgs
=
organizationMapper
.
selectByExample
(
e
);
logger
.
info
(
String
.
format
(
"开始分析%s申报表数据"
,
period
));
analysisJobService
.
analysisSales
(
orgs
,
period
,
EnumTbImportType
.
CoverImport
.
getCode
());
}
@Test
public
void
analysisTaxReturnEnd
(){
Integer
period
=
DateUtils
.
getPeriodNow
();
OrganizationExample
e
=
new
OrganizationExample
();
e
.
createCriteria
().
andIsActiveEqualTo
(
true
);
List
<
Organization
>
orgs
=
organizationMapper
.
selectByExample
(
e
);
logger
.
info
(
String
.
format
(
"开始分析%s返还后税数据"
,
period
));
analysisJobService
.
analysisTaxReturnEnd
(
orgs
,
period
,
EnumTbImportType
.
CoverImport
.
getCode
());
}
}
atms-api/src/test/java/pwc/taxtech/atms/service/impl/GaryTest.java
View file @
b2991ee2
...
...
@@ -11,6 +11,7 @@ import pwc.taxtech.atms.entity.Organization;
import
pwc.taxtech.atms.entity.OrganizationExample
;
import
pwc.taxtech.atms.entity.OrganizationExtra
;
import
pwc.taxtech.atms.entity.OrganizationExtraExample
;
import
pwc.taxtech.atms.security.dd.DtsTokenService
;
import
java.util.List
;
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dao/ProjectMapper.java
View file @
b2991ee2
...
...
@@ -246,7 +246,7 @@ public interface ProjectMapper extends MyMapper {
" AND b.service_type_id = #{serviceType}"
)
Long
getTemplateGroupIdByProject
(
@Param
(
"projectId"
)
String
projectId
,
@Param
(
"serviceType"
)
Integer
serviceType
);
List
<
ProjectAnaylsisDto
>
getTemlateWithServiceType
(
@Param
(
"
orgIds
"
)
List
<
String
>
orgIds
,
@Param
(
"year"
)
Integer
year
,
@Param
(
"month"
)
Integer
month
,
@Param
(
"reportName"
)
String
reportName
);
List
<
ProjectAnaylsisDto
>
getTemlateWithServiceType
(
@Param
(
"
list
"
)
List
<
String
>
orgIds
,
@Param
(
"year"
)
Integer
year
,
@Param
(
"month"
)
Integer
month
,
@Param
(
"reportName"
)
String
reportName
);
List
<
ProjectAnaylsisDto
>
getTemlateWithServiceType2
(
@Param
(
"orgId"
)
String
orgId
,
@Param
(
"year"
)
Integer
year
,
@Param
(
"month"
)
Integer
month
,
@Param
(
"code"
)
String
code
);
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/dpo/UserRoleInfo.java
View file @
b2991ee2
...
...
@@ -248,11 +248,4 @@ public class UserRoleInfo {
public
void
setStatusStr
(
String
statusStr
)
{
this
.
statusStr
=
statusStr
;
}
public
void
setStatusStr
(
Integer
status
)
{
if
(
status
==
0
){
this
.
statusStr
=
"禁用"
;
}
this
.
statusStr
=
"启用"
;
}
}
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/RedLetterInfoTable.java
View file @
b2991ee2
...
...
@@ -46,6 +46,17 @@ public class RedLetterInfoTable extends BaseEntity implements Serializable {
*/
private
String
projectId
;
/**
* Database Column Remarks:
* 期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column red_letter_info_table.period
*
* @mbg.generated
*/
private
Integer
period
;
/**
* Database Column Remarks:
* 税务系统期间
...
...
@@ -66,7 +77,7 @@ public class RedLetterInfoTable extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
private
Integer
fillInDate
;
private
Date
fillInDate
;
/**
* Database Column Remarks:
...
...
@@ -291,6 +302,30 @@ public class RedLetterInfoTable extends BaseEntity implements Serializable {
this
.
projectId
=
projectId
==
null
?
null
:
projectId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.period
*
* @return the value of red_letter_info_table.period
*
* @mbg.generated
*/
public
Integer
getPeriod
()
{
return
period
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column red_letter_info_table.period
*
* @param period the value for red_letter_info_table.period
*
* @mbg.generated
*/
public
void
setPeriod
(
Integer
period
)
{
this
.
period
=
period
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.tms_period
...
...
@@ -323,7 +358,7 @@ public class RedLetterInfoTable extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
public
Integer
getFillInDate
()
{
public
Date
getFillInDate
()
{
return
fillInDate
;
}
...
...
@@ -335,7 +370,7 @@ public class RedLetterInfoTable extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
public
void
setFillInDate
(
Integer
fillInDate
)
{
public
void
setFillInDate
(
Date
fillInDate
)
{
this
.
fillInDate
=
fillInDate
;
}
...
...
@@ -666,6 +701,7 @@ public class RedLetterInfoTable extends BaseEntity implements Serializable {
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", organizationId="
).
append
(
organizationId
);
sb
.
append
(
", projectId="
).
append
(
projectId
);
sb
.
append
(
", period="
).
append
(
period
);
sb
.
append
(
", tmsPeriod="
).
append
(
tmsPeriod
);
sb
.
append
(
", fillInDate="
).
append
(
fillInDate
);
sb
.
append
(
", subjectNum="
).
append
(
subjectNum
);
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/RedLetterInfoTableExample.java
View file @
b2991ee2
...
...
@@ -396,6 +396,66 @@ public class RedLetterInfoTableExample {
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodIsNull
()
{
addCriterion
(
"period is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodIsNotNull
()
{
addCriterion
(
"period is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodEqualTo
(
Integer
value
)
{
addCriterion
(
"period ="
,
value
,
"period"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodNotEqualTo
(
Integer
value
)
{
addCriterion
(
"period <>"
,
value
,
"period"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodGreaterThan
(
Integer
value
)
{
addCriterion
(
"period >"
,
value
,
"period"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"period >="
,
value
,
"period"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodLessThan
(
Integer
value
)
{
addCriterion
(
"period <"
,
value
,
"period"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"period <="
,
value
,
"period"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"period in"
,
values
,
"period"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"period not in"
,
values
,
"period"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"period between"
,
value1
,
value2
,
"period"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"period not between"
,
value1
,
value2
,
"period"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodIsNull
()
{
addCriterion
(
"tms_period is null"
);
return
(
Criteria
)
this
;
...
...
@@ -466,52 +526,52 @@ public class RedLetterInfoTableExample {
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateEqualTo
(
Integer
value
)
{
public
Criteria
andFillInDateEqualTo
(
Date
value
)
{
addCriterion
(
"fill_in_date ="
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateNotEqualTo
(
Integer
value
)
{
public
Criteria
andFillInDateNotEqualTo
(
Date
value
)
{
addCriterion
(
"fill_in_date <>"
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateGreaterThan
(
Integer
value
)
{
public
Criteria
andFillInDateGreaterThan
(
Date
value
)
{
addCriterion
(
"fill_in_date >"
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateGreaterThanOrEqualTo
(
Integer
value
)
{
public
Criteria
andFillInDateGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"fill_in_date >="
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateLessThan
(
Integer
value
)
{
public
Criteria
andFillInDateLessThan
(
Date
value
)
{
addCriterion
(
"fill_in_date <"
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateLessThanOrEqualTo
(
Integer
value
)
{
public
Criteria
andFillInDateLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"fill_in_date <="
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateIn
(
List
<
Integer
>
values
)
{
public
Criteria
andFillInDateIn
(
List
<
Date
>
values
)
{
addCriterion
(
"fill_in_date in"
,
values
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateNotIn
(
List
<
Integer
>
values
)
{
public
Criteria
andFillInDateNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"fill_in_date not in"
,
values
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateBetween
(
Integer
value1
,
Integer
value2
)
{
public
Criteria
andFillInDateBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"fill_in_date between"
,
value1
,
value2
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateNotBetween
(
Integer
value1
,
Integer
value2
)
{
public
Criteria
andFillInDateNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"fill_in_date not between"
,
value1
,
value2
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/ProjectExtendsMapper.xml
View file @
b2991ee2
...
...
@@ -16,7 +16,7 @@
#{item}
</foreach>
and p.year = #{year}
and p.stat_period
<
#{month}
and p.sta
r
t_period
<
#{month}
and p.end_period
>
#{month}
and t.name = #{reportName}
</select>
...
...
@@ -32,7 +32,7 @@
on pp.template_id = t.id
where p.organization_id = #{orgId}
and p.year = #{year}
and p.stat_period
<
#{month}
and p.sta
r
t_period
<
#{month}
and p.end_period
>
#{month}
and t.code = #{code}
</select>
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/RedLetterInfoTableMapper.xml
View file @
b2991ee2
...
...
@@ -9,8 +9,9 @@
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"organization_id"
jdbcType=
"VARCHAR"
property=
"organizationId"
/>
<result
column=
"project_id"
jdbcType=
"VARCHAR"
property=
"projectId"
/>
<result
column=
"period"
jdbcType=
"INTEGER"
property=
"period"
/>
<result
column=
"tms_period"
jdbcType=
"INTEGER"
property=
"tmsPeriod"
/>
<result
column=
"fill_in_date"
jdbcType=
"
INTEGER
"
property=
"fillInDate"
/>
<result
column=
"fill_in_date"
jdbcType=
"
TIMESTAMP
"
property=
"fillInDate"
/>
<result
column=
"subject_num"
jdbcType=
"VARCHAR"
property=
"subjectNum"
/>
<result
column=
"subject_name"
jdbcType=
"VARCHAR"
property=
"subjectName"
/>
<result
column=
"red_letter_invoice_info_table_num"
jdbcType=
"VARCHAR"
property=
"redLetterInvoiceInfoTableNum"
/>
...
...
@@ -96,7 +97,7 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, organization_id, project_id, tms_period, fill_in_date, subject_num, subject_name,
id, organization_id, project_id,
period,
tms_period, fill_in_date, subject_num, subject_name,
red_letter_invoice_info_table_num, sales_tax_number, salesperson_name, total_amount,
total_tax_amount, application_description, applicant_manager, invoice_code, invoice_number,
create_time, update_time
...
...
@@ -153,15 +154,15 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into red_letter_info_table (id, organization_id, project_id,
tms_period, fill_in_date, subject_num
,
subject_name, red_letter_invoice_info_table_num,
period, tms_period, fill_in_date
,
subject_n
um, subject_n
ame, red_letter_invoice_info_table_num,
sales_tax_number, salesperson_name, total_amount,
total_tax_amount, application_description,
applicant_manager, invoice_code, invoice_number,
create_time, update_time)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
#{
tmsPeriod,jdbcType=INTEGER}, #{fillInDate,jdbcType=INTEGER}, #{subjectNum,jdbcType=VARCHAR
},
#{subjectName,jdbcType=VARCHAR}, #{redLetterInvoiceInfoTableNum,jdbcType=VARCHAR},
#{
period,jdbcType=INTEGER}, #{tmsPeriod,jdbcType=INTEGER}, #{fillInDate,jdbcType=TIMESTAMP
},
#{subjectN
um,jdbcType=VARCHAR}, #{subjectN
ame,jdbcType=VARCHAR}, #{redLetterInvoiceInfoTableNum,jdbcType=VARCHAR},
#{salesTaxNumber,jdbcType=VARCHAR}, #{salespersonName,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL},
#{totalTaxAmount,jdbcType=DECIMAL}, #{applicationDescription,jdbcType=VARCHAR},
#{applicantManager,jdbcType=VARCHAR}, #{invoiceCode,jdbcType=VARCHAR}, #{invoiceNumber,jdbcType=VARCHAR},
...
...
@@ -183,6 +184,9 @@
<if
test=
"projectId != null"
>
project_id,
</if>
<if
test=
"period != null"
>
period,
</if>
<if
test=
"tmsPeriod != null"
>
tms_period,
</if>
...
...
@@ -239,11 +243,14 @@
<if
test=
"projectId != null"
>
#{projectId,jdbcType=VARCHAR},
</if>
<if
test=
"period != null"
>
#{period,jdbcType=INTEGER},
</if>
<if
test=
"tmsPeriod != null"
>
#{tmsPeriod,jdbcType=INTEGER},
</if>
<if
test=
"fillInDate != null"
>
#{fillInDate,jdbcType=
INTEGER
},
#{fillInDate,jdbcType=
TIMESTAMP
},
</if>
<if
test=
"subjectNum != null"
>
#{subjectNum,jdbcType=VARCHAR},
...
...
@@ -312,11 +319,14 @@
<if
test=
"record.projectId != null"
>
project_id = #{record.projectId,jdbcType=VARCHAR},
</if>
<if
test=
"record.period != null"
>
period = #{record.period,jdbcType=INTEGER},
</if>
<if
test=
"record.tmsPeriod != null"
>
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
</if>
<if
test=
"record.fillInDate != null"
>
fill_in_date = #{record.fillInDate,jdbcType=
INTEGER
},
fill_in_date = #{record.fillInDate,jdbcType=
TIMESTAMP
},
</if>
<if
test=
"record.subjectNum != null"
>
subject_num = #{record.subjectNum,jdbcType=VARCHAR},
...
...
@@ -371,8 +381,9 @@
set id = #{record.id,jdbcType=BIGINT},
organization_id = #{record.organizationId,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=VARCHAR},
period = #{record.period,jdbcType=INTEGER},
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
fill_in_date = #{record.fillInDate,jdbcType=
INTEGER
},
fill_in_date = #{record.fillInDate,jdbcType=
TIMESTAMP
},
subject_num = #{record.subjectNum,jdbcType=VARCHAR},
subject_name = #{record.subjectName,jdbcType=VARCHAR},
red_letter_invoice_info_table_num = #{record.redLetterInvoiceInfoTableNum,jdbcType=VARCHAR},
...
...
@@ -403,11 +414,14 @@
<if
test=
"projectId != null"
>
project_id = #{projectId,jdbcType=VARCHAR},
</if>
<if
test=
"period != null"
>
period = #{period,jdbcType=INTEGER},
</if>
<if
test=
"tmsPeriod != null"
>
tms_period = #{tmsPeriod,jdbcType=INTEGER},
</if>
<if
test=
"fillInDate != null"
>
fill_in_date = #{fillInDate,jdbcType=
INTEGER
},
fill_in_date = #{fillInDate,jdbcType=
TIMESTAMP
},
</if>
<if
test=
"subjectNum != null"
>
subject_num = #{subjectNum,jdbcType=VARCHAR},
...
...
@@ -459,8 +473,9 @@
update red_letter_info_table
set organization_id = #{organizationId,jdbcType=VARCHAR},
project_id = #{projectId,jdbcType=VARCHAR},
period = #{period,jdbcType=INTEGER},
tms_period = #{tmsPeriod,jdbcType=INTEGER},
fill_in_date = #{fillInDate,jdbcType=
INTEGER
},
fill_in_date = #{fillInDate,jdbcType=
TIMESTAMP
},
subject_num = #{subjectNum,jdbcType=VARCHAR},
subject_name = #{subjectName,jdbcType=VARCHAR},
red_letter_invoice_info_table_num = #{redLetterInvoiceInfoTableNum,jdbcType=VARCHAR},
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/PeriodCellDataExtendsMapper.xml
View file @
b2991ee2
...
...
@@ -101,7 +101,7 @@
</select>
<select
id =
"selectAnalysisSalesValueDto"
resultType=
"pwc.taxtech.atms.dpo.AnalysisSalesValueDto"
>
select pcd.data as data,pct.column_index as columnIndex,pct.row_index as rowIndex
,
select pcd.data as data,pct.column_index as columnIndex,pct.row_index as rowIndex
from
period_cell_data pcd
left join period_cell_template pct
...
...
atms-web/src/main/webapp/app-resources/i18n/en-us/vat.json
View file @
b2991ee2
...
...
@@ -1157,6 +1157,8 @@
"StartRowNumberCheckMsg"
:
"Starting Rows Should Not be Greater Than the Total Number of Currently Imported Data!"
,
"StartingDate"
:
"Start Date"
,
"EndDate"
:
"End Date"
,
"StartingPeriod"
:
"Start Period"
,
"EndPeriod"
:
"End Period"
,
"StatesColon"
:
"States:"
,
"Status"
:
"Status"
,
"StdAccountMappingResult"
:
"Standard Account Mapping Result..."
,
...
...
atms-web/src/main/webapp/app-resources/i18n/zh-CN/vat.json
View file @
b2991ee2
...
...
@@ -1513,6 +1513,8 @@
"StartRowNumberCheckMsg"
:
"起始行不能大于当前导入数据总数!"
,
"StartingDate"
:
"开始日期"
,
"EndDate"
:
"结束日期"
,
"StartingPeriod"
:
"期间从"
,
"EndPeriod"
:
"期间至"
,
"StatusColon"
:
"状态:"
,
"StdAccountMappingResult"
:
"标准科目对应结果"
,
"StdAccountNotLeaf"
:
"请选择叶子节点"
,
...
...
atms-web/src/main/webapp/app/admin/infrastructure/organizationManage/organization-manage.ctrl.js
View file @
b2991ee2
...
...
@@ -1190,13 +1190,13 @@
allowHeaderFiltering
:
false
,
width
:
'20%'
,
dataType
:
"date"
,
caption
:
$translate
.
instant
(
'Starting
Date
'
)
caption
:
$translate
.
instant
(
'Starting
Period
'
)
},
{
dataField
:
"endDate"
,
allowHeaderFiltering
:
false
,
width
:
'20%'
,
dataType
:
"date"
,
caption
:
$translate
.
instant
(
'End
Date
'
)
caption
:
$translate
.
instant
(
'End
Period
'
)
},
{
dataField
:
"rate"
,
allowHeaderFiltering
:
false
,
...
...
@@ -1344,6 +1344,11 @@
dataField
:
"approvedLevyProject"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'ApprovedLevyProject'
),
lookup
:
{
dataSource
:
constant
.
GroupTypeList
,
displayExpr
:
"type"
,
valueExpr
:
"type"
},
width
:
'15%'
},
{
dataField
:
"approvedValidityPeriodStartTime"
,
...
...
atms-web/src/main/webapp/app/admin/infrastructure/organizationManage/organization-manage.less
View file @
b2991ee2
...
...
@@ -549,6 +549,7 @@
.leftUp {
width: 50%;
margin-bottom: -40px;
}
.rightUp {
...
...
atms-web/src/main/webapp/app/admin/infrastructure/userManageList/user-manage-list.ctrl.js
View file @
b2991ee2
...
...
@@ -969,7 +969,7 @@
var
doExport
=
function
()
{
var
localDate
=
$filter
(
'date'
)(
new
Date
(),
'yyyyMMddHHmmss'
);
var
fileName
=
'用户信息列表'
+
localDate
;
userService
.
downloadFile
(
$scope
.
originalU
serRoleList
,
fileName
).
then
(
function
(
data
)
{
userService
.
downloadFile
(
$scope
.
u
serRoleList
,
fileName
).
then
(
function
(
data
)
{
if
(
data
)
{
ackMessageBox
.
success
(
translate
(
'FileExportSuccess'
));
}
...
...
atms-web/src/main/webapp/app/common/utils/constant.js
View file @
b2991ee2
...
...
@@ -1444,10 +1444,11 @@ constant.TaxDecCycleList = [
];
constant
.
ApprovedLevyTermList
=
[
{
code
:
0
,
type
:
"月"
},
{
code
:
1
,
type
:
"季"
},
{
code
:
2
,
type
:
"半年"
},
{
code
:
3
,
type
:
"年"
}
{
code
:
0
,
type
:
"次"
},
{
code
:
1
,
type
:
"月"
},
{
code
:
2
,
type
:
"季"
},
{
code
:
3
,
type
:
"半年"
},
{
code
:
4
,
type
:
"年"
}
];
constant
.
TaxpayerQualificationTypeList
=
[
...
...
atms-web/src/main/webapp/app/dataImport/vat-revenue-conf-mapping/vat-revenue-conf-mapping.ctrl.js
View file @
b2991ee2
...
...
@@ -127,6 +127,7 @@
.
success
(
function
(
res
)
{
if
(
res
&&
0
===
res
.
code
)
{
$scope
.
selectOrgList
=
res
.
data
;
$scope
.
refreshConfigGrid
();
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'RevenueGetOrgError'
));
}
...
...
@@ -275,7 +276,7 @@
function
init
()
{
getMyOrgList
();
$scope
.
refreshConfigGrid
();
}
init
()
...
...
atms-web/src/main/webapp/app/dataImport/vat-revenue-config/vat-revenue-config.ctrl.js
View file @
b2991ee2
...
...
@@ -155,6 +155,7 @@
.
success
(
function
(
res
)
{
if
(
res
&&
0
===
res
.
code
)
{
$scope
.
selectOrgList
=
res
.
data
;
$scope
.
refreshConfigGrid
();
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'RevenueGetOrgError'
));
}
...
...
@@ -344,7 +345,7 @@
function
init
()
{
getMyOrgList
();
$scope
.
refreshConfigGrid
();
}
init
()
...
...
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