and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} id, invoice_id, order_id, order_type, order_act_fee, order_payed_fee, order_total_fee, order_date, data_state, create_empid, create_date, modfiy_empid, modfiy_date, car_number, pl_no, pl_name delete from td_c_cust_invoice_his_detail where id = #{id,jdbcType=BIGINT} delete from td_c_cust_invoice_his_detail SELECT LAST_INSERT_ID() insert into td_c_cust_invoice_his_detail (invoice_id, order_id, order_type, order_act_fee, order_payed_fee, order_total_fee, order_date, data_state, create_empid, create_date, modfiy_empid, modfiy_date, car_number, pl_no, pl_name ) values (#{invoiceId,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR}, #{orderType,jdbcType=INTEGER}, #{orderActFee,jdbcType=DECIMAL}, #{orderPayedFee,jdbcType=DECIMAL}, #{orderTotalFee,jdbcType=DECIMAL}, #{orderDate,jdbcType=TIMESTAMP}, #{dataState,jdbcType=INTEGER}, #{createEmpid,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{modfiyEmpid,jdbcType=VARCHAR}, #{modfiyDate,jdbcType=TIMESTAMP}, #{carNumber,jdbcType=VARCHAR}, #{plNo,jdbcType=VARCHAR}, #{plName,jdbcType=VARCHAR} ) SELECT LAST_INSERT_ID() insert into td_c_cust_invoice_his_detail invoice_id, order_id, order_type, order_act_fee, order_payed_fee, order_total_fee, order_date, data_state, create_empid, create_date, modfiy_empid, modfiy_date, car_number, pl_no, pl_name, #{invoiceId,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR}, #{orderType,jdbcType=INTEGER}, #{orderActFee,jdbcType=DECIMAL}, #{orderPayedFee,jdbcType=DECIMAL}, #{orderTotalFee,jdbcType=DECIMAL}, #{orderDate,jdbcType=TIMESTAMP}, #{dataState,jdbcType=INTEGER}, #{createEmpid,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{modfiyEmpid,jdbcType=VARCHAR}, #{modfiyDate,jdbcType=TIMESTAMP}, #{carNumber,jdbcType=VARCHAR}, #{plNo,jdbcType=VARCHAR}, #{plName,jdbcType=VARCHAR}, update td_c_cust_invoice_his_detail id = #{record.id,jdbcType=BIGINT}, invoice_id = #{record.invoiceId,jdbcType=VARCHAR}, order_id = #{record.orderId,jdbcType=VARCHAR}, order_type = #{record.orderType,jdbcType=INTEGER}, order_act_fee = #{record.orderActFee,jdbcType=DECIMAL}, order_payed_fee = #{record.orderPayedFee,jdbcType=DECIMAL}, order_total_fee = #{record.orderTotalFee,jdbcType=DECIMAL}, order_date = #{record.orderDate,jdbcType=TIMESTAMP}, data_state = #{record.dataState,jdbcType=INTEGER}, create_empid = #{record.createEmpid,jdbcType=VARCHAR}, create_date = #{record.createDate,jdbcType=TIMESTAMP}, modfiy_empid = #{record.modfiyEmpid,jdbcType=VARCHAR}, modfiy_date = #{record.modfiyDate,jdbcType=TIMESTAMP}, car_number = #{record.carNumber,jdbcType=VARCHAR}, pl_no = #{record.plNo,jdbcType=VARCHAR}, pl_name = #{record.plName,jdbcType=VARCHAR}, update td_c_cust_invoice_his_detail set id = #{record.id,jdbcType=BIGINT}, invoice_id = #{record.invoiceId,jdbcType=VARCHAR}, order_id = #{record.orderId,jdbcType=VARCHAR}, order_type = #{record.orderType,jdbcType=INTEGER}, order_act_fee = #{record.orderActFee,jdbcType=DECIMAL}, order_payed_fee = #{record.orderPayedFee,jdbcType=DECIMAL}, order_total_fee = #{record.orderTotalFee,jdbcType=DECIMAL}, order_date = #{record.orderDate,jdbcType=TIMESTAMP}, data_state = #{record.dataState,jdbcType=INTEGER}, create_empid = #{record.createEmpid,jdbcType=VARCHAR}, create_date = #{record.createDate,jdbcType=TIMESTAMP}, modfiy_empid = #{record.modfiyEmpid,jdbcType=VARCHAR}, modfiy_date = #{record.modfiyDate,jdbcType=TIMESTAMP}, car_number = #{record.carNumber,jdbcType=VARCHAR}, pl_no = #{record.plNo,jdbcType=VARCHAR}, pl_name = #{record.plName,jdbcType=VARCHAR} update td_c_cust_invoice_his_detail invoice_id = #{invoiceId,jdbcType=VARCHAR}, order_id = #{orderId,jdbcType=VARCHAR}, order_type = #{orderType,jdbcType=INTEGER}, order_act_fee = #{orderActFee,jdbcType=DECIMAL}, order_payed_fee = #{orderPayedFee,jdbcType=DECIMAL}, order_total_fee = #{orderTotalFee,jdbcType=DECIMAL}, order_date = #{orderDate,jdbcType=TIMESTAMP}, data_state = #{dataState,jdbcType=INTEGER}, create_empid = #{createEmpid,jdbcType=VARCHAR}, create_date = #{createDate,jdbcType=TIMESTAMP}, modfiy_empid = #{modfiyEmpid,jdbcType=VARCHAR}, modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP}, car_number = #{carNumber,jdbcType=VARCHAR}, pl_no = #{plNo,jdbcType=VARCHAR}, pl_name = #{plName,jdbcType=VARCHAR}, where id = #{id,jdbcType=BIGINT} update td_c_cust_invoice_his_detail set invoice_id = #{invoiceId,jdbcType=VARCHAR}, order_id = #{orderId,jdbcType=VARCHAR}, order_type = #{orderType,jdbcType=INTEGER}, order_act_fee = #{orderActFee,jdbcType=DECIMAL}, order_payed_fee = #{orderPayedFee,jdbcType=DECIMAL}, order_total_fee = #{orderTotalFee,jdbcType=DECIMAL}, order_date = #{orderDate,jdbcType=TIMESTAMP}, data_state = #{dataState,jdbcType=INTEGER}, create_empid = #{createEmpid,jdbcType=VARCHAR}, create_date = #{createDate,jdbcType=TIMESTAMP}, modfiy_empid = #{modfiyEmpid,jdbcType=VARCHAR}, modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP}, car_number = #{carNumber,jdbcType=VARCHAR}, pl_no = #{plNo,jdbcType=VARCHAR}, pl_name = #{plName,jdbcType=VARCHAR} where id = #{id,jdbcType=BIGINT}