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
f6e95b16
Commit
f6e95b16
authored
Feb 20, 2019
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
68f705b9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
342 additions
and
15 deletions
+342
-15
pom.xml
atms-api/pom.xml
+0
-7
RevenueConfEnum.java
...java/pwc/taxtech/atms/constant/enums/RevenueConfEnum.java
+164
-0
CashFlowHeader.java
...c/taxtech/atms/dto/vatdto/excelheader/CashFlowHeader.java
+56
-5
job.properties
atms-api/src/main/resources/job.properties
+1
-1
vatGeneratorConfig.xml
atms-dao/etc/generator-mysql/vatGeneratorConfig.xml
+12
-2
RevenueConfigMapper.java
...in/java/pwc/taxtech/atms/vat/dao/RevenueConfigMapper.java
+109
-0
RevenueConfig.java
.../main/java/pwc/taxtech/atms/vat/entity/RevenueConfig.java
+0
-0
RevenueConfigExample.java
...ava/pwc/taxtech/atms/vat/entity/RevenueConfigExample.java
+0
-0
RevenueConfigMapper.xml
...esources/pwc/taxtech/atms/vat/dao/RevenueConfigMapper.xml
+0
-0
No files found.
atms-api/pom.xml
View file @
f6e95b16
...
@@ -415,13 +415,6 @@
...
@@ -415,13 +415,6 @@
<artifactId>
jxls-core
</artifactId>
<artifactId>
jxls-core
</artifactId>
<version>
1.0.6
</version>
<version>
1.0.6
</version>
</dependency>
</dependency>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<version>
1.18.0
</version>
<scope>
provided
</scope>
</dependency>
</dependencies>
</dependencies>
...
...
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/RevenueConfEnum.java
0 → 100644
View file @
f6e95b16
package
pwc
.
taxtech
.
atms
.
constant
.
enums
;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
RevenueConfEnum
{
/**
* 账载收入类型
*/
public
enum
AccountType
{
Zero
(
0
,
"0值"
),
Account
(
1
,
"科目"
),
Manual
(
2
,
"手工录入"
);
private
Integer
code
;
private
String
name
;
public
static
final
Map
<
Integer
,
String
>
MAPPING
=
new
HashMap
<>();
AccountType
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
static
{
for
(
RevenueConfEnum
.
AccountType
accountType
:
RevenueConfEnum
.
AccountType
.
values
())
{
MAPPING
.
put
(
accountType
.
getCode
(),
accountType
.
getName
());
}
}
}
/**
* 账载收入类型
*/
public
enum
TaxBase
{
Account
(
1
,
"账载"
),
Invoice
(
2
,
"开票收入"
),
Manual
(
3
,
"手工录入"
),
Period_Dr
(
4
,
"借方发生额"
),
Period_Cr
(
5
,
"贷方发生额"
);
private
Integer
code
;
private
String
name
;
public
static
final
Map
<
Integer
,
String
>
MAPPING
=
new
HashMap
<>();
TaxBase
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
static
{
for
(
RevenueConfEnum
.
TaxBase
taxBase
:
RevenueConfEnum
.
TaxBase
.
values
())
{
MAPPING
.
put
(
taxBase
.
getCode
(),
taxBase
.
getName
());
}
}
}
/**
* 计税方法
*/
public
enum
TaxType
{
Common
(
0
,
"一般计税"
),
Simple
(
1
,
"简易计税"
),
Tax_Exemption
(
2
,
"免抵退税"
),
Free
(
3
,
"免税"
);
private
Integer
code
;
private
String
name
;
public
static
final
Map
<
Integer
,
String
>
MAPPING
=
new
HashMap
<>();
TaxType
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
static
{
for
(
RevenueConfEnum
.
TaxType
taxType
:
RevenueConfEnum
.
TaxType
.
values
())
{
MAPPING
.
put
(
taxType
.
getCode
(),
taxType
.
getName
());
}
}
}
/**
* 收入类型
*/
public
enum
RevenueType
{
Service
(
0
,
"货物及加工修理修配劳务"
),
Assets
(
1
,
"服务、不动产和无形资产"
);
private
Integer
code
;
private
String
name
;
public
static
final
Map
<
Integer
,
String
>
MAPPING
=
new
HashMap
<>();
RevenueType
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
static
{
for
(
RevenueConfEnum
.
RevenueType
revenueType
:
RevenueConfEnum
.
RevenueType
.
values
())
{
MAPPING
.
put
(
revenueType
.
getCode
(),
revenueType
.
getName
());
}
}
}
/**
* 状态
*/
public
enum
Status
{
Enable
(
0
,
"启用"
),
Disable
(
1
,
"停用"
);
private
Integer
code
;
private
String
name
;
public
static
final
Map
<
Integer
,
String
>
MAPPING
=
new
HashMap
<>();
Status
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
static
{
for
(
RevenueConfEnum
.
Status
status
:
RevenueConfEnum
.
Status
.
values
())
{
MAPPING
.
put
(
status
.
getCode
(),
status
.
getName
());
}
}
}
}
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/excelheader/CashFlowHeader.java
View file @
f6e95b16
package
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
excelheader
;
package
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
excelheader
;
import
lombok.Getter
;
import
lombok.Setter
;
@Getter
@Setter
public
class
CashFlowHeader
{
public
class
CashFlowHeader
{
private
String
companyNameCn
;
private
String
companyNameCn
;
private
String
companyNameEn
;
private
String
companyNameEn
;
...
@@ -13,4 +8,60 @@ public class CashFlowHeader {
...
@@ -13,4 +8,60 @@ public class CashFlowHeader {
private
String
ledgerName
;
private
String
ledgerName
;
private
String
ledgerCurrencyCode
;
private
String
ledgerCurrencyCode
;
private
String
status
;
private
String
status
;
public
String
getCompanyNameCn
()
{
return
this
.
companyNameCn
;
}
public
void
setCompanyNameCn
(
String
companyNameCn
)
{
this
.
companyNameCn
=
companyNameCn
;
}
public
String
getCompanyNameEn
()
{
return
this
.
companyNameEn
;
}
public
void
setCompanyNameEn
(
String
companyNameEn
)
{
this
.
companyNameEn
=
companyNameEn
;
}
public
Integer
getPeriodStart
()
{
return
this
.
periodStart
;
}
public
void
setPeriodStart
(
Integer
periodStart
)
{
this
.
periodStart
=
periodStart
;
}
public
Integer
getPeriodEnd
()
{
return
this
.
periodEnd
;
}
public
void
setPeriodEnd
(
Integer
periodEnd
)
{
this
.
periodEnd
=
periodEnd
;
}
public
String
getLedgerName
()
{
return
this
.
ledgerName
;
}
public
void
setLedgerName
(
String
ledgerName
)
{
this
.
ledgerName
=
ledgerName
;
}
public
String
getLedgerCurrencyCode
()
{
return
this
.
ledgerCurrencyCode
;
}
public
void
setLedgerCurrencyCode
(
String
ledgerCurrencyCode
)
{
this
.
ledgerCurrencyCode
=
ledgerCurrencyCode
;
}
public
String
getStatus
()
{
return
this
.
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
}
}
atms-api/src/main/resources/job.properties
View file @
f6e95b16
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
org.quartz.jobStore.useProperties
=
true
org.quartz.jobStore.useProperties
=
true
org.quartz.jobStore.tablePrefix
=
QRTZ_
org.quartz.jobStore.tablePrefix
=
QRTZ_
org.quartz.jobStore.isClustered
=
true
org.quartz.jobStore.isClustered
=
true
org.quartz.jobStore.clusterCheckinInterval
=
5
000
org.quartz.jobStore.clusterCheckinInterval
=
60
000
org.quartz.jobStore.misfireThreshold
=
60000
org.quartz.jobStore.misfireThreshold
=
60000
org.quartz.jobStore.txIsolationLevelReadCommitted
=
true
org.quartz.jobStore.txIsolationLevelReadCommitted
=
true
...
...
atms-dao/etc/generator-mysql/vatGeneratorConfig.xml
View file @
f6e95b16
...
@@ -41,12 +41,22 @@
...
@@ -41,12 +41,22 @@
<property
name=
"rootInterface"
value=
"pwc.taxtech.atms.MyVatMapper"
/>
<property
name=
"rootInterface"
value=
"pwc.taxtech.atms.MyVatMapper"
/>
</javaClientGenerator>
</javaClientGenerator>
<table
tableName=
"
invoice_data"
domainObjectName=
"InvoiceData
"
>
<table
tableName=
"
revenue_config"
domainObjectName=
"RevenueConfig
"
>
<property
name=
"useActualColumnNames"
value=
"false"
/>
<property
name=
"useActualColumnNames"
value=
"false"
/>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
<columnOverride
column=
"count_type"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
<columnOverride
column=
"account_type"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
<columnOverride
column=
"tax_base"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
<columnOverride
column=
"revenue_type"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
<columnOverride
column=
"tax_type"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
<columnOverride
column=
"status"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
</table>
</table>
<!--<table tableName="invoice_data" domainObjectName="InvoiceData">-->
<!--<property name="useActualColumnNames" value="false"/>-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--<columnOverride column="count_type" javaType="java.lang.Integer" jdbcType="TINYINT"/>-->
<!--</table>-->
<!--<table tableName="coupa_purchasing_report" domainObjectName="CoupaPurchasingReport">
<!--<table tableName="coupa_purchasing_report" domainObjectName="CoupaPurchasingReport">
<property name="useActualColumnNames" value="false"/>
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/dao/RevenueConfigMapper.java
0 → 100644
View file @
f6e95b16
package
pwc
.
taxtech
.
atms
.
vat
.
dao
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.session.RowBounds
;
import
pwc.taxtech.atms.MyVatMapper
;
import
pwc.taxtech.atms.vat.entity.RevenueConfig
;
import
pwc.taxtech.atms.vat.entity.RevenueConfigExample
;
@Mapper
public
interface
RevenueConfigMapper
extends
MyVatMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table revenue_config
*
* @mbg.generated
*/
long
countByExample
(
RevenueConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table revenue_config
*
* @mbg.generated
*/
int
deleteByExample
(
RevenueConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table revenue_config
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table revenue_config
*
* @mbg.generated
*/
int
insert
(
RevenueConfig
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table revenue_config
*
* @mbg.generated
*/
int
insertSelective
(
RevenueConfig
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table revenue_config
*
* @mbg.generated
*/
List
<
RevenueConfig
>
selectByExampleWithRowbounds
(
RevenueConfigExample
example
,
RowBounds
rowBounds
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table revenue_config
*
* @mbg.generated
*/
List
<
RevenueConfig
>
selectByExample
(
RevenueConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table revenue_config
*
* @mbg.generated
*/
RevenueConfig
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table revenue_config
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
RevenueConfig
record
,
@Param
(
"example"
)
RevenueConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table revenue_config
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
RevenueConfig
record
,
@Param
(
"example"
)
RevenueConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table revenue_config
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
RevenueConfig
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table revenue_config
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
RevenueConfig
record
);
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/RevenueConfig.java
0 → 100644
View file @
f6e95b16
This diff is collapsed.
Click to expand it.
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/RevenueConfigExample.java
0 → 100644
View file @
f6e95b16
This diff is collapsed.
Click to expand it.
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/RevenueConfigMapper.xml
0 → 100644
View file @
f6e95b16
This diff is collapsed.
Click to expand it.
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