|
@@ -10,6 +10,7 @@ import com.jtzx.crm.module.sys.common.QueueCommon;
|
|
|
import com.jtzx.crm.module.sys.entity.*;
|
|
import com.jtzx.crm.module.sys.entity.*;
|
|
|
import com.jtzx.crm.module.sys.mapper.*;
|
|
import com.jtzx.crm.module.sys.mapper.*;
|
|
|
import com.jtzx.crm.module.sys.model.request.AdminSysCustomerFollowInsertOrUpdateDTO;
|
|
import com.jtzx.crm.module.sys.model.request.AdminSysCustomerFollowInsertOrUpdateDTO;
|
|
|
|
|
+import com.jtzx.crm.module.sys.model.request.CannelOrderDTO;
|
|
|
import com.jtzx.crm.module.sys.model.response.CustomerFollowOverViewBO;
|
|
import com.jtzx.crm.module.sys.model.response.CustomerFollowOverViewBO;
|
|
|
import com.jtzx.crm.module.sys.model.response.CustomerProductBO;
|
|
import com.jtzx.crm.module.sys.model.response.CustomerProductBO;
|
|
|
import com.jtzx.crm.module.sys.model.response.CustomerProductOverViewBO;
|
|
import com.jtzx.crm.module.sys.model.response.CustomerProductOverViewBO;
|
|
@@ -93,9 +94,9 @@ public class SysCustomerFollowService {
|
|
|
/**
|
|
/**
|
|
|
* 我的客户页面,预约待办列表去消预约操作
|
|
* 我的客户页面,预约待办列表去消预约操作
|
|
|
*/
|
|
*/
|
|
|
- public void cancelOrder(Long id) {
|
|
|
|
|
|
|
+ public void cancelOrder(CannelOrderDTO dto) {
|
|
|
permissionService.publicPrivateCustomerPermission();
|
|
permissionService.publicPrivateCustomerPermission();
|
|
|
- SysCustomerFollowEntity sysCustomerFollowEntity = sysCustomerFollowMapper.selectById(id);
|
|
|
|
|
|
|
+ SysCustomerFollowEntity sysCustomerFollowEntity = sysCustomerFollowMapper.selectById(dto.getId());
|
|
|
if (sysCustomerFollowEntity == null) {
|
|
if (sysCustomerFollowEntity == null) {
|
|
|
throw new RuntimeException("预约数据不存在");
|
|
throw new RuntimeException("预约数据不存在");
|
|
|
}
|
|
}
|
|
@@ -106,6 +107,7 @@ public class SysCustomerFollowService {
|
|
|
throw new RuntimeException("非本人预约不能取消");
|
|
throw new RuntimeException("非本人预约不能取消");
|
|
|
}
|
|
}
|
|
|
sysCustomerFollowEntity.setOrderStatus(2);
|
|
sysCustomerFollowEntity.setOrderStatus(2);
|
|
|
|
|
+ sysCustomerFollowEntity.setCancelRemark(dto.getCancelRemark());
|
|
|
sysCustomerFollowMapper.updateById(sysCustomerFollowEntity);
|
|
sysCustomerFollowMapper.updateById(sysCustomerFollowEntity);
|
|
|
}
|
|
}
|
|
|
|
|
|