|
|
@ -41,14 +41,14 @@ public interface SecMenuMapper extends SecMenuMapperExt { |
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into sec_menu (menu_name, menu_type, ", |
|
|
|
"insert into sec_menu (menu_name, menu_type, ", |
|
|
|
"menu_url, menu_url_img, ", |
|
|
|
"menu_url, menu_url_img, ", |
|
|
|
"menu_p_sid, menu_sort, ", |
|
|
|
"menu_full_url, menu_p_sid, ", |
|
|
|
"menu_desc, create_time, ", |
|
|
|
"menu_sort, menu_desc, ", |
|
|
|
"update_time)", |
|
|
|
"create_time, update_time)", |
|
|
|
"values (#{menuName,jdbcType=VARCHAR}, #{menuType,jdbcType=INTEGER}, ", |
|
|
|
"values (#{menuName,jdbcType=VARCHAR}, #{menuType,jdbcType=INTEGER}, ", |
|
|
|
"#{menuUrl,jdbcType=VARCHAR}, #{menuUrlImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{menuUrl,jdbcType=VARCHAR}, #{menuUrlImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{menuPSid,jdbcType=BIGINT}, #{menuSort,jdbcType=INTEGER}, ", |
|
|
|
"#{menuFullUrl,jdbcType=VARCHAR}, #{menuPSid,jdbcType=BIGINT}, ", |
|
|
|
"#{menuDesc,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{menuSort,jdbcType=INTEGER}, #{menuDesc,jdbcType=VARCHAR}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP})" |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(SecMenu record); |
|
|
|
int insert(SecMenu record); |
|
|
@ -64,6 +64,7 @@ public interface SecMenuMapper extends SecMenuMapperExt { |
|
|
|
@Result(column="menu_type", property="menuType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="menu_type", property="menuType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="menu_url", property="menuUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="menu_url", property="menuUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="menu_url_img", property="menuUrlImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="menu_url_img", property="menuUrlImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="menu_full_url", property="menuFullUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="menu_p_sid", property="menuPSid", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="menu_p_sid", property="menuPSid", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="menu_sort", property="menuSort", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="menu_sort", property="menuSort", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="menu_desc", property="menuDesc", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="menu_desc", property="menuDesc", jdbcType=JdbcType.VARCHAR), |
|
|
@ -74,8 +75,8 @@ public interface SecMenuMapper extends SecMenuMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, menu_name, menu_type, menu_url, menu_url_img, menu_p_sid, menu_sort, menu_desc, ", |
|
|
|
"id, menu_name, menu_type, menu_url, menu_url_img, menu_full_url, menu_p_sid, ", |
|
|
|
"create_time, update_time", |
|
|
|
"menu_sort, menu_desc, create_time, update_time", |
|
|
|
"from sec_menu", |
|
|
|
"from sec_menu", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -85,6 +86,7 @@ public interface SecMenuMapper extends SecMenuMapperExt { |
|
|
|
@Result(column="menu_type", property="menuType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="menu_type", property="menuType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="menu_url", property="menuUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="menu_url", property="menuUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="menu_url_img", property="menuUrlImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="menu_url_img", property="menuUrlImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="menu_full_url", property="menuFullUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="menu_p_sid", property="menuPSid", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="menu_p_sid", property="menuPSid", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="menu_sort", property="menuSort", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="menu_sort", property="menuSort", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="menu_desc", property="menuDesc", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="menu_desc", property="menuDesc", jdbcType=JdbcType.VARCHAR), |
|
|
@ -108,6 +110,7 @@ public interface SecMenuMapper extends SecMenuMapperExt { |
|
|
|
"menu_type = #{menuType,jdbcType=INTEGER},", |
|
|
|
"menu_type = #{menuType,jdbcType=INTEGER},", |
|
|
|
"menu_url = #{menuUrl,jdbcType=VARCHAR},", |
|
|
|
"menu_url = #{menuUrl,jdbcType=VARCHAR},", |
|
|
|
"menu_url_img = #{menuUrlImg,jdbcType=VARCHAR},", |
|
|
|
"menu_url_img = #{menuUrlImg,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"menu_full_url = #{menuFullUrl,jdbcType=VARCHAR},", |
|
|
|
"menu_p_sid = #{menuPSid,jdbcType=BIGINT},", |
|
|
|
"menu_p_sid = #{menuPSid,jdbcType=BIGINT},", |
|
|
|
"menu_sort = #{menuSort,jdbcType=INTEGER},", |
|
|
|
"menu_sort = #{menuSort,jdbcType=INTEGER},", |
|
|
|
"menu_desc = #{menuDesc,jdbcType=VARCHAR},", |
|
|
|
"menu_desc = #{menuDesc,jdbcType=VARCHAR},", |
|
|
|