|
|
|
|
@ -19,7 +19,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
<select id="selectHwWebDocumentList" parameterType="HwWebDocument" resultMap="HwWebDocumentResult">
|
|
|
|
|
<include refid="selectHwWebDocumentVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="documentId != null "> and document_id = #{documentId}</if>
|
|
|
|
|
<if test="tenantId != null "> and tenant_id = #{tenantId}</if>
|
|
|
|
|
<if test="documentAddress != null and documentAddress != ''"> and document_address = #{documentAddress}</if>
|
|
|
|
|
<if test="webCode != null and webCode != ''"> and web_code = #{webCode}</if>
|
|
|
|
|
@ -27,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectHwWebDocumentByDocumentId" parameterType="Long" resultMap="HwWebDocumentResult">
|
|
|
|
|
<select id="selectHwWebDocumentByDocumentId" parameterType="String" resultMap="HwWebDocumentResult">
|
|
|
|
|
<include refid="selectHwWebDocumentVo"/>
|
|
|
|
|
where document_id = #{documentId}
|
|
|
|
|
</select>
|
|
|
|
|
@ -35,6 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<insert id="insertHwWebDocument" parameterType="HwWebDocument" useGeneratedKeys="true" keyProperty="documentId">
|
|
|
|
|
insert into hw_web_document
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="documentId != null">document_id,</if>
|
|
|
|
|
<if test="tenantId != null">tenant_id,</if>
|
|
|
|
|
<if test="documentAddress != null">document_address,</if>
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
@ -42,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="secretKey != null">secretKey,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="documentId != null">#{documentId},</if>
|
|
|
|
|
<if test="tenantId != null">#{tenantId},</if>
|
|
|
|
|
<if test="documentAddress != null">#{documentAddress},</if>
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
@ -53,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<update id="updateHwWebDocument" parameterType="HwWebDocument">
|
|
|
|
|
update hw_web_document
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="documentId != null">document_id = #{documentId},</if>
|
|
|
|
|
<if test="tenantId != null">tenant_id = #{tenantId},</if>
|
|
|
|
|
<if test="documentAddress != null">document_address = #{documentAddress},</if>
|
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
@ -62,7 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
where document_id = #{documentId}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteHwWebDocumentByDocumentId" parameterType="Long">
|
|
|
|
|
<delete id="deleteHwWebDocumentByDocumentId" parameterType="String">
|
|
|
|
|
delete from hw_web_document where document_id = #{documentId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|