select thisTab.id, thisTab.system_code, thisTab.container_code, thisTab.container_use_type, thisTab.container_size, thisTab.owner_team_id, thisTab.owner_team_name, thisTab.manufacturer, thisTab.manufacture_date, thisTab.length_mm, thisTab.width_mm, thisTab.height_mm, thisTab.max_total_weight_kg, thisTab.max_load_kg, thisTab.volume_m3, thisTab.is_in_use, thisTab.maintenance_status, thisTab.last_maintenance_date, thisTab.next_maintenance_date, thisTab.status, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.remark ,thisTab.self_leas_type from tms_container AS thisTab
select count(0) from tms_container as thisTab
and thisTab.system_code = #{systemCode}
and thisTab.container_code = #{containerCode}
and thisTab.container_use_type = #{containerUseType}
and thisTab.container_size = #{containerSize}
and thisTab.owner_team_id = #{ownerTeamId}
and thisTab.owner_team_name like concat('%', #{ownerTeamName}, '%')
and thisTab.is_in_use = #{isInUse}
and thisTab.maintenance_status = #{maintenanceStatus}
and thisTab.status = #{status}
and thisTab.self_leas_type = #{selfLeasType}
insert into tms_container
system_code,
container_code,
container_use_type,
container_size,
owner_team_id,
owner_team_name,
manufacturer,
manufacture_date,
length_mm,
width_mm,
height_mm,
max_total_weight_kg,
max_load_kg,
volume_m3,
is_in_use,
maintenance_status,
last_maintenance_date,
next_maintenance_date,
status,
create_by,
create_time,
update_by,
update_time,
remark,
self_leas_type,
#{systemCode},
#{containerCode},
#{containerUseType},
#{containerSize},
#{ownerTeamId},
#{ownerTeamName},
#{manufacturer},
#{manufactureDate},
#{lengthMm},
#{widthMm},
#{heightMm},
#{maxTotalWeightKg},
#{maxLoadKg},
#{volumeM3},
#{isInUse},
#{maintenanceStatus},
#{lastMaintenanceDate},
#{nextMaintenanceDate},
#{status},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{selfLeasType},
insert into tms_container
id,system_code,container_code,container_use_type,container_size,owner_team_id,owner_team_name,manufacturer,manufacture_date,length_mm,width_mm,height_mm,max_total_weight_kg,max_load_kg,volume_m3,is_in_use,maintenance_status,last_maintenance_date,next_maintenance_date,status,create_by,create_time,update_by,update_time,remark,self_leas_type,
#{item.id},#{item.systemCode},#{item.containerCode},#{item.containerUseType},#{item.containerSize},#{item.ownerTeamId},#{item.ownerTeamName},#{item.manufacturer},#{item.manufactureDate},#{item.lengthMm},#{item.widthMm},#{item.heightMm},#{item.maxTotalWeightKg},#{item.maxLoadKg},#{item.volumeM3},#{item.isInUse},#{item.maintenanceStatus},#{item.lastMaintenanceDate},#{item.nextMaintenanceDate},#{item.status},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.remark},#{item.item.selfLeasType},
update tms_container
system_code = #{systemCode},
container_code = #{containerCode},
container_use_type = #{containerUseType},
container_size = #{containerSize},
owner_team_id = #{ownerTeamId},
owner_team_name = #{ownerTeamName},
manufacturer = #{manufacturer},
manufacture_date = #{manufactureDate},
length_mm = #{lengthMm},
width_mm = #{widthMm},
height_mm = #{heightMm},
max_total_weight_kg = #{maxTotalWeightKg},
max_load_kg = #{maxLoadKg},
volume_m3 = #{volumeM3},
is_in_use = #{isInUse},
maintenance_status = #{maintenanceStatus},
last_maintenance_date = #{lastMaintenanceDate},
next_maintenance_date = #{nextMaintenanceDate},
status = #{status},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
self_leas_type = #{selfLeasType},
where id = #{id}
update tms_container
system_code = #{item.systemCode},
container_code = #{item.containerCode},
container_use_type = #{item.containerUseType},
container_size = #{item.containerSize},
owner_team_id = #{item.ownerTeamId},
owner_team_name = #{item.ownerTeamName},
manufacturer = #{item.manufacturer},
manufacture_date = #{item.manufactureDate},
length_mm = #{item.lengthMm},
width_mm = #{item.widthMm},
height_mm = #{item.heightMm},
max_total_weight_kg = #{item.maxTotalWeightKg},
max_load_kg = #{item.maxLoadKg},
volume_m3 = #{item.volumeM3},
is_in_use = #{item.isInUse},
maintenance_status = #{item.maintenanceStatus},
last_maintenance_date = #{item.lastMaintenanceDate},
next_maintenance_date = #{item.nextMaintenanceDate},
status = #{item.status},
create_by = #{item.createBy},
create_time = #{item.createTime},
update_by = #{item.updateBy},
update_time = #{item.updateTime},
remark = #{item.remark},
self_leas_type = #{item.selfLeasType},
where id = #{item.id}
delete from tms_container where id = #{id}
delete from tms_container where id in
#{id}