|
|
|
@ -34,9 +34,9 @@ public interface StudentItemMapper extends StudentItemMapperExt { |
|
|
|
|
|
|
|
|
|
@Delete({ |
|
|
|
|
"delete from student_item", |
|
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
int deleteByPrimaryKey(Integer id); |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into student_item (`name`, item_type, ", |
|
|
|
@ -59,7 +59,7 @@ public interface StudentItemMapper extends StudentItemMapperExt { |
|
|
|
|
|
|
|
|
|
@SelectProvider(type=StudentItemSqlProvider.class, method="selectByExample") |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="item_type", property="itemType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="sports_type", property="sportsType", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -79,10 +79,10 @@ public interface StudentItemMapper extends StudentItemMapperExt { |
|
|
|
|
"id, `name`, item_type, sports_type, grade_type, parent_id, create_time, update_time, ", |
|
|
|
|
"`status`, ext_1, ext_2, ext_3", |
|
|
|
|
"from student_item", |
|
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="item_type", property="itemType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="sports_type", property="sportsType", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -95,7 +95,7 @@ public interface StudentItemMapper extends StudentItemMapperExt { |
|
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
|
}) |
|
|
|
|
StudentItem selectByPrimaryKey(Integer id); |
|
|
|
|
StudentItem selectByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@UpdateProvider(type=StudentItemSqlProvider.class, method="updateByExampleSelective") |
|
|
|
|
int updateByExampleSelective(@Param("record") StudentItem record, @Param("example") StudentItemExample example); |
|
|
|
@ -119,7 +119,7 @@ public interface StudentItemMapper extends StudentItemMapperExt { |
|
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
int updateByPrimaryKey(StudentItem record); |
|
|
|
|
} |