新火炬后端单体项目初始化代码
Houjie
2 天以前 563a74081df215497e5acd5de54e74445c4bd18b
1
2
3
4
5
6
7
8
9
10
11
12
<?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.jeecg.modules.base.mapper.LineSideWarehouseMapper">
 
    <select id="queryByProductionType" resultType="org.jeecg.modules.base.entity.LineSideWarehouse">
        select t1.* from base_line_side_warehouse t1
        left join base_factory t2 on t1.factory_id = t2.id
        where t1.del_flag='0' and t1.warehouse_status='1' and
        <foreach collection="types" item="item" open=" t2.production_type IN (" close=")" separator=",">#{item}</foreach>
        order by t1.warehouse_code
    </select>
</mapper>