| | |
| | | <?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="glassdetails.mapper.RawGlassStorageDetailsMapper"> |
| | | <mapper namespace="com.mes.rawglassdetails.mapper.RawGlassStorageDetailsMapper"> |
| | | |
| | | <select id="listBySlotState" resultType="java.lang.Integer"> |
| | | select t.slot |
| | | from raw_glass_storage_station t |
| | | inner JOIN raw_glass_storage_details t1 |
| | | on t.slot = t1.slot_id and t.enable_state = 1 |
| | | and t.slot in |
| | | <foreach collection="leftingStation" item="item" open='(' close=')' separator=','> |
| | | #{item} |
| | | </foreach> |
| | | and t1.state not in |
| | | <foreach collection="state" item="item" open='(' close=')' separator=','> |
| | | #{item} |
| | | </foreach> |
| | | </select> |
| | | </mapper> |