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
fd31b549
Commit
fd31b549
authored
Aug 14, 2020
by
lius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在goodsowner包下完成了货主联系客服的功能,
在carrier包下完成了司机联系客服的功能。
parent
b8012e99
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
401 additions
and
4 deletions
+401
-4
CarrierCustomerServiceController.java
.../carrier/controller/CarrierCustomerServiceController.java
+46
-0
CarrierCustomerServiceDao.java
...ustomer/module/carrier/dao/CarrierCustomerServiceDao.java
+19
-0
CarrierCustomerServiceEntity.java
...r/module/carrier/entity/CarrierCustomerServiceEntity.java
+66
-0
CarrierCustomerServiceService.java
...module/carrier/service/CarrierCustomerServiceService.java
+25
-0
CarrierCustomerServiceServiceImpl.java
...rrier/service/impl/CarrierCustomerServiceServiceImpl.java
+33
-0
GoodsOwnerCustomerServiceController.java
...owner/controller/GoodsOwnerCustomerServiceController.java
+46
-0
CustomerServiceDao.java
...ht/customer/module/goodsowner/dao/CustomerServiceDao.java
+19
-0
GoodsOwnerCustomerServiceEntity.java
...le/goodsowner/entity/GoodsOwnerCustomerServiceEntity.java
+66
-0
CustomerServiceService.java
...mer/module/goodsowner/service/CustomerServiceService.java
+25
-0
CustomerServiceServiceImpl.java
...e/goodsowner/service/impl/CustomerServiceServiceImpl.java
+32
-0
CustomerServiceVO.java
...ight/customer/module/goodsowner/vo/CustomerServiceVO.java
+20
-0
bootstrap.yml
src/main/resources/bootstrap.yml
+4
-4
No files found.
src/main/java/com/esv/freight/customer/module/carrier/controller/CarrierCustomerServiceController.java
0 → 100644
View file @
fd31b549
package
com
.
esv
.
freight
.
customer
.
module
.
carrier
.
controller
;
import
com.esv.freight.customer.common.response.EResponse
;
import
com.esv.freight.customer.module.carrier.service.CarrierCustomerServiceService
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerServiceVO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @description:
* @project: freight-customer-service
* @name: com.esv.freight.customer.module.carrier.controller.CarrierCustomerServiceController
* @author: 刘胜
* @email: <liusheng@esvtek.com>
* @createTime: 2020/8/12 17:27
* @version: 1.0
*/
@Slf4j
@RestController
@RequestMapping
(
"/carrier"
)
@Validated
public
class
CarrierCustomerServiceController
{
private
CarrierCustomerServiceService
serviceService
;
@Autowired
public
CarrierCustomerServiceController
(
CarrierCustomerServiceService
serviceService
)
{
this
.
serviceService
=
serviceService
;
}
/**
* description 获取司机客服电话
* param []
* return com.esv.freight.customer.common.response.EResponse
* author 刘胜
* createTime 2020/8/12 17:47
**/
@PostMapping
(
"/customerservice"
)
public
EResponse
getDriverCustomer
(){
CustomerServiceVO
customerServiceVO
=
serviceService
.
getDriverCustomer
();
return
EResponse
.
ok
(
customerServiceVO
);
}
}
src/main/java/com/esv/freight/customer/module/carrier/dao/CarrierCustomerServiceDao.java
0 → 100644
View file @
fd31b549
package
com
.
esv
.
freight
.
customer
.
module
.
carrier
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.esv.freight.customer.module.carrier.entity.CarrierCustomerServiceEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* @description: 司机客服信息表
* @project: freight-customer-service
* @name: com.esv.freight.customer.module.goodsowner.dao.CustomerServiceDao
* @author: 刘胜
* @email: <liusheng@esvtek.com>
* @createTime: 2020/8/12 15:25
* @version: 1.0
*/
@Mapper
public
interface
CarrierCustomerServiceDao
extends
BaseMapper
<
CarrierCustomerServiceEntity
>
{
}
src/main/java/com/esv/freight/customer/module/carrier/entity/CarrierCustomerServiceEntity.java
0 → 100644
View file @
fd31b549
package
com
.
esv
.
freight
.
customer
.
module
.
carrier
.
entity
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @description: 司机客服电话表
* @project: freight-customer-service
* @name: com.esv.freight.customer.module.carrier.entity.DriverCustomerEntity
* @author: 刘胜
* @email: <liusheng@esvtek.com>
* @createTime: 2020/8/12 16:38
* @version: 1.0
*/
@Data
@TableName
(
"driver_customer_service"
)
public
class
CarrierCustomerServiceEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
5630139812015991171L
;
/**
*
*/
@TableId
private
Long
id
;
/**
* 租户ID
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
Long
tenantId
;
/**
* 部门ID
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
Long
departmentId
;
/**
* 客服手机号
*/
private
String
phone
;
/**
* 创建者
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
String
createUser
;
/**
* 修改者
*/
@TableField
(
fill
=
FieldFill
.
INSERT_UPDATE
)
private
String
updateUser
;
/**
* 创建时间
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
Date
createTime
;
/**
* 修改时间
*/
@TableField
(
fill
=
FieldFill
.
INSERT_UPDATE
)
private
Date
updateTime
;
}
src/main/java/com/esv/freight/customer/module/carrier/service/CarrierCustomerServiceService.java
0 → 100644
View file @
fd31b549
package
com
.
esv
.
freight
.
customer
.
module
.
carrier
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.esv.freight.customer.module.carrier.entity.CarrierCustomerServiceEntity
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerServiceVO
;
/**
* @description:
* @project: freight-customer-service
* @name: com.esv.freight.customer.module.goodsowner.service.CustomerServiseService
* @author: 刘胜
* @email: <liusheng@esvtek.com>
* @createTime: 2020/8/12 15:16
* @version: 1.0
*/
public
interface
CarrierCustomerServiceService
extends
IService
<
CarrierCustomerServiceEntity
>
{
/**
* description 获取司机客服电话
* param []
* return com.esv.freight.customer.module.goodsowner.vo.CustomerServiceVO
* author 刘胜
* createTime 2020/8/12 15:19
**/
CustomerServiceVO
getDriverCustomer
();
}
src/main/java/com/esv/freight/customer/module/carrier/service/impl/CarrierCustomerServiceServiceImpl.java
0 → 100644
View file @
fd31b549
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
org.springframework.stereotype.Service
;
/**
* @description:
* @project: freight-customer-service
* @name: com.esv.freight.customer.module.goodsowner.service.impl.CustomerServiceServiceImpl
* @author: 刘胜
* @email: <liusheng@esvtek.com>
* @createTime: 2020/8/12 15:23
* @version: 1.0
*/
@Service
(
"carrierCustomerServiceService"
)
public
class
CarrierCustomerServiceServiceImpl
extends
ServiceImpl
<
CarrierCustomerServiceDao
,
CarrierCustomerServiceEntity
>
implements
CarrierCustomerServiceService
{
@Override
public
CustomerServiceVO
getDriverCustomer
()
{
CarrierCustomerServiceEntity
carrierCustomerServiceEntity
=
lambdaQuery
()
.
eq
(
CarrierCustomerServiceEntity:
:
getTenantId
,
2
)
.
one
();
CustomerServiceVO
customerServiceVO
=
new
CustomerServiceVO
();
customerServiceVO
.
setPhone
(
carrierCustomerServiceEntity
.
getPhone
());
return
customerServiceVO
;
}
}
src/main/java/com/esv/freight/customer/module/goodsowner/controller/GoodsOwnerCustomerServiceController.java
0 → 100644
View file @
fd31b549
package
com
.
esv
.
freight
.
customer
.
module
.
goodsowner
.
controller
;
import
com.esv.freight.customer.common.response.EResponse
;
import
com.esv.freight.customer.module.goodsowner.service.CustomerServiceService
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerServiceVO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @description:
* @project: freight-customer-service
* @name: com.esv.freight.customer.module.goodsowner.controller.GoodsOwnerCustomerServiceController
* @author: 刘胜
* @email: <liusheng@esvtek.com>
* @createTime: 2020/8/12 15:35
* @version: 1.0
*/
@Slf4j
@RestController
@RequestMapping
(
"/goodsowner"
)
@Validated
public
class
GoodsOwnerCustomerServiceController
{
private
CustomerServiceService
serviceService
;
@Autowired
public
GoodsOwnerCustomerServiceController
(
CustomerServiceService
serviceService
)
{
this
.
serviceService
=
serviceService
;
}
/**
* description 获取货主客服电话
* param []
* return com.esv.freight.customer.common.response.EResponse
* author 刘胜
* createTime 2020/8/12 17:47
**/
@PostMapping
(
"/customerservice"
)
public
EResponse
getGoodsCustomer
(){
CustomerServiceVO
customerServiceVO
=
serviceService
.
getGoodsCustomer
();
return
EResponse
.
ok
(
customerServiceVO
);
}
}
src/main/java/com/esv/freight/customer/module/goodsowner/dao/CustomerServiceDao.java
0 → 100644
View file @
fd31b549
package
com
.
esv
.
freight
.
customer
.
module
.
goodsowner
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.esv.freight.customer.module.goodsowner.entity.GoodsOwnerCustomerServiceEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* @description: 货主客服信息表
* @project: freight-customer-service
* @name: com.esv.freight.customer.module.goodsowner.dao.CustomerServiceDao
* @author: 刘胜
* @email: <liusheng@esvtek.com>
* @createTime: 2020/8/12 15:25
* @version: 1.0
*/
@Mapper
public
interface
CustomerServiceDao
extends
BaseMapper
<
GoodsOwnerCustomerServiceEntity
>
{
}
src/main/java/com/esv/freight/customer/module/goodsowner/entity/GoodsOwnerCustomerServiceEntity.java
0 → 100644
View file @
fd31b549
package
com
.
esv
.
freight
.
customer
.
module
.
goodsowner
.
entity
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @description: 货主客服电话表
* @project: freight-customer-service
* @name: com.esv.freight.customer.module.goodsowner.entity.GoodsOwnerCustomerServiceEntity
* @author: 刘胜
* @email: <liusheng@esvtek.com>
* @createTime: 2020/8/12 15:03
* @version: 1.0
*/
@Data
@TableName
(
"goods_owner_customer_service"
)
public
class
GoodsOwnerCustomerServiceEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
823795391097137993L
;
/**
*
*/
@TableId
private
Long
id
;
/**
* 租户ID
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
Long
tenantId
;
/**
* 部门ID
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
Long
departmentId
;
/**
* 客服手机号
*/
private
String
phone
;
/**
* 创建者
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
String
createUser
;
/**
* 修改者
*/
@TableField
(
fill
=
FieldFill
.
INSERT_UPDATE
)
private
String
updateUser
;
/**
* 创建时间
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
Date
createTime
;
/**
* 修改时间
*/
@TableField
(
fill
=
FieldFill
.
INSERT_UPDATE
)
private
Date
updateTime
;
}
src/main/java/com/esv/freight/customer/module/goodsowner/service/CustomerServiceService.java
0 → 100644
View file @
fd31b549
package
com
.
esv
.
freight
.
customer
.
module
.
goodsowner
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.esv.freight.customer.module.goodsowner.entity.GoodsOwnerCustomerServiceEntity
;
import
com.esv.freight.customer.module.goodsowner.vo.CustomerServiceVO
;
/**
* @description:
* @project: freight-customer-service
* @name: com.esv.freight.customer.module.goodsowner.service.CustomerServiseService
* @author: 刘胜
* @email: <liusheng@esvtek.com>
* @createTime: 2020/8/12 15:16
* @version: 1.0
*/
public
interface
CustomerServiceService
extends
IService
<
GoodsOwnerCustomerServiceEntity
>
{
/**
* description 获取货主客服电话
* param []
* return com.esv.freight.customer.module.goodsowner.vo.CustomerServiceVO
* author 刘胜
* createTime 2020/8/12 15:19
**/
CustomerServiceVO
getGoodsCustomer
();
}
src/main/java/com/esv/freight/customer/module/goodsowner/service/impl/CustomerServiceServiceImpl.java
0 → 100644
View file @
fd31b549
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
org.springframework.stereotype.Service
;
/**
* @description:
* @project: freight-customer-service
* @name: com.esv.freight.customer.module.goodsowner.service.impl.CustomerServiceServiceImpl
* @author: 刘胜
* @email: <liusheng@esvtek.com>
* @createTime: 2020/8/12 15:23
* @version: 1.0
*/
@Service
(
"goodsCustomerServiceService"
)
public
class
CustomerServiceServiceImpl
extends
ServiceImpl
<
CustomerServiceDao
,
GoodsOwnerCustomerServiceEntity
>
implements
CustomerServiceService
{
@Override
public
CustomerServiceVO
getGoodsCustomer
()
{
GoodsOwnerCustomerServiceEntity
customerServiceEntity
=
lambdaQuery
()
.
eq
(
GoodsOwnerCustomerServiceEntity:
:
getTenantId
,
2
)
.
one
();
CustomerServiceVO
customerServiceVO
=
new
CustomerServiceVO
();
customerServiceVO
.
setPhone
(
customerServiceEntity
.
getPhone
());
return
customerServiceVO
;
}
}
src/main/java/com/esv/freight/customer/module/goodsowner/vo/CustomerServiceVO.java
0 → 100644
View file @
fd31b549
package
com
.
esv
.
freight
.
customer
.
module
.
goodsowner
.
vo
;
import
lombok.Data
;
/**
* @description: 客服电话VO
* @project: app-service
* @name: com.esv.freight.app.module.customerservice.vo.CustomerServiceVO
* @author: 刘胜
* @email: <liusheng@esvtek.com>
* @createTime: 2020/8/12 13:26
* @version: 1.0
*/
@Data
public
class
CustomerServiceVO
{
/**
* 客服电话
*/
private
String
phone
;
}
src/main/resources/bootstrap.yml
View file @
fd31b549
...
...
@@ -3,14 +3,14 @@ server:
servlet
:
context-path
:
/customer
nacos
:
url
:
1
19.3.171.225
:8848
namespace
:
38512237-cfe2-44e5-a6ba-df156723d7b6
group
:
TES
T_GROUP
url
:
1
92.168.31.248
:8848
namespace
:
aad5aa26-5351-4e7a-a65e-ecb332f3c52c
group
:
DEFAUL
T_GROUP
spring
:
application
:
name
:
freight-customer-service
profiles
:
active
:
test
active
:
dev
cloud
:
nacos
:
discovery
:
...
...
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