|
@@ -10,6 +10,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="empId" column="EMP_ID" />
|
|
<result property="empId" column="EMP_ID" />
|
|
<result property="empName" column="EMP_NAME" />
|
|
<result property="empName" column="EMP_NAME" />
|
|
<result property="empTeam" column="EMP_TEAM" />
|
|
<result property="empTeam" column="EMP_TEAM" />
|
|
|
|
+ <result property="inTime" column="IN_TIME" />
|
|
|
|
+ <result property="outTime" column="OUT_TIME" />
|
|
<result property="devices" column="DEVICES" />
|
|
<result property="devices" column="DEVICES" />
|
|
<result property="createdBy" column="CREATED_BY" />
|
|
<result property="createdBy" column="CREATED_BY" />
|
|
<result property="createdTime" column="CREATED_TIME" />
|
|
<result property="createdTime" column="CREATED_TIME" />
|
|
@@ -19,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTwinWkEmpRotaVo">
|
|
<sql id="selectTwinWkEmpRotaVo">
|
|
- select SHIFT_ID, EMP_DATE, EMP_ID, EMP_NAME, EMP_TEAM, DEVICES, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, REMARK from TWIN_WK_EMP_ROTA
|
|
|
|
|
|
+ select SHIFT_ID, EMP_DATE, EMP_ID, EMP_NAME, EMP_TEAM, IN_TIME, OUT_TIME, DEVICES, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, REMARK from TWIN_WK_EMP_ROTA
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectTwinWkEmpRotaList" parameterType="TwinWkEmpRota" resultMap="TwinWkEmpRotaResult">
|
|
<select id="selectTwinWkEmpRotaList" parameterType="TwinWkEmpRota" resultMap="TwinWkEmpRotaResult">
|
|
@@ -29,6 +31,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="empId != null and empId != ''"> and EMP_ID = #{empId}</if>
|
|
<if test="empId != null and empId != ''"> and EMP_ID = #{empId}</if>
|
|
<if test="empName != null and empName != ''"> and EMP_NAME like concat('%', #{empName}, '%')</if>
|
|
<if test="empName != null and empName != ''"> and EMP_NAME like concat('%', #{empName}, '%')</if>
|
|
<if test="empTeam != null and empTeam != ''"> and EMP_TEAM = #{empTeam}</if>
|
|
<if test="empTeam != null and empTeam != ''"> and EMP_TEAM = #{empTeam}</if>
|
|
|
|
+ <if test="inTime != null "> and IN_TIME = #{inTime}</if>
|
|
|
|
+ <if test="outTime != null "> and OUT_TIME = #{outTime}</if>
|
|
<if test="devices != null and devices != ''"> and DEVICES = #{devices}</if>
|
|
<if test="devices != null and devices != ''"> and DEVICES = #{devices}</if>
|
|
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if>
|
|
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if>
|
|
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if>
|
|
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if>
|
|
@@ -51,6 +55,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="empId != null">EMP_ID,</if>
|
|
<if test="empId != null">EMP_ID,</if>
|
|
<if test="empName != null">EMP_NAME,</if>
|
|
<if test="empName != null">EMP_NAME,</if>
|
|
<if test="empTeam != null">EMP_TEAM,</if>
|
|
<if test="empTeam != null">EMP_TEAM,</if>
|
|
|
|
+ <if test="inTime != null">IN_TIME,</if>
|
|
|
|
+ <if test="outTime != null">OUT_TIME,</if>
|
|
<if test="devices != null">DEVICES,</if>
|
|
<if test="devices != null">DEVICES,</if>
|
|
<if test="createdBy != null">CREATED_BY,</if>
|
|
<if test="createdBy != null">CREATED_BY,</if>
|
|
<if test="createdTime != null">CREATED_TIME,</if>
|
|
<if test="createdTime != null">CREATED_TIME,</if>
|
|
@@ -63,6 +69,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="empId != null">#{empId},</if>
|
|
<if test="empId != null">#{empId},</if>
|
|
<if test="empName != null">#{empName},</if>
|
|
<if test="empName != null">#{empName},</if>
|
|
<if test="empTeam != null">#{empTeam},</if>
|
|
<if test="empTeam != null">#{empTeam},</if>
|
|
|
|
+ <if test="inTime != null">#{inTime},</if>
|
|
|
|
+ <if test="outTime != null">#{outTime},</if>
|
|
<if test="devices != null">#{devices},</if>
|
|
<if test="devices != null">#{devices},</if>
|
|
<if test="createdBy != null">#{createdBy},</if>
|
|
<if test="createdBy != null">#{createdBy},</if>
|
|
<if test="createdTime != null">#{createdTime},</if>
|
|
<if test="createdTime != null">#{createdTime},</if>
|
|
@@ -79,6 +87,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="empId != null">EMP_ID = #{empId},</if>
|
|
<if test="empId != null">EMP_ID = #{empId},</if>
|
|
<if test="empName != null">EMP_NAME = #{empName},</if>
|
|
<if test="empName != null">EMP_NAME = #{empName},</if>
|
|
<if test="empTeam != null">EMP_TEAM = #{empTeam},</if>
|
|
<if test="empTeam != null">EMP_TEAM = #{empTeam},</if>
|
|
|
|
+ <if test="inTime != null">IN_TIME = #{inTime},</if>
|
|
|
|
+ <if test="outTime != null">OUT_TIME = #{outTime},</if>
|
|
<if test="devices != null">DEVICES = #{devices},</if>
|
|
<if test="devices != null">DEVICES = #{devices},</if>
|
|
<if test="createdBy != null">CREATED_BY = #{createdBy},</if>
|
|
<if test="createdBy != null">CREATED_BY = #{createdBy},</if>
|
|
<if test="createdTime != null">CREATED_TIME = #{createdTime},</if>
|
|
<if test="createdTime != null">CREATED_TIME = #{createdTime},</if>
|