select Shift_Id, Shift_Code, Shift_Desc, Shift_Desc_Global, Shift_Desc_Extended, Shift_Start_Time, Shift_End_Time, Create_By, Create_Date, Last_Update_By, Last_Update_Date, Active, Enterprise_Id, Enterprise_Code, Site_Id, Site_Code,del_flag from base_shifts_t
insert into base_shifts_t
Shift_Id,
Shift_Code,
Shift_Desc,
Shift_Desc_Global,
Shift_Desc_Extended,
Shift_Start_Time,
Shift_End_Time,
Create_By,
Create_Date,
Last_Update_By,
Last_Update_Date,
Active,
Enterprise_Id,
Enterprise_Code,
Site_Id,
Site_Code,
#{shiftId},
#{shiftCode},
#{shiftDesc},
#{shiftDescGlobal},
#{shiftDescExtended},
#{shiftStartTime},
#{shiftEndTime},
#{createBy},
#{createDate},
#{lastUpdateBy},
#{lastUpdateDate},
#{Active},
#{enterpriseId},
#{enterpriseCode},
#{siteId},
#{siteCode},
update base_shifts_t
Shift_Code = #{shiftCode},
Shift_Desc = #{shiftDesc},
Shift_Desc_Global = #{shiftDescGlobal},
Shift_Desc_Extended = #{shiftDescExtended},
Shift_Start_Time = #{shiftStartTime},
Shift_End_Time = #{shiftEndTime},
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},
where Shift_Id = #{shiftId}
update base_shifts_t
set del_flag = '1'
where Shift_Id = #{shiftId}
update base_shifts_t
set del_flag = '1'
where Shift_Id in
#{shiftId}