<?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.boco.nbd.wios.manage.mapper.def.SystemInfoDeleteMapper" > <resultMap id="BaseResultMap" type="com.boco.nbd.wios.manage.entity.bo.SystemInfoDelete" > <id column="id" property="id" jdbcType="INTEGER" /> <result column="title" property="title" jdbcType="VARCHAR" /> <result column="content" property="content" jdbcType="VARCHAR" /> <result column="third_party_id" property="thirdPartyId" jdbcType="VARCHAR" /> <result column="status" property="status" jdbcType="BIT" /> <result column="type" property="type" jdbcType="BIT" /> <result column="account_id" property="accountId" jdbcType="INTEGER" /> <result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" /> <result column="order_status" property="orderStatus" jdbcType="INTEGER" /> <result column="overtime_flag" property="overtimeFlag" jdbcType="INTEGER" /> </resultMap> <sql id="Base_Column_List" > id, title, content, third_party_id, status, type, account_id, create_time, update_time, order_status, overtime_flag </sql> <insert id="insert" parameterType="com.boco.nbd.wios.manage.entity.bo.SystemInfoDelete" > insert into t_system_info_delete (id, title, content, third_party_id, status, type, account_id, create_time, update_time, order_status, overtime_flag) values (#{id,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{thirdPartyId,jdbcType=VARCHAR}, #{status,jdbcType=BIT}, #{type,jdbcType=BIT}, #{accountId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{orderStatus,jdbcType=INTEGER}, #{overtimeFlag,jdbcType=INTEGER}) </insert> <insert id="insertSelective" parameterType="com.boco.nbd.wios.manage.entity.bo.SystemInfoDelete" > insert into t_system_info_delete <trim prefix="(" suffix=")" suffixOverrides="," > <if test="id != null" > id, </if> <if test="title != null" > title, </if> <if test="content != null" > content, </if> <if test="thirdPartyId != null" > third_party_id, </if> <if test="status != null" > status, </if> <if test="type != null" > type, </if> <if test="accountId != null" > account_id, </if> <if test="createTime != null" > create_time, </if> <if test="updateTime != null" > update_time, </if> <if test="orderStatus != null" > order_status, </if> <if test="overtimeFlag != null" > overtime_flag, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides="," > <if test="id != null" > #{id,jdbcType=INTEGER}, </if> <if test="title != null" > #{title,jdbcType=VARCHAR}, </if> <if test="content != null" > #{content,jdbcType=VARCHAR}, </if> <if test="thirdPartyId != null" > #{thirdPartyId,jdbcType=VARCHAR}, </if> <if test="status != null" > #{status,jdbcType=BIT}, </if> <if test="type != null" > #{type,jdbcType=BIT}, </if> <if test="accountId != null" > #{accountId,jdbcType=INTEGER}, </if> <if test="createTime != null" > #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null" > #{updateTime,jdbcType=TIMESTAMP}, </if> <if test="orderStatus != null" > #{orderStatus,jdbcType=INTEGER}, </if> <if test="overtimeFlag != null" > #{overtimeFlag,jdbcType=INTEGER}, </if> </trim> </insert> <insert id="batchInsert" parameterType="java.util.List"> insert into t_system_info_delete ( title, content, third_party_id, status, type, account_id, create_time, update_time, order_status, overtime_flag) values <foreach collection="list" item="item" separator=","> ( #{item.title,jdbcType=VARCHAR}, #{item.content,jdbcType=VARCHAR}, #{item.thirdPartyId,jdbcType=VARCHAR}, #{item.status,jdbcType=INTEGER}, #{item.type,jdbcType=INTEGER}, #{item.accountId,jdbcType=INTEGER}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.orderStatus,jdbcType=INTEGER}, #{item.overtimeFlag,jdbcType=INTEGER}) </foreach> </insert> </mapper>