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
insert into base_team_t
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,
#{teamId},
#{orgId},
#{teamCode},
#{teamDesc},
#{teamDescGlobal},
#{teamDescExtended},
#{createBy},
#{createDate},
#{lastUpdateBy},
#{lastUpdateDate},
#{Active},
#{enterpriseId},
#{enterpriseCode},
#{siteId},
#{siteCode},
#{productionLineCode},
#{teamLeaderCode},
#{teamLeaderName},
#{planPostQuantity},
#{actualPostQuantity},
#{salaryType},
#{teamProperties},
#{attendanceQuantity},
#{assignedQuantity},
#{teamType},
update base_team_t
ORG_Id = #{orgId},
Team_Code = #{teamCode},
Team_Desc = #{teamDesc},
Team_Desc_Global = #{teamDescGlobal},
Team_Desc_Extended = #{teamDescExtended},
Create_By = #{createBy},
Create_Date = #{createDate},
Last_Update_By = #{lastUpdateBy},
Last_Update_Date = #{lastUpdateDate},
Active = #{Active},
Enterprise_Id = #{enterpriseId},
Enterprise_Code = #{enterpriseCode},
Site_Id = #{siteId},
Site_Code = #{siteCode},
production_line_code = #{productionLineCode},
team_leader_code = #{teamLeaderCode},
team_leader_name = #{teamLeaderName},
plan_post_quantity = #{planPostQuantity},
actual_post_quantity = #{actualPostQuantity},
salary_type = #{salaryType},
team_properties = #{teamProperties},
attendance_quantity = #{attendanceQuantity},
assigned_quantity = #{assignedQuantity},
team_type = #{teamType},
where Team_Id = #{teamId}
update base_team_t
set del_flag = '1'
where Team_Id = #{teamId}
update base_team_t
set del_flag = '1'
where Team_Id in
#{teamId}