|
|
@@ -11,29 +11,101 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
operate_name,
|
|
|
content,
|
|
|
create_at,
|
|
|
- update_at
|
|
|
- FROM business_card_tools order by create_at desc limit 1
|
|
|
+ update_at,
|
|
|
+ is_delete,
|
|
|
+ content_two,
|
|
|
+ content_three,
|
|
|
+ content_four,
|
|
|
+ content_five,
|
|
|
+ content_sex,
|
|
|
+ content_seven,
|
|
|
+ content_eight,
|
|
|
+ content_nine
|
|
|
+ FROM business_card_tools where is_delete=0 order by create_at desc limit 1
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- <insert id="insertBusinessCardTools" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ <insert id="insertBusinessCardTools" parameterType="org.dromara.business.domain.BusinessCardTools">
|
|
|
INSERT INTO business_card_tools
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">id,</if>
|
|
|
- <if test="operateName != null and operateName != ''">operate_name,</if>
|
|
|
- <if test="content != null and content != ''">content,</if>
|
|
|
- <!-- 强制插入时间 -->
|
|
|
+ <if test="operateName != null and operateName != ''">
|
|
|
+ operate_name,
|
|
|
+ </if>
|
|
|
+ <if test="content != null and content != ''">
|
|
|
+ content,
|
|
|
+ </if>
|
|
|
+ <if test="contentTwo != null and contentTwo != ''">
|
|
|
+ content_two,
|
|
|
+ </if>
|
|
|
+ <if test="contentThree != null and contentThree != ''">
|
|
|
+ content_three,
|
|
|
+ </if>
|
|
|
+ <if test="contentFour != null and contentFour != ''">
|
|
|
+ content_four,
|
|
|
+ </if>
|
|
|
+ <if test="contentFive != null and contentFive != ''">
|
|
|
+ content_five,
|
|
|
+ </if>
|
|
|
+ <if test="contentSex != null and contentSex != ''">
|
|
|
+ content_sex,
|
|
|
+ </if>
|
|
|
+ <if test="contentSeven != null and contentSeven != ''">
|
|
|
+ content_seven,
|
|
|
+ </if>
|
|
|
+ <if test="contentEight != null and contentEight != ''">
|
|
|
+ content_eight,
|
|
|
+ </if>
|
|
|
+ <if test="contentNine != null and contentNine != ''">
|
|
|
+ content_nine,
|
|
|
+ </if>
|
|
|
+ <if test="isDelete != null">
|
|
|
+ is_delete,
|
|
|
+ </if>
|
|
|
create_at,
|
|
|
- update_at
|
|
|
+ update_at,
|
|
|
</trim>
|
|
|
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">#{id},</if>
|
|
|
- <if test="operateName != null and operateName != ''">#{operateName},</if>
|
|
|
- <if test="content != null and content != ''">#{content},</if>
|
|
|
- NOW(), NOW()
|
|
|
+ <if test="operateName != null and operateName != ''">
|
|
|
+ #{operateName},
|
|
|
+ </if>
|
|
|
+ <if test="content != null and content != ''">
|
|
|
+ #{content},
|
|
|
+ </if>
|
|
|
+ <if test="contentTwo != null and contentTwo != ''">
|
|
|
+ #{contentTwo},
|
|
|
+ </if>
|
|
|
+ <if test="contentThree != null and contentThree != ''">
|
|
|
+ #{contentThree},
|
|
|
+ </if>
|
|
|
+ <if test="contentFour != null and contentFour != ''">
|
|
|
+ #{contentFour},
|
|
|
+ </if>
|
|
|
+ <if test="contentFive != null and contentFive != ''">
|
|
|
+ #{contentFive},
|
|
|
+ </if>
|
|
|
+ <if test="contentSex != null and contentSex != ''">
|
|
|
+ #{contentSex},
|
|
|
+ </if>
|
|
|
+ <if test="contentSeven != null and contentSeven != ''">
|
|
|
+ #{contentSeven},
|
|
|
+ </if>
|
|
|
+ <if test="contentEight != null and contentEight != ''">
|
|
|
+ #{contentEight},
|
|
|
+ </if>
|
|
|
+ <if test="contentNine != null and contentNine != ''">
|
|
|
+ #{contentNine},
|
|
|
+ </if>
|
|
|
+ <if test="isDelete != null">
|
|
|
+ #{isDelete},
|
|
|
+ </if>
|
|
|
+ NOW(),
|
|
|
+ NOW()
|
|
|
</trim>
|
|
|
</insert>
|
|
|
+ <update id="updateDelStatus">
|
|
|
+ update business_card_tools set is_delete=1
|
|
|
+ </update>
|
|
|
|
|
|
</mapper>
|