select ma_id, type_id, ma_code, pre_code, ma_status, qr_code, buy_price, ma_vender, out_fac_time, out_fac_code, assets_code, check_man, this_check_time, next_check_time, gps_code, rfid_code, erp_code, transfer_code, in_out_num, buy_task, own_house ,company_id from ma_machine insert into ma_machine ( type_id, ma_code, pre_code, ma_status, qr_code, buy_price, ma_vender, out_fac_time, out_fac_code, assets_code, check_man, this_check_time, next_check_time, gps_code, rfid_code, erp_code, erp_code, in_out_num, buy_task, own_house, company_id )values( #{typeId}, #{maCode}, #{preCode}, #{maStatus}, #{telphone}, #{buyPrice}, #{maVender}, #{outFacTime}, #{outFacCode}, #{assetsCode}, #{checkMan}, #{thisCheckTime}, #{nextCheckTime}, #{gpsCode}, #{rfidCode}, #{erpCode}, #{transferCode}, #{inOutNum}, #{buyTask}, #{ownHouse}, #{companyId} ) update ma_machine type_id = #{typeId}, ma_code = #{maCode}, pre_code = #{preCode}, ma_status = #{maStatus}, qr_code = #{qrCode}, buy_price = #{buyPrice}, ma_vender = #{maVender}, out_fac_time =#{outFacTime}, out_fac_code = #{outFacCode}, assets_code =#{assetsCode}, check_man = #{checkMan}, this_check_time = #{thisCheckTime}, next_check_time = #{nextCheckTime}, gps_code = #{gpsCode}, rfid_code = #{rfidCode}, erp_code = #{erpCode}, transfer_code = #{transferCode}, in_out_num = #{inOutNum}, buy_task = #{buyTask}, own_house = #{ownHouse}, company_id = #{companyId}, where ma_id = #{maId} delete from ma_machine where ma_id in #{maId}