123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <?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.bz.smart_city.dao.assistant.InstallBatchMapper">
- <resultMap id="BaseResultMap" type="com.bz.smart_city.entity.assistant.InstallBatch">
- <!--@mbg.generated-->
- <id column="id" property="id" />
- <result column="site_id" property="siteId" />
- <result column="batch_name" property="batchName" />
- <result column="batch_date" property="batchDate" />
- <result column="related_file" property="relatedFile" />
- <result column="related_plan_id" property="relatedPlanId" />
- <result column="batch_status" property="batchStatus" />
- <result column="status" property="status" />
- <result column="create_by" property="createBy" />
- <result column="update_by" property="updateBy" />
- <result column="date_create" property="dateCreate" />
- <result column="date_update" property="dateUpdate" />
- <result column="remark" property="remark" />
- </resultMap>
- <sql id="Base_Column_List">
- <!--@mbg.generated-->
- id, site_id, batch_name, batch_date, related_file, related_plan_id, batch_status,
- `status`, create_by, update_by, date_create, date_update, remark
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- <!--@mbg.generated-->
- select
- <include refid="Base_Column_List" />
- from sc_install_batch
- where id = #{id}
- </select>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.bz.smart_city.entity.assistant.InstallBatch" useGeneratedKeys="true">
- <!--@mbg.generated-->
- insert into sc_install_batch (site_id, batch_name, batch_date, related_file, related_plan_id,
- batch_status, `status`, create_by, update_by, date_create, date_update,
- remark)
- values (#{siteId}, #{batchName}, #{batchDate}, #{relatedFile}, #{relatedPlanId},
- #{batchStatus}, #{status}, #{createBy}, #{updateBy}, #{dateCreate}, #{dateUpdate},
- #{remark})
- </insert>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.bz.smart_city.entity.assistant.InstallBatch" useGeneratedKeys="true">
- <!--@mbg.generated-->
- insert into sc_install_batch
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="siteId != null">
- site_id,
- </if>
- <if test="batchName != null">
- batch_name,
- </if>
- <if test="batchDate != null">
- batch_date,
- </if>
- <if test="relatedFile != null">
- related_file,
- </if>
- <if test="relatedPlanId != null">
- related_plan_id,
- </if>
- <if test="batchStatus != null">
- batch_status,
- </if>
- <if test="status != null">
- `status`,
- </if>
- <if test="createBy != null">
- create_by,
- </if>
- <if test="updateBy != null">
- update_by,
- </if>
- <if test="dateCreate != null">
- date_create,
- </if>
- <if test="dateUpdate != null">
- date_update,
- </if>
- <if test="remark != null">
- remark,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="siteId != null">
- #{siteId},
- </if>
- <if test="batchName != null">
- #{batchName},
- </if>
- <if test="batchDate != null">
- #{batchDate},
- </if>
- <if test="relatedFile != null">
- #{relatedFile},
- </if>
- <if test="relatedPlanId != null">
- #{relatedPlanId},
- </if>
- <if test="batchStatus != null">
- #{batchStatus},
- </if>
- <if test="status != null">
- #{status},
- </if>
- <if test="createBy != null">
- #{createBy},
- </if>
- <if test="updateBy != null">
- #{updateBy},
- </if>
- <if test="dateCreate != null">
- #{dateCreate},
- </if>
- <if test="dateUpdate != null">
- #{dateUpdate},
- </if>
- <if test="remark != null">
- #{remark},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.bz.smart_city.entity.assistant.InstallBatch">
- <!--@mbg.generated-->
- update sc_install_batch
- <set>
- <if test="siteId != null">
- site_id = #{siteId},
- </if>
- <if test="batchName != null">
- batch_name = #{batchName},
- </if>
- <if test="batchDate != null">
- batch_date = #{batchDate},
- </if>
- <if test="relatedFile != null">
- related_file = #{relatedFile},
- </if>
- <if test="relatedPlanId != null">
- related_plan_id = #{relatedPlanId},
- </if>
- <if test="batchStatus != null">
- batch_status = #{batchStatus},
- </if>
- <if test="status != null">
- `status` = #{status},
- </if>
- <if test="createBy != null">
- create_by = #{createBy},
- </if>
- <if test="updateBy != null">
- update_by = #{updateBy},
- </if>
- <if test="dateCreate != null">
- date_create = #{dateCreate},
- </if>
- <if test="dateUpdate != null">
- date_update = #{dateUpdate},
- </if>
- <if test="remark != null">
- remark = #{remark},
- </if>
- </set>
- where id = #{id}
- </update>
- </mapper>
|