123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
- <mapper namespace="com.zhyc.xps.common.mapper.MsgCcMapper">
- <!--新增Create-->
- <insert id="create" parameterType="com.zhyc.xps.common.entity.MsgCc">
- INSERT INTO msg_cc
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="ocId != null">
- oc_id,
- </if>
- <if test="msgId != null">
- msg_id,
- </if>
- <if test="msgCcId != null">
- msg_cc_id,
- </if>
- <if test="createdBy != null">
- created_by,
- </if>
- <if test="createdAt != null">
- created_at,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="ocId != null">
- #{ocId ,jdbcType=BIGINT},
- </if>
- <if test="msgId != null">
- #{msgId ,jdbcType=BIGINT},
- </if>
- <if test="msgCcId != null">
- #{msgCcId ,jdbcType=BIGINT},
- </if>
- <if test="createdBy != null">
- #{createdBy ,jdbcType=BIGINT},
- </if>
- <if test="createdAt != null">
- #{createdAt ,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <!--更新Update-->
- <update id="update" parameterType="java.util.Map">
- UPDATE msg_cc
- <trim suffixOverrides=",">
- <set>
- <if test="status != null">
- status = #{status ,jdbcType=BIGINT},
- </if>
- <if test="updatedBy != null ">
- updated_by = #{updatedBy ,jdbcType=BIGINT},
- </if>
- <if test="updatedAt != null">
- updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
- </if>
- </set>
- </trim>
- WHERE 1 = 1
- <if test="ocId != null">
- AND oc_id = #{ocId ,jdbcType=BIGINT}
- </if>
- <if test="msgId != null">
- AND msg_id = #{msgId ,jdbcType=BIGINT}
- </if>
- <if test="msgCcId != null">
- AND msg_cc_id = #{msgCcId ,jdbcType=BIGINT}
- </if>
- </update>
- <!--删除Delete-->
- <update id="delete" parameterType="java.util.Map">
- UPDATE msg_cc
- <trim suffixOverrides=",">
- <set>
- <if test="deletedFlag != null">
- deleted_flag = #{deletedFlag,jdbcType=BIGINT},
- </if>
- <if test="deletedTime != null">
- deleted_time = #{deletedTime,jdbcType=VARCHAR},
- </if>
- <if test="deletedBy != null">
- deleted_by = #{deletedBy,jdbcType=BIGINT},
- </if>
- </set>
- </trim>
- WHERE 1 =1
- <if test="ocId != null">
- AND oc_id = #{ocId ,jdbcType=BIGINT}
- </if>
- <if test="msgId != null">
- AND msg_id = #{ocId ,jdbcType=BIGINT}
- </if>
- </update>
- </mapper>
|