Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SuperHive
back-end
customer-service
Commits
74d9cf47
Commit
74d9cf47
authored
Aug 17, 2020
by
lius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了所有的customer service为 customer support
修改了固定的租户id2,改为动态获取的方式。
parent
fd31b549
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
103 additions
and
33 deletions
+103
-33
CarrierCustomerSupportController.java
.../carrier/controller/CarrierCustomerSupportController.java
+8
-8
CarrierCustomerSupportDao.java
...ustomer/module/carrier/dao/CarrierCustomerSupportDao.java
+2
-2
CarrierCustomerSupportEntity.java
...r/module/carrier/entity/CarrierCustomerSupportEntity.java
+2
-2
CarrierCustomerSupportService.java
...module/carrier/service/CarrierCustomerSupportService.java
+4
-4
CarrierCustomerSupportServiceImpl.java
...rrier/service/impl/CarrierCustomerSupportServiceImpl.java
+36
-0
GoodsOwnerCustomerSupportController.java
...owner/controller/GoodsOwnerCustomerSupportController.java
+8
-8
CustomerSupportDao.java
...ht/customer/module/goodsowner/dao/CustomerSupportDao.java
+2
-2
GoodsOwnerCustomerSupportEntity.java
...le/goodsowner/entity/GoodsOwnerCustomerSupportEntity.java
+2
-2
CustomerSupportService.java
...mer/module/goodsowner/service/CustomerSupportService.java
+4
-4
CustomerSupportServiceImpl.java
...e/goodsowner/service/impl/CustomerSupportServiceImpl.java
+34
-0
CustomerSupportVO.java
...ight/customer/module/goodsowner/vo/CustomerSupportVO.java
+1
-1
No files found.
src/main/java/com/esv/freight/customer/module/carrier/controller/CarrierCustomerS
ervice
Controller.java
→
src/main/java/com/esv/freight/customer/module/carrier/controller/CarrierCustomerS
upport
Controller.java
View file @
74d9cf47
package
com
.
esv
.
freight
.
customer
.
module
.
carrier
.
controller
;
import
com.esv.freight.customer.common.response.EResponse
;
import
com.esv.freight.customer.module.carrier.service.CarrierCustomerS
ervice
Service
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerS
ervice
VO
;
import
com.esv.freight.customer.module.carrier.service.CarrierCustomerS
upport
Service
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerS
upport
VO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
...
...
@@ -23,11 +23,11 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping
(
"/carrier"
)
@Validated
public
class
CarrierCustomerS
ervice
Controller
{
private
CarrierCustomerS
ervice
Service
serviceService
;
public
class
CarrierCustomerS
upport
Controller
{
private
CarrierCustomerS
upport
Service
serviceService
;
@Autowired
public
CarrierCustomerS
erviceController
(
CarrierCustomerService
Service
serviceService
)
{
public
CarrierCustomerS
upportController
(
CarrierCustomerSupport
Service
serviceService
)
{
this
.
serviceService
=
serviceService
;
}
...
...
@@ -38,9 +38,9 @@ public class CarrierCustomerServiceController {
* author 刘胜
* createTime 2020/8/12 17:47
**/
@PostMapping
(
"/customers
ervice
"
)
@PostMapping
(
"/customers
upport
"
)
public
EResponse
getDriverCustomer
(){
CustomerS
erviceVO
customerService
VO
=
serviceService
.
getDriverCustomer
();
return
EResponse
.
ok
(
customerS
ervice
VO
);
CustomerS
upportVO
customerSupport
VO
=
serviceService
.
getDriverCustomer
();
return
EResponse
.
ok
(
customerS
upport
VO
);
}
}
src/main/java/com/esv/freight/customer/module/carrier/dao/CarrierCustomerS
ervice
Dao.java
→
src/main/java/com/esv/freight/customer/module/carrier/dao/CarrierCustomerS
upport
Dao.java
View file @
74d9cf47
package
com
.
esv
.
freight
.
customer
.
module
.
carrier
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.esv.freight.customer.module.carrier.entity.CarrierCustomerS
ervice
Entity
;
import
com.esv.freight.customer.module.carrier.entity.CarrierCustomerS
upport
Entity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
...
...
@@ -14,6 +14,6 @@ import org.apache.ibatis.annotations.Mapper;
* @version: 1.0
*/
@Mapper
public
interface
CarrierCustomerS
erviceDao
extends
BaseMapper
<
CarrierCustomerService
Entity
>
{
public
interface
CarrierCustomerS
upportDao
extends
BaseMapper
<
CarrierCustomerSupport
Entity
>
{
}
src/main/java/com/esv/freight/customer/module/carrier/entity/CarrierCustomerS
ervice
Entity.java
→
src/main/java/com/esv/freight/customer/module/carrier/entity/CarrierCustomerS
upport
Entity.java
View file @
74d9cf47
...
...
@@ -19,8 +19,8 @@ import java.util.Date;
* @version: 1.0
*/
@Data
@TableName
(
"driver_customer_s
ervice
"
)
public
class
CarrierCustomerS
ervice
Entity
implements
Serializable
{
@TableName
(
"driver_customer_s
upport
"
)
public
class
CarrierCustomerS
upport
Entity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
5630139812015991171L
;
...
...
src/main/java/com/esv/freight/customer/module/carrier/service/CarrierCustomerS
ervice
Service.java
→
src/main/java/com/esv/freight/customer/module/carrier/service/CarrierCustomerS
upport
Service.java
View file @
74d9cf47
package
com
.
esv
.
freight
.
customer
.
module
.
carrier
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.esv.freight.customer.module.carrier.entity.CarrierCustomerS
ervice
Entity
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerS
ervice
VO
;
import
com.esv.freight.customer.module.carrier.entity.CarrierCustomerS
upport
Entity
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerS
upport
VO
;
/**
* @description:
...
...
@@ -13,7 +13,7 @@ import com.esv.freight.customer.module.goodsowner.vo.CustomerServiceVO;
* @createTime: 2020/8/12 15:16
* @version: 1.0
*/
public
interface
CarrierCustomerS
erviceService
extends
IService
<
CarrierCustomerService
Entity
>
{
public
interface
CarrierCustomerS
upportService
extends
IService
<
CarrierCustomerSupport
Entity
>
{
/**
* description 获取司机客服电话
* param []
...
...
@@ -21,5 +21,5 @@ public interface CarrierCustomerServiceService extends IService<CarrierCustomerS
* author 刘胜
* createTime 2020/8/12 15:19
**/
CustomerS
ervice
VO
getDriverCustomer
();
CustomerS
upport
VO
getDriverCustomer
();
}
src/main/java/com/esv/freight/customer/module/carrier/service/impl/CarrierCustomerS
ervice
ServiceImpl.java
→
src/main/java/com/esv/freight/customer/module/carrier/service/impl/CarrierCustomerS
upport
ServiceImpl.java
View file @
74d9cf47
package
com
.
esv
.
freight
.
customer
.
module
.
carrier
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.esv.freight.customer.module.carrier.dao.CarrierCustomerServiceDao
;
import
com.esv.freight.customer.module.carrier.entity.CarrierCustomerServiceEntity
;
import
com.esv.freight.customer.module.carrier.service.CarrierCustomerServiceService
;
import
com.esv.freight.customer.module.goodsowner.entity.GoodsOwnerCustomerServiceEntity
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerServiceVO
;
import
com.esv.freight.customer.common.util.ReqUtils
;
import
com.esv.freight.customer.module.carrier.dao.CarrierCustomerSupportDao
;
import
com.esv.freight.customer.module.carrier.entity.CarrierCustomerSupportEntity
;
import
com.esv.freight.customer.module.carrier.service.CarrierCustomerSupportService
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerSupportVO
;
import
jdk.nashorn.internal.parser.Token
;
import
org.springframework.stereotype.Service
;
...
...
@@ -18,16 +19,18 @@ import org.springframework.stereotype.Service;
* @createTime: 2020/8/12 15:23
* @version: 1.0
*/
@Service
(
"carrierCustomerS
ervice
Service"
)
public
class
CarrierCustomerS
erviceServiceImpl
extends
ServiceImpl
<
CarrierCustomerServiceDao
,
CarrierCustomerServiceEntity
>
implements
CarrierCustomerService
Service
{
@Service
(
"carrierCustomerS
upport
Service"
)
public
class
CarrierCustomerS
upportServiceImpl
extends
ServiceImpl
<
CarrierCustomerSupportDao
,
CarrierCustomerSupportEntity
>
implements
CarrierCustomerSupport
Service
{
@Override
public
CustomerServiceVO
getDriverCustomer
()
{
CarrierCustomerServiceEntity
carrierCustomerServiceEntity
=
lambdaQuery
()
.
eq
(
CarrierCustomerServiceEntity:
:
getTenantId
,
2
)
public
CustomerSupportVO
getDriverCustomer
()
{
String
tenantId
=
ReqUtils
.
getRequestHeader
(
"esv_tenant"
);
CarrierCustomerSupportEntity
carrierCustomerSupportEntity
=
lambdaQuery
()
.
eq
(
CarrierCustomerSupportEntity:
:
getTenantId
,
tenantId
)
.
one
();
CustomerS
erviceVO
customerServiceVO
=
new
CustomerService
VO
();
customerS
erviceVO
.
setPhone
(
carrierCustomerService
Entity
.
getPhone
());
return
customerS
ervice
VO
;
CustomerS
upportVO
customerSupportVO
=
new
CustomerSupport
VO
();
customerS
upportVO
.
setPhone
(
carrierCustomerSupport
Entity
.
getPhone
());
return
customerS
upport
VO
;
}
}
src/main/java/com/esv/freight/customer/module/goodsowner/controller/GoodsOwnerCustomerS
ervice
Controller.java
→
src/main/java/com/esv/freight/customer/module/goodsowner/controller/GoodsOwnerCustomerS
upport
Controller.java
View file @
74d9cf47
package
com
.
esv
.
freight
.
customer
.
module
.
goodsowner
.
controller
;
import
com.esv.freight.customer.common.response.EResponse
;
import
com.esv.freight.customer.module.goodsowner.service.CustomerS
ervice
Service
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerS
ervice
VO
;
import
com.esv.freight.customer.module.goodsowner.service.CustomerS
upport
Service
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerS
upport
VO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
...
...
@@ -23,11 +23,11 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping
(
"/goodsowner"
)
@Validated
public
class
GoodsOwnerCustomerS
ervice
Controller
{
private
CustomerS
ervice
Service
serviceService
;
public
class
GoodsOwnerCustomerS
upport
Controller
{
private
CustomerS
upport
Service
serviceService
;
@Autowired
public
GoodsOwnerCustomerS
erviceController
(
CustomerService
Service
serviceService
)
{
public
GoodsOwnerCustomerS
upportController
(
CustomerSupport
Service
serviceService
)
{
this
.
serviceService
=
serviceService
;
}
...
...
@@ -38,9 +38,9 @@ public class GoodsOwnerCustomerServiceController {
* author 刘胜
* createTime 2020/8/12 17:47
**/
@PostMapping
(
"/customers
ervice
"
)
@PostMapping
(
"/customers
upport
"
)
public
EResponse
getGoodsCustomer
(){
CustomerS
erviceVO
customerService
VO
=
serviceService
.
getGoodsCustomer
();
return
EResponse
.
ok
(
customerS
ervice
VO
);
CustomerS
upportVO
customerSupport
VO
=
serviceService
.
getGoodsCustomer
();
return
EResponse
.
ok
(
customerS
upport
VO
);
}
}
src/main/java/com/esv/freight/customer/module/goodsowner/dao/CustomerS
ervice
Dao.java
→
src/main/java/com/esv/freight/customer/module/goodsowner/dao/CustomerS
upport
Dao.java
View file @
74d9cf47
package
com
.
esv
.
freight
.
customer
.
module
.
goodsowner
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.esv.freight.customer.module.goodsowner.entity.GoodsOwnerCustomerS
ervice
Entity
;
import
com.esv.freight.customer.module.goodsowner.entity.GoodsOwnerCustomerS
upport
Entity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
...
...
@@ -14,6 +14,6 @@ import org.apache.ibatis.annotations.Mapper;
* @version: 1.0
*/
@Mapper
public
interface
CustomerS
erviceDao
extends
BaseMapper
<
GoodsOwnerCustomerService
Entity
>
{
public
interface
CustomerS
upportDao
extends
BaseMapper
<
GoodsOwnerCustomerSupport
Entity
>
{
}
src/main/java/com/esv/freight/customer/module/goodsowner/entity/GoodsOwnerCustomerS
ervice
Entity.java
→
src/main/java/com/esv/freight/customer/module/goodsowner/entity/GoodsOwnerCustomerS
upport
Entity.java
View file @
74d9cf47
...
...
@@ -19,8 +19,8 @@ import java.util.Date;
* @version: 1.0
*/
@Data
@TableName
(
"goods_owner_customer_s
ervice
"
)
public
class
GoodsOwnerCustomerS
ervice
Entity
implements
Serializable
{
@TableName
(
"goods_owner_customer_s
upport
"
)
public
class
GoodsOwnerCustomerS
upport
Entity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
823795391097137993L
;
/**
...
...
src/main/java/com/esv/freight/customer/module/goodsowner/service/CustomerS
ervice
Service.java
→
src/main/java/com/esv/freight/customer/module/goodsowner/service/CustomerS
upport
Service.java
View file @
74d9cf47
package
com
.
esv
.
freight
.
customer
.
module
.
goodsowner
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.esv.freight.customer.module.goodsowner.entity.GoodsOwnerCustomerS
ervice
Entity
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerS
ervice
VO
;
import
com.esv.freight.customer.module.goodsowner.entity.GoodsOwnerCustomerS
upport
Entity
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerS
upport
VO
;
/**
* @description:
...
...
@@ -13,7 +13,7 @@ import com.esv.freight.customer.module.goodsowner.vo.CustomerServiceVO;
* @createTime: 2020/8/12 15:16
* @version: 1.0
*/
public
interface
CustomerS
erviceService
extends
IService
<
GoodsOwnerCustomerService
Entity
>
{
public
interface
CustomerS
upportService
extends
IService
<
GoodsOwnerCustomerSupport
Entity
>
{
/**
* description 获取货主客服电话
* param []
...
...
@@ -21,5 +21,5 @@ public interface CustomerServiceService extends IService<GoodsOwnerCustomerServi
* author 刘胜
* createTime 2020/8/12 15:19
**/
CustomerS
ervice
VO
getGoodsCustomer
();
CustomerS
upport
VO
getGoodsCustomer
();
}
src/main/java/com/esv/freight/customer/module/goodsowner/service/impl/CustomerS
ervice
ServiceImpl.java
→
src/main/java/com/esv/freight/customer/module/goodsowner/service/impl/CustomerS
upport
ServiceImpl.java
View file @
74d9cf47
package
com
.
esv
.
freight
.
customer
.
module
.
goodsowner
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.esv.freight.customer.module.goodsowner.dao.CustomerServiceDao
;
import
com.esv.freight.customer.module.goodsowner.entity.GoodsOwnerCustomerServiceEntity
;
import
com.esv.freight.customer.module.goodsowner.service.CustomerServiceService
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerServiceVO
;
import
com.esv.freight.customer.common.util.ReqUtils
;
import
com.esv.freight.customer.module.goodsowner.dao.CustomerSupportDao
;
import
com.esv.freight.customer.module.goodsowner.entity.GoodsOwnerCustomerSupportEntity
;
import
com.esv.freight.customer.module.goodsowner.service.CustomerSupportService
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerSupportVO
;
import
org.springframework.stereotype.Service
;
...
...
@@ -17,16 +18,17 @@ import org.springframework.stereotype.Service;
* @createTime: 2020/8/12 15:23
* @version: 1.0
*/
@Service
(
"goodsCustomerS
ervice
Service"
)
public
class
CustomerS
erviceServiceImpl
extends
ServiceImpl
<
CustomerServiceDao
,
GoodsOwnerCustomerServiceEntity
>
implements
CustomerService
Service
{
@Service
(
"goodsCustomerS
upport
Service"
)
public
class
CustomerS
upportServiceImpl
extends
ServiceImpl
<
CustomerSupportDao
,
GoodsOwnerCustomerSupportEntity
>
implements
CustomerSupport
Service
{
@Override
public
CustomerServiceVO
getGoodsCustomer
()
{
GoodsOwnerCustomerServiceEntity
customerServiceEntity
=
lambdaQuery
()
.
eq
(
GoodsOwnerCustomerServiceEntity:
:
getTenantId
,
2
)
public
CustomerSupportVO
getGoodsCustomer
()
{
String
tenantId
=
ReqUtils
.
getRequestHeader
(
"esv_tenant"
);
GoodsOwnerCustomerSupportEntity
customerServiceEntity
=
lambdaQuery
()
.
eq
(
GoodsOwnerCustomerSupportEntity:
:
getTenantId
,
tenantId
)
.
one
();
CustomerS
erviceVO
customerServiceVO
=
new
CustomerService
VO
();
customerS
ervice
VO
.
setPhone
(
customerServiceEntity
.
getPhone
());
return
customerS
ervice
VO
;
CustomerS
upportVO
customerSupportVO
=
new
CustomerSupport
VO
();
customerS
upport
VO
.
setPhone
(
customerServiceEntity
.
getPhone
());
return
customerS
upport
VO
;
}
}
src/main/java/com/esv/freight/customer/module/goodsowner/vo/CustomerS
ervice
VO.java
→
src/main/java/com/esv/freight/customer/module/goodsowner/vo/CustomerS
upport
VO.java
View file @
74d9cf47
...
...
@@ -12,7 +12,7 @@ import lombok.Data;
* @version: 1.0
*/
@Data
public
class
CustomerS
ervice
VO
{
public
class
CustomerS
upport
VO
{
/**
* 客服电话
*/
...
...
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