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