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
45e9dc37
Commit
45e9dc37
authored
Dec 10, 2018
by
eddie.woo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_oracle' of
http://code.tech.tax.asia.pwcinternal.com/root/atms
into dev_oracle
parents
f1eeb082
63488479
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
138 additions
and
44 deletions
+138
-44
CellDataDto.java
...rc/main/java/pwc/taxtech/atms/dto/vatdto/CellDataDto.java
+3
-0
DataSourceDto.java
.../main/java/pwc/taxtech/atms/dto/vatdto/DataSourceDto.java
+1
-0
ManualDataSourceDto.java
...java/pwc/taxtech/atms/dto/vatdto/ManualDataSourceDto.java
+1
-0
ReportGeneratorImpl.java
...wc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
+1
-1
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+25
-11
CommonIT.java
atms-api/src/test/java/pwc/taxtech/atms/CommonIT.java
+3
-0
PeriodCellData.java
...main/java/pwc/taxtech/atms/vat/entity/PeriodCellData.java
+10
-0
PeriodDataSource.java
...in/java/pwc/taxtech/atms/vat/entity/PeriodDataSource.java
+10
-0
PeriodCellDataMapper.xml
...sources/pwc/taxtech/atms/vat/dao/PeriodCellDataMapper.xml
+19
-4
PeriodDataSourceMapper.xml
...urces/pwc/taxtech/atms/vat/dao/PeriodDataSourceMapper.xml
+18
-3
PeriodCellDataExtendsMapper.xml
...tech/atms/vat/dao/extends/PeriodCellDataExtendsMapper.xml
+5
-0
PeriodDataSourceExtendsMapper.xml
...ch/atms/vat/dao/extends/PeriodDataSourceExtendsMapper.xml
+8
-0
tax-report-cell-detail-modal.ctrl.js
...rt-cell-detail-modal/tax-report-cell-detail-modal.ctrl.js
+22
-15
tax-report-cell-detail-modal.html
...eport-cell-detail-modal/tax-report-cell-detail-modal.html
+4
-2
vat-report-sheet.js
.../app/common/controls/vat-report-sheet/vat-report-sheet.js
+5
-1
vat-report-view.ctrl.js
...p/common/controls/vat-report-view/vat-report-view.ctrl.js
+0
-0
vatReportService.js
...rc/main/webapp/app/common/vatservices/vatReportService.js
+3
-7
No files found.
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/CellDataDto.java
View file @
45e9dc37
...
@@ -29,6 +29,9 @@ public class CellDataDto {
...
@@ -29,6 +29,9 @@ public class CellDataDto {
private
Boolean
isCalculated
;
private
Boolean
isCalculated
;
private
String
cellValue
;
private
String
cellValue
;
private
String
keyinData
;
@JsonProperty
(
"cellTemplateID"
)
@JsonProperty
(
"cellTemplateID"
)
private
String
cellTemplateId
;
private
String
cellTemplateId
;
@JsonProperty
(
"reportTemplateID"
)
@JsonProperty
(
"reportTemplateID"
)
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/DataSourceDto.java
View file @
45e9dc37
...
@@ -25,6 +25,7 @@ public class DataSourceDto {
...
@@ -25,6 +25,7 @@ public class DataSourceDto {
// 1: Formula, 2: Voucher, 3: OutputInvoice, 4: InputInvoice, 5: CustomInvoice, 6: KeyIn, 7: RelatedModel, 8: SapDaily
// 1: Formula, 2: Voucher, 3: OutputInvoice, 4: InputInvoice, 5: CustomInvoice, 6: KeyIn, 7: RelatedModel, 8: SapDaily
Integer
dataSourceType
;
Integer
dataSourceType
;
private
String
keyinData
;
private
BigDecimal
amount
;
private
BigDecimal
amount
;
String
description
;
String
description
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/ManualDataSourceDto.java
View file @
45e9dc37
...
@@ -13,6 +13,7 @@ public class ManualDataSourceDto {
...
@@ -13,6 +13,7 @@ public class ManualDataSourceDto {
String
name
;
String
name
;
String
description
;
String
description
;
BigDecimal
amount
;
BigDecimal
amount
;
String
keyinData
;
String
projectId
;
String
projectId
;
String
serviceTypeId
;
String
serviceTypeId
;
Integer
period
;
Integer
period
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
View file @
45e9dc37
...
@@ -212,7 +212,7 @@ public class ReportGeneratorImpl {
...
@@ -212,7 +212,7 @@ public class ReportGeneratorImpl {
if
(
StringUtils
.
isBlank
(
resultFormula
))
{
if
(
StringUtils
.
isBlank
(
resultFormula
))
{
resultFormula
=
null
;
resultFormula
=
" "
;
}
}
cellData
.
setFormulaExp
(
resultFormula
);
cellData
.
setFormulaExp
(
resultFormula
);
cellData
.
setCreateBy
(
"Admin"
);
cellData
.
setCreateBy
(
"Admin"
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
45e9dc37
...
@@ -625,6 +625,7 @@ public class ReportServiceImpl {
...
@@ -625,6 +625,7 @@ public class ReportServiceImpl {
DataSourceDto
dataSourceDto
=
new
DataSourceDto
();
DataSourceDto
dataSourceDto
=
new
DataSourceDto
();
dataSourceDto
.
setId
(
a
.
getId
().
toString
());
dataSourceDto
.
setId
(
a
.
getId
().
toString
());
dataSourceDto
.
setAmount
(
a
.
getAmount
());
dataSourceDto
.
setAmount
(
a
.
getAmount
());
dataSourceDto
.
setKeyinData
(
a
.
getKeyinData
());
dataSourceDto
.
setName
(
a
.
getName
());
dataSourceDto
.
setName
(
a
.
getName
());
dataSourceDto
.
setOperationType
(
a
.
getOperationType
());
dataSourceDto
.
setOperationType
(
a
.
getOperationType
());
dataSourceDto
.
setDescription
(
a
.
getDescription
());
dataSourceDto
.
setDescription
(
a
.
getDescription
());
...
@@ -685,6 +686,7 @@ public class ReportServiceImpl {
...
@@ -685,6 +686,7 @@ public class ReportServiceImpl {
celldata
.
ifPresent
(
cellData
->
cellDataDto
.
setCellId
(
cellData
.
getId
().
toString
()));
celldata
.
ifPresent
(
cellData
->
cellDataDto
.
setCellId
(
cellData
.
getId
().
toString
()));
cellDataDto
.
setFormula
(
a
.
getFormula
());
cellDataDto
.
setFormula
(
a
.
getFormula
());
celldata
.
ifPresent
(
cellData
->
cellDataDto
.
setCellValue
(
cellData
.
getData
()));
celldata
.
ifPresent
(
cellData
->
cellDataDto
.
setCellValue
(
cellData
.
getData
()));
celldata
.
ifPresent
(
cellData
->
cellDataDto
.
setKeyinData
(
cellData
.
getKeyinData
()));
celldata
.
ifPresent
(
cellData
->
cellDataDto
.
setFormulaExp
(
cellData
.
getFormulaExp
()));
celldata
.
ifPresent
(
cellData
->
cellDataDto
.
setFormulaExp
(
cellData
.
getFormulaExp
()));
cellDataDto
.
setCellTemplateConfig
(
CellConfigTranslater
.
getConfigDto
(
a
));
cellDataDto
.
setCellTemplateConfig
(
CellConfigTranslater
.
getConfigDto
(
a
));
List
<
DataSourceDtoExtend
>
entryList
=
datasource
.
stream
()
List
<
DataSourceDtoExtend
>
entryList
=
datasource
.
stream
()
...
@@ -873,10 +875,6 @@ public class ReportServiceImpl {
...
@@ -873,10 +875,6 @@ public class ReportServiceImpl {
public
OperationResultDto
addCellManualDataSource
(
ManualDataSourceDto
data
,
String
projectId
)
{
public
OperationResultDto
addCellManualDataSource
(
ManualDataSourceDto
data
,
String
projectId
)
{
OperationResultDto
operationResultDto
=
new
OperationResultDto
();
OperationResultDto
operationResultDto
=
new
OperationResultDto
();
String
status
=
periodApprovalMapper
.
getStatusByProjectIdAndPeriod
(
projectId
,
data
.
getPeriod
());
MyAsserts
.
assertTrue
(
status
==
null
||
status
.
equals
(
Constant
.
APPROVAL_DISAGREED
),
Exceptions
.
REPORT_IN_PROCESS_OR_AGREED_EXCEPTION
);
try
{
try
{
if
(
data
.
getCellId
()
==
null
)
{
if
(
data
.
getCellId
()
==
null
)
{
//todo: insert celldata for manual datasource
//todo: insert celldata for manual datasource
...
@@ -884,8 +882,9 @@ public class ReportServiceImpl {
...
@@ -884,8 +882,9 @@ public class ReportServiceImpl {
cellData
.
setId
(
distributedIdService
.
nextId
());
cellData
.
setId
(
distributedIdService
.
nextId
());
cellData
.
setReportId
(
data
.
getReportId
());
cellData
.
setReportId
(
data
.
getReportId
());
cellData
.
setCellTemplateId
(
Long
.
parseLong
(
data
.
getCellTemplateId
()));
cellData
.
setCellTemplateId
(
Long
.
parseLong
(
data
.
getCellTemplateId
()));
cellData
.
setData
(
data
.
getAmount
().
toString
());
cellData
.
setData
(
data
.
getAmount
()
==
null
?
null
:
data
.
getAmount
().
toString
());
cellData
.
setFormulaExp
(
data
.
getAmount
().
toString
());
cellData
.
setKeyinData
(
data
.
getKeyinData
());
cellData
.
setFormulaExp
(
data
.
getAmount
()
==
null
?
"0.0"
:
data
.
getAmount
().
toString
());
cellData
.
setCreateBy
(
"admin"
);
cellData
.
setCreateBy
(
"admin"
);
cellData
.
setCreateTime
(
new
Date
());
cellData
.
setCreateTime
(
new
Date
());
cellData
.
setUpdateBy
(
"admin"
);
cellData
.
setUpdateBy
(
"admin"
);
...
@@ -896,12 +895,18 @@ public class ReportServiceImpl {
...
@@ -896,12 +895,18 @@ public class ReportServiceImpl {
data
.
setCellId
(
cellData
.
getId
());
data
.
setCellId
(
cellData
.
getId
());
}
else
{
}
else
{
PeriodCellData
cellData
=
periodCellDataMapper
.
selectByPrimaryKey
(
data
.
getCellId
());
PeriodCellData
cellData
=
periodCellDataMapper
.
selectByPrimaryKey
(
data
.
getCellId
());
if
(
cellData
.
getData
()
!=
data
.
getAmount
().
toString
())
{
if
(
StringUtils
.
isNotBlank
(
data
.
getKeyinData
())){
cellData
.
setKeyinData
(
data
.
getKeyinData
());
if
(
StringUtils
.
isEmpty
(
cellData
.
getFormulaExp
()))
cellData
.
setFormulaExp
(
data
.
getKeyinData
());
periodCellDataMapper
.
updateByPrimaryKeySelective
(
cellData
);
}
else
if
(
data
.
getAmount
()
!=
null
&&
cellData
.
getData
()
!=
data
.
getAmount
().
toString
())
{
cellData
.
setData
(
data
.
getAmount
().
toString
());
cellData
.
setData
(
data
.
getAmount
().
toString
());
if
(
StringUtils
.
isEmpty
(
cellData
.
getFormulaExp
()))
if
(
StringUtils
.
isEmpty
(
cellData
.
getFormulaExp
()))
cellData
.
setFormulaExp
(
data
.
getAmount
().
toString
());
cellData
.
setFormulaExp
(
data
.
getAmount
().
toString
());
periodCellDataMapper
.
updateByPrimaryKeySelective
(
cellData
);
periodCellDataMapper
.
updateByPrimaryKeySelective
(
cellData
);
}
}
}
}
List
<
DataSourceExtendDto
>
dataSourceExtendDtos
=
periodDataSourceMapper
.
getManualDataSource
(
data
.
getCellId
());
List
<
DataSourceExtendDto
>
dataSourceExtendDtos
=
periodDataSourceMapper
.
getManualDataSource
(
data
.
getCellId
());
...
@@ -916,12 +921,14 @@ public class ReportServiceImpl {
...
@@ -916,12 +921,14 @@ public class ReportServiceImpl {
PeriodDataSource
dataSourceModel
=
null
;
PeriodDataSource
dataSourceModel
=
null
;
if
(
dataSourceExtendDtos
.
size
()
>
0
)
{
if
(
dataSourceExtendDtos
.
size
()
>
0
)
{
dataSourceModel
=
dataSourceExtendDtos
.
get
(
0
).
getDataSource
();
dataSourceModel
=
dataSourceExtendDtos
.
get
(
0
).
getDataSource
();
updateCellValueForDataSourceChange
(
dataSourceModel
,
data
.
getAmount
());
if
(
StringUtils
.
isBlank
(
data
.
getKeyinData
()))
updateCellValueForDataSourceChange
(
dataSourceModel
,
data
.
getAmount
());
originalAmount
=
dataSourceModel
.
getAmount
()
!=
null
?
dataSourceModel
.
getAmount
()
:
new
BigDecimal
(
"0"
);
originalAmount
=
dataSourceModel
.
getAmount
()
!=
null
?
dataSourceModel
.
getAmount
()
:
new
BigDecimal
(
"0"
);
dataSourceModel
.
setName
(
data
.
getName
());
dataSourceModel
.
setName
(
data
.
getName
());
dataSourceModel
.
setDescription
(
data
.
getDescription
());
dataSourceModel
.
setDescription
(
data
.
getDescription
());
dataSourceModel
.
setAmount
(
data
.
getAmount
());
dataSourceModel
.
setAmount
(
data
.
getAmount
());
dataSourceModel
.
setUpdateBy
(
"Admin"
);
dataSourceModel
.
setUpdateBy
(
"Admin"
);
dataSourceModel
.
setKeyinData
(
data
.
getKeyinData
());
dataSourceModel
.
setUpdateTime
(
new
Date
());
dataSourceModel
.
setUpdateTime
(
new
Date
());
periodDataSourceMapper
.
updateByPrimaryKeySelective
(
dataSourceModel
);
periodDataSourceMapper
.
updateByPrimaryKeySelective
(
dataSourceModel
);
}
else
{
}
else
{
...
@@ -940,6 +947,7 @@ public class ReportServiceImpl {
...
@@ -940,6 +947,7 @@ public class ReportServiceImpl {
dataSourceModel
.
setCreateTime
(
new
Date
());
dataSourceModel
.
setCreateTime
(
new
Date
());
dataSourceModel
.
setUpdateTime
(
new
Date
());
dataSourceModel
.
setUpdateTime
(
new
Date
());
dataSourceModel
.
setCreateBy
(
"admin"
);
dataSourceModel
.
setCreateBy
(
"admin"
);
dataSourceModel
.
setKeyinData
(
data
.
getKeyinData
());
dataSourceModel
.
setUpdateBy
(
"admin"
);
dataSourceModel
.
setUpdateBy
(
"admin"
);
dataSourceModel
.
setProjectId
(
projectId
);
dataSourceModel
.
setProjectId
(
projectId
);
dataSourceModel
.
setPeriod
(
data
.
getPeriod
());
dataSourceModel
.
setPeriod
(
data
.
getPeriod
());
...
@@ -988,7 +996,7 @@ public class ReportServiceImpl {
...
@@ -988,7 +996,7 @@ public class ReportServiceImpl {
for
(
PeriodCellDataSource
cellDataSource
:
cellDataSourceList
)
{
for
(
PeriodCellDataSource
cellDataSource
:
cellDataSourceList
)
{
Long
dataSourceId
=
cellDataSource
.
getDataSourceId
();
Long
dataSourceId
=
cellDataSource
.
getDataSourceId
();
PeriodDataSource
dataSource
=
periodDataSourceMapper
.
selectByPrimaryKey
(
dataSourceId
);
PeriodDataSource
dataSource
=
periodDataSourceMapper
.
selectByPrimaryKey
(
dataSourceId
);
if
(
dataSource
.
getDescription
().
equals
(
cellName
))
{
if
(
dataSource
.
getDescription
().
equals
(
cellName
)
&&
StringUtils
.
isBlank
(
data
.
getKeyinData
())
)
{
BigDecimal
changeValue
=
data
.
getAmount
().
subtract
(
dataSource
.
getAmount
());
BigDecimal
changeValue
=
data
.
getAmount
().
subtract
(
dataSource
.
getAmount
());
dataSource
.
setAmount
(
data
.
getAmount
());
dataSource
.
setAmount
(
data
.
getAmount
());
dataSource
.
setUpdateBy
(
"admin"
);
dataSource
.
setUpdateBy
(
"admin"
);
...
@@ -1003,6 +1011,11 @@ public class ReportServiceImpl {
...
@@ -1003,6 +1011,11 @@ public class ReportServiceImpl {
//cellData.setFormulaExp(cellData.getData());
//cellData.setFormulaExp(cellData.getData());
cellData
.
setUpdateTime
(
new
Date
());
cellData
.
setUpdateTime
(
new
Date
());
periodCellDataMapper
.
updateByPrimaryKeySelective
(
cellData
);
periodCellDataMapper
.
updateByPrimaryKeySelective
(
cellData
);
}
else
if
(
dataSource
.
getDescription
().
equals
(
cellName
)
&&
StringUtils
.
isNotBlank
(
data
.
getKeyinData
())){
dataSource
.
setKeyinData
(
data
.
getKeyinData
());
dataSource
.
setUpdateBy
(
"admin"
);
dataSource
.
setUpdateTime
(
new
Date
());
periodDataSourceMapper
.
updateByPrimaryKeySelective
(
dataSource
);
}
}
}
}
}
}
...
@@ -1125,7 +1138,8 @@ public class ReportServiceImpl {
...
@@ -1125,7 +1138,8 @@ public class ReportServiceImpl {
operationResultDto
.
setResult
(
false
);
operationResultDto
.
setResult
(
false
);
return
operationResultDto
;
return
operationResultDto
;
}
}
updateCellValueForDataSourceChange
(
datasourceEntity
,
dataSource
.
getAmount
());
if
(
StringUtils
.
isEmpty
(
datasourceEntity
.
getKeyinData
()))
updateCellValueForDataSourceChange
(
datasourceEntity
,
dataSource
.
getAmount
());
periodDataSourceMapper
.
updateByPrimaryKeySelective
(
datasourceEntity
);
periodDataSourceMapper
.
updateByPrimaryKeySelective
(
datasourceEntity
);
//todo:MarkProjectModelDirty(dataSource.projectId, dataSource.serviceTypeId, dataSource.Updater);
//todo:MarkProjectModelDirty(dataSource.projectId, dataSource.serviceTypeId, dataSource.Updater);
...
@@ -1193,7 +1207,7 @@ public class ReportServiceImpl {
...
@@ -1193,7 +1207,7 @@ public class ReportServiceImpl {
PeriodCellData
cellData
=
periodCellDataMapper
.
selectByPrimaryKey
(
cellDataId
);
PeriodCellData
cellData
=
periodCellDataMapper
.
selectByPrimaryKey
(
cellDataId
);
BigDecimal
cellVal
=
new
BigDecimal
(
"0"
);
BigDecimal
cellVal
=
new
BigDecimal
(
"0"
);
try
{
try
{
if
(
cellData
!=
null
)
{
if
(
cellData
!=
null
&&
StringUtils
.
isEmpty
(
cellData
.
getKeyinData
())
)
{
cellVal
=
new
BigDecimal
(
cellData
.
getData
());
cellVal
=
new
BigDecimal
(
cellData
.
getData
());
Integer
cellDataType
=
periodCellTemplateMapper
Integer
cellDataType
=
periodCellTemplateMapper
.
getDataType
(
cellData
.
getCellTemplateId
()
.
getDataType
(
cellData
.
getCellTemplateId
()
...
...
atms-api/src/test/java/pwc/taxtech/atms/CommonIT.java
View file @
45e9dc37
...
@@ -319,4 +319,6 @@ public abstract class CommonIT {
...
@@ -319,4 +319,6 @@ public abstract class CommonIT {
MenuExample
example
=
new
MenuExample
();
MenuExample
example
=
new
MenuExample
();
menuMapper
.
deleteByExample
(
example
);
menuMapper
.
deleteByExample
(
example
);
}
}
}
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/PeriodCellData.java
View file @
45e9dc37
...
@@ -110,6 +110,8 @@ public class PeriodCellData implements Serializable {
...
@@ -110,6 +110,8 @@ public class PeriodCellData implements Serializable {
*/
*/
private
Integer
period
;
private
Integer
period
;
private
String
keyinData
;
/**
/**
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database table TAX_ADMIN.PERIOD_CELL_DATA
* This field corresponds to the database table TAX_ADMIN.PERIOD_CELL_DATA
...
@@ -118,6 +120,14 @@ public class PeriodCellData implements Serializable {
...
@@ -118,6 +120,14 @@ public class PeriodCellData implements Serializable {
*/
*/
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
String
getKeyinData
()
{
return
keyinData
;
}
public
void
setKeyinData
(
String
keyinData
)
{
this
.
keyinData
=
keyinData
;
}
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TAX_ADMIN.PERIOD_CELL_DATA.ID
* This method returns the value of the database column TAX_ADMIN.PERIOD_CELL_DATA.ID
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/PeriodDataSource.java
View file @
45e9dc37
...
@@ -174,6 +174,8 @@ public class PeriodDataSource implements Serializable {
...
@@ -174,6 +174,8 @@ public class PeriodDataSource implements Serializable {
*/
*/
private
String
projectId
;
private
String
projectId
;
private
String
keyinData
;
/**
/**
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database table TAX_ADMIN.PERIOD_DATA_SOURCE
* This field corresponds to the database table TAX_ADMIN.PERIOD_DATA_SOURCE
...
@@ -182,6 +184,14 @@ public class PeriodDataSource implements Serializable {
...
@@ -182,6 +184,14 @@ public class PeriodDataSource implements Serializable {
*/
*/
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
String
getKeyinData
()
{
return
keyinData
;
}
public
void
setKeyinData
(
String
keyinData
)
{
this
.
keyinData
=
keyinData
;
}
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TAX_ADMIN.PERIOD_DATA_SOURCE.ID
* This method returns the value of the database column TAX_ADMIN.PERIOD_DATA_SOURCE.ID
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/PeriodCellDataMapper.xml
View file @
45e9dc37
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<result
column=
"REPORT_ID"
jdbcType=
"DECIMAL"
property=
"reportId"
/>
<result
column=
"REPORT_ID"
jdbcType=
"DECIMAL"
property=
"reportId"
/>
<result
column=
"CELL_TEMPLATE_ID"
jdbcType=
"DECIMAL"
property=
"cellTemplateId"
/>
<result
column=
"CELL_TEMPLATE_ID"
jdbcType=
"DECIMAL"
property=
"cellTemplateId"
/>
<result
column=
"DATA"
jdbcType=
"VARCHAR"
property=
"data"
/>
<result
column=
"DATA"
jdbcType=
"VARCHAR"
property=
"data"
/>
<result
column=
"KEYIN_DATA"
jdbcType=
"VARCHAR"
property=
"keyinData"
/>
<result
column=
"FORMULA_EXP"
jdbcType=
"VARCHAR"
property=
"formulaExp"
/>
<result
column=
"FORMULA_EXP"
jdbcType=
"VARCHAR"
property=
"formulaExp"
/>
<result
column=
"CREATE_BY"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"CREATE_BY"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"CREATE_TIME"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"CREATE_TIME"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
...
@@ -89,7 +90,7 @@
...
@@ -89,7 +90,7 @@
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
ID, REPORT_ID, CELL_TEMPLATE_ID, "DATA", FORMULA_EXP, CREATE_BY, CREATE_TIME, UPDATE_BY,
ID, REPORT_ID, CELL_TEMPLATE_ID, "DATA", FORMULA_EXP, CREATE_BY, CREATE_TIME, UPDATE_BY,
KEYIN_DATA,
UPDATE_TIME, PROJECT_ID, PERIOD
UPDATE_TIME, PROJECT_ID, PERIOD
</sql>
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellDataExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellDataExample"
resultMap=
"BaseResultMap"
>
...
@@ -144,11 +145,11 @@
...
@@ -144,11 +145,11 @@
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
insert into PERIOD_CELL_DATA (ID, REPORT_ID, CELL_TEMPLATE_ID,
insert into PERIOD_CELL_DATA (ID, REPORT_ID, CELL_TEMPLATE_ID,
"DATA",
FORMULA_EXP, CREATE_BY,
"DATA",
KEYIN_DATA, FORMULA_EXP, CREATE_BY,
CREATE_TIME, UPDATE_BY, UPDATE_TIME,
CREATE_TIME, UPDATE_BY, UPDATE_TIME,
PROJECT_ID, PERIOD)
PROJECT_ID, PERIOD)
values (#{id,jdbcType=DECIMAL}, #{reportId,jdbcType=DECIMAL}, #{cellTemplateId,jdbcType=DECIMAL},
values (#{id,jdbcType=DECIMAL}, #{reportId,jdbcType=DECIMAL}, #{cellTemplateId,jdbcType=DECIMAL},
#{data,jdbcType=VARCHAR}, #{
formulaExp,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
#{data,jdbcType=VARCHAR}, #{
keyinData,jdbcType=VARCHAR}, #{formulaExp,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{projectId,jdbcType=VARCHAR}, #{period,jdbcType=DECIMAL})
#{projectId,jdbcType=VARCHAR}, #{period,jdbcType=DECIMAL})
</insert>
</insert>
...
@@ -171,6 +172,9 @@
...
@@ -171,6 +172,9 @@
<if
test=
"data != null"
>
<if
test=
"data != null"
>
"DATA",
"DATA",
</if>
</if>
<if
test=
"keyinData != null"
>
KEYIN_DATA,
</if>
<if
test=
"formulaExp != null"
>
<if
test=
"formulaExp != null"
>
FORMULA_EXP,
FORMULA_EXP,
</if>
</if>
...
@@ -206,6 +210,9 @@
...
@@ -206,6 +210,9 @@
<if
test=
"data != null"
>
<if
test=
"data != null"
>
#{data,jdbcType=VARCHAR},
#{data,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"keyinData != null"
>
#{keyinData,jdbcType=VARCHAR},
</if>
<if
test=
"formulaExp != null"
>
<if
test=
"formulaExp != null"
>
#{formulaExp,jdbcType=VARCHAR},
#{formulaExp,jdbcType=VARCHAR},
</if>
</if>
...
@@ -256,7 +263,10 @@
...
@@ -256,7 +263,10 @@
CELL_TEMPLATE_ID = #{record.cellTemplateId,jdbcType=DECIMAL},
CELL_TEMPLATE_ID = #{record.cellTemplateId,jdbcType=DECIMAL},
</if>
</if>
<if
test=
"record.data != null"
>
<if
test=
"record.data != null"
>
"DATA" = #{record.data,jdbcType=VARCHAR},
"DATA" = #{record.data,jdbcType=VARCHAR},
</if>
<if
test=
"record.keyinData != null"
>
KEYIN_DATA = #{record.keyinData,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.formulaExp != null"
>
<if
test=
"record.formulaExp != null"
>
FORMULA_EXP = #{record.formulaExp,jdbcType=VARCHAR},
FORMULA_EXP = #{record.formulaExp,jdbcType=VARCHAR},
...
@@ -294,6 +304,7 @@
...
@@ -294,6 +304,7 @@
REPORT_ID = #{record.reportId,jdbcType=DECIMAL},
REPORT_ID = #{record.reportId,jdbcType=DECIMAL},
CELL_TEMPLATE_ID = #{record.cellTemplateId,jdbcType=DECIMAL},
CELL_TEMPLATE_ID = #{record.cellTemplateId,jdbcType=DECIMAL},
"DATA" = #{record.data,jdbcType=VARCHAR},
"DATA" = #{record.data,jdbcType=VARCHAR},
KEYIN_DATA = #{record.keyinData,jdbcType=VARCHAR},
FORMULA_EXP = #{record.formulaExp,jdbcType=VARCHAR},
FORMULA_EXP = #{record.formulaExp,jdbcType=VARCHAR},
CREATE_BY = #{record.createBy,jdbcType=VARCHAR},
CREATE_BY = #{record.createBy,jdbcType=VARCHAR},
CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
...
@@ -321,6 +332,9 @@
...
@@ -321,6 +332,9 @@
<if
test=
"data != null"
>
<if
test=
"data != null"
>
"DATA" = #{data,jdbcType=VARCHAR},
"DATA" = #{data,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"keyinData != null"
>
KEYIN_DATA = #{keyinData,jdbcType=VARCHAR},
</if>
<if
test=
"formulaExp != null"
>
<if
test=
"formulaExp != null"
>
FORMULA_EXP = #{formulaExp,jdbcType=VARCHAR},
FORMULA_EXP = #{formulaExp,jdbcType=VARCHAR},
</if>
</if>
...
@@ -354,6 +368,7 @@
...
@@ -354,6 +368,7 @@
set REPORT_ID = #{reportId,jdbcType=DECIMAL},
set REPORT_ID = #{reportId,jdbcType=DECIMAL},
CELL_TEMPLATE_ID = #{cellTemplateId,jdbcType=DECIMAL},
CELL_TEMPLATE_ID = #{cellTemplateId,jdbcType=DECIMAL},
"DATA" = #{data,jdbcType=VARCHAR},
"DATA" = #{data,jdbcType=VARCHAR},
KEYIN_DATA = #{keinData,jdbcType=VARCHAR},
FORMULA_EXP = #{formulaExp,jdbcType=VARCHAR},
FORMULA_EXP = #{formulaExp,jdbcType=VARCHAR},
CREATE_BY = #{createBy,jdbcType=VARCHAR},
CREATE_BY = #{createBy,jdbcType=VARCHAR},
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/PeriodDataSourceMapper.xml
View file @
45e9dc37
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<result
column=
"TYPE"
jdbcType=
"DECIMAL"
property=
"type"
/>
<result
column=
"TYPE"
jdbcType=
"DECIMAL"
property=
"type"
/>
<result
column=
"NAME"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"NAME"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"AMOUNT"
jdbcType=
"DECIMAL"
property=
"amount"
/>
<result
column=
"AMOUNT"
jdbcType=
"DECIMAL"
property=
"amount"
/>
<result
column=
"KEYIN_DATA"
jdbcType=
"VARCHAR"
property=
"keyinData"
/>
<result
column=
"DESCRIPTION"
jdbcType=
"VARCHAR"
property=
"description"
/>
<result
column=
"DESCRIPTION"
jdbcType=
"VARCHAR"
property=
"description"
/>
<result
column=
"KEY_VALUE_DATA_ID"
jdbcType=
"VARCHAR"
property=
"keyValueDataId"
/>
<result
column=
"KEY_VALUE_DATA_ID"
jdbcType=
"VARCHAR"
property=
"keyValueDataId"
/>
<result
column=
"CREATE_BY"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"CREATE_BY"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
...
@@ -96,7 +97,7 @@
...
@@ -96,7 +97,7 @@
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
ID, "TYPE", "NAME", AMOUNT,
DESCRIPTION, KEY_VALUE_DATA_ID, CREATE_BY, CREATE_TIME,
ID, "TYPE", "NAME", AMOUNT,
KEYIN_DATA, DESCRIPTION, KEY_VALUE_DATA_ID, CREATE_BY, CREATE_TIME,
UPDATE_BY, UPDATE_TIME, ROW_NAME, "COLUMN_NAME", ROW_INDEX, REMAP_BATCH_ID, COLUMN_INDEX,
UPDATE_BY, UPDATE_TIME, ROW_NAME, "COLUMN_NAME", ROW_INDEX, REMAP_BATCH_ID, COLUMN_INDEX,
CELL_TEMPLATE_ID, PERIOD, PROJECT_ID
CELL_TEMPLATE_ID, PERIOD, PROJECT_ID
</sql>
</sql>
...
@@ -152,14 +153,14 @@
...
@@ -152,14 +153,14 @@
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
insert into PERIOD_DATA_SOURCE (ID, "TYPE", "NAME",
insert into PERIOD_DATA_SOURCE (ID, "TYPE", "NAME",
AMOUNT,
DESCRIPTION, KEY_VALUE_DATA_ID,
AMOUNT,
KEYIN_DATA, DESCRIPTION, KEY_VALUE_DATA_ID,
CREATE_BY, CREATE_TIME, UPDATE_BY,
CREATE_BY, CREATE_TIME, UPDATE_BY,
UPDATE_TIME, ROW_NAME, "COLUMN_NAME",
UPDATE_TIME, ROW_NAME, "COLUMN_NAME",
ROW_INDEX, REMAP_BATCH_ID, COLUMN_INDEX,
ROW_INDEX, REMAP_BATCH_ID, COLUMN_INDEX,
CELL_TEMPLATE_ID, PERIOD, PROJECT_ID
CELL_TEMPLATE_ID, PERIOD, PROJECT_ID
)
)
values (#{id,jdbcType=DECIMAL}, #{type,jdbcType=DECIMAL}, #{name,jdbcType=VARCHAR},
values (#{id,jdbcType=DECIMAL}, #{type,jdbcType=DECIMAL}, #{name,jdbcType=VARCHAR},
#{amount,jdbcType=DECIMAL}, #{
description,jdbcType=VARCHAR}, #{keyValueDataId,jdbcType=VARCHAR},
#{amount,jdbcType=DECIMAL}, #{
keyinData,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{keyValueDataId,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{rowName,jdbcType=VARCHAR}, #{columnName,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{rowName,jdbcType=VARCHAR}, #{columnName,jdbcType=VARCHAR},
#{rowIndex,jdbcType=DECIMAL}, #{remapBatchId,jdbcType=VARCHAR}, #{columnIndex,jdbcType=DECIMAL},
#{rowIndex,jdbcType=DECIMAL}, #{remapBatchId,jdbcType=VARCHAR}, #{columnIndex,jdbcType=DECIMAL},
...
@@ -185,6 +186,9 @@
...
@@ -185,6 +186,9 @@
<if
test=
"amount != null"
>
<if
test=
"amount != null"
>
AMOUNT,
AMOUNT,
</if>
</if>
<if
test=
"keyinData != null"
>
KEYIN_DATA,
</if>
<if
test=
"description != null"
>
<if
test=
"description != null"
>
DESCRIPTION,
DESCRIPTION,
</if>
</if>
...
@@ -241,6 +245,9 @@
...
@@ -241,6 +245,9 @@
<if
test=
"amount != null"
>
<if
test=
"amount != null"
>
#{amount,jdbcType=DECIMAL},
#{amount,jdbcType=DECIMAL},
</if>
</if>
<if
test=
"keyinData != null"
>
#{keyinData,jdbcType=DECIMAL},
</if>
<if
test=
"description != null"
>
<if
test=
"description != null"
>
#{description,jdbcType=VARCHAR},
#{description,jdbcType=VARCHAR},
</if>
</if>
...
@@ -314,6 +321,9 @@
...
@@ -314,6 +321,9 @@
<if
test=
"record.amount != null"
>
<if
test=
"record.amount != null"
>
AMOUNT = #{record.amount,jdbcType=DECIMAL},
AMOUNT = #{record.amount,jdbcType=DECIMAL},
</if>
</if>
<if
test=
"record.keyinData != null"
>
KEYIN_DATA = #{record.keyinData,jdbcType=DECIMAL},
</if>
<if
test=
"record.description != null"
>
<if
test=
"record.description != null"
>
DESCRIPTION = #{record.description,jdbcType=VARCHAR},
DESCRIPTION = #{record.description,jdbcType=VARCHAR},
</if>
</if>
...
@@ -371,6 +381,7 @@
...
@@ -371,6 +381,7 @@
"TYPE" = #{record.type,jdbcType=DECIMAL},
"TYPE" = #{record.type,jdbcType=DECIMAL},
"NAME" = #{record.name,jdbcType=VARCHAR},
"NAME" = #{record.name,jdbcType=VARCHAR},
AMOUNT = #{record.amount,jdbcType=DECIMAL},
AMOUNT = #{record.amount,jdbcType=DECIMAL},
KEYIN_DATA = #{record.keyinData,jdbcType=VARCHAR},
DESCRIPTION = #{record.description,jdbcType=VARCHAR},
DESCRIPTION = #{record.description,jdbcType=VARCHAR},
KEY_VALUE_DATA_ID = #{record.keyValueDataId,jdbcType=VARCHAR},
KEY_VALUE_DATA_ID = #{record.keyValueDataId,jdbcType=VARCHAR},
CREATE_BY = #{record.createBy,jdbcType=VARCHAR},
CREATE_BY = #{record.createBy,jdbcType=VARCHAR},
...
@@ -405,6 +416,9 @@
...
@@ -405,6 +416,9 @@
<if
test=
"amount != null"
>
<if
test=
"amount != null"
>
AMOUNT = #{amount,jdbcType=DECIMAL},
AMOUNT = #{amount,jdbcType=DECIMAL},
</if>
</if>
<if
test=
"keyinData != null"
>
KEYIN_DATA = #{keyinData,jdbcType=DECIMAL},
</if>
<if
test=
"description != null"
>
<if
test=
"description != null"
>
DESCRIPTION = #{description,jdbcType=VARCHAR},
DESCRIPTION = #{description,jdbcType=VARCHAR},
</if>
</if>
...
@@ -459,6 +473,7 @@
...
@@ -459,6 +473,7 @@
set "TYPE" = #{type,jdbcType=DECIMAL},
set "TYPE" = #{type,jdbcType=DECIMAL},
"NAME" = #{name,jdbcType=VARCHAR},
"NAME" = #{name,jdbcType=VARCHAR},
AMOUNT = #{amount,jdbcType=DECIMAL},
AMOUNT = #{amount,jdbcType=DECIMAL},
KEYIN_DATA = #{keyinData,jdbcType=VARCHAR},
DESCRIPTION = #{description,jdbcType=VARCHAR},
DESCRIPTION = #{description,jdbcType=VARCHAR},
KEY_VALUE_DATA_ID = #{keyValueDataId,jdbcType=VARCHAR},
KEY_VALUE_DATA_ID = #{keyValueDataId,jdbcType=VARCHAR},
CREATE_BY = #{createBy,jdbcType=VARCHAR},
CREATE_BY = #{createBy,jdbcType=VARCHAR},
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/PeriodCellDataExtendsMapper.xml
View file @
45e9dc37
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#{item.reportId,jdbcType=DECIMAL},
#{item.reportId,jdbcType=DECIMAL},
#{item.cellTemplateId,jdbcType=DECIMAL},
#{item.cellTemplateId,jdbcType=DECIMAL},
#{item.data,jdbcType=VARCHAR},
#{item.data,jdbcType=VARCHAR},
#{item.keyinData,jdbcType=VARCHAR},
#{item.formulaExp,jdbcType=VARCHAR},
#{item.formulaExp,jdbcType=VARCHAR},
#{item.createBy,jdbcType=VARCHAR},
#{item.createBy,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP},
#{item.createTime,jdbcType=TIMESTAMP},
...
@@ -31,6 +32,7 @@
...
@@ -31,6 +32,7 @@
REPORT_ID,
REPORT_ID,
CELL_TEMPLATE_ID,
CELL_TEMPLATE_ID,
"DATA",
"DATA",
KEYIN_DATA,
FORMULA_EXP,
FORMULA_EXP,
CREATE_TIME,
CREATE_TIME,
UPDATE_TIME,
UPDATE_TIME,
...
@@ -59,6 +61,9 @@
...
@@ -59,6 +61,9 @@
<when
test=
"item.data != null"
>
#{item.data,jdbcType=VARCHAR},
</when>
<when
test=
"item.data != null"
>
#{item.data,jdbcType=VARCHAR},
</when>
<otherwise>
' ',
</otherwise>
<otherwise>
' ',
</otherwise>
</choose>
</choose>
<choose>
<when
test=
"item.keyinData != null"
>
#{item.keyinData,jdbcType=VARCHAR},
</when>
</choose>
<choose>
<choose>
<when
test=
"item.formulaExp != null"
>
#{item.formulaExp,jdbcType=VARCHAR},
</when>
<when
test=
"item.formulaExp != null"
>
#{item.formulaExp,jdbcType=VARCHAR},
</when>
<otherwise>
' ',
</otherwise>
<otherwise>
' ',
</otherwise>
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/PeriodDataSourceExtendsMapper.xml
View file @
45e9dc37
...
@@ -229,6 +229,7 @@
...
@@ -229,6 +229,7 @@
<result
column=
"TYPE"
jdbcType=
"INTEGER"
property=
"type"
/>
<result
column=
"TYPE"
jdbcType=
"INTEGER"
property=
"type"
/>
<result
column=
"NAME"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"NAME"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"AMOUNT"
jdbcType=
"DECIMAL"
property=
"amount"
/>
<result
column=
"AMOUNT"
jdbcType=
"DECIMAL"
property=
"amount"
/>
<result
column=
"KEYIN_DATA"
jdbcType=
"VARCHAR"
property=
"keyinData"
/>
<result
column=
"DESCRIPTION"
jdbcType=
"VARCHAR"
property=
"description"
/>
<result
column=
"DESCRIPTION"
jdbcType=
"VARCHAR"
property=
"description"
/>
<result
column=
"KEY_VALUE_DATA_ID"
jdbcType=
"VARCHAR"
property=
"keyValueDataId"
/>
<result
column=
"KEY_VALUE_DATA_ID"
jdbcType=
"VARCHAR"
property=
"keyValueDataId"
/>
<result
column=
"CREATE_BY"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"CREATE_BY"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
...
@@ -282,6 +283,7 @@
...
@@ -282,6 +283,7 @@
DS.TYPE,
DS.TYPE,
DS.NAME,
DS.NAME,
DS.AMOUNT,
DS.AMOUNT,
DS.KEYIN_DATA,
DS.DESCRIPTION,
DS.DESCRIPTION,
DS.KEY_VALUE_DATA_ID,
DS.KEY_VALUE_DATA_ID,
DS.CREATE_BY,
DS.CREATE_BY,
...
@@ -311,6 +313,7 @@
...
@@ -311,6 +313,7 @@
<association
property=
"cellData"
javaType=
"pwc.taxtech.atms.vat.entity.CellData"
>
<association
property=
"cellData"
javaType=
"pwc.taxtech.atms.vat.entity.CellData"
>
<id
column=
"CELL_DATA_ID"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"CELL_DATA_ID"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"CELL_DATA_DATA"
property=
"data"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"CELL_DATA_DATA"
property=
"data"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"CELL_DATA_DATA"
property=
"data"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"CELL_DATA_TEMPLATE_ID"
property=
"cellTemplateId"
javaType=
"java.lang.Long"
jdbcType=
"BIGINT"
/>
<result
column=
"CELL_DATA_TEMPLATE_ID"
property=
"cellTemplateId"
javaType=
"java.lang.Long"
jdbcType=
"BIGINT"
/>
<result
column=
"CELL_DATA_REPORT_ID"
property=
"reportId"
javaType=
"java.lang.Long"
jdbcType=
"BIGINT"
/>
<result
column=
"CELL_DATA_REPORT_ID"
property=
"reportId"
javaType=
"java.lang.Long"
jdbcType=
"BIGINT"
/>
</association>
</association>
...
@@ -375,6 +378,11 @@
...
@@ -375,6 +378,11 @@
0,
0,
</otherwise>
</otherwise>
</choose>
</choose>
<choose>
<when
test=
"item.keyinData != null"
>
#{item.keyinData,jdbcType=VARCHAR},
</when>
</choose>
<choose>
<choose>
<when
test=
"item.description != null"
>
<when
test=
"item.description != null"
>
#{item.description,jdbcType=VARCHAR},
#{item.description,jdbcType=VARCHAR},
...
...
atms-web/src/main/webapp/app/common/controls/tax-report-cell-detail-modal/tax-report-cell-detail-modal.ctrl.js
View file @
45e9dc37
...
@@ -174,15 +174,12 @@
...
@@ -174,15 +174,12 @@
};
};
function
doConfirmEventHandler
()
{
function
doConfirmEventHandler
()
{
swal
.
close
();
var
r
=
/^00
\d
*|^
\.\d
+|
\.
$/
;
var
r
=
/^00
\d
*|^
\.\d
+|
\.
$/
;
if
(
$scope
.
detail
.
inputValue
&&
(
isNaN
(
$scope
.
detail
.
inputValue
)
||
r
.
test
(
$scope
.
detail
.
inputValue
)))
{
SweetAlert
.
warning
(
$translate
.
instant
(
'CheckInputValueFormat'
));
// if ($scope.detail.inputValue && parseFloat($scope.detail.inputValue).toFixed(2) > 9999999999999) {
return
;
// SweetAlert.warning($translate.instant('CheckInputValueLength'));
}
else
if
(
$scope
.
detail
.
inputValue
&&
parseFloat
(
$scope
.
detail
.
inputValue
).
toFixed
(
2
)
>
9999999999999
)
{
// return;
SweetAlert
.
warning
(
$translate
.
instant
(
'CheckInputValueLength'
));
// }
return
;
}
if
(
$scope
.
detail
.
dataType
===
5
)
{
if
(
$scope
.
detail
.
dataType
===
5
)
{
r
=
/^
(
-
[
1-9
]\d
*|
[
1-9
]\d
*|
[
0
]{1,1})
$/
;
r
=
/^
(
-
[
1-9
]\d
*|
[
1-9
]\d
*|
[
0
]{1,1})
$/
;
if
(
!
r
.
test
(
$scope
.
detail
.
inputValue
))
{
if
(
!
r
.
test
(
$scope
.
detail
.
inputValue
))
{
...
@@ -200,9 +197,18 @@
...
@@ -200,9 +197,18 @@
if
(
!
$scope
.
detail
.
inputValue
)
{
if
(
!
$scope
.
detail
.
inputValue
)
{
$scope
.
detail
.
inputValue
=
"0"
;
$scope
.
detail
.
inputValue
=
"0"
;
}
}
$scope
.
detail
.
inputValue
=
$scope
.
detail
.
dataType
===
5
?
parseInt
(
$scope
.
detail
.
inputValue
)
:
parseFloat
(
$scope
.
detail
.
inputValue
).
toFixed
(
2
);
if
(
$scope
.
detail
.
inputValue
&&
((
isNaN
(
$scope
.
detail
.
inputValue
)
||
r
.
test
(
$scope
.
detail
.
inputValue
))
||
parseFloat
(
$scope
.
detail
.
inputValue
).
toFixed
(
2
)
>
9999999999999
)){
// $scope.detail.inputValue;
$scope
.
detail
.
keyinData
=
$scope
.
detail
.
inputValue
;
}
else
{
$scope
.
detail
.
inputValue
=
$scope
.
detail
.
dataType
===
5
?
parseInt
(
$scope
.
detail
.
inputValue
)
:
parseFloat
(
$scope
.
detail
.
inputValue
).
toFixed
(
2
);
}
$scope
.
onConfirm
();
$scope
.
onConfirm
();
...
@@ -242,9 +248,10 @@
...
@@ -242,9 +248,10 @@
if
(
isConfirm
){
if
(
isConfirm
){
var
message
;
var
message
;
var
r
=
/^00
\d
*|^
\.\d
+|
\.
$/
;
var
r
=
/^00
\d
*|^
\.\d
+|
\.
$/
;
if
(
$scope
.
detail
.
inputValue
&&
(
isNaN
(
$scope
.
detail
.
inputValue
)
||
r
.
test
(
$scope
.
detail
.
inputValue
)))
{
// if ($scope.detail.inputValue && (isNaN($scope.detail.inputValue) || r.test($scope.detail.inputValue))) {
message
=
$translate
.
instant
(
'CheckInputValueFormat'
);
// message = $translate.instant('CheckInputValueFormat');
}
else
if
(
$scope
.
detail
.
inputValue
&&
parseFloat
(
$scope
.
detail
.
inputValue
).
toFixed
(
2
)
>
9999999999999
)
{
// } else
if
(
$scope
.
detail
.
inputValue
&&
parseFloat
(
$scope
.
detail
.
inputValue
).
toFixed
(
2
)
>
9999999999999
)
{
message
=
$translate
.
instant
(
'CheckInputValueLength'
);
message
=
$translate
.
instant
(
'CheckInputValueLength'
);
}
else
if
(
$scope
.
detail
.
dataType
===
5
)
{
}
else
if
(
$scope
.
detail
.
dataType
===
5
)
{
r
=
/^
(
-
[
1-9
]\d
*|
[
1-9
]\d
*|
[
0
]{1,1})
$/
;
r
=
/^
(
-
[
1-9
]\d
*|
[
1-9
]\d
*|
[
0
]{1,1})
$/
;
...
@@ -1223,7 +1230,7 @@
...
@@ -1223,7 +1230,7 @@
dataGridColumns
=
[
dataGridColumns
=
[
{
{
dataField
:
'period'
,
dataField
:
'period'
,
caption
:
$translate
.
instant
(
'InvoiceQJ'
),
caption
:
$translate
.
instant
(
'InvoiceQJ'
),
alignment
:
'center'
,
alignment
:
'center'
,
width
:
'10%'
,
width
:
'10%'
,
visible
:
vatSessionService
.
citFlag
?
false
:
true
visible
:
vatSessionService
.
citFlag
?
false
:
true
...
...
atms-web/src/main/webapp/app/common/controls/tax-report-cell-detail-modal/tax-report-cell-detail-modal.html
View file @
45e9dc37
...
@@ -122,7 +122,8 @@
...
@@ -122,7 +122,8 @@
<div
class=
"hand-input-container"
ng-if=
"detail.cellType === 19"
>
<div
class=
"hand-input-container"
ng-if=
"detail.cellType === 19"
>
<div
class=
"hand-input-line"
>
<div
class=
"hand-input-line"
>
<span>
{{'HandInputValue' | translate}}:
</span>
<span>
{{'HandInputValue' | translate}}:
</span>
<span>
{{detail.dataGridSource[0].money}}
</span>
<span
ng-if=
"!detail.keyinData"
>
{{detail.dataGridSource[0].money}}
</span>
<span
ng-if=
"detail.keyinData"
>
{{detail.dataGridSource[0].keyinData}}
</span>
</div>
</div>
<div
class=
"hand-input-line"
>
<div
class=
"hand-input-line"
>
<span>
{{'Memo' | translate}}:
</span>
<span>
{{'Memo' | translate}}:
</span>
...
@@ -134,7 +135,8 @@
...
@@ -134,7 +135,8 @@
<div
class=
"hand-input-container"
ng-show=
"selectedDataSourceTabIndex == 2 || (detail.dataSourceCount == 1 && detail.hasKeyIn)"
>
<div
class=
"hand-input-container"
ng-show=
"selectedDataSourceTabIndex == 2 || (detail.dataSourceCount == 1 && detail.hasKeyIn)"
>
<div
class=
"hand-input-line"
>
<div
class=
"hand-input-line"
>
<span>
{{'HandInputValue' | translate}}:
</span>
<span>
{{'HandInputValue' | translate}}:
</span>
<span><input
id=
"hand-input-value"
name=
"hand-input-value"
ng-model=
"detail.inputValue"
type=
"text"
class=
"hand-input-value"
/></span>
<span><input
id=
"hand-input-value"
ng-if=
"!detail.keyinData"
name=
"hand-input-value"
ng-model=
"detail.inputValue"
type=
"text"
class=
"hand-input-value"
/></span>
<span><input
id=
"hand-input-value"
ng-if=
"detail.keyinData"
name=
"hand-input-value"
ng-model=
"detail.keyinData"
type=
"text"
class=
"hand-input-value"
/></span>
</div>
</div>
<div
class=
"hand-input-line"
>
<div
class=
"hand-input-line"
>
<span>
{{'Memo' | translate}}:
</span>
<span>
{{'Memo' | translate}}:
</span>
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-sheet/vat-report-sheet.js
View file @
45e9dc37
...
@@ -512,7 +512,11 @@
...
@@ -512,7 +512,11 @@
// 设置顺序: 非数值字符串 -> 单元格值覆盖修改 -> 公式或手工数据源 -> 数值
// 设置顺序: 非数值字符串 -> 单元格值覆盖修改 -> 公式或手工数据源 -> 数值
var
ifShowParseFloat
=
true
;
// 用于标识单元格是否设置成数值
var
ifShowParseFloat
=
true
;
// 用于标识单元格是否设置成数值
if
(
_
.
isString
(
data
.
value
)
&&
data
.
value
.
length
>
0
&&
isNaN
(
Number
(
data
.
value
)))
{
if
(
_
.
isString
(
data
.
keyinData
)
&&
data
.
keyinData
.
length
>
0
&&
isNaN
(
Number
(
data
.
keyinData
))){
sheet
.
setValue
(
data
.
rowIndex
,
data
.
columnIndex
,
data
.
keyinData
);
ifShowParseFloat
=
false
;
// 非数值字符串,单元格设置为字符串
}
else
if
(
_
.
isString
(
data
.
value
)
&&
data
.
value
.
length
>
0
&&
isNaN
(
Number
(
data
.
value
)))
{
sheet
.
setValue
(
data
.
rowIndex
,
data
.
columnIndex
,
data
.
value
);
sheet
.
setValue
(
data
.
rowIndex
,
data
.
columnIndex
,
data
.
value
);
ifShowParseFloat
=
false
;
// 非数值字符串,单元格设置为字符串
ifShowParseFloat
=
false
;
// 非数值字符串,单元格设置为字符串
}
}
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-view/vat-report-view.ctrl.js
View file @
45e9dc37
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/common/vatservices/vatReportService.js
View file @
45e9dc37
...
@@ -96,13 +96,9 @@
...
@@ -96,13 +96,9 @@
data
.
dataSourceType
=
enums
.
cellDataSourceType
.
KeyIn
;
data
.
dataSourceType
=
enums
.
cellDataSourceType
.
KeyIn
;
return
$q
.
when
(
data
);
return
$q
.
when
(
data
);
},
function
(
data
)
{
},
function
(
data
)
{
if
(
data
.
status
==
412
){
logInfo
.
UpdateState
=
$translate
.
instant
(
'ManualInputFail'
);
SweetAlert
.
error
(
'报表提审中或审核已通过!'
);
SweetAlert
.
error
(
$translate
.
instant
(
'PleaseContactAdministrator'
));
}
else
{
return
vatOperationLogService
.
addOperationLog
(
logInfo
);
logInfo
.
UpdateState
=
$translate
.
instant
(
'ManualInputFail'
);
SweetAlert
.
error
(
$translate
.
instant
(
'PleaseContactAdministrator'
));
return
vatOperationLogService
.
addOperationLog
(
logInfo
);
}
});
});
},
},
deleteCellVoucher
:
function
(
voucherId
,
datasourceId
)
{
deleteCellVoucher
:
function
(
voucherId
,
datasourceId
)
{
...
...
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