|
@@ -0,0 +1,706 @@
|
|
|
+<?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.hwrj.cloud.portal.dao.UmsCompanyInfoDao">
|
|
|
+ <resultMap id="BaseResultMap" type="com.hwrj.cloud.portal.domain.UmsCompanyInfoDto">
|
|
|
+ <id column="id" jdbcType="BIGINT" property="id" />
|
|
|
+ <result column="comp_name" jdbcType="VARCHAR" property="compName" />
|
|
|
+ <result column="company_type" jdbcType="VARCHAR" property="companyType" />
|
|
|
+ <result column="comp_level" jdbcType="INTEGER" property="compLevel" />
|
|
|
+ <result column="comp_qual" jdbcType="VARCHAR" property="compQual" />
|
|
|
+ <result column="comp_imgs" jdbcType="VARCHAR" property="compImgs" />
|
|
|
+ <result column="comp_url" jdbcType="VARCHAR" property="compUrl" />
|
|
|
+ <result column="comp_prod_license_num" jdbcType="VARCHAR" property="compProdLicenseNum" />
|
|
|
+ <result column="comp_manage_license_num" jdbcType="VARCHAR" property="compManageLicenseNum" />
|
|
|
+ <result column="comp_social_code" jdbcType="VARCHAR" property="compSocialCode" />
|
|
|
+ <result column="comp_con_person" jdbcType="VARCHAR" property="compConPerson" />
|
|
|
+ <result column="is_cert" jdbcType="INTEGER" property="isCert" />
|
|
|
+ <result column="comp_con_type" jdbcType="VARCHAR" property="compConType" />
|
|
|
+ <result column="comp_con_num" jdbcType="VARCHAR" property="compConNum" />
|
|
|
+ <result column="comp_qq" jdbcType="VARCHAR" property="compQq" />
|
|
|
+ <result column="comp_manage_product" jdbcType="VARCHAR" property="compManageProduct" />
|
|
|
+ <result column="province_id" jdbcType="VARCHAR" property="provinceId" />
|
|
|
+ <result column="city_id" jdbcType="VARCHAR" property="cityId" />
|
|
|
+ <result column="county_id" jdbcType="VARCHAR" property="countyId" />
|
|
|
+ <result column="town_id" jdbcType="VARCHAR" property="townId" />
|
|
|
+ <result column="village_id" jdbcType="VARCHAR" property="villageId" />
|
|
|
+ <result column="detail_address" jdbcType="VARCHAR" property="detailAddress" />
|
|
|
+ <result column="longitude" jdbcType="VARCHAR" property="longitude" />
|
|
|
+ <result column="latitude" jdbcType="VARCHAR" property="latitude" />
|
|
|
+ <result column="comp_status" jdbcType="INTEGER" property="compStatus" />
|
|
|
+ <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
+ <result column="create_id" jdbcType="BIGINT" property="createId" />
|
|
|
+ <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
+ <result column="update_id" jdbcType="BIGINT" property="updateId" />
|
|
|
+ <collection property="files" ofType="com.hwrj.cloud.portal.model.UmsCompanyFile"
|
|
|
+ select="com.hwrj.cloud.portal.dao.UmsCompanyInfoDao.companyFile" column="id"></collection>
|
|
|
+ </resultMap>
|
|
|
+ <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.hwrj.cloud.portal.domain.UmsCompanyInfoDto">
|
|
|
+ <result column="comp_sum" jdbcType="LONGVARCHAR" property="compSum" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Update_By_Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id, comp_name, company_type, comp_level, comp_qual, comp_imgs, comp_url, comp_prod_license_num,
|
|
|
+ comp_manage_license_num, comp_social_code, comp_con_person, is_cert, comp_con_type,
|
|
|
+ comp_con_num, comp_qq, comp_manage_product, province_id, city_id, county_id, town_id,
|
|
|
+ village_id, detail_address, longitude, latitude, comp_status, create_time, create_id,
|
|
|
+ update_time, update_id
|
|
|
+ </sql>
|
|
|
+ <sql id="Blob_Column_List">
|
|
|
+ comp_sum
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExampleWithBLOBs" parameterType="com.hwrj.cloud.portal.model.UmsCompanyInfoExample" resultMap="ResultMapWithBLOBs">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from ums_company_info
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByExample" parameterType="com.hwrj.cloud.portal.model.UmsCompanyInfoExample" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from ums_company_info
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from ums_company_info
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
+ delete from ums_company_info
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.hwrj.cloud.portal.model.UmsCompanyInfoExample">
|
|
|
+ delete from ums_company_info
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.hwrj.cloud.portal.model.UmsCompanyInfo">
|
|
|
+ <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
|
+ SELECT LAST_INSERT_ID()
|
|
|
+ </selectKey>
|
|
|
+ insert into ums_company_info (comp_name, company_type, comp_level,
|
|
|
+ comp_qual, comp_imgs, comp_url,
|
|
|
+ comp_prod_license_num, comp_manage_license_num,
|
|
|
+ comp_social_code, comp_con_person, is_cert,
|
|
|
+ comp_con_type, comp_con_num, comp_qq,
|
|
|
+ comp_manage_product, province_id, city_id,
|
|
|
+ county_id, town_id, village_id,
|
|
|
+ detail_address, longitude, latitude,
|
|
|
+ comp_status, create_time, create_id,
|
|
|
+ update_time, update_id, comp_sum
|
|
|
+ )
|
|
|
+ values (#{compName,jdbcType=VARCHAR}, #{companyType,jdbcType=VARCHAR}, #{compLevel,jdbcType=INTEGER},
|
|
|
+ #{compQual,jdbcType=VARCHAR}, #{compImgs,jdbcType=VARCHAR}, #{compUrl,jdbcType=VARCHAR},
|
|
|
+ #{compProdLicenseNum,jdbcType=VARCHAR}, #{compManageLicenseNum,jdbcType=VARCHAR},
|
|
|
+ #{compSocialCode,jdbcType=VARCHAR}, #{compConPerson,jdbcType=VARCHAR}, #{isCert,jdbcType=INTEGER},
|
|
|
+ #{compConType,jdbcType=VARCHAR}, #{compConNum,jdbcType=VARCHAR}, #{compQq,jdbcType=VARCHAR},
|
|
|
+ #{compManageProduct,jdbcType=VARCHAR}, #{provinceId,jdbcType=VARCHAR}, #{cityId,jdbcType=VARCHAR},
|
|
|
+ #{countyId,jdbcType=VARCHAR}, #{townId,jdbcType=VARCHAR}, #{villageId,jdbcType=VARCHAR},
|
|
|
+ #{detailAddress,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR},
|
|
|
+ #{compStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createId,jdbcType=BIGINT},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{updateId,jdbcType=BIGINT}, #{compSum,jdbcType=LONGVARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.hwrj.cloud.portal.model.UmsCompanyInfo">
|
|
|
+ <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
|
+ SELECT LAST_INSERT_ID()
|
|
|
+ </selectKey>
|
|
|
+ insert into ums_company_info
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="compName != null">
|
|
|
+ comp_name,
|
|
|
+ </if>
|
|
|
+ <if test="companyType != null">
|
|
|
+ company_type,
|
|
|
+ </if>
|
|
|
+ <if test="compLevel != null">
|
|
|
+ comp_level,
|
|
|
+ </if>
|
|
|
+ <if test="compQual != null">
|
|
|
+ comp_qual,
|
|
|
+ </if>
|
|
|
+ <if test="compImgs != null">
|
|
|
+ comp_imgs,
|
|
|
+ </if>
|
|
|
+ <if test="compUrl != null">
|
|
|
+ comp_url,
|
|
|
+ </if>
|
|
|
+ <if test="compProdLicenseNum != null">
|
|
|
+ comp_prod_license_num,
|
|
|
+ </if>
|
|
|
+ <if test="compManageLicenseNum != null">
|
|
|
+ comp_manage_license_num,
|
|
|
+ </if>
|
|
|
+ <if test="compSocialCode != null">
|
|
|
+ comp_social_code,
|
|
|
+ </if>
|
|
|
+ <if test="compConPerson != null">
|
|
|
+ comp_con_person,
|
|
|
+ </if>
|
|
|
+ <if test="isCert != null">
|
|
|
+ is_cert,
|
|
|
+ </if>
|
|
|
+ <if test="compConType != null">
|
|
|
+ comp_con_type,
|
|
|
+ </if>
|
|
|
+ <if test="compConNum != null">
|
|
|
+ comp_con_num,
|
|
|
+ </if>
|
|
|
+ <if test="compQq != null">
|
|
|
+ comp_qq,
|
|
|
+ </if>
|
|
|
+ <if test="compManageProduct != null">
|
|
|
+ comp_manage_product,
|
|
|
+ </if>
|
|
|
+ <if test="provinceId != null">
|
|
|
+ province_id,
|
|
|
+ </if>
|
|
|
+ <if test="cityId != null">
|
|
|
+ city_id,
|
|
|
+ </if>
|
|
|
+ <if test="countyId != null">
|
|
|
+ county_id,
|
|
|
+ </if>
|
|
|
+ <if test="townId != null">
|
|
|
+ town_id,
|
|
|
+ </if>
|
|
|
+ <if test="villageId != null">
|
|
|
+ village_id,
|
|
|
+ </if>
|
|
|
+ <if test="detailAddress != null">
|
|
|
+ detail_address,
|
|
|
+ </if>
|
|
|
+ <if test="longitude != null">
|
|
|
+ longitude,
|
|
|
+ </if>
|
|
|
+ <if test="latitude != null">
|
|
|
+ latitude,
|
|
|
+ </if>
|
|
|
+ <if test="compStatus != null">
|
|
|
+ comp_status,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ <if test="createId != null">
|
|
|
+ create_id,
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time,
|
|
|
+ </if>
|
|
|
+ <if test="updateId != null">
|
|
|
+ update_id,
|
|
|
+ </if>
|
|
|
+ <if test="compSum != null">
|
|
|
+ comp_sum,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="compName != null">
|
|
|
+ #{compName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="companyType != null">
|
|
|
+ #{companyType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compLevel != null">
|
|
|
+ #{compLevel,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="compQual != null">
|
|
|
+ #{compQual,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compImgs != null">
|
|
|
+ #{compImgs,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compUrl != null">
|
|
|
+ #{compUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compProdLicenseNum != null">
|
|
|
+ #{compProdLicenseNum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compManageLicenseNum != null">
|
|
|
+ #{compManageLicenseNum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compSocialCode != null">
|
|
|
+ #{compSocialCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compConPerson != null">
|
|
|
+ #{compConPerson,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="isCert != null">
|
|
|
+ #{isCert,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="compConType != null">
|
|
|
+ #{compConType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compConNum != null">
|
|
|
+ #{compConNum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compQq != null">
|
|
|
+ #{compQq,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compManageProduct != null">
|
|
|
+ #{compManageProduct,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="provinceId != null">
|
|
|
+ #{provinceId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cityId != null">
|
|
|
+ #{cityId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="countyId != null">
|
|
|
+ #{countyId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="townId != null">
|
|
|
+ #{townId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="villageId != null">
|
|
|
+ #{villageId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="detailAddress != null">
|
|
|
+ #{detailAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="longitude != null">
|
|
|
+ #{longitude,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="latitude != null">
|
|
|
+ #{latitude,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compStatus != null">
|
|
|
+ #{compStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="createId != null">
|
|
|
+ #{createId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateId != null">
|
|
|
+ #{updateId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="compSum != null">
|
|
|
+ #{compSum,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.hwrj.cloud.portal.model.UmsCompanyInfoExample" resultType="java.lang.Long">
|
|
|
+ select count(*) from ums_company_info
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ update ums_company_info
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="record.compName != null">
|
|
|
+ comp_name = #{record.compName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.companyType != null">
|
|
|
+ company_type = #{record.companyType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.compLevel != null">
|
|
|
+ comp_level = #{record.compLevel,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.compQual != null">
|
|
|
+ comp_qual = #{record.compQual,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.compImgs != null">
|
|
|
+ comp_imgs = #{record.compImgs,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.compUrl != null">
|
|
|
+ comp_url = #{record.compUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.compProdLicenseNum != null">
|
|
|
+ comp_prod_license_num = #{record.compProdLicenseNum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.compManageLicenseNum != null">
|
|
|
+ comp_manage_license_num = #{record.compManageLicenseNum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.compSocialCode != null">
|
|
|
+ comp_social_code = #{record.compSocialCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.compConPerson != null">
|
|
|
+ comp_con_person = #{record.compConPerson,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.isCert != null">
|
|
|
+ is_cert = #{record.isCert,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.compConType != null">
|
|
|
+ comp_con_type = #{record.compConType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.compConNum != null">
|
|
|
+ comp_con_num = #{record.compConNum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.compQq != null">
|
|
|
+ comp_qq = #{record.compQq,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.compManageProduct != null">
|
|
|
+ comp_manage_product = #{record.compManageProduct,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.provinceId != null">
|
|
|
+ province_id = #{record.provinceId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.cityId != null">
|
|
|
+ city_id = #{record.cityId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.countyId != null">
|
|
|
+ county_id = #{record.countyId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.townId != null">
|
|
|
+ town_id = #{record.townId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.villageId != null">
|
|
|
+ village_id = #{record.villageId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.detailAddress != null">
|
|
|
+ detail_address = #{record.detailAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.longitude != null">
|
|
|
+ longitude = #{record.longitude,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.latitude != null">
|
|
|
+ latitude = #{record.latitude,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.compStatus != null">
|
|
|
+ comp_status = #{record.compStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.createTime != null">
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.createId != null">
|
|
|
+ create_id = #{record.createId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="record.updateTime != null">
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.updateId != null">
|
|
|
+ update_id = #{record.updateId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="record.compSum != null">
|
|
|
+ comp_sum = #{record.compSum,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
+ update ums_company_info
|
|
|
+ set id = #{record.id,jdbcType=BIGINT},
|
|
|
+ comp_name = #{record.compName,jdbcType=VARCHAR},
|
|
|
+ company_type = #{record.companyType,jdbcType=VARCHAR},
|
|
|
+ comp_level = #{record.compLevel,jdbcType=INTEGER},
|
|
|
+ comp_qual = #{record.compQual,jdbcType=VARCHAR},
|
|
|
+ comp_imgs = #{record.compImgs,jdbcType=VARCHAR},
|
|
|
+ comp_url = #{record.compUrl,jdbcType=VARCHAR},
|
|
|
+ comp_prod_license_num = #{record.compProdLicenseNum,jdbcType=VARCHAR},
|
|
|
+ comp_manage_license_num = #{record.compManageLicenseNum,jdbcType=VARCHAR},
|
|
|
+ comp_social_code = #{record.compSocialCode,jdbcType=VARCHAR},
|
|
|
+ comp_con_person = #{record.compConPerson,jdbcType=VARCHAR},
|
|
|
+ is_cert = #{record.isCert,jdbcType=INTEGER},
|
|
|
+ comp_con_type = #{record.compConType,jdbcType=VARCHAR},
|
|
|
+ comp_con_num = #{record.compConNum,jdbcType=VARCHAR},
|
|
|
+ comp_qq = #{record.compQq,jdbcType=VARCHAR},
|
|
|
+ comp_manage_product = #{record.compManageProduct,jdbcType=VARCHAR},
|
|
|
+ province_id = #{record.provinceId,jdbcType=VARCHAR},
|
|
|
+ city_id = #{record.cityId,jdbcType=VARCHAR},
|
|
|
+ county_id = #{record.countyId,jdbcType=VARCHAR},
|
|
|
+ town_id = #{record.townId,jdbcType=VARCHAR},
|
|
|
+ village_id = #{record.villageId,jdbcType=VARCHAR},
|
|
|
+ detail_address = #{record.detailAddress,jdbcType=VARCHAR},
|
|
|
+ longitude = #{record.longitude,jdbcType=VARCHAR},
|
|
|
+ latitude = #{record.latitude,jdbcType=VARCHAR},
|
|
|
+ comp_status = #{record.compStatus,jdbcType=INTEGER},
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ create_id = #{record.createId,jdbcType=BIGINT},
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ update_id = #{record.updateId,jdbcType=BIGINT},
|
|
|
+ comp_sum = #{record.compSum,jdbcType=LONGVARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update ums_company_info
|
|
|
+ set id = #{record.id,jdbcType=BIGINT},
|
|
|
+ comp_name = #{record.compName,jdbcType=VARCHAR},
|
|
|
+ company_type = #{record.companyType,jdbcType=VARCHAR},
|
|
|
+ comp_level = #{record.compLevel,jdbcType=INTEGER},
|
|
|
+ comp_qual = #{record.compQual,jdbcType=VARCHAR},
|
|
|
+ comp_imgs = #{record.compImgs,jdbcType=VARCHAR},
|
|
|
+ comp_url = #{record.compUrl,jdbcType=VARCHAR},
|
|
|
+ comp_prod_license_num = #{record.compProdLicenseNum,jdbcType=VARCHAR},
|
|
|
+ comp_manage_license_num = #{record.compManageLicenseNum,jdbcType=VARCHAR},
|
|
|
+ comp_social_code = #{record.compSocialCode,jdbcType=VARCHAR},
|
|
|
+ comp_con_person = #{record.compConPerson,jdbcType=VARCHAR},
|
|
|
+ is_cert = #{record.isCert,jdbcType=INTEGER},
|
|
|
+ comp_con_type = #{record.compConType,jdbcType=VARCHAR},
|
|
|
+ comp_con_num = #{record.compConNum,jdbcType=VARCHAR},
|
|
|
+ comp_qq = #{record.compQq,jdbcType=VARCHAR},
|
|
|
+ comp_manage_product = #{record.compManageProduct,jdbcType=VARCHAR},
|
|
|
+ province_id = #{record.provinceId,jdbcType=VARCHAR},
|
|
|
+ city_id = #{record.cityId,jdbcType=VARCHAR},
|
|
|
+ county_id = #{record.countyId,jdbcType=VARCHAR},
|
|
|
+ town_id = #{record.townId,jdbcType=VARCHAR},
|
|
|
+ village_id = #{record.villageId,jdbcType=VARCHAR},
|
|
|
+ detail_address = #{record.detailAddress,jdbcType=VARCHAR},
|
|
|
+ longitude = #{record.longitude,jdbcType=VARCHAR},
|
|
|
+ latitude = #{record.latitude,jdbcType=VARCHAR},
|
|
|
+ comp_status = #{record.compStatus,jdbcType=INTEGER},
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ create_id = #{record.createId,jdbcType=BIGINT},
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ update_id = #{record.updateId,jdbcType=BIGINT}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.hwrj.cloud.portal.model.UmsCompanyInfo">
|
|
|
+ update ums_company_info
|
|
|
+ <set>
|
|
|
+ <if test="compName != null">
|
|
|
+ comp_name = #{compName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="companyType != null">
|
|
|
+ company_type = #{companyType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compLevel != null">
|
|
|
+ comp_level = #{compLevel,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="compQual != null">
|
|
|
+ comp_qual = #{compQual,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compImgs != null">
|
|
|
+ comp_imgs = #{compImgs,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compUrl != null">
|
|
|
+ comp_url = #{compUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compProdLicenseNum != null">
|
|
|
+ comp_prod_license_num = #{compProdLicenseNum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compManageLicenseNum != null">
|
|
|
+ comp_manage_license_num = #{compManageLicenseNum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compSocialCode != null">
|
|
|
+ comp_social_code = #{compSocialCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compConPerson != null">
|
|
|
+ comp_con_person = #{compConPerson,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="isCert != null">
|
|
|
+ is_cert = #{isCert,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="compConType != null">
|
|
|
+ comp_con_type = #{compConType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compConNum != null">
|
|
|
+ comp_con_num = #{compConNum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compQq != null">
|
|
|
+ comp_qq = #{compQq,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compManageProduct != null">
|
|
|
+ comp_manage_product = #{compManageProduct,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="provinceId != null">
|
|
|
+ province_id = #{provinceId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cityId != null">
|
|
|
+ city_id = #{cityId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="countyId != null">
|
|
|
+ county_id = #{countyId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="townId != null">
|
|
|
+ town_id = #{townId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="villageId != null">
|
|
|
+ village_id = #{villageId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="detailAddress != null">
|
|
|
+ detail_address = #{detailAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="longitude != null">
|
|
|
+ longitude = #{longitude,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="latitude != null">
|
|
|
+ latitude = #{latitude,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="compStatus != null">
|
|
|
+ comp_status = #{compStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="createId != null">
|
|
|
+ create_id = #{createId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateId != null">
|
|
|
+ update_id = #{updateId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="compSum != null">
|
|
|
+ comp_sum = #{compSum,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.hwrj.cloud.portal.model.UmsCompanyInfo">
|
|
|
+ update ums_company_info
|
|
|
+ set comp_name = #{compName,jdbcType=VARCHAR},
|
|
|
+ company_type = #{companyType,jdbcType=VARCHAR},
|
|
|
+ comp_level = #{compLevel,jdbcType=INTEGER},
|
|
|
+ comp_qual = #{compQual,jdbcType=VARCHAR},
|
|
|
+ comp_imgs = #{compImgs,jdbcType=VARCHAR},
|
|
|
+ comp_url = #{compUrl,jdbcType=VARCHAR},
|
|
|
+ comp_prod_license_num = #{compProdLicenseNum,jdbcType=VARCHAR},
|
|
|
+ comp_manage_license_num = #{compManageLicenseNum,jdbcType=VARCHAR},
|
|
|
+ comp_social_code = #{compSocialCode,jdbcType=VARCHAR},
|
|
|
+ comp_con_person = #{compConPerson,jdbcType=VARCHAR},
|
|
|
+ is_cert = #{isCert,jdbcType=INTEGER},
|
|
|
+ comp_con_type = #{compConType,jdbcType=VARCHAR},
|
|
|
+ comp_con_num = #{compConNum,jdbcType=VARCHAR},
|
|
|
+ comp_qq = #{compQq,jdbcType=VARCHAR},
|
|
|
+ comp_manage_product = #{compManageProduct,jdbcType=VARCHAR},
|
|
|
+ province_id = #{provinceId,jdbcType=VARCHAR},
|
|
|
+ city_id = #{cityId,jdbcType=VARCHAR},
|
|
|
+ county_id = #{countyId,jdbcType=VARCHAR},
|
|
|
+ town_id = #{townId,jdbcType=VARCHAR},
|
|
|
+ village_id = #{villageId,jdbcType=VARCHAR},
|
|
|
+ detail_address = #{detailAddress,jdbcType=VARCHAR},
|
|
|
+ longitude = #{longitude,jdbcType=VARCHAR},
|
|
|
+ latitude = #{latitude,jdbcType=VARCHAR},
|
|
|
+ comp_status = #{compStatus,jdbcType=INTEGER},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ create_id = #{createId,jdbcType=BIGINT},
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ update_id = #{updateId,jdbcType=BIGINT},
|
|
|
+ comp_sum = #{compSum,jdbcType=LONGVARCHAR}
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.hwrj.cloud.portal.model.UmsCompanyInfo">
|
|
|
+ update ums_company_info
|
|
|
+ set comp_name = #{compName,jdbcType=VARCHAR},
|
|
|
+ company_type = #{companyType,jdbcType=VARCHAR},
|
|
|
+ comp_level = #{compLevel,jdbcType=INTEGER},
|
|
|
+ comp_qual = #{compQual,jdbcType=VARCHAR},
|
|
|
+ comp_imgs = #{compImgs,jdbcType=VARCHAR},
|
|
|
+ comp_url = #{compUrl,jdbcType=VARCHAR},
|
|
|
+ comp_prod_license_num = #{compProdLicenseNum,jdbcType=VARCHAR},
|
|
|
+ comp_manage_license_num = #{compManageLicenseNum,jdbcType=VARCHAR},
|
|
|
+ comp_social_code = #{compSocialCode,jdbcType=VARCHAR},
|
|
|
+ comp_con_person = #{compConPerson,jdbcType=VARCHAR},
|
|
|
+ is_cert = #{isCert,jdbcType=INTEGER},
|
|
|
+ comp_con_type = #{compConType,jdbcType=VARCHAR},
|
|
|
+ comp_con_num = #{compConNum,jdbcType=VARCHAR},
|
|
|
+ comp_qq = #{compQq,jdbcType=VARCHAR},
|
|
|
+ comp_manage_product = #{compManageProduct,jdbcType=VARCHAR},
|
|
|
+ province_id = #{provinceId,jdbcType=VARCHAR},
|
|
|
+ city_id = #{cityId,jdbcType=VARCHAR},
|
|
|
+ county_id = #{countyId,jdbcType=VARCHAR},
|
|
|
+ town_id = #{townId,jdbcType=VARCHAR},
|
|
|
+ village_id = #{villageId,jdbcType=VARCHAR},
|
|
|
+ detail_address = #{detailAddress,jdbcType=VARCHAR},
|
|
|
+ longitude = #{longitude,jdbcType=VARCHAR},
|
|
|
+ latitude = #{latitude,jdbcType=VARCHAR},
|
|
|
+ comp_status = #{compStatus,jdbcType=INTEGER},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ create_id = #{createId,jdbcType=BIGINT},
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ update_id = #{updateId,jdbcType=BIGINT}
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
|
+ </update>
|
|
|
+ <select id="companyFile" parameterType="java.lang.Long" resultMap="com.hwrj.cloud.portal.mapper.UmsCompanyFileMapper.BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="com.hwrj.cloud.portal.mapper.UmsCompanyFileMapper.Base_Column_List">
|
|
|
+ </include>
|
|
|
+ from ums_company_file a where a.comp_id = #{compId} and a.file_type='logo'
|
|
|
+ </select>
|
|
|
+</mapper>
|