|
@@ -22,6 +22,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="id" column="id" />
|
|
|
<result property="recordId" column="record_id" />
|
|
|
<result property="intId" column="int_id" />
|
|
|
+ <result property="intCode" column="int_code" />
|
|
|
+ <result property="intName" column="interface_name" />
|
|
|
<result property="strAt" column="str_at" />
|
|
|
<result property="endAt" column="end_at" />
|
|
|
<result property="secretKey" column="secret_key" />
|
|
@@ -51,12 +53,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
b.id,
|
|
|
b.record_id,
|
|
|
b.int_id,
|
|
|
+ i.interface_name,
|
|
|
+ b.int_code,
|
|
|
b.str_at,
|
|
|
b.end_at,
|
|
|
b.secret_key,
|
|
|
b.STATUS
|
|
|
FROM
|
|
|
- int_detailed b
|
|
|
+ int_detailed b,
|
|
|
+ t_u_interfaceinfo i
|
|
|
+ WHERE
|
|
|
+ b.int_id = i.id
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectIntRecordList" parameterType="IntRecord" resultMap="IntRecordResult">
|
|
@@ -72,9 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectIntDetailedList" parameterType="IntDetailed" resultMap="IntDetailedResult">
|
|
|
<include refid="selectIntDetailedVo"/>
|
|
|
- <where>
|
|
|
- <if test="recordId != null "> and record_id = #{recordId}</if>
|
|
|
- </where>
|
|
|
+ <if test="recordId != null "> and b.record_id = #{recordId}</if>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectIntRecordById" parameterType="String" resultMap="IntRecordIntDetailedResult">
|
|
@@ -130,9 +135,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</delete>
|
|
|
|
|
|
<insert id="batchIntDetailed">
|
|
|
- insert into int_detailed( id, record_id, int_id, str_at, end_at, secret_key, status) values
|
|
|
+ insert into int_detailed( id, record_id, int_id, int_code, str_at, end_at, secret_key, status) values
|
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
|
- ( #{item.id}, #{item.recordId}, #{item.intId}, #{item.strAt}, #{item.endAt}, #{item.secretKey}, #{item.status})
|
|
|
+ ( #{item.id}, #{item.recordId}, #{item.intId} ,#{item.intCode}, #{item.strAt}, #{item.endAt}, #{item.secretKey}, #{item.status})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|