mybatis新增时将主键值返回:
@Insert("insert into driver_account_appeal (driver_id,driver_name,driver_phone,content,order_id,org_id,cooperation_Company_Id,cooperation_Company_Name,appeal_Time,punishment_Id)\n" +"VALUES(#{driverId},#{driverName},#{driverPhone},#{content},#{orderId},#{orgId},#{cooperationCompanyId},#{cooperationCompanyName},NOW(),#{punishmentId})")@Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id")//新增时将主键返回void addAppeal(Appeal appeal);