|
@@ -110,11 +110,13 @@ public class TransferApplyController {
|
|
|
|
|
|
QueryWrapper qw = new QueryWrapper<>();
|
|
|
qw.eq("id", id);
|
|
|
- Long num = this.service.count(qw);
|
|
|
- if (num <= 0) {
|
|
|
+ TransferApply oldData = this.service.getOne(qw);
|
|
|
+ if (null== oldData) {
|
|
|
throw new CustomizationException(ExceptionEnum.NOT_FOUND);
|
|
|
}
|
|
|
TransferApply updateData = new TransferApply();
|
|
|
+// 修改不会修改会话状态 关闭有单独的方法
|
|
|
+ updateData.setIs_close(oldData.getIs_close());
|
|
|
updateData.setId(id);
|
|
|
// 从token获取信息, 只有客服人员能处理
|
|
|
Map userMap = JwtUtil.getDetails(null);
|