|
|
@@ -63,7 +63,7 @@ public class SysCustomerDataPublicService {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public SysCustomerPublicSelectBO queryHeadSelectData() {
|
|
|
+ public SysCustomerPublicSelectBO queryHeadSelectData() throws BusinessException{
|
|
|
permissionService.publicPrivateCustomerPermission();
|
|
|
//返回数据对象
|
|
|
SysCustomerPublicSelectBO resultData = SysCustomerPublicSelectBO.builder().build();
|
|
|
@@ -112,7 +112,7 @@ public class SysCustomerDataPublicService {
|
|
|
* @param dto
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void adminInsertCustomerData(AdminSysCustomerDataInsertOrUpdateDTO dto) {
|
|
|
+ public void adminInsertCustomerData(AdminSysCustomerDataInsertOrUpdateDTO dto) throws BusinessException{
|
|
|
permissionService.publicPrivateCustomerPermission();
|
|
|
sysCustomerDataService.adminInsert(dto);
|
|
|
}
|
|
|
@@ -123,7 +123,7 @@ public class SysCustomerDataPublicService {
|
|
|
* @param dto
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void adminUpdateCustomerData(AdminSysCustomerDataInsertOrUpdateDTO dto) {
|
|
|
+ public void adminUpdateCustomerData(AdminSysCustomerDataInsertOrUpdateDTO dto) throws BusinessException{
|
|
|
permissionService.publicPrivateCustomerPermission();
|
|
|
sysCustomerDataService.adminUpdate(dto);
|
|
|
}
|
|
|
@@ -134,7 +134,7 @@ public class SysCustomerDataPublicService {
|
|
|
* @param id
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void adminDeleteCustomerData(Long id) {
|
|
|
+ public void adminDeleteCustomerData(Long id) throws BusinessException{
|
|
|
permissionService.publicPrivateCustomerPermission();
|
|
|
sysCustomerDataService.adminDelete(id);
|
|
|
}
|
|
|
@@ -145,7 +145,7 @@ public class SysCustomerDataPublicService {
|
|
|
* @param customerId
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void claimCustomer(Long customerId) {
|
|
|
+ public void claimCustomer(Long customerId) throws BusinessException{
|
|
|
permissionService.publicPrivateCustomerPermission();
|
|
|
sysCustomerDataService.claimCustomer(customerId);
|
|
|
}
|
|
|
@@ -158,7 +158,7 @@ public class SysCustomerDataPublicService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void adminInsertCustomerPerson(AdminSysCustomerPersonInsertOrUpdateDTO dto) {
|
|
|
+ public void adminInsertCustomerPerson(AdminSysCustomerPersonInsertOrUpdateDTO dto) throws BusinessException{
|
|
|
permissionService.publicPrivateCustomerPermission();
|
|
|
sysCustomerPersonService.adminInsert(dto);
|
|
|
}
|
|
|
@@ -170,7 +170,7 @@ public class SysCustomerDataPublicService {
|
|
|
* @param dto
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void adminUpdateCustomerPerson(AdminSysCustomerPersonInsertOrUpdateDTO dto) {
|
|
|
+ public void adminUpdateCustomerPerson(AdminSysCustomerPersonInsertOrUpdateDTO dto) throws BusinessException{
|
|
|
permissionService.publicPrivateCustomerPermission();
|
|
|
sysCustomerPersonService.adminUpdate(dto);
|
|
|
}
|
|
|
@@ -181,7 +181,7 @@ public class SysCustomerDataPublicService {
|
|
|
* @param id
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void adminDeleteCustomerPerson(Long id) {
|
|
|
+ public void adminDeleteCustomerPerson(Long id) throws BusinessException{
|
|
|
permissionService.publicPrivateCustomerPermission();
|
|
|
sysCustomerPersonService.adminDelete(id);
|
|
|
}
|
|
|
@@ -189,7 +189,7 @@ public class SysCustomerDataPublicService {
|
|
|
/**
|
|
|
* 查询公海客户联系人
|
|
|
*/
|
|
|
- public List<SysCustomerPersonBO> adminListCustomerPerson(CustomerPersonReqDTO dto) {
|
|
|
+ public List<SysCustomerPersonBO> adminListCustomerPerson(CustomerPersonReqDTO dto) throws BusinessException{
|
|
|
permissionService.publicPrivateCustomerPermission();
|
|
|
return sysCustomerPersonService.adminList(dto);
|
|
|
}
|
|
|
@@ -233,7 +233,7 @@ public class SysCustomerDataPublicService {
|
|
|
/**
|
|
|
* 操作日志列表查询
|
|
|
*/
|
|
|
- public SysCustomerOperLogDataBO queryOperLogData(AdminSysCustomerOperLogListDTO dto) {
|
|
|
+ public SysCustomerOperLogDataBO queryOperLogData(AdminSysCustomerOperLogListDTO dto) throws BusinessException{
|
|
|
permissionService.publicPrivateCustomerPermission();
|
|
|
List<Long> userIds = Lists.newArrayList();
|
|
|
if (dto.getOperUserId() != null) {
|