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, create_time, update_time, inspect_man, inspect_status, phone 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, transfer_code, in_out_num, buy_task, own_house, company_id, create_time, update_time, inspect_man, inspect_status, phone, #{typeId}, #{maCode}, #{preCode}, #{maStatus}, #{qrCode}, #{buyPrice}, #{maVender}, #{outFacTime}, #{outFacCode}, #{assetsCode}, #{checkMan}, #{thisCheckTime}, #{nextCheckTime}, #{gpsCode}, #{rfidCode}, #{erpCode}, #{transferCode}, #{inOutNum}, #{buyTask}, #{ownHouse}, #{companyId}, #{createTime}, #{updateTime}, #{inspectMan}, #{inspectStatus}, #{phone}, 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}, update_time = #{updateTime}, inspect_man = #{inspectMan}, inspect_status = #{inspectStatus}, phone = #{phone}, assets_id = #{assetsId}, remark = #{remark}, machine_name = #{materialModel}, where ma_id = #{maId} delete from ma_machine where ma_id = #{maId} delete from ma_machine where ma_id in #{maId} UPDATE ma_machine SET ma_status = #{status},create_time = NOW() type_id = #{record.typeId} and ma_id = #{record.maId} UPDATE ma_machine SET ma_status = #{status}, in_out_num = ifnull(in_out_num,0) + 1 where ma_id = #{maId} delete from ma_machine where ma_code = #{maCode} and type_id = #{typeId} and ma_status = '0' update ma_machine check_man = #{tester},inspect_man = #{tester}, this_check_time = #{checkTimeSynch}, next_check_time = #{nextCheckTimeSynch}, inspect_status = #{result}, ex_code = #{reportNum}, ex_url = #{pdf}, ex_name = #{reportName}, ex_up_time = NOW(), where ma_code = #{selfCode} update ma_machine SET assets_code = #{assetsCode} where ma_id = #{maId}