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
446acf7e
Commit
446acf7e
authored
Aug 08, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add invoice and voucher datasource manually --part2 ---not finished yet
parent
233eaf29
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
17 deletions
+18
-17
FtpService.java
...src/main/java/pwc/taxtech/atms/common/ftp/FtpService.java
+1
-1
TemplateGroupController.java
.../pwc/taxtech/atms/controller/TemplateGroupController.java
+1
-1
TemplateGroupDto.java
.../src/main/java/pwc/taxtech/atms/dto/TemplateGroupDto.java
+6
-6
CellTemplateServiceImpl.java
...wc/taxtech/atms/service/impl/CellTemplateServiceImpl.java
+2
-1
TemplateGroupServiceImpl.java
...c/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
+5
-5
KeyValueReferenceMapper.xml
...esources/pwc/taxtech/atms/dao/KeyValueReferenceMapper.xml
+2
-2
OrganizationServiceTemplateGroupMapper.xml
...xtech/atms/dao/OrganizationServiceTemplateGroupMapper.xml
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/ftp/FtpService.java
View file @
446acf7e
...
...
@@ -122,7 +122,7 @@ public class FtpService {
if
(
StringUtils
.
isNotBlank
(
config
.
getFtpHost
()))
{
CloseableHttpClient
client
=
HttpClients
.
createDefault
();
HttpGet
httpGet
=
new
HttpGet
(
requestPrefix
+
config
.
getFtpHost
()
+
":
8000
/"
+
fileUrl
);
HttpGet
httpGet
=
new
HttpGet
(
requestPrefix
+
config
.
getFtpHost
()
+
":
1886
/"
+
fileUrl
);
CloseableHttpResponse
response
=
null
;
try
{
response
=
client
.
execute
(
httpGet
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/TemplateGroupController.java
View file @
446acf7e
...
...
@@ -59,7 +59,7 @@ public class TemplateGroupController {
if
(
pathList
!=
null
&&
pathList
.
size
()
>
0
)
{
for
(
String
path
:
pathList
)
{
try
{
ftpService
.
delete
(
path
);
//
ftpService.delete(path);
}
catch
(
Exception
e
)
{
}
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/TemplateGroupDto.java
View file @
446acf7e
...
...
@@ -6,12 +6,12 @@ import java.util.List;
/** @see PwC.Tax.Tech.Atms.Application.Dto\TaxAdminDto\TemplateGroupDto.cs */
public
class
TemplateGroupDto
{
private
Lo
ng
id
;
private
Stri
ng
id
;
private
String
name
;
private
String
serviceTypeId
;
private
Date
updateTime
;
private
Date
createTime
;
private
Lo
ng
copyFrom
;
private
Stri
ng
copyFrom
;
private
String
industryIds
;
private
Integer
payTaxType
;
private
Integer
groupType
;
...
...
@@ -19,11 +19,11 @@ public class TemplateGroupDto {
private
List
<
TemplateFormulaDto
>
changedFormulas
;
private
List
<
String
>
sheetNameList
;
public
Lo
ng
getId
()
{
public
Stri
ng
getId
()
{
return
id
;
}
public
void
setId
(
Lo
ng
iD
)
{
public
void
setId
(
Stri
ng
iD
)
{
id
=
iD
;
}
...
...
@@ -59,11 +59,11 @@ public class TemplateGroupDto {
this
.
createTime
=
createTime
;
}
public
Lo
ng
getCopyFrom
()
{
public
Stri
ng
getCopyFrom
()
{
return
copyFrom
;
}
public
void
setCopyFrom
(
Lo
ng
copyFrom
)
{
public
void
setCopyFrom
(
Stri
ng
copyFrom
)
{
this
.
copyFrom
=
copyFrom
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CellTemplateServiceImpl.java
View file @
446acf7e
...
...
@@ -241,7 +241,8 @@ public class CellTemplateServiceImpl extends AbstractService implements CellTemp
sb
.
append
(
s
).
append
(
","
);
}
String
tempStr
=
sb
.
toString
();
return
tempStr
.
substring
(
0
,
tempStr
.
length
()
-
2
);
return
StringUtils
.
removeEnd
(
tempStr
,
","
);
// return tempStr.substring(0, tempStr.length() - 2);
}
return
null
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
View file @
446acf7e
...
...
@@ -94,9 +94,9 @@ public class TemplateGroupServiceImpl extends AbstractService implements Templat
@Override
public
OperationResultDto
<
Object
>
updateTemplateGroupName
(
TemplateGroupDto
templateGroupDto
)
{
TemplateGroup
entity
=
templateGroupMapper
.
selectByPrimaryKey
(
templateGroupDto
.
getId
(
));
TemplateGroup
entity
=
templateGroupMapper
.
selectByPrimaryKey
(
Long
.
parseLong
(
templateGroupDto
.
getId
()
));
TemplateGroupExample
example
=
new
TemplateGroupExample
();
example
.
createCriteria
().
andNameEqualTo
(
templateGroupDto
.
getName
()).
andIdNotEqualTo
(
templateGroupDto
.
getId
(
)).
andServiceTypeIdEqualTo
(
entity
.
getServiceTypeId
()).
andIndustryIdsEqualTo
(
entity
.
getIndustryIds
()).
andPayTaxTypeEqualTo
(
entity
.
getPayTaxType
());
example
.
createCriteria
().
andNameEqualTo
(
templateGroupDto
.
getName
()).
andIdNotEqualTo
(
Long
.
parseLong
(
templateGroupDto
.
getId
()
)).
andServiceTypeIdEqualTo
(
entity
.
getServiceTypeId
()).
andIndustryIdsEqualTo
(
entity
.
getIndustryIds
()).
andPayTaxTypeEqualTo
(
entity
.
getPayTaxType
());
List
<
TemplateGroup
>
templateGroups
=
templateGroupMapper
.
selectByExample
(
example
);
if
(!
templateGroups
.
isEmpty
())
{
OperationResultDto
<
Object
>
result
=
new
OperationResultDto
<>();
...
...
@@ -114,7 +114,7 @@ public class TemplateGroupServiceImpl extends AbstractService implements Templat
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
rollbackFor
=
Exception
.
class
)
public
OperationResultDto
<
Object
>
deleteTemplateGroup
(
TemplateGroupDto
templateGroupDto
)
{
OperationResultDto
<
Object
>
result
=
new
OperationResultDto
<>();
TemplateGroup
templateGroupDb
=
templateGroupMapper
.
selectByPrimaryKey
(
templateGroupDto
.
getId
(
));
TemplateGroup
templateGroupDb
=
templateGroupMapper
.
selectByPrimaryKey
(
Long
.
parseLong
(
templateGroupDto
.
getId
()
));
if
(
templateGroupDb
.
getIsSystemType
())
{
result
.
setResult
(
false
);
...
...
@@ -122,7 +122,7 @@ public class TemplateGroupServiceImpl extends AbstractService implements Templat
return
result
;
}
List
<
String
>
userOranizationNameList
=
organizationServiceTemplateGroupMapper
.
getOrgnizationServiceTemplateGroupOrgNames
(
templateGroupDto
.
getId
(
));
List
<
String
>
userOranizationNameList
=
organizationServiceTemplateGroupMapper
.
getOrgnizationServiceTemplateGroupOrgNames
(
Long
.
parseLong
(
templateGroupDto
.
getId
()
));
if
(
userOranizationNameList
!=
null
&&
!
userOranizationNameList
.
isEmpty
())
{
result
.
setResult
(
false
);
result
.
setResultMsg
(
TemplateGroupMessage
.
ORGANIZATION_USED_TEMPLATE_GROUP
);
...
...
@@ -382,7 +382,7 @@ public class TemplateGroupServiceImpl extends AbstractService implements Templat
}
try
{
String
uid
=
authUserHelper
.
getCurrentUserID
();
TemplateGroup
templateGroup
=
templateGroupMapper
.
selectByPrimaryKey
(
templateGroupDto
.
getCopyFrom
(
));
TemplateGroup
templateGroup
=
templateGroupMapper
.
selectByPrimaryKey
(
Long
.
parseLong
(
templateGroupDto
.
getCopyFrom
()
));
Long
newGroupID
=
distributedIDService
.
nextId
();
Long
groupID
=
templateGroup
.
getId
();
Date
now
=
new
Date
();
...
...
atms-api/src/main/resources/pwc/taxtech/atms/dao/KeyValueReferenceMapper.xml
View file @
446acf7e
...
...
@@ -328,9 +328,9 @@ WHERE
b.ID
FROM
KeyValueReference b
INNER JOIN
CellT
emplate c ON b.CellTemplateID = c.ID
INNER JOIN
cell_t
emplate c ON b.CellTemplateID = c.ID
WHERE
c.
ReportTemplateID
= #{templateDbID,jdbcType=VARCHAR}
c.
report_template_id
= #{templateDbID,jdbcType=VARCHAR}
) x)
</delete>
<resultMap
id=
"financialStatementDetail"
type=
"pwc.taxtech.atms.dto.FinancialStatementDetail"
>
...
...
atms-api/src/main/resources/pwc/taxtech/atms/dao/OrganizationServiceTemplateGroupMapper.xml
View file @
446acf7e
...
...
@@ -293,7 +293,7 @@
m.organization_id = #{orgId}
order by m.service_type_id
</select>
<select
id=
"getOrgnizationServiceTemplateGroupOrgNames"
parameterType=
"java.lang.
Stri
ng"
resultType=
"java.lang.String"
>
<select
id=
"getOrgnizationServiceTemplateGroupOrgNames"
parameterType=
"java.lang.
Lo
ng"
resultType=
"java.lang.String"
>
SELECT
q.Name
FROM
...
...
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