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.
udi-wms-java/src/main/resources/mybatis/mapper/collect/IoCollectLedGroupMapper.xml

18 lines
759 B
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="com.glxp.api.dao.collect.IoCollectLedGroupMapper">
<select id="filterList" resultType="com.glxp.api.res.collect.IoCollectLedGroupResponse">
SELECT *
from io_collect_led_group
left join sys_workplace_queue on sys_workplace_queue.mac = io_collect_led_group.mac
<where>
<if test="mac != '' and mac != null">
AND io_collect_led_group.mac LIKE concat('%', #{mac}, '%')
</if>
<if test="isBind == 1">
and sys_workplace_queue.mac is null
</if>
</where>
</select>
</mapper>