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
449aefa6
Commit
449aefa6
authored
Sep 14, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] add vat the same entity with admin entity droped
parent
0d35c764
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
19 deletions
+19
-19
hibernate.cfg.xml
atms-gen/config/hibernate.cfg.xml
+3
-3
EnterpriseAccount.java
...n/java/pwc/taxtech/atms/vat/entity/EnterpriseAccount.java
+1
-1
OperationLog.java
...c/main/java/pwc/taxtech/atms/vat/entity/OperationLog.java
+1
-1
StandardAccount.java
...ain/java/pwc/taxtech/atms/vat/entity/StandardAccount.java
+1
-1
EnterpriseAccountRepository.java
...tech/atms/vat/repository/EnterpriseAccountRepository.java
+2
-1
OperationLogRepository.java
...c/taxtech/atms/vat/repository/OperationLogRepository.java
+2
-1
StandardAccountRepository.java
...axtech/atms/vat/repository/StandardAccountRepository.java
+2
-1
ExtractCommitFromDiff.java
atms-gen/src/test/java/com/neo/ExtractCommitFromDiff.java
+7
-10
databases-invalid-sql
atms-gen/src/test/resources/databases-invalid-sql
+0
-0
No files found.
atms-gen/config/hibernate.cfg.xml
View file @
449aefa6
...
...
@@ -20,7 +20,7 @@
<mapping
class=
"pwc.taxtech.atms.vat.entity.CustBalanceStd"
/>
<mapping
class=
"pwc.taxtech.atms.vat.entity.CustBalanceStdManual"
/>
<mapping
class=
"pwc.taxtech.atms.vat.entity.CustomsInvoice"
/>
<mapping
class=
"pwc.taxtech.
drop.vat
.EnterpriseAccount"
/>
<mapping
class=
"pwc.taxtech.
atms.vat.entity
.EnterpriseAccount"
/>
<mapping
class=
"pwc.taxtech.atms.vat.entity.EntriesCheckDetailResult"
/>
<mapping
class=
"pwc.taxtech.atms.vat.entity.EntriesCheckResult"
/>
<mapping
class=
"pwc.taxtech.atms.vat.entity.FormulaCache"
/>
...
...
@@ -35,11 +35,11 @@
<mapping
class=
"pwc.taxtech.atms.vat.entity.ModelCategoryResult"
/>
<mapping
class=
"pwc.taxtech.atms.vat.entity.ModelDetailLog"
/>
<mapping
class=
"pwc.taxtech.atms.vat.entity.ModelLog"
/>
<mapping
class=
"pwc.taxtech.
drop.vat
.OperationLog"
/>
<mapping
class=
"pwc.taxtech.
atms.vat.entity
.OperationLog"
/>
<mapping
class=
"pwc.taxtech.atms.vat.entity.OutputVatInvoice"
/>
<mapping
class=
"pwc.taxtech.atms.vat.entity.OutputVatInvoiceItem"
/>
<mapping
class=
"pwc.taxtech.atms.vat.entity.PeriodCellReference"
/>
<mapping
class=
"pwc.taxtech.
drop.vat
.StandardAccount"
/>
<mapping
class=
"pwc.taxtech.
atms.vat.entity
.StandardAccount"
/>
<mapping
class=
"pwc.taxtech.atms.vat.entity.ValidationInfo"
/>
<mapping
class=
"pwc.taxtech.atms.vat.entity.Voucher"
/>
<mapping
class=
"pwc.taxtech.atms.vat.entity.VoucherMain"
/>
...
...
atms-gen/src/main/java/pwc/taxtech/
drop/vat
/EnterpriseAccount.java
→
atms-gen/src/main/java/pwc/taxtech/
atms/vat/entity
/EnterpriseAccount.java
View file @
449aefa6
package
pwc
.
taxtech
.
drop
.
vat
;
package
pwc
.
taxtech
.
atms
.
vat
.
entity
;
import
org.hibernate.annotations.ColumnDefault
;
...
...
atms-gen/src/main/java/pwc/taxtech/
drop/vat
/OperationLog.java
→
atms-gen/src/main/java/pwc/taxtech/
atms/vat/entity
/OperationLog.java
View file @
449aefa6
package
pwc
.
taxtech
.
drop
.
vat
;
package
pwc
.
taxtech
.
atms
.
vat
.
entity
;
import
org.hibernate.annotations.ColumnDefault
;
...
...
atms-gen/src/main/java/pwc/taxtech/
drop/vat
/StandardAccount.java
→
atms-gen/src/main/java/pwc/taxtech/
atms/vat/entity
/StandardAccount.java
View file @
449aefa6
package
pwc
.
taxtech
.
drop
.
vat
;
package
pwc
.
taxtech
.
atms
.
vat
.
entity
;
import
org.hibernate.annotations.ColumnDefault
;
...
...
atms-gen/src/main/java/pwc/taxtech/atms/vat/repository/EnterpriseAccountRepository.java
View file @
449aefa6
package
pwc
.
taxtech
.
atms
.
vat
.
repository
;
import
org.springframework.data.repository.CrudRepository
;
import
pwc.taxtech.
drop.vat
.EnterpriseAccount
;
import
pwc.taxtech.
atms.vat.entity
.EnterpriseAccount
;
public
interface
EnterpriseAccountRepository
extends
CrudRepository
<
EnterpriseAccount
,
String
>
{
}
\ No newline at end of file
atms-gen/src/main/java/pwc/taxtech/atms/vat/repository/OperationLogRepository.java
View file @
449aefa6
package
pwc
.
taxtech
.
atms
.
vat
.
repository
;
import
org.springframework.data.repository.CrudRepository
;
import
pwc.taxtech.
drop.vat
.OperationLog
;
import
pwc.taxtech.
atms.vat.entity
.OperationLog
;
public
interface
OperationLogRepository
extends
CrudRepository
<
OperationLog
,
String
>
{
}
\ No newline at end of file
atms-gen/src/main/java/pwc/taxtech/atms/vat/repository/StandardAccountRepository.java
View file @
449aefa6
package
pwc
.
taxtech
.
atms
.
vat
.
repository
;
import
org.springframework.data.repository.CrudRepository
;
import
pwc.taxtech.
drop.vat
.StandardAccount
;
import
pwc.taxtech.
atms.vat.entity
.StandardAccount
;
public
interface
StandardAccountRepository
extends
CrudRepository
<
StandardAccount
,
String
>
{
}
\ No newline at end of file
atms-gen/src/test/java/com/neo/ExtractCommitFromDiff.java
View file @
449aefa6
...
...
@@ -16,7 +16,7 @@ public class ExtractCommitFromDiff {
public
static
void
main
(
String
[]
args
)
{
try
(
BufferedReader
burReader
=
new
BufferedReader
(
new
InputStreamReader
(
new
FileInputStream
(
new
File
(
"C:\\Users\\Neo Wang\\workspace\\atms\\atms-gen\\target\\test-classes\\diff
.txt
"
)))))
{
"C:\\Users\\Neo Wang\\workspace\\atms\\atms-gen\\target\\test-classes\\diff"
)))))
{
String
line
=
null
;
List
<
Diff
>
diffs
=
new
ArrayList
<>();
Diff
diff
=
null
;
...
...
@@ -26,8 +26,8 @@ public class ExtractCommitFromDiff {
if
(
diff
!=
null
)
diffs
.
add
(
diff
);
diff
=
new
Diff
();
diff
.
fileName
=
line
.
substring
(
line
.
lastIndexOf
(
"/
atms-dao"
)
+
1
,
line
.
length
());
}
else
if
(
line
.
startsWith
(
"+"
)
||
line
.
sta
rtsWith
(
"-"
))
{
diff
.
fileName
=
line
.
substring
(
line
.
lastIndexOf
(
"/
atms-dao"
)
+
1
,
line
.
length
());
}
else
if
(
line
.
startsWith
(
"+"
)
||
line
.
s
rtsWith
(
"-"
))
{
if
(
line
.
startsWith
(
"++"
)
||
line
.
startsWith
(
"--"
))
continue
;
if
(
diff
==
null
)
{
System
.
out
.
println
(
line
);
...
...
@@ -40,8 +40,8 @@ public class ExtractCommitFromDiff {
List
<
Diff
>
orderDiffs
=
diffs
.
stream
().
sorted
(
Comparator
.
comparing
(
Diff:
:
length
)).
collect
(
Collectors
.
toList
());
orderDiffs
.
forEach
(
m
->
{
if
(
m
.
fileName
.
contains
(
"
Example"
)
)
{
System
.
out
.
println
(
m
.
fileName
);
if
(
m
.
fileName
.
contains
(
"
java"
)
)
{
System
.
out
.
println
(
m
.
toString
()
);
}
});
}
catch
(
FileNotFoundException
e
)
{
...
...
@@ -60,8 +60,7 @@ public class ExtractCommitFromDiff {
StringBuilder
builder
=
new
StringBuilder
(
fileName
);
builder
.
append
(
LINE_SPLITER
);
diffLine
.
forEach
(
m
->
{
if
(!
m
.
contains
(
"*"
)
&&
!
m
.
contains
(
"deleteByPrimaryKey"
)
&&
!
m
.
contains
(
"selectByPrimaryKey"
)
&&
!
m
.
contains
(
"import"
)
&&
m
.
trim
().
length
()
>
1
)
if
(!
m
.
contains
(
"*"
)
&&
!
m
.
contains
(
"import"
)
&&
m
.
trim
().
length
()
>
1
)
builder
.
append
(
m
).
append
(
LINE_SPLITER
);
});
...
...
@@ -70,10 +69,8 @@ public class ExtractCommitFromDiff {
public
int
length
()
{
return
diffLine
.
stream
().
filter
(
m
->
{
return
!
m
.
contains
(
"*"
)
&&
!
m
.
contains
(
"deleteByPrimaryKey"
)
&&
!
m
.
contains
(
"selectByPrimaryKey"
)
&&
!
m
.
contains
(
"import"
)
&&
m
.
trim
().
length
()
>
1
;
return
!
m
.
contains
(
"*"
)
&&
!
m
.
contains
(
"import"
)
&&
m
.
trim
().
length
()
>
1
;
}).
collect
(
Collectors
.
toList
()).
size
();
}
}
}
atms-gen/src/test/
java/
resources/databases-invalid-sql
→
atms-gen/src/test/resources/databases-invalid-sql
View file @
449aefa6
File moved
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