This commit is contained in:
parent
d6b08685d2
commit
a7cbe359e0
|
|
@ -18,11 +18,6 @@
|
|||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
</resultMap>
|
||||
<resultMap id="InterTableDtoResult" type="com.hchyun.generator.dto.InterTableDto">
|
||||
<collection property="module" notNullColumn="id" javaType="com.hchyun.generator.entity.Module" resultMap="ModuleResult" />
|
||||
<collection property="apiclass" notNullColumn="id" javaType="com.hchyun.generator.entity.Apiclass" resultMap="ApiclassResult"/>
|
||||
<collection property="interTables" notNullColumn="id" javaType="java.util.List" resultMap="InterTableResult" />
|
||||
</resultMap>
|
||||
<resultMap type="com.hchyun.generator.entity.Module" id="ModuleResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="mName" column="m_name" />
|
||||
|
|
@ -47,11 +42,6 @@
|
|||
<sql id="selectInterTableVo">
|
||||
select id, m_id, c_id, it_name, it_describe, is_permission, requrl, method, is_generate, type, create_time, create_by from sys_inter_table
|
||||
</sql>
|
||||
<select id="selectInterTableDtoList" parameterType="com.hchyun.generator.dto.InterTableDto" resultMap="InterTableDtoResult">
|
||||
select *
|
||||
from sys_module m
|
||||
left join sys_apiclass a on
|
||||
</select>
|
||||
|
||||
<select id="selectInterTableList" parameterType="InterTable" resultMap="InterTableResult">
|
||||
<include refid="selectInterTableVo"/>
|
||||
|
|
@ -80,10 +70,10 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<delete id="deleteInterTableByClassId" parameterType="Long">
|
||||
delete from sys_inter_table where c_id = #{cId}
|
||||
delete from sys_inter_table where c_id = #{cId} and type = 2
|
||||
</delete>
|
||||
<delete id="deleteInterTableByModuleId" parameterType="Long">
|
||||
delete from sys_inter_table where c_id = #{cId}
|
||||
delete from sys_inter_table where c_id = #{cId} and type = 1
|
||||
</delete>
|
||||
|
||||
<insert id="insertInterTable" parameterType="InterTable" useGeneratedKeys="true" keyProperty="id">
|
||||
|
|
|
|||
Loading…
Reference in New Issue