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
d16cb20f
Commit
d16cb20f
authored
Sep 14, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bugfix] fixed some bugs
parent
60fc2bda
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
57 additions
and
55 deletions
+57
-55
InputVatInvoiceDao.java
...ain/java/pwc/taxtech/atms/vat/dao/InputVatInvoiceDao.java
+6
-7
InputInvoiceDataImportServiceImpl.java
...s/vat/service/impl/InputInvoiceDataImportServiceImpl.java
+3
-3
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+2
-0
VatAbstractService.java
...pwc/taxtech/atms/vat/service/impl/VatAbstractService.java
+1
-0
AnalyticsModelDetail.java
.../main/java/pwc/taxtech/atms/dpo/AnalyticsModelDetail.java
+11
-11
CellTemplatePerGroupDto.java
...in/java/pwc/taxtech/atms/dpo/CellTemplatePerGroupDto.java
+15
-15
PeriodTemplateMapper.java
...n/java/pwc/taxtech/atms/vat/dao/PeriodTemplateMapper.java
+1
-1
DataSourceExtendDto.java
...in/java/pwc/taxtech/atms/vat/dpo/DataSourceExtendDto.java
+15
-15
InputVatTInvoiceExample.java
.../pwc/taxtech/atms/vat/entity/InputVatTInvoiceExample.java
+0
-0
TemplateGroup.java
.../src/main/java/pwc/taxtech/atms/entity/TemplateGroup.java
+3
-3
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/dao/InputVatInvoiceDao.java
View file @
d16cb20f
...
@@ -4,7 +4,7 @@ import org.apache.commons.lang3.StringUtils;
...
@@ -4,7 +4,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
pwc.taxtech.atms.vat.entity.InputVatInvoice
;
import
pwc.taxtech.atms.vat.entity.InputVatInvoice
;
import
pwc.taxtech.atms.vat.entity.InputVat
T
InvoiceExample
;
import
pwc.taxtech.atms.vat.entity.InputVatInvoiceExample
;
import
java.util.List
;
import
java.util.List
;
...
@@ -14,9 +14,9 @@ public class InputVatInvoiceDao {
...
@@ -14,9 +14,9 @@ public class InputVatInvoiceDao {
InputVatInvoiceMapper
inputVATInvoiceMapper
;
InputVatInvoiceMapper
inputVATInvoiceMapper
;
public
List
<
InputVatInvoice
>
getInputVATInvoice
(
Integer
period
,
Integer
invoiceType
,
String
checkPass
,
String
scanPass
,
String
notPass
)
{
public
List
<
InputVatInvoice
>
getInputVATInvoice
(
Integer
period
,
Integer
invoiceType
,
String
checkPass
,
String
scanPass
,
String
notPass
)
{
InputVat
TInvoiceExample
example
=
new
InputVatT
InvoiceExample
();
InputVat
InvoiceExample
example
=
new
InputVat
InvoiceExample
();
InputVat
T
InvoiceExample
.
Criteria
criteria
=
example
.
createCriteria
();
InputVatInvoiceExample
.
Criteria
criteria
=
example
.
createCriteria
();
InputVat
T
InvoiceExample
.
Criteria
criteria1
=
example
.
createCriteria
();
InputVatInvoiceExample
.
Criteria
criteria1
=
example
.
createCriteria
();
if
(
period
!=
null
)
{
if
(
period
!=
null
)
{
...
@@ -28,11 +28,10 @@ public class InputVatInvoiceDao {
...
@@ -28,11 +28,10 @@ public class InputVatInvoiceDao {
criteria1
.
andInvoiceTypeEqualTo
(
invoiceType
);
criteria1
.
andInvoiceTypeEqualTo
(
invoiceType
);
}
}
if
(
StringUtils
.
isNotBlank
(
notPass
))
{
if
(
StringUtils
.
isNotBlank
(
notPass
))
{
criteria
.
andCertificationResultEqualTo
(
notPass
);
criteria
.
andCertificationResultEqualTo
(
notPass
);
criteria1
.
andCertificationResultEqualTo
(
notPass
);
criteria1
.
andCertificationResultEqualTo
(
notPass
);
}
}
else
if
(
StringUtils
.
isNotBlank
(
checkPass
)
&&
StringUtils
.
isNotBlank
(
scanPass
))
{
else
if
(
StringUtils
.
isNotBlank
(
checkPass
)&&
StringUtils
.
isNotBlank
(
scanPass
)){
criteria
.
andCertificationResultEqualTo
(
checkPass
);
criteria
.
andCertificationResultEqualTo
(
checkPass
);
criteria
.
andCertificationResultEqualTo
(
scanPass
);
criteria
.
andCertificationResultEqualTo
(
scanPass
);
example
.
or
(
criteria1
);
example
.
or
(
criteria1
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/InputInvoiceDataImportServiceImpl.java
View file @
d16cb20f
...
@@ -14,7 +14,7 @@ import pwc.taxtech.atms.dto.OperationResultDto;
...
@@ -14,7 +14,7 @@ import pwc.taxtech.atms.dto.OperationResultDto;
import
pwc.taxtech.atms.dto.vatdto.InputVATInvoiceDto
;
import
pwc.taxtech.atms.dto.vatdto.InputVATInvoiceDto
;
import
pwc.taxtech.atms.vat.dpo.InputInvoicePreviewQueryParam
;
import
pwc.taxtech.atms.vat.dpo.InputInvoicePreviewQueryParam
;
import
pwc.taxtech.atms.vat.entity.InputVatInvoice
;
import
pwc.taxtech.atms.vat.entity.InputVatInvoice
;
import
pwc.taxtech.atms.vat.entity.InputVat
T
InvoiceExample
;
import
pwc.taxtech.atms.vat.entity.InputVatInvoiceExample
;
import
pwc.taxtech.atms.vat.entity.InputVatInvoiceItem
;
import
pwc.taxtech.atms.vat.entity.InputVatInvoiceItem
;
import
pwc.taxtech.atms.vat.entity.InputVatInvoiceItemExample
;
import
pwc.taxtech.atms.vat.entity.InputVatInvoiceItemExample
;
...
@@ -60,7 +60,7 @@ public class InputInvoiceDataImportServiceImpl extends VatAbstractService {
...
@@ -60,7 +60,7 @@ public class InputInvoiceDataImportServiceImpl extends VatAbstractService {
public
List
<
InputVATInvoiceDto
>
getInputInvoiceList
(
Integer
period
)
{
public
List
<
InputVATInvoiceDto
>
getInputInvoiceList
(
Integer
period
)
{
InputVat
TInvoiceExample
inputVATInvoiceExample
=
new
InputVatT
InvoiceExample
();
InputVat
InvoiceExample
inputVATInvoiceExample
=
new
InputVat
InvoiceExample
();
inputVATInvoiceExample
.
createCriteria
().
andPeriodIdEqualTo
(
period
.
intValue
());
inputVATInvoiceExample
.
createCriteria
().
andPeriodIdEqualTo
(
period
.
intValue
());
List
<
InputVatInvoice
>
inputVatEntity
=
inputVATInvoiceMapper
.
selectByExample
(
inputVATInvoiceExample
);
List
<
InputVatInvoice
>
inputVatEntity
=
inputVATInvoiceMapper
.
selectByExample
(
inputVATInvoiceExample
);
inputVatEntity
.
sort
(
Comparator
.
comparing
(
InputVatInvoice:
:
getInvoiceNumber
));
inputVatEntity
.
sort
(
Comparator
.
comparing
(
InputVatInvoice:
:
getInvoiceNumber
));
...
@@ -93,7 +93,7 @@ public class InputInvoiceDataImportServiceImpl extends VatAbstractService {
...
@@ -93,7 +93,7 @@ public class InputInvoiceDataImportServiceImpl extends VatAbstractService {
int
period
=
inputInvoiceItemDtoList
.
get
(
0
).
getPeriodId
();
int
period
=
inputInvoiceItemDtoList
.
get
(
0
).
getPeriodId
();
inputInvoiceItemDtoList
.
forEach
(
item
->
{
inputInvoiceItemDtoList
.
forEach
(
item
->
{
//导入之前需要将汇总表的主键更新到明细表中,如果找不到汇总信息,则设置为空
//导入之前需要将汇总表的主键更新到明细表中,如果找不到汇总信息,则设置为空
InputVat
TInvoiceExample
example
=
new
InputVatT
InvoiceExample
();
InputVat
InvoiceExample
example
=
new
InputVat
InvoiceExample
();
example
.
createCriteria
().
andInvoiceCodeEqualTo
(
item
.
getInvoiceCode
()).
andInvoiceNumberEqualTo
(
item
.
getInvoiceNumber
());
example
.
createCriteria
().
andInvoiceCodeEqualTo
(
item
.
getInvoiceCode
()).
andInvoiceNumberEqualTo
(
item
.
getInvoiceNumber
());
InputVatInvoice
invoiceTotal
=
inputVATInvoiceMapper
.
selectByExample
(
example
).
stream
().
findFirst
().
get
();
InputVatInvoice
invoiceTotal
=
inputVATInvoiceMapper
.
selectByExample
(
example
).
stream
().
findFirst
().
get
();
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
d16cb20f
...
@@ -24,6 +24,8 @@ import pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto;
...
@@ -24,6 +24,8 @@ import pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto;
import
pwc.taxtech.atms.dto.vatdto.ReportDataDto
;
import
pwc.taxtech.atms.dto.vatdto.ReportDataDto
;
import
pwc.taxtech.atms.dto.vatdto.VatEnterpriseAccountResultDto
;
import
pwc.taxtech.atms.dto.vatdto.VatEnterpriseAccountResultDto
;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.entity.EnterpriseAccount
;
import
pwc.taxtech.atms.entity.EnterpriseAccountExample
;
import
pwc.taxtech.atms.exception.NotSupportedException
;
import
pwc.taxtech.atms.exception.NotSupportedException
;
import
pwc.taxtech.atms.service.impl.CellConfigTranslater
;
import
pwc.taxtech.atms.service.impl.CellConfigTranslater
;
import
pwc.taxtech.atms.vat.dpo.DataSourceCellDataDto
;
import
pwc.taxtech.atms.vat.dpo.DataSourceCellDataDto
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/VatAbstractService.java
View file @
d16cb20f
...
@@ -5,6 +5,7 @@ import org.slf4j.LoggerFactory;
...
@@ -5,6 +5,7 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
pwc.taxtech.atms.common.ftp.FtpService
;
import
pwc.taxtech.atms.common.ftp.FtpService
;
import
pwc.taxtech.atms.dao.*
;
import
pwc.taxtech.atms.dao.*
;
import
pwc.taxtech.atms.dao.EnterpriseAccountMapper
;
import
pwc.taxtech.atms.dao.ProjectDao
;
import
pwc.taxtech.atms.dao.ProjectDao
;
import
pwc.taxtech.atms.service.impl.DistributedIdService
;
import
pwc.taxtech.atms.service.impl.DistributedIdService
;
import
pwc.taxtech.atms.vat.dao.*
;
import
pwc.taxtech.atms.vat.dao.*
;
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dpo/AnalyticsModelDetail.java
View file @
d16cb20f
package
pwc
.
taxtech
.
atms
.
dpo
;
package
pwc
.
taxtech
.
atms
.
dpo
;
public
class
AnalyticsModelDetail
{
public
class
AnalyticsModelDetail
{
private
String
modelI
D
;
private
String
modelI
d
;
private
String
code
;
private
String
code
;
private
String
name
;
private
String
name
;
private
int
type
;
private
int
type
;
private
String
industry
;
private
String
industry
;
private
String
entityName
;
private
String
entityName
;
/**
/**
* 机构I
D
* 机构I
d
*/
*/
private
String
entityI
D
;
private
String
entityI
d
;
public
String
getModelI
D
()
{
public
String
getModelI
d
()
{
return
modelI
D
;
return
modelI
d
;
}
}
public
void
setModelI
D
(
String
modelID
)
{
public
void
setModelI
d
(
String
modelId
)
{
this
.
modelI
D
=
modelID
;
this
.
modelI
d
=
modelId
;
}
}
public
String
getCode
()
{
public
String
getCode
()
{
...
@@ -60,11 +60,11 @@ public class AnalyticsModelDetail {
...
@@ -60,11 +60,11 @@ public class AnalyticsModelDetail {
this
.
industry
=
industry
;
this
.
industry
=
industry
;
}
}
public
String
getEntityI
D
()
{
public
String
getEntityI
d
()
{
return
entityI
D
;
return
entityI
d
;
}
}
public
void
setEntityI
D
(
String
entityID
)
{
public
void
setEntityI
d
(
String
entityId
)
{
this
.
entityI
D
=
entityID
;
this
.
entityI
d
=
entityId
;
}
}
}
}
atms-dao/src/main/java/pwc/taxtech/atms/dpo/CellTemplatePerGroupDto.java
View file @
d16cb20f
package
pwc
.
taxtech
.
atms
.
dpo
;
package
pwc
.
taxtech
.
atms
.
dpo
;
public
class
CellTemplatePerGroupDto
{
public
class
CellTemplatePerGroupDto
{
private
String
cellTemplateI
D
;
private
String
cellTemplateI
d
;
private
String
reportTemplateI
D
;
private
String
reportTemplateI
d
;
private
String
reportTemplateGroupI
D
;
private
String
reportTemplateGroupI
d
;
private
int
rowIndex
;
private
int
rowIndex
;
private
int
columnIndex
;
private
int
columnIndex
;
private
String
reportCode
;
private
String
reportCode
;
...
@@ -11,28 +11,28 @@ public class CellTemplatePerGroupDto {
...
@@ -11,28 +11,28 @@ public class CellTemplatePerGroupDto {
private
String
columnName
;
private
String
columnName
;
private
Integer
resultType
;
private
Integer
resultType
;
public
String
getCellTemplateI
D
()
{
public
String
getCellTemplateI
d
()
{
return
cellTemplateI
D
;
return
cellTemplateI
d
;
}
}
public
void
setCellTemplateI
D
(
String
cellTemplateID
)
{
public
void
setCellTemplateI
d
(
String
cellTemplateId
)
{
this
.
cellTemplateI
D
=
cellTemplateID
;
this
.
cellTemplateI
d
=
cellTemplateId
;
}
}
public
String
getReportTemplateI
D
()
{
public
String
getReportTemplateI
d
()
{
return
reportTemplateI
D
;
return
reportTemplateI
d
;
}
}
public
void
setReportTemplateI
D
(
String
reportTemplateID
)
{
public
void
setReportTemplateI
d
(
String
reportTemplateId
)
{
this
.
reportTemplateI
D
=
reportTemplateID
;
this
.
reportTemplateI
d
=
reportTemplateId
;
}
}
public
String
getReportTemplateGroupI
D
()
{
public
String
getReportTemplateGroupI
d
()
{
return
reportTemplateGroupI
D
;
return
reportTemplateGroupI
d
;
}
}
public
void
setReportTemplateGroupI
D
(
String
reportTemplateGroupID
)
{
public
void
setReportTemplateGroupI
d
(
String
reportTemplateGroupId
)
{
this
.
reportTemplateGroupI
D
=
reportTemplateGroupID
;
this
.
reportTemplateGroupI
d
=
reportTemplateGroupId
;
}
}
public
int
getRowIndex
()
{
public
int
getRowIndex
()
{
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/dao/PeriodTemplateMapper.java
View file @
d16cb20f
...
@@ -5,7 +5,7 @@ import org.apache.ibatis.annotations.Mapper;
...
@@ -5,7 +5,7 @@ import org.apache.ibatis.annotations.Mapper;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.session.RowBounds
;
import
org.apache.ibatis.session.RowBounds
;
import
pwc.taxtech.atms.MyVatMapper
;
import
pwc.taxtech.atms.MyVatMapper
;
import
pwc.taxtech.atms.
vat.
dpo.CellTemplatePerGroupDto
;
import
pwc.taxtech.atms.dpo.CellTemplatePerGroupDto
;
import
pwc.taxtech.atms.vat.entity.PeriodTemplate
;
import
pwc.taxtech.atms.vat.entity.PeriodTemplate
;
import
pwc.taxtech.atms.vat.entity.PeriodTemplateExample
;
import
pwc.taxtech.atms.vat.entity.PeriodTemplateExample
;
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/dpo/DataSourceExtendDto.java
View file @
d16cb20f
...
@@ -7,11 +7,11 @@ import java.util.List;
...
@@ -7,11 +7,11 @@ import java.util.List;
public
class
DataSourceExtendDto
extends
DataSource
{
public
class
DataSourceExtendDto
extends
DataSource
{
private
Integer
operationType
;
private
Integer
operationType
;
private
Long
cellTemplateI
D
;
private
Long
cellTemplateI
d
;
private
Long
cellDataI
D
;
private
Long
cellDataI
d
;
private
List
<
String
>
items
;
private
List
<
String
>
items
;
private
DataSource
dataSource
;
private
DataSource
dataSource
;
private
Long
reportTemplateI
D
;
private
Long
reportTemplateI
d
;
private
Integer
dataSourceType
;
private
Integer
dataSourceType
;
public
DataSource
getDataSource
()
{
public
DataSource
getDataSource
()
{
...
@@ -28,20 +28,20 @@ public class DataSourceExtendDto extends DataSource {
...
@@ -28,20 +28,20 @@ public class DataSourceExtendDto extends DataSource {
this
.
operationType
=
operationType
;
this
.
operationType
=
operationType
;
}
}
public
Long
getCellTemplateI
D
()
{
public
Long
getCellTemplateI
d
()
{
return
cellTemplateI
D
;
return
cellTemplateI
d
;
}
}
public
void
setCellTemplateI
D
(
Long
cellTemplateID
)
{
public
void
setCellTemplateI
d
(
Long
cellTemplateId
)
{
this
.
cellTemplateI
D
=
cellTemplateID
;
this
.
cellTemplateI
d
=
cellTemplateId
;
}
}
public
Long
getCellDataI
D
()
{
public
Long
getCellDataI
d
()
{
return
cellDataI
D
;
return
cellDataI
d
;
}
}
public
void
setCellDataI
D
(
Long
cellDataID
)
{
public
void
setCellDataI
d
(
Long
cellDataId
)
{
this
.
cellDataI
D
=
cellDataID
;
this
.
cellDataI
d
=
cellDataId
;
}
}
public
List
<
String
>
getItems
()
{
public
List
<
String
>
getItems
()
{
...
@@ -56,12 +56,12 @@ public class DataSourceExtendDto extends DataSource {
...
@@ -56,12 +56,12 @@ public class DataSourceExtendDto extends DataSource {
this
.
dataSource
=
dataSource
;
this
.
dataSource
=
dataSource
;
}
}
public
Long
getReportTemplateI
D
()
{
public
Long
getReportTemplateI
d
()
{
return
reportTemplateI
D
;
return
reportTemplateI
d
;
}
}
public
void
setReportTemplateI
D
(
Long
reportTemplateID
)
{
public
void
setReportTemplateI
d
(
Long
reportTemplateId
)
{
this
.
reportTemplateI
D
=
reportTemplateID
;
this
.
reportTemplateI
d
=
reportTemplateId
;
}
}
public
Integer
getDataSourceType
()
{
public
Integer
getDataSourceType
()
{
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/InputVatTInvoiceExample.java
deleted
100644 → 0
View file @
60fc2bda
This diff is collapsed.
Click to expand it.
atms-gen/src/main/java/pwc/taxtech/atms/entity/TemplateGroup.java
View file @
d16cb20f
...
@@ -24,7 +24,7 @@ public class TemplateGroup {
...
@@ -24,7 +24,7 @@ public class TemplateGroup {
private
Long
copyFrom
;
private
Long
copyFrom
;
private
Date
updateTime
;
private
Date
updateTime
;
private
Date
createTime
;
private
Date
createTime
;
private
Integer
isSystemType
;
private
Boolean
isSystemType
;
private
String
createBy
;
private
String
createBy
;
private
String
updateBy
;
private
String
updateBy
;
...
@@ -127,11 +127,11 @@ public class TemplateGroup {
...
@@ -127,11 +127,11 @@ public class TemplateGroup {
@Basic
@Basic
@Column
(
name
=
"IS_SYSTEM_TYPE"
,
nullable
=
false
)
@Column
(
name
=
"IS_SYSTEM_TYPE"
,
nullable
=
false
)
@ColumnDefault
(
DEF_DEFAULT_NUMBER
)
@ColumnDefault
(
DEF_DEFAULT_NUMBER
)
public
Integer
getIsSystemType
()
{
public
Boolean
getIsSystemType
()
{
return
isSystemType
;
return
isSystemType
;
}
}
public
void
setIsSystemType
(
Integer
isSystemType
)
{
public
void
setIsSystemType
(
Boolean
isSystemType
)
{
this
.
isSystemType
=
isSystemType
;
this
.
isSystemType
=
isSystemType
;
}
}
...
...
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