| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.zy.common.web.BaseController; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.*; |
| | | |
| | | @Slf4j |
| | | @RestController |
| | | public class DeviceErrorController extends BaseController { |
| | | |
| | |
| | | continue; |
| | | } |
| | | if (entry.getKey().equals("id")) { |
| | | id = Long.getLong(val); |
| | | id = (long) Integer.parseInt(val); |
| | | } else if (entry.getKey().equals("device")) { |
| | | device = val; |
| | | } else if (entry.getKey().equals("deviceId")) { |
| | | } else if (entry.getKey().equals("device_id")) { |
| | | deviceId = Integer.valueOf(val); |
| | | } |
| | | } |
| | |
| | | page1.setTotal(deviceErrorService.selectDeviceErrorListTotal(id,device,deviceId)); |
| | | return R.ok(page1); |
| | | } catch (Exception e) { |
| | | log.error("异常" + e); |
| | | return R.error("异常" + e); |
| | | } |
| | | } |