id, station_id, parking_platform_id, condition_type, condition_value, discount_type, discount_value, start_time, end_time, create_by, create_time, update_by, update_time, del_flag delete from charge_parking_discount where id = #{id,jdbcType=INTEGER} insert into charge_parking_discount station_id, parking_platform_id, condition_type, condition_value, discount_type, discount_value, start_time, end_time, create_by, create_time, update_by, update_time, del_flag, #{stationId,jdbcType=VARCHAR}, #{parkingPlatformId,jdbcType=INTEGER}, #{conditionType,jdbcType=VARCHAR}, #{conditionValue,jdbcType=VARCHAR}, #{discountType,jdbcType=VARCHAR}, #{discountValue,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=CHAR}, update charge_parking_discount station_id = #{stationId,jdbcType=VARCHAR}, parking_platform_id = #{parkingPlatformId,jdbcType=INTEGER}, condition_type = #{conditionType,jdbcType=VARCHAR}, condition_value = #{conditionValue,jdbcType=VARCHAR}, discount_type = #{discountType,jdbcType=VARCHAR}, discount_value = #{discountValue,jdbcType=VARCHAR}, start_time = #{startTime,jdbcType=TIME}, end_time = #{endTime,jdbcType=TIME}, create_by = #{createBy,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=VARCHAR}, update_time = #{updateTime,jdbcType=TIMESTAMP}, del_flag = #{delFlag,jdbcType=CHAR}, where id = #{id,jdbcType=INTEGER} update charge_parking_discount when id = #{item.id,jdbcType=INTEGER} then #{item.stationId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.parkingPlatformId,jdbcType=INTEGER} when id = #{item.id,jdbcType=INTEGER} then #{item.conditionType,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.conditionValue,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.discountType,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.discountValue,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.startTime,jdbcType=TIME} when id = #{item.id,jdbcType=INTEGER} then #{item.endTime,jdbcType=TIME} when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=CHAR} where id in #{item.id,jdbcType=INTEGER} insert into charge_parking_discount (station_id, parking_platform_id, condition_type, condition_value, discount_type, discount_value, start_time, end_time, create_by, create_time, update_by, update_time, del_flag) values (#{item.stationId,jdbcType=VARCHAR}, #{item.parkingPlatformId,jdbcType=INTEGER}, #{item.conditionType,jdbcType=VARCHAR}, #{item.conditionValue,jdbcType=VARCHAR}, #{item.discountType,jdbcType=VARCHAR}, #{item.discountValue,jdbcType=VARCHAR}, #{item.startTime,jdbcType=TIME}, #{item.endTime,jdbcType=TIME}, #{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.delFlag,jdbcType=CHAR}) insert into charge_parking_discount id, station_id, parking_platform_id, condition_type, condition_value, discount_type, discount_value, start_time, end_time, create_by, create_time, update_by, update_time, del_flag, values #{id,jdbcType=INTEGER}, #{stationId,jdbcType=VARCHAR}, #{parkingPlatformId,jdbcType=INTEGER}, #{conditionType,jdbcType=VARCHAR}, #{conditionValue,jdbcType=VARCHAR}, #{discountType,jdbcType=VARCHAR}, #{discountValue,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=CHAR}, on duplicate key update id = #{id,jdbcType=INTEGER}, station_id = #{stationId,jdbcType=VARCHAR}, parking_platform_id = #{parkingPlatformId,jdbcType=INTEGER}, condition_type = #{conditionType,jdbcType=VARCHAR}, condition_value = #{conditionValue,jdbcType=VARCHAR}, discount_type = #{discountType,jdbcType=VARCHAR}, discount_value = #{discountValue,jdbcType=VARCHAR}, start_time = #{startTime,jdbcType=TIME}, end_time = #{endTime,jdbcType=TIME}, create_by = #{createBy,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=VARCHAR}, update_time = #{updateTime,jdbcType=TIMESTAMP}, del_flag = #{delFlag,jdbcType=CHAR}, insert into charge_parking_discount id, station_id, parking_platform_id, condition_type, condition_value, discount_type, discount_value, start_time, end_time, create_by, create_time, update_by, update_time, del_flag, values #{id,jdbcType=INTEGER}, #{stationId,jdbcType=VARCHAR}, #{parkingPlatformId,jdbcType=INTEGER}, #{conditionType,jdbcType=VARCHAR}, #{conditionValue,jdbcType=VARCHAR}, #{discountType,jdbcType=VARCHAR}, #{discountValue,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=CHAR}, on duplicate key update id = #{id,jdbcType=INTEGER}, station_id = #{stationId,jdbcType=VARCHAR}, parking_platform_id = #{parkingPlatformId,jdbcType=INTEGER}, condition_type = #{conditionType,jdbcType=VARCHAR}, condition_value = #{conditionValue,jdbcType=VARCHAR}, discount_type = #{discountType,jdbcType=VARCHAR}, discount_value = #{discountValue,jdbcType=VARCHAR}, start_time = #{startTime,jdbcType=TIME}, end_time = #{endTime,jdbcType=TIME}, create_by = #{createBy,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=VARCHAR}, update_time = #{updateTime,jdbcType=TIMESTAMP}, del_flag = #{delFlag,jdbcType=CHAR},