You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB
XML

<?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="org.dromara.dms.mapper.DmsBaseMachineInfoMapper">
<select id="likeDeviceName" resultType="org.dromara.dms.domain.vo.DmsBaseMachineInfoVo"
parameterType="java.lang.String">
select
x.*
from
prod_base_machine_info x
where
x.machine_name like concat('%',#{deviceName},'%')
</select>
<!-- PDA 端专用查询,直接返回 DeviceBeen 格式 -->
<select id="likeDeviceNameForPda" resultType="org.dromara.dms.domain.mobile.DeviceBeen"
parameterType="java.lang.String">
select
x.machine_id as deviceId,
x.machine_code as deviceCode,
x.machine_name as deviceName,
x.machine_location as deviceLocation,
x.machine_type as deviceTypeId,
x.machine_spec as deviceSpec,
x.machine_status as deviceStatus
from
prod_base_machine_info x
where
x.machine_name like concat('%',#{deviceName},'%')
</select>
</mapper>