package cn.efunbox.audio.controller; import cn.efunbox.audio.entity.*; import cn.efunbox.audio.service.*; import cn.efunbox.audio.utils.ApiCode; import cn.efunbox.audio.utils.HttpUtil; import cn.efunbox.audio.utils.Common; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.sql.Timestamp; import java.util.*; import java.util.List; /** * Created by yao on 17-9-26. */ @RestController @Slf4j @RequestMapping(value = "/audio") public class AudioController { @Autowired AudioService audioService; @Autowired DeviceService deviceService; @Autowired RecordService recordService; @Autowired GroupingService groupingService; @Autowired RightsService rightsService; /** * 管理员搜索接口 * @param request * @param response */ @RequestMapping(value = "/admsearch", method = RequestMethod.POST) public void AdminSearch(HttpServletRequest request, HttpServletResponse response){ String name = request.getParameter("name"); String album = request.getParameter("album"); List