src/main/java/com/zy/asrs/controller/DeviceErrorController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/mapper/ApiConfigMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/mapper/DeviceErrorMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/zy/asrs/controller/DeviceErrorController.java
@@ -12,11 +12,13 @@ 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 { @@ -60,10 +62,10 @@ 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); } } @@ -72,6 +74,7 @@ page1.setTotal(deviceErrorService.selectDeviceErrorListTotal(id,device,deviceId)); return R.ok(page1); } catch (Exception e) { log.error("异常" + e); return R.error("异常" + e); } } src/main/resources/mapper/ApiConfigMapper.xml
@@ -17,10 +17,10 @@ <sql id="batchSeq"> <if test="id != null and id != 0"> and a.ID = #{id} and ID = #{id} </if> <if test="url != null and url != ''"> and a.URL = #{url} and URL = #{url} </if> </sql> src/main/resources/mapper/DeviceErrorMapper.xml
@@ -13,13 +13,13 @@ <sql id="batchSeq"> <if test="id != null and id != 0"> and a.ID = #{id} and ID = #{id} </if> <if test="device != null and device != ''"> and a.DEVICE = #{device} and DEVICE = #{device} </if> <if test="deviceId != null and deviceId != 0"> and a.DEVICE_ID = #{deviceId} and DEVICE_ID = #{deviceId} </if> </sql>