ahdevicemgt/bonus-modules/bonus-base/src/main/resources/mapper/BmProjectMapper.xml

736 lines
25 KiB
XML

<?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.bonus.base.mapper.BmProjectMapper">
<resultMap id="BaseResultMap" type="com.bonus.base.domain.BmProject">
<!--@mbg.generated-->
<!--@Table bm_project-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="project_type" jdbcType="INTEGER" property="projectType" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="num" jdbcType="VARCHAR" property="num" />
<result column="manager" jdbcType="VARCHAR" property="manager" />
<result column="nature" jdbcType="VARCHAR" property="nature" />
<result column="telphone" jdbcType="VARCHAR" property="telphone" />
<result column="phone" jdbcType="VARCHAR" property="phone" />
<result column="fax" jdbcType="VARCHAR" property="fax" />
<result column="address" jdbcType="VARCHAR" property="address" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
<result column="material_clerk" jdbcType="VARCHAR" property="materialClerk" />
<result column="clerk_phone" jdbcType="VARCHAR" property="clerkPhone" />
<result column="voltage class" jdbcType="INTEGER" property="voltageClass" />
<result column="company_id" jdbcType="INTEGER" property="companyId" />
<result column="is_balance_end" jdbcType="CHAR" property="isBalanceEnd" />
<result column="time" jdbcType="VARCHAR" property="time" />
<result column="is_active" jdbcType="VARCHAR" property="isActive" />
<result column="lon" jdbcType="VARCHAR" property="lon" />
<result column="lat" jdbcType="VARCHAR" property="lat" />
<result column="company" jdbcType="VARCHAR" property="company" />
<result column="imp_unit" jdbcType="VARCHAR" property="impUnit" />
<result column="dept_name" jdbcType="VARCHAR" property="deptName" />
<result column="pro_id" jdbcType="VARCHAR" property="proId" />
<result column="dept_id" jdbcType="INTEGER" property="deptId" />
<result column="cvo" jdbcType="VARCHAR" property="cvo" />
<result column="stats" jdbcType="VARCHAR" property="stats" />
<result column="htzt" jdbcType="VARCHAR" property="htzt" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, project_type, `name`, num, manager, nature, telphone, phone, fax, address, remarks,
material_clerk, clerk_phone, `voltage class`, company_id, is_balance_end, `time`,
is_active, lon, lat, company, imp_unit, dept_name, pro_id, dept_id, cvo, stats, htzt
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from bm_project
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from bm_project
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.domain.BmProject" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into bm_project (project_type, `name`, num,
manager, nature, telphone,
phone, fax, address,
remarks, material_clerk, clerk_phone,
`voltage class`, company_id, is_balance_end,
`time`, is_active, lon,
lat, company, imp_unit,
dept_name, pro_id, dept_id,
cvo, stats, htzt)
values (#{projectType,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{num,jdbcType=VARCHAR},
#{manager,jdbcType=VARCHAR}, #{nature,jdbcType=VARCHAR}, #{telphone,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR}, #{fax,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
#{remarks,jdbcType=VARCHAR}, #{materialClerk,jdbcType=VARCHAR}, #{clerkPhone,jdbcType=VARCHAR},
#{voltageClass,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, #{isBalanceEnd,jdbcType=CHAR},
#{time,jdbcType=VARCHAR}, #{isActive,jdbcType=VARCHAR}, #{lon,jdbcType=VARCHAR},
#{lat,jdbcType=VARCHAR}, #{company,jdbcType=VARCHAR}, #{impUnit,jdbcType=VARCHAR},
#{deptName,jdbcType=VARCHAR}, #{proId,jdbcType=VARCHAR}, #{deptId,jdbcType=INTEGER},
#{cvo,jdbcType=VARCHAR}, #{stats,jdbcType=VARCHAR}, #{htzt,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.domain.BmProject" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into bm_project
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="projectType != null">
project_type,
</if>
<if test="name != null and name != ''">
`name`,
</if>
<if test="num != null and num != ''">
num,
</if>
<if test="manager != null and manager != ''">
manager,
</if>
<if test="nature != null and nature != ''">
nature,
</if>
<if test="telphone != null and telphone != ''">
telphone,
</if>
<if test="phone != null and phone != ''">
phone,
</if>
<if test="fax != null and fax != ''">
fax,
</if>
<if test="address != null and address != ''">
address,
</if>
<if test="remarks != null and remarks != ''">
remarks,
</if>
<if test="materialClerk != null and materialClerk != ''">
material_clerk,
</if>
<if test="clerkPhone != null and clerkPhone != ''">
clerk_phone,
</if>
<if test="voltageClass != null">
`voltage class`,
</if>
<if test="companyId != null">
company_id,
</if>
<if test="isBalanceEnd != null and isBalanceEnd != ''">
is_balance_end,
</if>
<if test="time != null and time != ''">
`time`,
</if>
<if test="isActive != null and isActive != ''">
is_active,
</if>
<if test="lon != null and lon != ''">
lon,
</if>
<if test="lat != null and lat != ''">
lat,
</if>
<if test="company != null and company != ''">
company,
</if>
<if test="impUnit != null and impUnit != ''">
imp_unit,
</if>
<if test="deptName != null and deptName != ''">
dept_name,
</if>
<if test="proId != null and proId != ''">
pro_id,
</if>
<if test="deptId != null">
dept_id,
</if>
<if test="cvo != null and cvo != ''">
cvo,
</if>
<if test="stats != null and stats != ''">
stats,
</if>
<if test="htzt != null and htzt != ''">
htzt,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="projectType != null">
#{projectType,jdbcType=INTEGER},
</if>
<if test="name != null and name != ''">
#{name,jdbcType=VARCHAR},
</if>
<if test="num != null and num != ''">
#{num,jdbcType=VARCHAR},
</if>
<if test="manager != null and manager != ''">
#{manager,jdbcType=VARCHAR},
</if>
<if test="nature != null and nature != ''">
#{nature,jdbcType=VARCHAR},
</if>
<if test="telphone != null and telphone != ''">
#{telphone,jdbcType=VARCHAR},
</if>
<if test="phone != null and phone != ''">
#{phone,jdbcType=VARCHAR},
</if>
<if test="fax != null and fax != ''">
#{fax,jdbcType=VARCHAR},
</if>
<if test="address != null and address != ''">
#{address,jdbcType=VARCHAR},
</if>
<if test="remarks != null and remarks != ''">
#{remarks,jdbcType=VARCHAR},
</if>
<if test="materialClerk != null and materialClerk != ''">
#{materialClerk,jdbcType=VARCHAR},
</if>
<if test="clerkPhone != null and clerkPhone != ''">
#{clerkPhone,jdbcType=VARCHAR},
</if>
<if test="voltageClass != null">
#{voltageClass,jdbcType=INTEGER},
</if>
<if test="companyId != null">
#{companyId,jdbcType=INTEGER},
</if>
<if test="isBalanceEnd != null and isBalanceEnd != ''">
#{isBalanceEnd,jdbcType=CHAR},
</if>
<if test="time != null and time != ''">
#{time,jdbcType=VARCHAR},
</if>
<if test="isActive != null and isActive != ''">
#{isActive,jdbcType=VARCHAR},
</if>
<if test="lon != null and lon != ''">
#{lon,jdbcType=VARCHAR},
</if>
<if test="lat != null and lat != ''">
#{lat,jdbcType=VARCHAR},
</if>
<if test="company != null and company != ''">
#{company,jdbcType=VARCHAR},
</if>
<if test="impUnit != null and impUnit != ''">
#{impUnit,jdbcType=VARCHAR},
</if>
<if test="deptName != null and deptName != ''">
#{deptName,jdbcType=VARCHAR},
</if>
<if test="proId != null and proId != ''">
#{proId,jdbcType=VARCHAR},
</if>
<if test="deptId != null">
#{deptId,jdbcType=INTEGER},
</if>
<if test="cvo != null and cvo != ''">
#{cvo,jdbcType=VARCHAR},
</if>
<if test="stats != null and stats != ''">
#{stats,jdbcType=VARCHAR},
</if>
<if test="htzt != null and htzt != ''">
#{htzt,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.bonus.base.domain.BmProject">
<!--@mbg.generated-->
update bm_project
<set>
<if test="projectType != null">
project_type = #{projectType,jdbcType=INTEGER},
</if>
<if test="name != null and name != ''">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="num != null and num != ''">
num = #{num,jdbcType=VARCHAR},
</if>
<if test="manager != null and manager != ''">
manager = #{manager,jdbcType=VARCHAR},
</if>
<if test="nature != null and nature != ''">
nature = #{nature,jdbcType=VARCHAR},
</if>
<if test="telphone != null and telphone != ''">
telphone = #{telphone,jdbcType=VARCHAR},
</if>
<if test="phone != null and phone != ''">
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="fax != null and fax != ''">
fax = #{fax,jdbcType=VARCHAR},
</if>
<if test="address != null and address != ''">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="remarks != null and remarks != ''">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
<if test="materialClerk != null and materialClerk != ''">
material_clerk = #{materialClerk,jdbcType=VARCHAR},
</if>
<if test="clerkPhone != null and clerkPhone != ''">
clerk_phone = #{clerkPhone,jdbcType=VARCHAR},
</if>
<if test="voltageClass != null">
`voltage class` = #{voltageClass,jdbcType=INTEGER},
</if>
<if test="companyId != null">
company_id = #{companyId,jdbcType=INTEGER},
</if>
<if test="isBalanceEnd != null and isBalanceEnd != ''">
is_balance_end = #{isBalanceEnd,jdbcType=CHAR},
</if>
<if test="time != null and time != ''">
`time` = #{time,jdbcType=VARCHAR},
</if>
<if test="isActive != null and isActive != ''">
is_active = #{isActive,jdbcType=VARCHAR},
</if>
<if test="lon != null and lon != ''">
lon = #{lon,jdbcType=VARCHAR},
</if>
<if test="lat != null and lat != ''">
lat = #{lat,jdbcType=VARCHAR},
</if>
<if test="company != null and company != ''">
company = #{company,jdbcType=VARCHAR},
</if>
<if test="impUnit != null and impUnit != ''">
imp_unit = #{impUnit,jdbcType=VARCHAR},
</if>
<if test="deptName != null and deptName != ''">
dept_name = #{deptName,jdbcType=VARCHAR},
</if>
<if test="proId != null and proId != ''">
pro_id = #{proId,jdbcType=VARCHAR},
</if>
<if test="deptId != null">
dept_id = #{deptId,jdbcType=INTEGER},
</if>
<if test="cvo != null and cvo != ''">
cvo = #{cvo,jdbcType=VARCHAR},
</if>
<if test="stats != null and stats != ''">
stats = #{stats,jdbcType=VARCHAR},
</if>
<if test="htzt != null and htzt != ''">
htzt = #{htzt,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.bonus.base.domain.BmProject">
<!--@mbg.generated-->
update bm_project
set project_type = #{projectType,jdbcType=INTEGER},
`name` = #{name,jdbcType=VARCHAR},
num = #{num,jdbcType=VARCHAR},
manager = #{manager,jdbcType=VARCHAR},
nature = #{nature,jdbcType=VARCHAR},
telphone = #{telphone,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
fax = #{fax,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
remarks = #{remarks,jdbcType=VARCHAR},
material_clerk = #{materialClerk,jdbcType=VARCHAR},
clerk_phone = #{clerkPhone,jdbcType=VARCHAR},
`voltage class` = #{voltageClass,jdbcType=INTEGER},
company_id = #{companyId,jdbcType=INTEGER},
is_balance_end = #{isBalanceEnd,jdbcType=CHAR},
`time` = #{time,jdbcType=VARCHAR},
is_active = #{isActive,jdbcType=VARCHAR},
lon = #{lon,jdbcType=VARCHAR},
lat = #{lat,jdbcType=VARCHAR},
company = #{company,jdbcType=VARCHAR},
imp_unit = #{impUnit,jdbcType=VARCHAR},
dept_name = #{deptName,jdbcType=VARCHAR},
pro_id = #{proId,jdbcType=VARCHAR},
dept_id = #{deptId,jdbcType=INTEGER},
cvo = #{cvo,jdbcType=VARCHAR},
stats = #{stats,jdbcType=VARCHAR},
htzt = #{htzt,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.domain.BmProject" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into bm_project
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
project_type,
`name`,
num,
manager,
nature,
telphone,
phone,
fax,
address,
remarks,
material_clerk,
clerk_phone,
`voltage class`,
company_id,
is_balance_end,
`time`,
is_active,
lon,
lat,
company,
imp_unit,
dept_name,
pro_id,
dept_id,
cvo,
stats,
htzt,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{projectType,jdbcType=INTEGER},
#{name,jdbcType=VARCHAR},
#{num,jdbcType=VARCHAR},
#{manager,jdbcType=VARCHAR},
#{nature,jdbcType=VARCHAR},
#{telphone,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR},
#{fax,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR},
#{remarks,jdbcType=VARCHAR},
#{materialClerk,jdbcType=VARCHAR},
#{clerkPhone,jdbcType=VARCHAR},
#{voltageClass,jdbcType=INTEGER},
#{companyId,jdbcType=INTEGER},
#{isBalanceEnd,jdbcType=CHAR},
#{time,jdbcType=VARCHAR},
#{isActive,jdbcType=VARCHAR},
#{lon,jdbcType=VARCHAR},
#{lat,jdbcType=VARCHAR},
#{company,jdbcType=VARCHAR},
#{impUnit,jdbcType=VARCHAR},
#{deptName,jdbcType=VARCHAR},
#{proId,jdbcType=VARCHAR},
#{deptId,jdbcType=INTEGER},
#{cvo,jdbcType=VARCHAR},
#{stats,jdbcType=VARCHAR},
#{htzt,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
project_type = #{projectType,jdbcType=INTEGER},
`name` = #{name,jdbcType=VARCHAR},
num = #{num,jdbcType=VARCHAR},
manager = #{manager,jdbcType=VARCHAR},
nature = #{nature,jdbcType=VARCHAR},
telphone = #{telphone,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
fax = #{fax,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
remarks = #{remarks,jdbcType=VARCHAR},
material_clerk = #{materialClerk,jdbcType=VARCHAR},
clerk_phone = #{clerkPhone,jdbcType=VARCHAR},
`voltage class` = #{voltageClass,jdbcType=INTEGER},
company_id = #{companyId,jdbcType=INTEGER},
is_balance_end = #{isBalanceEnd,jdbcType=CHAR},
`time` = #{time,jdbcType=VARCHAR},
is_active = #{isActive,jdbcType=VARCHAR},
lon = #{lon,jdbcType=VARCHAR},
lat = #{lat,jdbcType=VARCHAR},
company = #{company,jdbcType=VARCHAR},
imp_unit = #{impUnit,jdbcType=VARCHAR},
dept_name = #{deptName,jdbcType=VARCHAR},
pro_id = #{proId,jdbcType=VARCHAR},
dept_id = #{deptId,jdbcType=INTEGER},
cvo = #{cvo,jdbcType=VARCHAR},
stats = #{stats,jdbcType=VARCHAR},
htzt = #{htzt,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.domain.BmProject" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into bm_project
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="projectType != null">
project_type,
</if>
<if test="name != null and name != ''">
`name`,
</if>
<if test="num != null and num != ''">
num,
</if>
<if test="manager != null and manager != ''">
manager,
</if>
<if test="nature != null and nature != ''">
nature,
</if>
<if test="telphone != null and telphone != ''">
telphone,
</if>
<if test="phone != null and phone != ''">
phone,
</if>
<if test="fax != null and fax != ''">
fax,
</if>
<if test="address != null and address != ''">
address,
</if>
<if test="remarks != null and remarks != ''">
remarks,
</if>
<if test="materialClerk != null and materialClerk != ''">
material_clerk,
</if>
<if test="clerkPhone != null and clerkPhone != ''">
clerk_phone,
</if>
<if test="voltageClass != null">
`voltage class`,
</if>
<if test="companyId != null">
company_id,
</if>
<if test="isBalanceEnd != null and isBalanceEnd != ''">
is_balance_end,
</if>
<if test="time != null and time != ''">
`time`,
</if>
<if test="isActive != null and isActive != ''">
is_active,
</if>
<if test="lon != null and lon != ''">
lon,
</if>
<if test="lat != null and lat != ''">
lat,
</if>
<if test="company != null and company != ''">
company,
</if>
<if test="impUnit != null and impUnit != ''">
imp_unit,
</if>
<if test="deptName != null and deptName != ''">
dept_name,
</if>
<if test="proId != null and proId != ''">
pro_id,
</if>
<if test="deptId != null">
dept_id,
</if>
<if test="cvo != null and cvo != ''">
cvo,
</if>
<if test="stats != null and stats != ''">
stats,
</if>
<if test="htzt != null and htzt != ''">
htzt,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="projectType != null">
#{projectType,jdbcType=INTEGER},
</if>
<if test="name != null and name != ''">
#{name,jdbcType=VARCHAR},
</if>
<if test="num != null and num != ''">
#{num,jdbcType=VARCHAR},
</if>
<if test="manager != null and manager != ''">
#{manager,jdbcType=VARCHAR},
</if>
<if test="nature != null and nature != ''">
#{nature,jdbcType=VARCHAR},
</if>
<if test="telphone != null and telphone != ''">
#{telphone,jdbcType=VARCHAR},
</if>
<if test="phone != null and phone != ''">
#{phone,jdbcType=VARCHAR},
</if>
<if test="fax != null and fax != ''">
#{fax,jdbcType=VARCHAR},
</if>
<if test="address != null and address != ''">
#{address,jdbcType=VARCHAR},
</if>
<if test="remarks != null and remarks != ''">
#{remarks,jdbcType=VARCHAR},
</if>
<if test="materialClerk != null and materialClerk != ''">
#{materialClerk,jdbcType=VARCHAR},
</if>
<if test="clerkPhone != null and clerkPhone != ''">
#{clerkPhone,jdbcType=VARCHAR},
</if>
<if test="voltageClass != null">
#{voltageClass,jdbcType=INTEGER},
</if>
<if test="companyId != null">
#{companyId,jdbcType=INTEGER},
</if>
<if test="isBalanceEnd != null and isBalanceEnd != ''">
#{isBalanceEnd,jdbcType=CHAR},
</if>
<if test="time != null and time != ''">
#{time,jdbcType=VARCHAR},
</if>
<if test="isActive != null and isActive != ''">
#{isActive,jdbcType=VARCHAR},
</if>
<if test="lon != null and lon != ''">
#{lon,jdbcType=VARCHAR},
</if>
<if test="lat != null and lat != ''">
#{lat,jdbcType=VARCHAR},
</if>
<if test="company != null and company != ''">
#{company,jdbcType=VARCHAR},
</if>
<if test="impUnit != null and impUnit != ''">
#{impUnit,jdbcType=VARCHAR},
</if>
<if test="deptName != null and deptName != ''">
#{deptName,jdbcType=VARCHAR},
</if>
<if test="proId != null and proId != ''">
#{proId,jdbcType=VARCHAR},
</if>
<if test="deptId != null">
#{deptId,jdbcType=INTEGER},
</if>
<if test="cvo != null and cvo != ''">
#{cvo,jdbcType=VARCHAR},
</if>
<if test="stats != null and stats != ''">
#{stats,jdbcType=VARCHAR},
</if>
<if test="htzt != null and htzt != ''">
#{htzt,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="projectType != null">
project_type = #{projectType,jdbcType=INTEGER},
</if>
<if test="name != null and name != ''">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="num != null and num != ''">
num = #{num,jdbcType=VARCHAR},
</if>
<if test="manager != null and manager != ''">
manager = #{manager,jdbcType=VARCHAR},
</if>
<if test="nature != null and nature != ''">
nature = #{nature,jdbcType=VARCHAR},
</if>
<if test="telphone != null and telphone != ''">
telphone = #{telphone,jdbcType=VARCHAR},
</if>
<if test="phone != null and phone != ''">
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="fax != null and fax != ''">
fax = #{fax,jdbcType=VARCHAR},
</if>
<if test="address != null and address != ''">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="remarks != null and remarks != ''">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
<if test="materialClerk != null and materialClerk != ''">
material_clerk = #{materialClerk,jdbcType=VARCHAR},
</if>
<if test="clerkPhone != null and clerkPhone != ''">
clerk_phone = #{clerkPhone,jdbcType=VARCHAR},
</if>
<if test="voltageClass != null">
`voltage class` = #{voltageClass,jdbcType=INTEGER},
</if>
<if test="companyId != null">
company_id = #{companyId,jdbcType=INTEGER},
</if>
<if test="isBalanceEnd != null and isBalanceEnd != ''">
is_balance_end = #{isBalanceEnd,jdbcType=CHAR},
</if>
<if test="time != null and time != ''">
`time` = #{time,jdbcType=VARCHAR},
</if>
<if test="isActive != null and isActive != ''">
is_active = #{isActive,jdbcType=VARCHAR},
</if>
<if test="lon != null and lon != ''">
lon = #{lon,jdbcType=VARCHAR},
</if>
<if test="lat != null and lat != ''">
lat = #{lat,jdbcType=VARCHAR},
</if>
<if test="company != null and company != ''">
company = #{company,jdbcType=VARCHAR},
</if>
<if test="impUnit != null and impUnit != ''">
imp_unit = #{impUnit,jdbcType=VARCHAR},
</if>
<if test="deptName != null and deptName != ''">
dept_name = #{deptName,jdbcType=VARCHAR},
</if>
<if test="proId != null and proId != ''">
pro_id = #{proId,jdbcType=VARCHAR},
</if>
<if test="deptId != null">
dept_id = #{deptId,jdbcType=INTEGER},
</if>
<if test="cvo != null and cvo != ''">
cvo = #{cvo,jdbcType=VARCHAR},
</if>
<if test="stats != null and stats != ''">
stats = #{stats,jdbcType=VARCHAR},
</if>
<if test="htzt != null and htzt != ''">
htzt = #{htzt,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>