|
|
@ -30,10 +30,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="attendanceQuantity" column="attendance_quantity" />
|
|
|
|
<result property="attendanceQuantity" column="attendance_quantity" />
|
|
|
|
<result property="assignedQuantity" column="assigned_quantity" />
|
|
|
|
<result property="assignedQuantity" column="assigned_quantity" />
|
|
|
|
<result property="teamType" column="team_type" />
|
|
|
|
<result property="teamType" column="team_type" />
|
|
|
|
|
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectBaseTeamTVo">
|
|
|
|
<sql id="selectBaseTeamTVo">
|
|
|
|
select Team_Id, ORG_Id, Team_Code, Team_Desc, Team_Desc_Global, Team_Desc_Extended, Create_By, Create_Date, Last_Update_By, Last_Update_Date, Active, Enterprise_Id, Enterprise_Code, Site_Id, Site_Code, production_line_code, team_leader_code, team_leader_name,plan_post_quantity, actual_post_quantity, salary_type, team_properties, attendance_quantity, assigned_quantity ,team_type from base_team_t
|
|
|
|
select Team_Id, ORG_Id, Team_Code, Team_Desc, Team_Desc_Global, Team_Desc_Extended, Create_By, Create_Date, Last_Update_By, Last_Update_Date, Active, Enterprise_Id, Enterprise_Code, Site_Id, Site_Code, production_line_code, team_leader_code, team_leader_name,plan_post_quantity, actual_post_quantity, salary_type, team_properties, attendance_quantity, assigned_quantity ,team_type,del_flag from base_team_t
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseTeamTList" parameterType="BaseTeamT" resultMap="BaseTeamTResult">
|
|
|
|
<select id="selectBaseTeamTList" parameterType="BaseTeamT" resultMap="BaseTeamTResult">
|
|
|
@ -63,12 +64,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="attendanceQuantity != null "> and attendance_quantity = #{attendanceQuantity}</if>
|
|
|
|
<if test="attendanceQuantity != null "> and attendance_quantity = #{attendanceQuantity}</if>
|
|
|
|
<if test="assignedQuantity != null "> and assigned_quantity = #{assignedQuantity}</if>
|
|
|
|
<if test="assignedQuantity != null "> and assigned_quantity = #{assignedQuantity}</if>
|
|
|
|
<if test="teamType != null "> and team_type = #{teamType}</if>
|
|
|
|
<if test="teamType != null "> and team_type = #{teamType}</if>
|
|
|
|
|
|
|
|
and del_flag = '0'
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseTeamTByTeamId" parameterType="String" resultMap="BaseTeamTResult">
|
|
|
|
<select id="selectBaseTeamTByTeamId" parameterType="String" resultMap="BaseTeamTResult">
|
|
|
|
<include refid="selectBaseTeamTVo"/>
|
|
|
|
<include refid="selectBaseTeamTVo"/>
|
|
|
|
where Team_Id = #{teamId}
|
|
|
|
where Team_Id = #{teamId}
|
|
|
|
|
|
|
|
and del_flag = '0'
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertBaseTeamT" parameterType="BaseTeamT">
|
|
|
|
<insert id="insertBaseTeamT" parameterType="BaseTeamT">
|
|
|
@ -160,33 +163,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
where Team_Id = #{teamId}
|
|
|
|
where Team_Id = #{teamId}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteBaseTeamTByTeamId" parameterType="String">
|
|
|
|
<update id="deleteBaseTeamTByTeamId" parameterType="String">
|
|
|
|
delete from base_team_t where Team_Id = #{teamId}
|
|
|
|
update base_team_t
|
|
|
|
</delete>
|
|
|
|
set del_flag = '1'
|
|
|
|
|
|
|
|
where Team_Id = #{teamId}
|
|
|
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteBaseTeamTByTeamIds" parameterType="String">
|
|
|
|
<update id="deleteBaseTeamTByTeamIds" parameterType="String">
|
|
|
|
delete from base_team_t where Team_Id in
|
|
|
|
update base_team_t
|
|
|
|
|
|
|
|
set del_flag = '1'
|
|
|
|
|
|
|
|
where Team_Id in
|
|
|
|
<foreach item="teamId" collection="array" open="(" separator="," close=")">
|
|
|
|
<foreach item="teamId" collection="array" open="(" separator="," close=")">
|
|
|
|
#{teamId}
|
|
|
|
#{teamId}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</delete>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkTeamCodeUnique" parameterType="BaseTeamT" resultType ="java.lang.String">
|
|
|
|
<select id="checkTeamCodeUnique" parameterType="BaseTeamT" resultType ="java.lang.String">
|
|
|
|
select Team_Code
|
|
|
|
select Team_Code
|
|
|
|
from base_team_t
|
|
|
|
from base_team_t
|
|
|
|
where Team_Code = #{teamCode}
|
|
|
|
where Team_Code = #{teamCode}
|
|
|
|
|
|
|
|
and del_flag = '0'
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkTeamDescUnique" parameterType="BaseTeamT" resultType ="java.lang.String">
|
|
|
|
<select id="checkTeamDescUnique" parameterType="BaseTeamT" resultType ="java.lang.String">
|
|
|
|
select Team_Desc
|
|
|
|
select Team_Desc
|
|
|
|
from base_team_t
|
|
|
|
from base_team_t
|
|
|
|
where Team_Desc = #{teamDesc}
|
|
|
|
where Team_Desc = #{teamDesc}
|
|
|
|
|
|
|
|
and del_flag = '0'
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getBaseTeamTByCode" parameterType="BaseTeamT" resultType ="java.lang.String">
|
|
|
|
<select id="getBaseTeamTByCode" parameterType="BaseTeamT" resultType ="java.lang.String">
|
|
|
|
select Team_Id
|
|
|
|
select Team_Id
|
|
|
|
from base_team_t
|
|
|
|
from base_team_t
|
|
|
|
where Team_Code = #{teamCode}
|
|
|
|
where Team_Code = #{teamCode}
|
|
|
|
|
|
|
|
and del_flag = '0'
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|