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
0ad0d662
Commit
0ad0d662
authored
Oct 09, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEL] delete customer service interface
parent
0f6af6c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
50 deletions
+15
-50
CustomerController.java
.../java/pwc/taxtech/atms/controller/CustomerController.java
+2
-2
CustomerService.java
...c/main/java/pwc/taxtech/atms/service/CustomerService.java
+0
-26
CustomerServiceImpl.java
...va/pwc/taxtech/atms/service/impl/CustomerServiceImpl.java
+13
-22
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/CustomerController.java
View file @
0ad0d662
...
...
@@ -25,7 +25,7 @@ import pwc.taxtech.atms.dto.customer.CustomerValidateInfoDto;
import
pwc.taxtech.atms.dto.vatdto.CustomsInvoiceDto
;
import
pwc.taxtech.atms.dto.vatdto.CustomsInvoiceFilter
;
import
pwc.taxtech.atms.dto.vatdto.JsonCustomsInvoice
;
import
pwc.taxtech.atms.service.
CustomerService
;
import
pwc.taxtech.atms.service.
impl.CustomerServiceImpl
;
import
java.io.IOException
;
import
java.io.InputStream
;
...
...
@@ -43,7 +43,7 @@ public class CustomerController {
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
CustomerController
.
class
);
@Autowired
private
CustomerService
customerService
;
private
CustomerService
Impl
customerService
;
@ApiOperation
(
value
=
"财务数据客户增加"
)
// @ApiImplicitParam(name = "customerDtoList", value = "customerDto List",
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/CustomerService.java
deleted
100644 → 0
View file @
0f6af6c2
package
pwc
.
taxtech
.
atms
.
service
;
import
java.io.InputStream
;
import
java.util.List
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.customer.CustomerDto
;
import
pwc.taxtech.atms.dto.customer.CustomerValidateInfoDto
;
import
pwc.taxtech.atms.dto.vatdto.CustomsInvoiceDto
;
public
interface
CustomerService
{
List
<
OperationResultDto
<
CustomerDto
>>
addRange
(
List
<
CustomerDto
>
customerDtoList
);
CustomerValidateInfoDto
getByEnterpriseAccountSetId
(
String
setId
);
List
<
CustomerDto
>
getCustomer
();
OperationResultDto
<
String
>
deleteRange
(
List
<
CustomerDto
>
customerDtoList
);
List
<
OperationResultDto
<
CustomerDto
>>
updateRange
(
List
<
CustomerDto
>
customerDtoList
);
Object
upload
(
InputStream
inputStream
,
String
fileName
,
String
action
,
String
enterpriseAccountId
);
List
<
CustomsInvoiceDto
>
GetCustomsInvoicesByPeriodIds
(
int
fromPeriod
,
int
toPeriod
);
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CustomerServiceImpl.java
View file @
0ad0d662
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
java.io.File
;
import
java.io.InputStream
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.Comparator
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
org.apache.commons.io.FileUtils
;
import
org.nutz.lang.Files
;
import
org.slf4j.Logger
;
...
...
@@ -19,9 +9,6 @@ import org.springframework.stereotype.Service;
import
org.springframework.util.Assert
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.StringUtils
;
import
pwc.taxtech.atms.dto.vatdto.CustomsInvoiceDto
;
import
pwc.taxtech.atms.exception.ApplicationException
;
import
pwc.taxtech.atms.common.AuthUserHelper
;
import
pwc.taxtech.atms.common.CommonConstants
;
import
pwc.taxtech.atms.common.CommonUtils
;
...
...
@@ -37,20 +24,31 @@ import pwc.taxtech.atms.dto.UpdateLogParams;
import
pwc.taxtech.atms.dto.ValidateInfoDto
;
import
pwc.taxtech.atms.dto.customer.CustomerDto
;
import
pwc.taxtech.atms.dto.customer.CustomerValidateInfoDto
;
import
pwc.taxtech.atms.dto.vatdto.CustomsInvoiceDto
;
import
pwc.taxtech.atms.entity.Customer
;
import
pwc.taxtech.atms.entity.CustomerExample
;
import
pwc.taxtech.atms.entity.CustomerExample.Criteria
;
import
pwc.taxtech.atms.entity.EnterpriseAccountSet
;
import
pwc.taxtech.atms.
service.CustomerService
;
import
pwc.taxtech.atms.
exception.ApplicationException
;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.vat.dao.CustomsInvoiceMapper
;
import
pwc.taxtech.atms.vat.entity.CustomsInvoice
;
import
pwc.taxtech.atms.vat.entity.CustomsInvoiceExample
;
import
java.io.File
;
import
java.io.InputStream
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.Comparator
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
*/
@Service
public
class
CustomerServiceImpl
implements
CustomerService
{
public
class
CustomerServiceImpl
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
CustomerServiceImpl
.
class
);
...
...
@@ -71,7 +69,6 @@ public class CustomerServiceImpl implements CustomerService {
@Autowired
private
CustomsInvoiceMapper
customsInvoiceMapper
;
@Override
public
List
<
OperationResultDto
<
CustomerDto
>>
addRange
(
List
<
CustomerDto
>
customerDtoList
)
{
logger
.
debug
(
"CustomerService addRange"
);
// logger.debug("customer list to add:{}", JSON.toJSONString(customerDtoList, true));
...
...
@@ -113,7 +110,6 @@ public class CustomerServiceImpl implements CustomerService {
operationLogDto
.
setLogType
(
OperateLogType
.
OperationLogBasicData
.
value
());
}
@Override
public
List
<
CustomerDto
>
getCustomer
()
{
logger
.
debug
(
"CustomerService getCustomer"
);
List
<
CustomerDto
>
customerDtoList
=
new
ArrayList
<>();
...
...
@@ -128,7 +124,6 @@ public class CustomerServiceImpl implements CustomerService {
return
customerDtoList
;
}
@Override
public
OperationResultDto
<
String
>
deleteRange
(
List
<
CustomerDto
>
customerDtoList
)
{
logger
.
debug
(
"CustomerService deleteRange"
);
// logger.debug("customer list to delete:{}", JSON.toJSONString(customerDtoList, true));
...
...
@@ -158,7 +153,6 @@ public class CustomerServiceImpl implements CustomerService {
return
operationResultDto
;
}
@Override
public
List
<
OperationResultDto
<
CustomerDto
>>
updateRange
(
List
<
CustomerDto
>
customerDtoList
)
{
logger
.
debug
(
"CustomerService updateRange"
);
// logger.debug("customer list to update:{}", JSON.toJSONString(customerDtoList, true));
...
...
@@ -214,7 +208,6 @@ public class CustomerServiceImpl implements CustomerService {
}
@SuppressWarnings
(
"rawtypes"
)
@Override
public
Object
upload
(
InputStream
inputStream
,
String
fileName
,
String
action
,
String
enterpriseAccountId
)
{
logger
.
debug
(
"导入excel文件开始, action:{}, enterpriseAccountId:{}"
,
action
,
enterpriseAccountId
);
String
filePath
=
FileUtils
.
getTempDirectory
().
getAbsolutePath
()
+
File
.
separator
+
"customer"
+
File
.
separator
...
...
@@ -257,7 +250,6 @@ public class CustomerServiceImpl implements CustomerService {
return
finalResult
;
}
@Override
public
List
<
CustomsInvoiceDto
>
GetCustomsInvoicesByPeriodIds
(
int
fromPeriod
,
int
toPeriod
)
{
CustomsInvoiceExample
example
=
new
CustomsInvoiceExample
();
example
.
createCriteria
().
andPeriodIdGreaterThanOrEqualTo
(
fromPeriod
).
andPeriodIdLessThanOrEqualTo
(
toPeriod
);
...
...
@@ -383,7 +375,6 @@ public class CustomerServiceImpl implements CustomerService {
return
operationLogDto
;
}
@Override
public
CustomerValidateInfoDto
getByEnterpriseAccountSetId
(
String
setId
)
{
logger
.
debug
(
"CustomerService getByEnterpriseAccountSetId"
);
logger
.
debug
(
"get customer by set id, id: {}"
,
setId
);
...
...
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