|
@ -9,10 +9,9 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@ -20,8 +19,8 @@ import java.util.Map;
|
|
|
/**
|
|
|
* Created by 刘文彬 on 2018/9/27.
|
|
|
*/
|
|
|
@Controller
|
|
|
@RequestMapping(value = "/customer")
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/customer",produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
|
@Api(description = "集美客服系统")
|
|
|
public class CustomerSynergyManageController extends BaseController {
|
|
|
|
|
@ -103,15 +102,15 @@ public class CustomerSynergyManageController extends BaseController {
|
|
|
@ApiParam(name = "isAcceptTask", value = "1、我接收到的任务,2、我派发的任务,3、待接收(客服管理员),4、已接收(客服管理员)", required = true)
|
|
|
@RequestParam(value = "isAcceptTask", required = true)Integer isAcceptTask,
|
|
|
@ApiParam(name = "page", value = "第几页,从1开始", required = true)
|
|
|
@RequestParam(value = "page", required = false,defaultValue = "1")Integer page,
|
|
|
@RequestParam(value = "page", required = true,defaultValue = "1")Integer page,
|
|
|
@ApiParam(name = "pageSize", value = "每页分页大小", required = true)
|
|
|
@RequestParam(value = "pageSize", required = false,defaultValue = "10")Integer pageSize){
|
|
|
@RequestParam(value = "pageSize", required = true,defaultValue = "10")Integer pageSize){
|
|
|
try {
|
|
|
if(!StringUtils.isNotEmpty(userCode)){
|
|
|
userCode = getUID();
|
|
|
}
|
|
|
List<Map<String,Object>> result = synergyManageService.workorderList(userCode,keywords,workorderType,isMyTask,status,priority,timeout,workorderCode,
|
|
|
principal,serviceStartTime,serviceEndTime,patientName,ssc,idcard,userType,isAcceptTask);
|
|
|
Map<String,Object> result = synergyManageService.workorderList(userCode,keywords,workorderType,isMyTask,status,priority,timeout,workorderCode,
|
|
|
principal,serviceStartTime,serviceEndTime,patientName,ssc,idcard,userType,isAcceptTask,page,pageSize);
|
|
|
return write(200, "获取成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|