| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504 |
- <?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.sckw.system.dao.KwsEnterpriseDao">
- <resultMap id="BaseResultMap" type="com.sckw.system.model.KwsEnterprise">
- <id column="id" jdbcType="BIGINT" property="id" />
- <result column="firm_name" jdbcType="VARCHAR" property="firmName" />
- <result column="code" jdbcType="VARCHAR" property="code" />
- <result column="contacts" jdbcType="VARCHAR" property="contacts" />
- <result column="telephone" jdbcType="VARCHAR" property="telephone" />
- <result column="legal_name" jdbcType="VARCHAR" property="legalName" />
- <result column="legal_telephone" jdbcType="VARCHAR" property="legalTelephone" />
- <result column="head" jdbcType="VARCHAR" property="head" />
- <result column="integral" jdbcType="INTEGER" property="integral" />
- <result column="balance" jdbcType="DECIMAL" property="balance" />
- <result column="experience" jdbcType="INTEGER" property="experience" />
- <result column="member_level" jdbcType="INTEGER" property="memberLevel" />
- <result column="reg_time" jdbcType="TIMESTAMP" property="regTime" />
- <result column="reg_source" jdbcType="VARCHAR" property="regSource" />
- <result column="org_code" jdbcType="VARCHAR" property="orgCode" />
- <result column="city_code" jdbcType="INTEGER" property="cityCode" />
- <result column="detail_address" jdbcType="VARCHAR" property="detailAddress" />
- <result column="lat" jdbcType="VARCHAR" property="lat" />
- <result column="lng" jdbcType="VARCHAR" property="lng" />
- <result column="approval" jdbcType="INTEGER" property="approval" />
- <result column="approval_time" jdbcType="TIMESTAMP" property="approvalTime" />
- <result column="manager" jdbcType="BIGINT" property="manager" />
- <result column="remark" jdbcType="VARCHAR" property="remark" />
- <result column="status" jdbcType="INTEGER" property="status" />
- <result column="create_by" jdbcType="BIGINT" property="createBy" />
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- <result column="update_by" jdbcType="BIGINT" property="updateBy" />
- <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
- <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
- </resultMap>
- <sql id="Base_Column_List">
- id, firm_name, code, contacts, telephone, legal_name, legal_telephone, head, integral,
- balance, experience, member_level, reg_time, reg_source, org_code, city_code, detail_address,
- lat, lng, approval, approval_time, manager, remark, status, create_by, create_time,
- update_by, update_time, del_flag
- </sql>
- <select id="selectByKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from kws_enterprise
- where id = #{id,jdbcType=BIGINT}
- </select>
- <insert id="insert" parameterType="com.sckw.system.model.KwsEnterprise">
- insert into kws_enterprise
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="firmName != null">
- firm_name,
- </if>
- <if test="code != null">
- code,
- </if>
- <if test="contacts != null">
- contacts,
- </if>
- <if test="telephone != null">
- telephone,
- </if>
- <if test="legalName != null">
- legal_name,
- </if>
- <if test="legalTelephone != null">
- legal_telephone,
- </if>
- <if test="head != null">
- head,
- </if>
- <if test="integral != null">
- integral,
- </if>
- <if test="balance != null">
- balance,
- </if>
- <if test="experience != null">
- experience,
- </if>
- <if test="memberLevel != null">
- member_level,
- </if>
- <if test="regTime != null">
- reg_time,
- </if>
- <if test="regSource != null">
- reg_source,
- </if>
- <if test="orgCode != null">
- org_code,
- </if>
- <if test="cityCode != null">
- city_code,
- </if>
- <if test="detailAddress != null">
- detail_address,
- </if>
- <if test="lat != null">
- lat,
- </if>
- <if test="lng != null">
- lng,
- </if>
- <if test="approval != null">
- approval,
- </if>
- <if test="approvalTime != null">
- approval_time,
- </if>
- <if test="manager != null">
- manager,
- </if>
- <if test="remark != null">
- remark,
- </if>
- <if test="status != null">
- status,
- </if>
- <if test="createBy != null">
- create_by,
- </if>
- <if test="createTime != null">
- create_time,
- </if>
- <if test="updateBy != null">
- update_by,
- </if>
- <if test="updateTime != null">
- update_time,
- </if>
- <if test="delFlag != null">
- del_flag,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=BIGINT},
- </if>
- <if test="firmName != null">
- #{firmName,jdbcType=VARCHAR},
- </if>
- <if test="code != null">
- #{code,jdbcType=VARCHAR},
- </if>
- <if test="contacts != null">
- #{contacts,jdbcType=VARCHAR},
- </if>
- <if test="telephone != null">
- #{telephone,jdbcType=VARCHAR},
- </if>
- <if test="legalName != null">
- #{legalName,jdbcType=VARCHAR},
- </if>
- <if test="legalTelephone != null">
- #{legalTelephone,jdbcType=VARCHAR},
- </if>
- <if test="head != null">
- #{head,jdbcType=VARCHAR},
- </if>
- <if test="integral != null">
- #{integral,jdbcType=INTEGER},
- </if>
- <if test="balance != null">
- #{balance,jdbcType=DECIMAL},
- </if>
- <if test="experience != null">
- #{experience,jdbcType=INTEGER},
- </if>
- <if test="memberLevel != null">
- #{memberLevel,jdbcType=INTEGER},
- </if>
- <if test="regTime != null">
- #{regTime,jdbcType=TIMESTAMP},
- </if>
- <if test="regSource != null">
- #{regSource,jdbcType=VARCHAR},
- </if>
- <if test="orgCode != null">
- #{orgCode,jdbcType=VARCHAR},
- </if>
- <if test="cityCode != null">
- #{cityCode,jdbcType=INTEGER},
- </if>
- <if test="detailAddress != null">
- #{detailAddress,jdbcType=VARCHAR},
- </if>
- <if test="lat != null">
- #{lat,jdbcType=VARCHAR},
- </if>
- <if test="lng != null">
- #{lng,jdbcType=VARCHAR},
- </if>
- <if test="approval != null">
- #{approval,jdbcType=INTEGER},
- </if>
- <if test="approvalTime != null">
- #{approvalTime,jdbcType=TIMESTAMP},
- </if>
- <if test="manager != null">
- #{manager,jdbcType=BIGINT},
- </if>
- <if test="remark != null">
- #{remark,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- #{status,jdbcType=INTEGER},
- </if>
- <if test="createBy != null">
- #{createBy,jdbcType=BIGINT},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateBy != null">
- #{updateBy,jdbcType=BIGINT},
- </if>
- <if test="updateTime != null">
- #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="delFlag != null">
- #{delFlag,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <insert id="insertPPPPP" parameterType="com.sckw.system.model.KwsEnterprise">
- insert into kws_enterprise
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="firmName != null">
- firm_name,
- </if>
- <if test="code != null">
- code,
- </if>
- <if test="contacts != null">
- contacts,
- </if>
- <if test="telephone != null">
- telephone,
- </if>
- <if test="legalName != null">
- legal_name,
- </if>
- <if test="legalTelephone != null">
- legal_telephone,
- </if>
- <if test="head != null">
- head,
- </if>
- <if test="integral != null">
- integral,
- </if>
- <if test="balance != null">
- balance,
- </if>
- <if test="experience != null">
- experience,
- </if>
- <if test="memberLevel != null">
- member_level,
- </if>
- <if test="regTime != null">
- reg_time,
- </if>
- <if test="regSource != null">
- reg_source,
- </if>
- <if test="orgCode != null">
- org_code,
- </if>
- <if test="cityCode != null">
- city_code,
- </if>
- <if test="detailAddress != null">
- detail_address,
- </if>
- <if test="lat != null">
- lat,
- </if>
- <if test="lng != null">
- lng,
- </if>
- <if test="approval != null">
- approval,
- </if>
- <if test="approvalTime != null">
- approval_time,
- </if>
- <if test="manager != null">
- manager,
- </if>
- <if test="remark != null">
- remark,
- </if>
- <if test="status != null">
- status,
- </if>
- <if test="createBy != null">
- create_by,
- </if>
- <if test="createTime != null">
- create_time,
- </if>
- <if test="updateBy != null">
- update_by,
- </if>
- <if test="updateTime != null">
- update_time,
- </if>
- <if test="delFlag != null">
- del_flag,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=BIGINT},
- </if>
- <if test="firmName != null">
- #{firmName,jdbcType=VARCHAR},
- </if>
- <if test="code != null">
- #{code,jdbcType=VARCHAR},
- </if>
- <if test="contacts != null">
- #{contacts,jdbcType=VARCHAR},
- </if>
- <if test="telephone != null">
- #{telephone,jdbcType=VARCHAR},
- </if>
- <if test="legalName != null">
- #{legalName,jdbcType=VARCHAR},
- </if>
- <if test="legalTelephone != null">
- #{legalTelephone,jdbcType=VARCHAR},
- </if>
- <if test="head != null">
- #{head,jdbcType=VARCHAR},
- </if>
- <if test="integral != null">
- #{integral,jdbcType=INTEGER},
- </if>
- <if test="balance != null">
- #{balance,jdbcType=DECIMAL},
- </if>
- <if test="experience != null">
- #{experience,jdbcType=INTEGER},
- </if>
- <if test="memberLevel != null">
- #{memberLevel,jdbcType=INTEGER},
- </if>
- <if test="regTime != null">
- #{regTime,jdbcType=TIMESTAMP},
- </if>
- <if test="regSource != null">
- #{regSource,jdbcType=VARCHAR},
- </if>
- <if test="orgCode != null">
- #{orgCode,jdbcType=VARCHAR},
- </if>
- <if test="cityCode != null">
- #{cityCode,jdbcType=INTEGER},
- </if>
- <if test="detailAddress != null">
- #{detailAddress,jdbcType=VARCHAR},
- </if>
- <if test="lat != null">
- #{lat,jdbcType=VARCHAR},
- </if>
- <if test="lng != null">
- #{lng,jdbcType=VARCHAR},
- </if>
- <if test="approval != null">
- #{approval,jdbcType=INTEGER},
- </if>
- <if test="approvalTime != null">
- #{approvalTime,jdbcType=TIMESTAMP},
- </if>
- <if test="manager != null">
- #{manager,jdbcType=BIGINT},
- </if>
- <if test="remark != null">
- #{remark,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- #{status,jdbcType=INTEGER},
- </if>
- <if test="createBy != null">
- #{createBy,jdbcType=BIGINT},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateBy != null">
- #{updateBy,jdbcType=BIGINT},
- </if>
- <if test="updateTime != null">
- #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="delFlag != null">
- #{delFlag,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="update" parameterType="com.sckw.system.model.KwsEnterprise">
- update kws_enterprise
- <set>
- <if test="firmName != null">
- firm_name = #{firmName,jdbcType=VARCHAR},
- </if>
- <if test="code != null">
- code = #{code,jdbcType=VARCHAR},
- </if>
- <if test="contacts != null">
- contacts = #{contacts,jdbcType=VARCHAR},
- </if>
- <if test="telephone != null">
- telephone = #{telephone,jdbcType=VARCHAR},
- </if>
- <if test="legalName != null">
- legal_name = #{legalName,jdbcType=VARCHAR},
- </if>
- <if test="legalTelephone != null">
- legal_telephone = #{legalTelephone,jdbcType=VARCHAR},
- </if>
- <if test="head != null">
- head = #{head,jdbcType=VARCHAR},
- </if>
- <if test="integral != null">
- integral = #{integral,jdbcType=INTEGER},
- </if>
- <if test="balance != null">
- balance = #{balance,jdbcType=DECIMAL},
- </if>
- <if test="experience != null">
- experience = #{experience,jdbcType=INTEGER},
- </if>
- <if test="memberLevel != null">
- member_level = #{memberLevel,jdbcType=INTEGER},
- </if>
- <if test="regTime != null">
- reg_time = #{regTime,jdbcType=TIMESTAMP},
- </if>
- <if test="regSource != null">
- reg_source = #{regSource,jdbcType=VARCHAR},
- </if>
- <if test="orgCode != null">
- org_code = #{orgCode,jdbcType=VARCHAR},
- </if>
- <if test="cityCode != null">
- city_code = #{cityCode,jdbcType=INTEGER},
- </if>
- <if test="detailAddress != null">
- detail_address = #{detailAddress,jdbcType=VARCHAR},
- </if>
- <if test="lat != null">
- lat = #{lat,jdbcType=VARCHAR},
- </if>
- <if test="lng != null">
- lng = #{lng,jdbcType=VARCHAR},
- </if>
- <if test="approval != null">
- approval = #{approval,jdbcType=INTEGER},
- </if>
- <if test="approvalTime != null">
- approval_time = #{approvalTime,jdbcType=TIMESTAMP},
- </if>
- <if test="manager != null">
- manager = #{manager,jdbcType=BIGINT},
- </if>
- <if test="remark != null">
- remark = #{remark,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- status = #{status,jdbcType=INTEGER},
- </if>
- <if test="createBy != null">
- create_by = #{createBy,jdbcType=BIGINT},
- </if>
- <if test="createTime != null">
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateBy != null">
- update_by = #{updateBy,jdbcType=BIGINT},
- </if>
- <if test="updateTime != null">
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="delFlag != null">
- del_flag = #{delFlag,jdbcType=INTEGER},
- </if>
- </set>
- where id = #{id,jdbcType=BIGINT}
- </update>
- </mapper>
|