|
@@ -1,14 +1,13 @@
|
|
|
package com.mokamrp.privates.controller;
|
|
package com.mokamrp.privates.controller;
|
|
|
|
|
|
|
|
|
|
+import com.mokamrp.privates.constant.Constants;
|
|
|
import com.mokamrp.privates.constant.HttpStatus;
|
|
import com.mokamrp.privates.constant.HttpStatus;
|
|
|
-import com.mokamrp.privates.entity.GetWorkRoomHandle;
|
|
|
|
|
import com.mokamrp.privates.entity.PostWorkEmployee;
|
|
import com.mokamrp.privates.entity.PostWorkEmployee;
|
|
|
|
|
+import com.mokamrp.privates.entity.SetWorkEmployeeTagHandle;
|
|
|
import com.mokamrp.privates.entity.WorkEmployeeHandle;
|
|
import com.mokamrp.privates.entity.WorkEmployeeHandle;
|
|
|
import com.mokamrp.privates.help.AjaxResult;
|
|
import com.mokamrp.privates.help.AjaxResult;
|
|
|
import com.mokamrp.privates.interceptor.AuthUser;
|
|
import com.mokamrp.privates.interceptor.AuthUser;
|
|
|
-import com.mokamrp.privates.mapper.pojo.Corp;
|
|
|
|
|
import com.mokamrp.privates.mapper.pojo.User;
|
|
import com.mokamrp.privates.mapper.pojo.User;
|
|
|
-import com.mokamrp.privates.mapper.pojo.UserCorp;
|
|
|
|
|
import com.mokamrp.privates.service.UserCorpService;
|
|
import com.mokamrp.privates.service.UserCorpService;
|
|
|
import com.mokamrp.privates.service.WorkContactEmployeeService;
|
|
import com.mokamrp.privates.service.WorkContactEmployeeService;
|
|
|
import com.xxl.sso.core.conf.Conf;
|
|
import com.xxl.sso.core.conf.Conf;
|
|
@@ -20,9 +19,7 @@ import com.mokamrp.privates.service.WorkEmployeeService;
|
|
|
import com.mokamrp.privates.mapper.pojo.WorkEmployee;
|
|
import com.mokamrp.privates.mapper.pojo.WorkEmployee;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
-import javax.swing.border.EtchedBorder;
|
|
|
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
|
-import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
@@ -91,6 +88,20 @@ public class WorkEmployeeController extends BaseController<WorkEmployee> {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 设置客服标签
|
|
|
|
|
+ * @param setTagHandle
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/setTag")
|
|
|
|
|
+ public Object setTag(@RequestBody SetWorkEmployeeTagHandle setTagHandle){
|
|
|
|
|
+ if(setTagHandle.getEmployeeIds().size() <= 0){
|
|
|
|
|
+ return AjaxResult.error("employeeIds null");
|
|
|
|
|
+ }
|
|
|
|
|
+ workEmployeeService.setTag(setTagHandle.getTagId(),setTagHandle.getEmployeeIds());
|
|
|
|
|
+ return AjaxResult.success(Constants.SUCCESS);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|