update safe_material_detail
set ir_status = #{status},
ware_housing_time = #{wareHousingTime},
claimant_id = null,
claimant_name = null
where id = #{id}
update safe_material_detail
set ir_status = #{irStatus},
ware_housing_time = #{wareHousingTime},
claimant_id = null,
claimant_name = null where id in
#{id}
update safe_material_detail set del_flag = 1 where id in
#{id}
update safe_material_detail
set ir_status = #{detailBO.irStatus},
claimant_id = #{detailBO.claimantId},
claimant_name = #{detailBO.claimantName},
delivery_time = #{detailBO.deliveryTime}
where id in
#{id}
update safe_material_detail
set ir_status = #{detailBO.irStatus},
claimant_id = #{detailBO.claimantId},
claimant_name = #{detailBO.claimantName},
delivery_time = #{detailBO.deliveryTime}
where id in
(select t.id from (select id from safe_material_detail where ir_status = 0 and valid_status = 0 and del_flag = 0 ORDER BY ware_housing_time asc LIMIT #{detailBO.count}) t
)
update safe_material_detail set valid_status = #{validStatus} where id = #{id}