
4 changed files with 51 additions and 8 deletions
@ -1,12 +1,15 @@ |
|||
package com.yxt.supervise.monitor.biz.deviceImage; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.yxt.supervise.monitor.api.entity.Device; |
|||
import com.yxt.supervise.monitor.api.entity.DeviceImage; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
@Mapper |
|||
public interface YDeviceImageMapper extends BaseMapper<DeviceImage> { |
|||
IPage<DeviceImage> getDevicePage(); |
|||
|
|||
IPage<DeviceImage> getDeviceImagePage(@Param("page") IPage<DeviceImage> page, @Param("ew") QueryWrapper<DeviceImage> ew); |
|||
} |
|||
|
@ -0,0 +1,15 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|||
<mapper namespace="com.yxt.supervise.monitor.biz.deviceImage.YDeviceImageMapper"> |
|||
<select id="getDeviceImagePage" resultType="com.yxt.supervise.monitor.api.entity.DeviceImage"> |
|||
SELECT |
|||
t.*, |
|||
w.name as wareHouseName, |
|||
w.address as wareHouseAddress, |
|||
w.linkerName, |
|||
w.linkerPhone |
|||
FROM y_device_image t |
|||
LEFT JOIN y_warehouse w ON t.ckId = w.sid |
|||
${ew.customSqlSegment} |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue