新增公司
This commit is contained in:
parent
0a1498e973
commit
a7aadb246f
|
|
@ -173,6 +173,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="logo != null and logo != ''">logo,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="templateId != null">template_id,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
create_time
|
||||
)values(
|
||||
|
|
@ -192,6 +193,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="logo != null and logo != ''">#{logo},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="templateId != null">#{templateId},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
sysdate()
|
||||
)
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<select id="queryAllByLimit" resultMap="SysTemplateMenuMap">
|
||||
select
|
||||
temp_id, menu_id
|
||||
from sys_temp_menu
|
||||
from sys_template_menu
|
||||
limit #{offset}, #{limit}
|
||||
</select>
|
||||
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
<select id="queryAll" resultMap="SysTemplateMenuMap">
|
||||
select
|
||||
temp_id, menu_id
|
||||
from sys_temp_menu
|
||||
from sys_template_menu
|
||||
<where>
|
||||
<if test="tempId != null">
|
||||
and temp_id = #{tempId}
|
||||
|
|
@ -33,13 +33,13 @@
|
|||
|
||||
<!--新增所有列-->
|
||||
<insert id="insert" keyProperty="" useGeneratedKeys="true">
|
||||
insert into sys_temp_menu(temp_id, menu_id)
|
||||
insert into sys_template_menu(temp_id, menu_id)
|
||||
values (#{tempId}, #{menuId})
|
||||
</insert>
|
||||
|
||||
<!--通过主键修改数据-->
|
||||
<update id="update">
|
||||
update sys_temp_menu
|
||||
update sys_template_menu
|
||||
<set>
|
||||
<if test="tempId != null">
|
||||
temp_id = #{tempId},
|
||||
|
|
@ -52,6 +52,6 @@
|
|||
</update>
|
||||
|
||||
<delete id="deleteByTempId" parameterType="Long">
|
||||
delete from sys_temp_menu where temp_id = #{tempId}
|
||||
delete from sys_template_menu where temp_id = #{tempId}
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue