|
@@ -21,6 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="shareType" column="share_type" />
|
|
<result property="shareType" column="share_type" />
|
|
<result property="endTime" column="end_time" />
|
|
<result property="endTime" column="end_time" />
|
|
<result property="status" column="status" />
|
|
<result property="status" column="status" />
|
|
|
|
+ <result property="shareType" column="share_type" />
|
|
<result property="approvalUserId" column="approval_user_id" />
|
|
<result property="approvalUserId" column="approval_user_id" />
|
|
<result property="approvalUserName" column="approval_user_name" />
|
|
<result property="approvalUserName" column="approval_user_name" />
|
|
<result property="approvalTime" column="approval_time" />
|
|
<result property="approvalTime" column="approval_time" />
|
|
@@ -65,7 +66,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
CONCAT(start_time,' - ',end_time) duration,
|
|
CONCAT(start_time,' - ',end_time) duration,
|
|
start_time,
|
|
start_time,
|
|
end_time,
|
|
end_time,
|
|
- status
|
|
|
|
|
|
+ status,
|
|
|
|
+ share_type
|
|
FROM
|
|
FROM
|
|
int_record
|
|
int_record
|
|
</sql>
|
|
</sql>
|
|
@@ -105,6 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
a.start_time,
|
|
a.start_time,
|
|
a.end_time,
|
|
a.end_time,
|
|
a.status,
|
|
a.status,
|
|
|
|
+ a.share_type,
|
|
a.approval_user_id,
|
|
a.approval_user_id,
|
|
a.approval_user_name,
|
|
a.approval_user_name,
|
|
a.approval_time,
|
|
a.approval_time,
|
|
@@ -151,6 +154,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="startTime != null">start_time,</if>
|
|
<if test="startTime != null">start_time,</if>
|
|
<if test="endTime != null">end_time,</if>
|
|
<if test="endTime != null">end_time,</if>
|
|
<if test="status != null">status,</if>
|
|
<if test="status != null">status,</if>
|
|
|
|
+ <if test="shareType != null">share_type,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="applyDeptId != null">#{applyDeptId},</if>
|
|
<if test="applyDeptId != null">#{applyDeptId},</if>
|
|
@@ -166,6 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="startTime != null">#{startTime},</if>
|
|
<if test="startTime != null">#{startTime},</if>
|
|
<if test="endTime != null">#{endTime},</if>
|
|
<if test="endTime != null">#{endTime},</if>
|
|
<if test="status != null">#{status},</if>
|
|
<if test="status != null">#{status},</if>
|
|
|
|
+ <if test="shareType != null">#{shareType},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -204,9 +209,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<!--批量新增子表-->
|
|
<!--批量新增子表-->
|
|
<insert id="batchIntDetailed">
|
|
<insert id="batchIntDetailed">
|
|
- insert into int_detailed(record_id, int_id, secret_key, purpose, file) values
|
|
|
|
|
|
+ insert into int_detailed(record_id, int_id, secret_key, secret_content, purpose, file) values
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
- ( #{item.recordId}, #{item.intId} ,#{item.secretKey}, #{item.purpose}, #{item.file})
|
|
|
|
|
|
+ ( #{item.recordId}, #{item.intId} ,#{item.secretKey} ,#{item.secretContent}, #{item.purpose}, #{item.file})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -420,7 +425,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
LEFT JOIN int_detailed d ON r.id = d.record_id
|
|
LEFT JOIN int_detailed d ON r.id = d.record_id
|
|
LEFT JOIN t_u_interfaceinfo i ON d.int_id = i.id
|
|
LEFT JOIN t_u_interfaceinfo i ON d.int_id = i.id
|
|
WHERE
|
|
WHERE
|
|
- share_type in
|
|
|
|
|
|
+ i.share_type in
|
|
<foreach item="share_type" collection="array" open="(" separator="," close=")">
|
|
<foreach item="share_type" collection="array" open="(" separator="," close=")">
|
|
#{share_type}
|
|
#{share_type}
|
|
</foreach>
|
|
</foreach>
|