|
@@ -8,7 +8,6 @@ import cn.efunbox.audio.entity.Device;
|
|
|
import cn.efunbox.audio.service.ChannelService;
|
|
|
import cn.efunbox.audio.service.DeviceService;
|
|
|
import cn.efunbox.audio.utils.ApiCode;
|
|
|
-import cn.efunbox.audio.utils.ApiResult;
|
|
|
import cn.efunbox.audio.utils.Encrypt;
|
|
|
import cn.efunbox.audio.utils.HttpUtil;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
@@ -18,7 +17,10 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+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.RestController;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
@@ -209,7 +211,7 @@ public class DeviceController {
|
|
|
|
|
|
List<Channel> channelList = channelService.SearchById(Long.valueOf(idChannel));
|
|
|
if(channelList==null || channelList.size()<1){
|
|
|
- HttpUtil.responseApiCode(request, response, ApiCode.PARAMETER_ERROR);
|
|
|
+ HttpUtil.responseApiCode(request, response, ApiCode.CHANNEL_NOT_FOUND_ERROR);
|
|
|
return;
|
|
|
}
|
|
|
|