|
|
|
@ -34,9 +34,9 @@ public interface EnItemMapper extends EnItemMapperExt { |
|
|
|
|
|
|
|
|
|
@Delete({ |
|
|
|
|
"delete from en_item", |
|
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
int deleteByPrimaryKey(Integer id); |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into en_item (project_name, project_address, ", |
|
|
|
@ -63,7 +63,7 @@ public interface EnItemMapper extends EnItemMapperExt { |
|
|
|
|
|
|
|
|
|
@SelectProvider(type=EnItemSqlProvider.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="project_name", property="projectName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="project_address", property="projectAddress", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="project_leader", property="projectLeader", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -87,10 +87,10 @@ public interface EnItemMapper extends EnItemMapperExt { |
|
|
|
|
"create_user_name, create_time, update_user, update_user_name, update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3", |
|
|
|
|
"from en_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="project_name", property="projectName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="project_address", property="projectAddress", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="project_leader", property="projectLeader", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -106,7 +106,7 @@ public interface EnItemMapper extends EnItemMapperExt { |
|
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
|
}) |
|
|
|
|
EnItem selectByPrimaryKey(Integer id); |
|
|
|
|
EnItem selectByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@UpdateProvider(type=EnItemSqlProvider.class, method="updateByExampleSelective") |
|
|
|
|
int updateByExampleSelective(@Param("record") EnItem record, @Param("example") EnItemExample example); |
|
|
|
@ -133,7 +133,7 @@ public interface EnItemMapper extends EnItemMapperExt { |
|
|
|
|
"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(EnItem record); |
|
|
|
|
} |