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
2e20b5dc
Commit
2e20b5dc
authored
Mar 01, 2019
by
gary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、fixbug
parent
272ee822
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
12 deletions
+26
-12
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+4
-3
AdjustmentTableMapper.java
.../java/pwc/taxtech/atms/vat/dao/AdjustmentTableMapper.java
+2
-0
CashFlowMapper.java
...rc/main/java/pwc/taxtech/atms/vat/dao/CashFlowMapper.java
+2
-0
AdjustmentTableExtendsMapper.xml
...ech/atms/vat/dao/extends/AdjustmentTableExtendsMapper.xml
+4
-0
CashFlowExtendsMapper.xml
...wc/taxtech/atms/vat/dao/extends/CashFlowExtendsMapper.xml
+4
-0
RedLetterInfoTableExtendsMapper.xml
.../atms/vat/dao/extends/RedLetterInfoTableExtendsMapper.xml
+8
-4
import-adjust-table.html
...trols/import/import-adjust-table/import-adjust-table.html
+2
-5
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
2e20b5dc
...
...
@@ -226,7 +226,7 @@ public class DataImportService extends BaseService {
Sheet
sheet
=
workbook
.
getSheetAt
(
i
);
if
(
isSheetEmpty
(
sheet
))
continue
;
List
<
ProfitLossStatement
>
pls
=
Lists
.
newArrayList
();
String
companyCode
=
sheet
.
getRow
(
5
).
getCell
(
1
).
getStringCellValue
(
);
String
companyCode
=
getCellStringValue
(
sheet
.
getRow
(
5
).
getCell
(
1
)
);
OrganizationExample
example
=
new
OrganizationExample
();
example
.
createCriteria
().
andCodeEqualTo
(
companyCode
);
List
<
Organization
>
organizations
=
organizationMapper
.
selectByExample
(
example
);
...
...
@@ -325,7 +325,7 @@ public class DataImportService extends BaseService {
if
(
EnumTbImportType
.
CoverImport
.
getCode
().
equals
(
importType
))
{
ProfitLossStatementExample
profitLossStatementExample
=
new
ProfitLossStatementExample
();
profitLossStatementExample
.
createCriteria
().
andOrganizationIdEqualTo
(
orgId
).
andPeriodEqualTo
(
period
);
profitLossStatementMapper
.
deleteByExample
(
profitLossStatementExample
);
profitLossStatementMa
nualMa
pper
.
deleteByExample
(
profitLossStatementExample
);
if
(
profitLossStatementFinalMapper
.
countByExample
(
profitLossStatementExample
)
>
0
)
{
profitLossStatementFinalMapper
.
deleteByExample
(
profitLossStatementExample
);
}
...
...
@@ -1560,7 +1560,8 @@ public class DataImportService extends BaseService {
if
(
cell
.
getCellTypeEnum
().
equals
(
CellType
.
STRING
))
{
return
cell
.
getStringCellValue
();
}
else
if
(
cell
.
getCellTypeEnum
().
equals
(
CellType
.
NUMERIC
))
{
return
String
.
valueOf
(
cell
.
getNumericCellValue
());
// 取整
return
String
.
valueOf
((
int
)
cell
.
getNumericCellValue
());
}
logger
.
warn
(
"获取单元格数据类型未匹配"
);
return
null
;
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/dao/AdjustmentTableMapper.java
View file @
2e20b5dc
...
...
@@ -111,4 +111,5 @@ public interface AdjustmentTableMapper extends MyVatMapper {
int
insertBatch
(
List
<
AdjustmentTable
>
rlits
);
List
<
AdjustmentTable
>
selectBeforeAdjustData
(
Map
<
String
,
Object
>
map1
);
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/vat/dao/CashFlowMapper.java
View file @
2e20b5dc
...
...
@@ -113,4 +113,5 @@ public interface CashFlowMapper extends MyVatMapper {
Integer
selectCountByCondition
(
@Param
(
"cfCondition"
)
CashFlowCondition
condition
);
int
insertBatch
(
List
<
CashFlow
>
cfs
);
}
\ No newline at end of file
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/AdjustmentTableExtendsMapper.xml
View file @
2e20b5dc
...
...
@@ -124,6 +124,10 @@
<when
test=
"item.updateTime != null"
>
#{item.updateTime,jdbcType=TIMESTAMP},
</when>
<otherwise>
CURRENT_TIMESTAMP,
</otherwise>
</choose>
<choose>
<when
test=
"item.tmsPeriod != null"
>
#{item.tmsPeriod,jdbcType=INTEGER},
</when>
<otherwise>
0,
</otherwise>
</choose>
</trim>
</foreach>
;
SELECT 1 FROM DUAL;
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/CashFlowExtendsMapper.xml
View file @
2e20b5dc
...
...
@@ -57,6 +57,10 @@
<when
test=
"item.organizationId != null"
>
#{item.organizationId,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
</choose>
<choose>
<when
test=
"item.projectId != null"
>
#{item.projectId,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
</choose>
<choose>
<when
test=
"item.date != null"
>
#{item.date,jdbcType=TIMESTAMP},
</when>
<otherwise>
CURRENT_TIMESTAMP,
</otherwise>
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/RedLetterInfoTableExtendsMapper.xml
View file @
2e20b5dc
...
...
@@ -50,6 +50,14 @@
<when
test=
"item.projectId != null"
>
#{item.projectId,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
</choose>
<choose>
<when
test=
"item.tmsPeriod != null"
>
#{item.tmsPeriod,jdbcType=INTEGER},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.fillInDate != null"
>
#{item.fillInDate,jdbcType=INTEGER},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.subjectNum != null"
>
#{item.subjectNum,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
...
...
@@ -62,10 +70,6 @@
<when
test=
"item.redLetterInvoiceInfoTableNum != null"
>
#{item.redLetterInvoiceInfoTableNum,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
</choose>
<choose>
<when
test=
"item.fillInDate != null"
>
#{item.fillInDate,jdbcType=TIMESTAMP},
</when>
<otherwise>
CURRENT_TIMESTAMP,
</otherwise>
</choose>
<choose>
<when
test=
"item.salesTaxNumber != null"
>
#{item.salesTaxNumber,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
...
...
atms-web/src/main/webapp/app/common/controls/import/import-adjust-table/import-adjust-table.html
View file @
2e20b5dc
...
...
@@ -56,15 +56,12 @@
<button
type=
"button"
atms-permission
permission-control-type=
"ngIf"
class=
"btn btn-vat-primary"
style=
"float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate=
"AddImportBtn"
ng-click=
"doUpload
PL
(importEnum.AddImport)"
></button>
ng-click=
"doUpload
AT
(importEnum.AddImport)"
></button>
<button
type=
"button"
atms-permission
permission-control-type=
"ngIf"
permission-code=
"{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
class=
"btn btn-vat-primary"
style=
"float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate=
"CoverImportBtn"
ng-click=
"doUploadPL(importEnum.CoverImport)"
></button>
ng-click=
"doUploadAT(importEnum.CoverImport)"
></button>
<div
class=
"btn-wrapper"
ng-if=
"!isShowImportTotalBtn"
>
<button
class=
"btn btn-vat-primary"
atms-permission
permission-control-type=
"ngIf"
permission-code=
"{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
...
...
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