| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689 |
- <?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.goafanti.common.dao.AchievementMapper">
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.Achievement">
- <id column="id" jdbcType="VARCHAR" property="id" />
- <result column="serial_number" jdbcType="INTEGER" property="serialNumber" />
- <result column="data_category" jdbcType="INTEGER" property="dataCategory" />
- <result column="name" jdbcType="VARCHAR" property="name" />
- <result column="keyword" jdbcType="VARCHAR" property="keyword" />
- <result column="category" jdbcType="INTEGER" property="category" />
- <result column="summary" jdbcType="VARCHAR" property="summary" />
- <result column="introduction" jdbcType="VARCHAR" property="introduction" />
- <result column="technical_picture_url" jdbcType="VARCHAR" property="technicalPictureUrl" />
- <result column="field_a" jdbcType="INTEGER" property="fieldA" />
- <result column="field_b" jdbcType="INTEGER" property="fieldB" />
- <result column="field_c" jdbcType="INTEGER" property="fieldC" />
- <result column="maturity" jdbcType="INTEGER" property="maturity" />
- <result column="maturity_picture_url" jdbcType="VARCHAR" property="maturityPictureUrl" />
- <result column="maturity_text_file_url" jdbcType="VARCHAR" property="maturityTextFileUrl" />
- <result column="maturity_video_url" jdbcType="VARCHAR" property="maturityVideoUrl" />
- <result column="innovation" jdbcType="INTEGER" property="innovation" />
- <result column="owner_name" jdbcType="VARCHAR" property="ownerName" />
- <result column="owner_type" jdbcType="INTEGER" property="ownerType" />
- <result column="owner_id_number" jdbcType="VARCHAR" property="ownerIdNumber" />
- <result column="owner_mobile" jdbcType="VARCHAR" property="ownerMobile" />
- <result column="owner_email" jdbcType="VARCHAR" property="ownerEmail" />
- <result column="owner_postal_address" jdbcType="VARCHAR" property="ownerPostalAddress" />
- <result column="cooperation_mode" jdbcType="INTEGER" property="cooperationMode" />
- <result column="transfer_mode" jdbcType="INTEGER" property="transferMode" />
- <result column="bargaining_mode" jdbcType="INTEGER" property="bargainingMode" />
- <result column="transfer_price" jdbcType="DECIMAL" property="transferPrice" />
- <result column="technical_scene" jdbcType="VARCHAR" property="technicalScene" />
- <result column="breakthrough" jdbcType="VARCHAR" property="breakthrough" />
- <result column="patent_case" jdbcType="VARCHAR" property="patentCase" />
- <result column="awards" jdbcType="VARCHAR" property="awards" />
- <result column="team_des" jdbcType="VARCHAR" property="teamDes" />
- <result column="parameter" jdbcType="VARCHAR" property="parameter" />
- <result column="tech_plan_url" jdbcType="VARCHAR" property="techPlanUrl" />
- <result column="business_plan_url" jdbcType="VARCHAR" property="businessPlanUrl" />
- <result column="org_id" jdbcType="VARCHAR" property="orgId" />
- <result column="org_name" jdbcType="VARCHAR" property="orgName" />
- <result column="org_address" jdbcType="VARCHAR" property="orgAddress" />
- <result column="org_email" jdbcType="VARCHAR" property="orgEmail" />
- <result column="org_contacts" jdbcType="VARCHAR" property="orgContacts" />
- <result column="org_contacts_mobile" jdbcType="VARCHAR" property="orgContactsMobile" />
- <result column="contacts" jdbcType="VARCHAR" property="contacts" />
- <result column="manager_id" jdbcType="VARCHAR" property="managerId" />
- <result column="salesman_id" jdbcType="VARCHAR" property="salesmanId" />
- <result column="status" jdbcType="INTEGER" property="status" />
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- <result column="release_status" jdbcType="INTEGER" property="releaseStatus" />
- <result column="release_date" jdbcType="TIMESTAMP" property="releaseDate" />
- <result column="deleted_sign" jdbcType="INTEGER" property="deletedSign" />
- </resultMap>
- <sql id="Base_Column_List">
- id, serial_number, data_category, name, keyword, category, summary, introduction,
- technical_picture_url, field_a, field_b, field_c, maturity, maturity_picture_url,
- maturity_text_file_url, maturity_video_url, innovation, owner_name, owner_type, owner_id_number,
- owner_mobile, owner_email, owner_postal_address, cooperation_mode, transfer_mode,
- bargaining_mode, transfer_price, technical_scene, breakthrough, patent_case, awards,
- team_des, parameter, tech_plan_url, business_plan_url, org_id, org_name, org_address,
- org_email, org_contacts, org_contacts_mobile, contacts, manager_id, salesman_id,
- status, create_time, release_status, release_date, deleted_sign
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from achievement
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from achievement
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <insert id="insert" parameterType="com.goafanti.common.model.Achievement">
- insert into achievement (id, serial_number, data_category,
- name, keyword, category,
- summary, introduction, technical_picture_url,
- field_a, field_b, field_c,
- maturity, maturity_picture_url, maturity_text_file_url,
- maturity_video_url, innovation, owner_name,
- owner_type, owner_id_number, owner_mobile,
- owner_email, owner_postal_address, cooperation_mode,
- transfer_mode, bargaining_mode, transfer_price,
- technical_scene, breakthrough, patent_case,
- awards, team_des, parameter,
- tech_plan_url, business_plan_url, org_id,
- org_name, org_address, org_email,
- org_contacts, org_contacts_mobile, contacts,
- manager_id, salesman_id, status,
- create_time, release_status, release_date,
- deleted_sign)
- values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{dataCategory,jdbcType=INTEGER},
- #{name,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}, #{category,jdbcType=INTEGER},
- #{summary,jdbcType=VARCHAR}, #{introduction,jdbcType=VARCHAR}, #{technicalPictureUrl,jdbcType=VARCHAR},
- #{fieldA,jdbcType=INTEGER}, #{fieldB,jdbcType=INTEGER}, #{fieldC,jdbcType=INTEGER},
- #{maturity,jdbcType=INTEGER}, #{maturityPictureUrl,jdbcType=VARCHAR}, #{maturityTextFileUrl,jdbcType=VARCHAR},
- #{maturityVideoUrl,jdbcType=VARCHAR}, #{innovation,jdbcType=INTEGER}, #{ownerName,jdbcType=VARCHAR},
- #{ownerType,jdbcType=INTEGER}, #{ownerIdNumber,jdbcType=VARCHAR}, #{ownerMobile,jdbcType=VARCHAR},
- #{ownerEmail,jdbcType=VARCHAR}, #{ownerPostalAddress,jdbcType=VARCHAR}, #{cooperationMode,jdbcType=INTEGER},
- #{transferMode,jdbcType=INTEGER}, #{bargainingMode,jdbcType=INTEGER}, #{transferPrice,jdbcType=DECIMAL},
- #{technicalScene,jdbcType=VARCHAR}, #{breakthrough,jdbcType=VARCHAR}, #{patentCase,jdbcType=VARCHAR},
- #{awards,jdbcType=VARCHAR}, #{teamDes,jdbcType=VARCHAR}, #{parameter,jdbcType=VARCHAR},
- #{techPlanUrl,jdbcType=VARCHAR}, #{businessPlanUrl,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR},
- #{orgName,jdbcType=VARCHAR}, #{orgAddress,jdbcType=VARCHAR}, #{orgEmail,jdbcType=VARCHAR},
- #{orgContacts,jdbcType=VARCHAR}, #{orgContactsMobile,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
- #{managerId,jdbcType=VARCHAR}, #{salesmanId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
- #{createTime,jdbcType=TIMESTAMP}, #{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP},
- #{deletedSign,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.goafanti.common.model.Achievement">
- insert into achievement
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="serialNumber != null">
- serial_number,
- </if>
- <if test="dataCategory != null">
- data_category,
- </if>
- <if test="name != null">
- name,
- </if>
- <if test="keyword != null">
- keyword,
- </if>
- <if test="category != null">
- category,
- </if>
- <if test="summary != null">
- summary,
- </if>
- <if test="introduction != null">
- introduction,
- </if>
- <if test="technicalPictureUrl != null">
- technical_picture_url,
- </if>
- <if test="fieldA != null">
- field_a,
- </if>
- <if test="fieldB != null">
- field_b,
- </if>
- <if test="fieldC != null">
- field_c,
- </if>
- <if test="maturity != null">
- maturity,
- </if>
- <if test="maturityPictureUrl != null">
- maturity_picture_url,
- </if>
- <if test="maturityTextFileUrl != null">
- maturity_text_file_url,
- </if>
- <if test="maturityVideoUrl != null">
- maturity_video_url,
- </if>
- <if test="innovation != null">
- innovation,
- </if>
- <if test="ownerName != null">
- owner_name,
- </if>
- <if test="ownerType != null">
- owner_type,
- </if>
- <if test="ownerIdNumber != null">
- owner_id_number,
- </if>
- <if test="ownerMobile != null">
- owner_mobile,
- </if>
- <if test="ownerEmail != null">
- owner_email,
- </if>
- <if test="ownerPostalAddress != null">
- owner_postal_address,
- </if>
- <if test="cooperationMode != null">
- cooperation_mode,
- </if>
- <if test="transferMode != null">
- transfer_mode,
- </if>
- <if test="bargainingMode != null">
- bargaining_mode,
- </if>
- <if test="transferPrice != null">
- transfer_price,
- </if>
- <if test="technicalScene != null">
- technical_scene,
- </if>
- <if test="breakthrough != null">
- breakthrough,
- </if>
- <if test="patentCase != null">
- patent_case,
- </if>
- <if test="awards != null">
- awards,
- </if>
- <if test="teamDes != null">
- team_des,
- </if>
- <if test="parameter != null">
- parameter,
- </if>
- <if test="techPlanUrl != null">
- tech_plan_url,
- </if>
- <if test="businessPlanUrl != null">
- business_plan_url,
- </if>
- <if test="orgId != null">
- org_id,
- </if>
- <if test="orgName != null">
- org_name,
- </if>
- <if test="orgAddress != null">
- org_address,
- </if>
- <if test="orgEmail != null">
- org_email,
- </if>
- <if test="orgContacts != null">
- org_contacts,
- </if>
- <if test="orgContactsMobile != null">
- org_contacts_mobile,
- </if>
- <if test="contacts != null">
- contacts,
- </if>
- <if test="managerId != null">
- manager_id,
- </if>
- <if test="salesmanId != null">
- salesman_id,
- </if>
- <if test="status != null">
- status,
- </if>
- <if test="createTime != null">
- create_time,
- </if>
- <if test="releaseStatus != null">
- release_status,
- </if>
- <if test="releaseDate != null">
- release_date,
- </if>
- <if test="deletedSign != null">
- deleted_sign,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=VARCHAR},
- </if>
- <if test="serialNumber != null">
- #{serialNumber,jdbcType=INTEGER},
- </if>
- <if test="dataCategory != null">
- #{dataCategory,jdbcType=INTEGER},
- </if>
- <if test="name != null">
- #{name,jdbcType=VARCHAR},
- </if>
- <if test="keyword != null">
- #{keyword,jdbcType=VARCHAR},
- </if>
- <if test="category != null">
- #{category,jdbcType=INTEGER},
- </if>
- <if test="summary != null">
- #{summary,jdbcType=VARCHAR},
- </if>
- <if test="introduction != null">
- #{introduction,jdbcType=VARCHAR},
- </if>
- <if test="technicalPictureUrl != null">
- #{technicalPictureUrl,jdbcType=VARCHAR},
- </if>
- <if test="fieldA != null">
- #{fieldA,jdbcType=INTEGER},
- </if>
- <if test="fieldB != null">
- #{fieldB,jdbcType=INTEGER},
- </if>
- <if test="fieldC != null">
- #{fieldC,jdbcType=INTEGER},
- </if>
- <if test="maturity != null">
- #{maturity,jdbcType=INTEGER},
- </if>
- <if test="maturityPictureUrl != null">
- #{maturityPictureUrl,jdbcType=VARCHAR},
- </if>
- <if test="maturityTextFileUrl != null">
- #{maturityTextFileUrl,jdbcType=VARCHAR},
- </if>
- <if test="maturityVideoUrl != null">
- #{maturityVideoUrl,jdbcType=VARCHAR},
- </if>
- <if test="innovation != null">
- #{innovation,jdbcType=INTEGER},
- </if>
- <if test="ownerName != null">
- #{ownerName,jdbcType=VARCHAR},
- </if>
- <if test="ownerType != null">
- #{ownerType,jdbcType=INTEGER},
- </if>
- <if test="ownerIdNumber != null">
- #{ownerIdNumber,jdbcType=VARCHAR},
- </if>
- <if test="ownerMobile != null">
- #{ownerMobile,jdbcType=VARCHAR},
- </if>
- <if test="ownerEmail != null">
- #{ownerEmail,jdbcType=VARCHAR},
- </if>
- <if test="ownerPostalAddress != null">
- #{ownerPostalAddress,jdbcType=VARCHAR},
- </if>
- <if test="cooperationMode != null">
- #{cooperationMode,jdbcType=INTEGER},
- </if>
- <if test="transferMode != null">
- #{transferMode,jdbcType=INTEGER},
- </if>
- <if test="bargainingMode != null">
- #{bargainingMode,jdbcType=INTEGER},
- </if>
- <if test="transferPrice != null">
- #{transferPrice,jdbcType=DECIMAL},
- </if>
- <if test="technicalScene != null">
- #{technicalScene,jdbcType=VARCHAR},
- </if>
- <if test="breakthrough != null">
- #{breakthrough,jdbcType=VARCHAR},
- </if>
- <if test="patentCase != null">
- #{patentCase,jdbcType=VARCHAR},
- </if>
- <if test="awards != null">
- #{awards,jdbcType=VARCHAR},
- </if>
- <if test="teamDes != null">
- #{teamDes,jdbcType=VARCHAR},
- </if>
- <if test="parameter != null">
- #{parameter,jdbcType=VARCHAR},
- </if>
- <if test="techPlanUrl != null">
- #{techPlanUrl,jdbcType=VARCHAR},
- </if>
- <if test="businessPlanUrl != null">
- #{businessPlanUrl,jdbcType=VARCHAR},
- </if>
- <if test="orgId != null">
- #{orgId,jdbcType=VARCHAR},
- </if>
- <if test="orgName != null">
- #{orgName,jdbcType=VARCHAR},
- </if>
- <if test="orgAddress != null">
- #{orgAddress,jdbcType=VARCHAR},
- </if>
- <if test="orgEmail != null">
- #{orgEmail,jdbcType=VARCHAR},
- </if>
- <if test="orgContacts != null">
- #{orgContacts,jdbcType=VARCHAR},
- </if>
- <if test="orgContactsMobile != null">
- #{orgContactsMobile,jdbcType=VARCHAR},
- </if>
- <if test="contacts != null">
- #{contacts,jdbcType=VARCHAR},
- </if>
- <if test="managerId != null">
- #{managerId,jdbcType=VARCHAR},
- </if>
- <if test="salesmanId != null">
- #{salesmanId,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- #{status,jdbcType=INTEGER},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="releaseStatus != null">
- #{releaseStatus,jdbcType=INTEGER},
- </if>
- <if test="releaseDate != null">
- #{releaseDate,jdbcType=TIMESTAMP},
- </if>
- <if test="deletedSign != null">
- #{deletedSign,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Achievement">
- update achievement
- <set>
- <if test="serialNumber != null">
- serial_number = #{serialNumber,jdbcType=INTEGER},
- </if>
- <if test="dataCategory != null">
- data_category = #{dataCategory,jdbcType=INTEGER},
- </if>
- <if test="name != null">
- name = #{name,jdbcType=VARCHAR},
- </if>
- <if test="keyword != null">
- keyword = #{keyword,jdbcType=VARCHAR},
- </if>
- <if test="category != null">
- category = #{category,jdbcType=INTEGER},
- </if>
- <if test="summary != null">
- summary = #{summary,jdbcType=VARCHAR},
- </if>
- <if test="introduction != null">
- introduction = #{introduction,jdbcType=VARCHAR},
- </if>
- <if test="technicalPictureUrl != null">
- technical_picture_url = #{technicalPictureUrl,jdbcType=VARCHAR},
- </if>
- <if test="fieldA != null">
- field_a = #{fieldA,jdbcType=INTEGER},
- </if>
- <if test="fieldB != null">
- field_b = #{fieldB,jdbcType=INTEGER},
- </if>
- <if test="fieldC != null">
- field_c = #{fieldC,jdbcType=INTEGER},
- </if>
- <if test="maturity != null">
- maturity = #{maturity,jdbcType=INTEGER},
- </if>
- <if test="maturityPictureUrl != null">
- maturity_picture_url = #{maturityPictureUrl,jdbcType=VARCHAR},
- </if>
- <if test="maturityTextFileUrl != null">
- maturity_text_file_url = #{maturityTextFileUrl,jdbcType=VARCHAR},
- </if>
- <if test="maturityVideoUrl != null">
- maturity_video_url = #{maturityVideoUrl,jdbcType=VARCHAR},
- </if>
- <if test="innovation != null">
- innovation = #{innovation,jdbcType=INTEGER},
- </if>
- <if test="ownerName != null">
- owner_name = #{ownerName,jdbcType=VARCHAR},
- </if>
- <if test="ownerType != null">
- owner_type = #{ownerType,jdbcType=INTEGER},
- </if>
- <if test="ownerIdNumber != null">
- owner_id_number = #{ownerIdNumber,jdbcType=VARCHAR},
- </if>
- <if test="ownerMobile != null">
- owner_mobile = #{ownerMobile,jdbcType=VARCHAR},
- </if>
- <if test="ownerEmail != null">
- owner_email = #{ownerEmail,jdbcType=VARCHAR},
- </if>
- <if test="ownerPostalAddress != null">
- owner_postal_address = #{ownerPostalAddress,jdbcType=VARCHAR},
- </if>
- <if test="cooperationMode != null">
- cooperation_mode = #{cooperationMode,jdbcType=INTEGER},
- </if>
- <if test="transferMode != null">
- transfer_mode = #{transferMode,jdbcType=INTEGER},
- </if>
- <if test="bargainingMode != null">
- bargaining_mode = #{bargainingMode,jdbcType=INTEGER},
- </if>
- <if test="transferPrice != null">
- transfer_price = #{transferPrice,jdbcType=DECIMAL},
- </if>
- <if test="technicalScene != null">
- technical_scene = #{technicalScene,jdbcType=VARCHAR},
- </if>
- <if test="breakthrough != null">
- breakthrough = #{breakthrough,jdbcType=VARCHAR},
- </if>
- <if test="patentCase != null">
- patent_case = #{patentCase,jdbcType=VARCHAR},
- </if>
- <if test="awards != null">
- awards = #{awards,jdbcType=VARCHAR},
- </if>
- <if test="teamDes != null">
- team_des = #{teamDes,jdbcType=VARCHAR},
- </if>
- <if test="parameter != null">
- parameter = #{parameter,jdbcType=VARCHAR},
- </if>
- <if test="techPlanUrl != null">
- tech_plan_url = #{techPlanUrl,jdbcType=VARCHAR},
- </if>
- <if test="businessPlanUrl != null">
- business_plan_url = #{businessPlanUrl,jdbcType=VARCHAR},
- </if>
- <if test="orgId != null">
- org_id = #{orgId,jdbcType=VARCHAR},
- </if>
- <if test="orgName != null">
- org_name = #{orgName,jdbcType=VARCHAR},
- </if>
- <if test="orgAddress != null">
- org_address = #{orgAddress,jdbcType=VARCHAR},
- </if>
- <if test="orgEmail != null">
- org_email = #{orgEmail,jdbcType=VARCHAR},
- </if>
- <if test="orgContacts != null">
- org_contacts = #{orgContacts,jdbcType=VARCHAR},
- </if>
- <if test="orgContactsMobile != null">
- org_contacts_mobile = #{orgContactsMobile,jdbcType=VARCHAR},
- </if>
- <if test="contacts != null">
- contacts = #{contacts,jdbcType=VARCHAR},
- </if>
- <if test="managerId != null">
- manager_id = #{managerId,jdbcType=VARCHAR},
- </if>
- <if test="salesmanId != null">
- salesman_id = #{salesmanId,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- status = #{status,jdbcType=INTEGER},
- </if>
- <if test="createTime != null">
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="releaseStatus != null">
- release_status = #{releaseStatus,jdbcType=INTEGER},
- </if>
- <if test="releaseDate != null">
- release_date = #{releaseDate,jdbcType=TIMESTAMP},
- </if>
- <if test="deletedSign != null">
- deleted_sign = #{deletedSign,jdbcType=INTEGER},
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.Achievement">
- update achievement
- set serial_number = #{serialNumber,jdbcType=INTEGER},
- data_category = #{dataCategory,jdbcType=INTEGER},
- name = #{name,jdbcType=VARCHAR},
- keyword = #{keyword,jdbcType=VARCHAR},
- category = #{category,jdbcType=INTEGER},
- summary = #{summary,jdbcType=VARCHAR},
- introduction = #{introduction,jdbcType=VARCHAR},
- technical_picture_url = #{technicalPictureUrl,jdbcType=VARCHAR},
- field_a = #{fieldA,jdbcType=INTEGER},
- field_b = #{fieldB,jdbcType=INTEGER},
- field_c = #{fieldC,jdbcType=INTEGER},
- maturity = #{maturity,jdbcType=INTEGER},
- maturity_picture_url = #{maturityPictureUrl,jdbcType=VARCHAR},
- maturity_text_file_url = #{maturityTextFileUrl,jdbcType=VARCHAR},
- maturity_video_url = #{maturityVideoUrl,jdbcType=VARCHAR},
- innovation = #{innovation,jdbcType=INTEGER},
- owner_name = #{ownerName,jdbcType=VARCHAR},
- owner_type = #{ownerType,jdbcType=INTEGER},
- owner_id_number = #{ownerIdNumber,jdbcType=VARCHAR},
- owner_mobile = #{ownerMobile,jdbcType=VARCHAR},
- owner_email = #{ownerEmail,jdbcType=VARCHAR},
- owner_postal_address = #{ownerPostalAddress,jdbcType=VARCHAR},
- cooperation_mode = #{cooperationMode,jdbcType=INTEGER},
- transfer_mode = #{transferMode,jdbcType=INTEGER},
- bargaining_mode = #{bargainingMode,jdbcType=INTEGER},
- transfer_price = #{transferPrice,jdbcType=DECIMAL},
- technical_scene = #{technicalScene,jdbcType=VARCHAR},
- breakthrough = #{breakthrough,jdbcType=VARCHAR},
- patent_case = #{patentCase,jdbcType=VARCHAR},
- awards = #{awards,jdbcType=VARCHAR},
- team_des = #{teamDes,jdbcType=VARCHAR},
- parameter = #{parameter,jdbcType=VARCHAR},
- tech_plan_url = #{techPlanUrl,jdbcType=VARCHAR},
- business_plan_url = #{businessPlanUrl,jdbcType=VARCHAR},
- org_id = #{orgId,jdbcType=VARCHAR},
- org_name = #{orgName,jdbcType=VARCHAR},
- org_address = #{orgAddress,jdbcType=VARCHAR},
- org_email = #{orgEmail,jdbcType=VARCHAR},
- org_contacts = #{orgContacts,jdbcType=VARCHAR},
- org_contacts_mobile = #{orgContactsMobile,jdbcType=VARCHAR},
- contacts = #{contacts,jdbcType=VARCHAR},
- manager_id = #{managerId,jdbcType=VARCHAR},
- salesman_id = #{salesmanId,jdbcType=VARCHAR},
- status = #{status,jdbcType=INTEGER},
- create_time = #{createTime,jdbcType=TIMESTAMP},
- release_status = #{releaseStatus,jdbcType=INTEGER},
- release_date = #{releaseDate,jdbcType=TIMESTAMP},
- deleted_sign = #{deletedSign,jdbcType=INTEGER}
- where id = #{id,jdbcType=VARCHAR}
- </update>
-
- <select id="findManageAchievementListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.AchievementListBo">
- select
- id, serial_number as serialNumber, data_category as dataCategory,
- name, keyword, category,
- owner_name as ownerName, owner_type as ownerType, owner_mobile as ownerMobile,
- status, release_date as releaseDate
- from achievement
- where deleted_sign = 0
- <if test="serialNumber != null">
- and serial_number = #{serialNumber,jdbcType=INTEGER}
- </if>
- <if test="name != null">
- and name = #{name,jdbcType=VARCHAR}
- </if>
- <if test="keyword != null">
- and keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
- </if>
- <if test="category != null">
- and category = #{category,jdbcType=INTEGER}
- </if>
- <if test="ownerType != null">
- and owner_type = #{ownerType,jdbcType=INTEGER}
- </if>
- <if test="status != null">
- and status = #{status,jdbcType=INTEGER}
- </if>
- <if test="rStart != null">
- and release_date <![CDATA[ > ]]> #{rStart,jdbcType=TIMESTAMP}
- </if>
- <if test="rEnd != null">
- and release_date <![CDATA[ < ]]> #{rEnd,jdbcType=TIMESTAMP}
- </if>
- <if test="releaseStatus != null">
- and release_status = #{releaseStatus,jdbcType=INTEGER}
- </if>
- order by serial_number desc
- <if test="page_sql!=null">
- ${page_sql}
- </if>
- </select>
-
- <select id="findManageAchievementCount" parameterType="String" resultType="java.lang.Integer">
- select
- count(1)
- from achievement
- where deleted_sign = 0
- <if test="serialNumber != null">
- and serial_number = #{serialNumber,jdbcType=INTEGER}
- </if>
- <if test="name != null">
- and name = #{name,jdbcType=VARCHAR}
- </if>
- <if test="keyword != null">
- and keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
- </if>
- <if test="category != null">
- and category = #{category,jdbcType=INTEGER}
- </if>
- <if test="ownerType != null">
- and owner_type = #{ownerType,jdbcType=INTEGER}
- </if>
- <if test="status != null">
- and status = #{status,jdbcType=INTEGER}
- </if>
- <if test="rStart != null">
- and release_date <![CDATA[ > ]]> #{rStart,jdbcType=TIMESTAMP}
- </if>
- <if test="rEnd != null">
- and release_date <![CDATA[ < ]]> #{rEnd,jdbcType=TIMESTAMP}
- </if>
- <if test="releaseStatus != null">
- and release_status = #{releaseStatus,jdbcType=INTEGER}
- </if>
- </select>
- </mapper>
|