select TENANT_ID, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETE_BY, DELETE_TIME, id, bill_no, bill_income_date, bill_type, check_type, check_status from dc_busi_param_bill_master insert into dc_busi_param_bill_master TENANT_ID, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETE_BY, DELETE_TIME, bill_no, bill_income_date, bill_type, check_type, check_status, #{tenantId}, #{REVISION}, #{createdBy}, #{createdTime}, #{updatedBy}, #{updatedTime}, #{deleteBy}, #{deleteTime}, #{billNo}, #{billIncomeDate}, #{billType}, #{checkType}, #{checkStatus}, update dc_busi_param_bill_master TENANT_ID = #{tenantId}, REVISION = #{REVISION}, CREATED_BY = #{createdBy}, CREATED_TIME = #{createdTime}, UPDATED_BY = #{updatedBy}, UPDATED_TIME = #{updatedTime}, DELETE_BY = #{deleteBy}, DELETE_TIME = #{deleteTime}, bill_no = #{billNo}, bill_income_date = #{billIncomeDate}, bill_type = #{billType}, check_type = #{checkType}, check_status = #{checkStatus}, where id = #{id} delete from dc_busi_param_bill_master where id = #{id} delete from dc_busi_param_bill_master where id in #{id} delete from dc_busi_param_bill_sub where bill_no in #{billNo} delete from dc_busi_param_bill_sub where bill_no = #{billNo} insert into dc_busi_param_bill_sub( TENANT_ID, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETE_BY, DELETE_TIME, id, bill_no, asset_code, field_type, param_code, param_value) values ( #{item.tenantId}, #{item.createdBy}, #{item.createdTime}, #{item.updatedBy}, #{item.updatedTime}, #{item.deleteBy}, #{item.deleteTime}, #{item.id}, #{item.billNo}, #{item.assetCode}, #{item.fieldType}, #{item.paramCode}, #{item.paramValue})