id, deleted, created, modified, business_id, production_no, production_type, signatory, client_name, client_tel, valuation_basis_date, evaluate_acreage, evaluate_amount, evaluate_price, owner, print_count, create_production_date, comment, repertory_state, repertory_in_time, repertory_out_time, file_path, save_file_date, delivery UPDATE assets_production SET production_no = #{productionNo} WHERE deleted = 0 AND business_id = #{businessId} AND production_type = #{productionType} AND (production_no IS NULL OR production_no = '') AND id = #{productionId} INSERT INTO assets_production(id, business_id, production_type, print_count) VALUE (NULL, #{businessId}, #{productionType}, #{printCount}); UPDATE assets_production SET signatory = #{signatory}, client_name = #{clientName}, client_tel = #{clientTel}, valuation_basis_date = #{valuationBasisDate}, evaluate_acreage = #{evaluateAcreage}, evaluate_price = #{evaluatePrice}, evaluate_amount = #{evaluateAmount}, owner = #{owner}, print_count = #{printCount}, create_production_date = #{createProductionDate}, comment = #{comment}, file_path = #{filePath}, assets_name = #{assetsName}, qr_code = #{qrCode} WHERE production_no = #{productionNo} AND business_id = #{businessId} UPDATE assets_production SET file_path = #{filePath}, comment = #{comment} WHERE id = #{id} UPDATE assets_production SET delivery = 1 WHERE production_no = #{productionNo} AND deleted = 0 UPDATE assets_production SET if_save_file = 1, save_file_date = #{saveFileDate} WHERE production_no = #{productionNo} AND deleted = 0