|
|
@ -30,8 +30,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<select id="selectBaseShiftsTList" parameterType="BaseShiftsT" resultMap="BaseShiftsTResult">
|
|
|
|
<select id="selectBaseShiftsTList" parameterType="BaseShiftsT" resultMap="BaseShiftsTResult">
|
|
|
|
<include refid="selectBaseShiftsTVo"/>
|
|
|
|
<include refid="selectBaseShiftsTVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="shiftCode != null and shiftCode != ''"> and Shift_Code = #{shiftCode}</if>
|
|
|
|
<if test="shiftCode != null and shiftCode != ''"> and Shift_Code like concat('%', #{shiftCode}, '%')</if>
|
|
|
|
<if test="shiftDesc != null and shiftDesc != ''"> and Shift_Desc = #{shiftDesc}</if>
|
|
|
|
<if test="shiftDesc != null and shiftDesc != ''"> and Shift_Desc like concat('%', #{shiftDesc}, '%')</if>
|
|
|
|
<if test="shiftDescGlobal != null and shiftDescGlobal != ''"> and Shift_Desc_Global = #{shiftDescGlobal}</if>
|
|
|
|
<if test="shiftDescGlobal != null and shiftDescGlobal != ''"> and Shift_Desc_Global = #{shiftDescGlobal}</if>
|
|
|
|
<if test="shiftDescExtended != null and shiftDescExtended != ''"> and Shift_Desc_Extended = #{shiftDescExtended}</if>
|
|
|
|
<if test="shiftDescExtended != null and shiftDescExtended != ''"> and Shift_Desc_Extended = #{shiftDescExtended}</if>
|
|
|
|
<if test="shiftStartTime != null and shiftStartTime != ''"> and Shift_Start_Time = #{shiftStartTime}</if>
|
|
|
|
<if test="shiftStartTime != null and shiftStartTime != ''"> and Shift_Start_Time = #{shiftStartTime}</if>
|
|
|
@ -126,8 +126,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="queryAllStartTime" parameterType="String" resultMap="BaseShiftsTResult">
|
|
|
|
<!-- <select id="queryAllStartTime" parameterType="String" resultMap="BaseShiftsTResult">-->
|
|
|
|
select
|
|
|
|
<!-- select-->
|
|
|
|
|
|
|
|
<!-- </select>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkNameUnique" parameterType="BaseShiftsT" resultType ="java.lang.String">
|
|
|
|
|
|
|
|
select shift_desc
|
|
|
|
|
|
|
|
from base_shifts_t
|
|
|
|
|
|
|
|
where shift_desc = #{shiftDesc}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkCodeUnique" parameterType="BaseShiftsT" resultType ="java.lang.String">
|
|
|
|
|
|
|
|
select shift_code
|
|
|
|
|
|
|
|
from base_shifts_t
|
|
|
|
|
|
|
|
where shift_code = #{shiftCode}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|