1
2
3
4
5
6
7
8
9
10
11
12
13
| <?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.ShiftMapper">
|
| <select id="selectShiftListByFactoryId" resultType="org.jeecg.modules.base.entity.Shift">
| select
| t1.*,
| t2.id as group_id
| from base_shift t1
| inner join base_shift_group t2 on t1.id = t2.shift_id
| where t1.del_flag = 0 and t1.shift_status = '1' and t2.del_flag = 0 and t2.factory_id = #{factoryId}
| </select>
| </mapper>
|
|