zoujiajian 3 лет назад
Родитель
Сommit
8f06a13d12

+ 2 - 2
netflix-web/src/main/java/com/cyksj/web/controller/manage/sys/WorkOrderController.java

@@ -88,7 +88,7 @@ public class WorkOrderController {
 		if (workOrder.getStatus() == WorkOrder.Status.close) {
 			throw BusinessRuntimeException.getInstance("该工单已关闭");
 		}
-		if (workOrder.getCloseCustomerServiceId() == null) {
+		if (workOrder.getCloseCustomerServiceId() == 0) {
 			workOrder.setCloseCustomerServiceId(adminId);
 		}
 		workOrder.setStatus(WorkOrder.Status.close);
@@ -145,7 +145,7 @@ public class WorkOrderController {
 			history.setImgs(imgs);
 		}
 		historyMapper.insert(history);
-		if (workOrder.getCloseCustomerServiceId() == null) {
+		if (workOrder.getCloseCustomerServiceId() == 0) {
 			//记录首次回复聊天的客服
 			workOrder.setReplyCustomerServiceId(adminId);
 			workOrderMapper.updateById(workOrder);