提交 c1d2e00c 编写于 作者: minghao.wu's avatar minghao.wu

fix: sql字段错误

上级 3cca9fcc
流水线 #43212 已失败 于阶段
......@@ -11,17 +11,17 @@
<result column="system_type" property="systemType" jdbcType="INTEGER"/>
<result column="seq" property="seq" jdbcType="INTEGER"/>
<result column="delete_flag" property="deleteFlag" jdbcType="INTEGER"/>
<result column="creat_id" property="creatId" jdbcType="INTEGER"/>
<result column="creat_time" property="creatTime" jdbcType="TIMESTAMP"/>
<result column="modify_id" property="modifyId" jdbcType="INTEGER"/>
<result column="modify_time" property="modifyTime" jdbcType="TIMESTAMP"/>
<result column="created_id" property="creatId" jdbcType="INTEGER" />
<result column="created_time" property="creatTime" jdbcType="TIMESTAMP" />
<result column="modified_id" property="modifyId" jdbcType="INTEGER" />
<result column="modified_time" property="modifyTime" jdbcType="TIMESTAMP" />
<result column="icon" property="icon" jdbcType="VARCHAR"/>
<result column="menu_type" property="menuType" jdbcType="INTEGER"/>
<result column="second_menu_id" property="secondMenuId" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
id, hospital_id, permission_role_id, name, url, parent_id, system_type, seq, delete_flag,
creat_id, creat_time, modify_id, modify_time, icon, menu_type, second_menu_id
created_id, created_time, modified_id, modified_time, icon, menu_type, second_menu_id
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
select
......@@ -45,8 +45,8 @@
<update id="deleteByRoleId" parameterType="java.util.Map">
update p_saas_menu
set delete_flag = 2,
modify_id = #{modifiedId,jdbcType=BIGINT},
modify_time = #{modifiedTime,jdbcType=TIMESTAMP}
modified_id = #{modifiedId,jdbcType=BIGINT},
modified_time = #{modifiedTime,jdbcType=TIMESTAMP}
where permission_role_id = #{id,jdbcType=VARCHAR}
and delete_flag = 1
</update>
......@@ -54,8 +54,8 @@
insert into p_saas_menu (id, hospital_id, permission_role_id,
name, url, parent_id,
system_type, seq, delete_flag,
creat_id, creat_time, modify_id,
modify_time, icon, menu_type,
created_id, created_time, modified_id,
modified_time, icon, menu_type,
second_menu_id)
values (#{id,jdbcType=INTEGER}, #{hospitalId,jdbcType=BIGINT}, #{permissionRoleId,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER},
......@@ -70,8 +70,8 @@
insert into p_saas_menu (hospital_id, permission_role_id,
name, url, parent_id,
system_type, seq, delete_flag,
creat_id, creat_time, modify_id,
modify_time, icon, menu_type,
created_id, created_time, modified_id,
modified_time, icon, menu_type,
second_menu_id)
values
<foreach collection="list" item="item" separator=",">
......@@ -114,16 +114,16 @@
delete_flag,
</if>
<if test="creatId != null">
creat_id,
created_id,
</if>
<if test="creatTime != null">
creat_time,
created_time,
</if>
<if test="modifyId != null">
modify_id,
modified_id,
</if>
<if test="modifyTime != null">
modify_time,
modified_time,
</if>
<if test="icon != null">
icon,
......@@ -214,16 +214,16 @@
delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if>
<if test="creatId != null">
creat_id = #{creatId,jdbcType=INTEGER},
created_id = #{creatId,jdbcType=INTEGER},
</if>
<if test="creatTime != null">
creat_time = #{creatTime,jdbcType=TIMESTAMP},
created_time = #{creatTime,jdbcType=TIMESTAMP},
</if>
<if test="modifyId != null">
modify_id = #{modifyId,jdbcType=INTEGER},
modified_id = #{modifyId,jdbcType=INTEGER},
</if>
<if test="modifyTime != null">
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
modified_time = #{modifyTime,jdbcType=TIMESTAMP},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
......@@ -247,10 +247,10 @@
system_type = #{systemType,jdbcType=INTEGER},
seq = #{seq,jdbcType=INTEGER},
delete_flag = #{deleteFlag,jdbcType=INTEGER},
creat_id = #{creatId,jdbcType=INTEGER},
creat_time = #{creatTime,jdbcType=TIMESTAMP},
modify_id = #{modifyId,jdbcType=INTEGER},
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
created_id = #{creatId,jdbcType=INTEGER},
created_time = #{creatTime,jdbcType=TIMESTAMP},
modified_id = #{modifyId,jdbcType=INTEGER},
modified_time = #{modifyTime,jdbcType=TIMESTAMP},
icon = #{icon,jdbcType=VARCHAR},
menu_type = #{menuType,jdbcType=INTEGER},
second_menu_id = #{secondMenuId,jdbcType=INTEGER}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册