| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698 |
- <?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="LONGVARCHAR" 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="LONGVARCHAR" 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_id" jdbcType="VARCHAR" property="ownerId" />
- <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="INTEGER" 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" />
- <result column="audit_status" jdbcType="INTEGER" property="auditStatus" />
- <result column="tech_broker_id" jdbcType="VARCHAR" property="techBrokerId" />
- <result column="country_name_zh" jdbcType="VARCHAR" property="countryNameZh" />
- <result column="international_flag" jdbcType="INTEGER" property="internationalFlag" />
- <result column="jmrh_flag" jdbcType="INTEGER" property="jmrhFlag" />
- <result column="boutique" jdbcType="INTEGER" property="boutique" />
- </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_id, 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, audit_status, tech_broker_id,
- country_name_zh,international_flag,jmrh_flag,boutique
- </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_id, 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, audit_status, tech_broker_id,
- country_name_zh,international_flag,jmrh_flag,boutique)
- values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{dataCategory,jdbcType=INTEGER},
- #{name,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}, #{category,jdbcType=INTEGER},
- #{summary,jdbcType=VARCHAR}, #{introduction,jdbcType=LONGVARCHAR}, #{technicalPictureUrl,jdbcType=VARCHAR},
- #{fieldA,jdbcType=INTEGER}, #{fieldB,jdbcType=INTEGER}, #{fieldC,jdbcType=INTEGER},
- #{maturity,jdbcType=INTEGER}, #{maturityPictureUrl,jdbcType=LONGVARCHAR}, #{maturityTextFileUrl,jdbcType=VARCHAR},
- #{maturityVideoUrl,jdbcType=VARCHAR}, #{innovation,jdbcType=INTEGER}, #{ownerId,jdbcType=VARCHAR}, #{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=INTEGER},
- #{managerId,jdbcType=VARCHAR}, #{salesmanId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
- #{createTime,jdbcType=TIMESTAMP}, #{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP},
- #{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER}, #{techBrokerId,jdbcType=VARCHAR},
- #{countryNameZh,jdbcType=VARCHAR}, #{internationalFlag,jdbcType=INTEGER},#{jmrhFlag,jdbcType=INTEGER},#{boutique,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="ownerId != null">
- owner_id,
- </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>
- <if test="auditStatus != null">
- audit_status,
- </if>
- <if test="techBrokerId != null">
- tech_broker_id,
- </if>
- <if test="countryNameZh != null">
- country_name_zh,
- </if>
- <if test="internationalFlag != null">
- international_flag,
- </if>
- <if test="jmrhFlag != null">
- jmrh_flag,
- </if>
- <if test="boutique !=null">
- boutique,
- </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=LONGVARCHAR},
- </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=LONGVARCHAR},
- </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="ownerId != null">
- #{ownerId,jdbcType=VARCHAR},
- </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=INTEGER},
- </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>
- <if test="auditStatus != null">
- #{auditStatus,jdbcType=INTEGER},
- </if>
- <if test="techBrokerId != null">
- #{techBrokerId,jdbcType=VARCHAR},
- </if>
- <if test="countryNameZh != null">
- #{countryNameZh,jdbcType=VARCHAR},
- </if>
- <if test="internationalFlag != null">
- #{internationalFlag,jdbcType=INTEGER},
- </if>
- <if test="jmrhFlag != null">
- #{jmrhFlag,jdbcType=INTEGER},
- </if>
- <if test="boutique != null">
- #{boutique,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=LONGVARCHAR},
- </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=LONGVARCHAR},
- </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="ownerId != null">
- owner_id = #{ownerId,jdbcType=VARCHAR},
- </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=INTEGER},
- </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>
- <if test="auditStatus != null">
- audit_status = #{auditStatus,jdbcType=INTEGER},
- </if>
- <if test="techBrokerId != null">
- tech_broker_id = #{techBrokerId,jdbcType=VARCHAR},
- </if>
- <if test="countryNameZh != null">
- country_name_zh = #{countryNameZh,jdbcType=VARCHAR},
- </if>
- <if test="internationalFlag != null">
- international_flag = #{internationalFlag,jdbcType=INTEGER},
- </if>
- <if test="jmrhFlag != null">
- jmrh_flag = #{jmrhFlag,jdbcType=INTEGER},
- </if>
- <if test="boutique != null">
- boutique = #{boutique,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=LONGVARCHAR},
- 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=LONGVARCHAR},
- maturity_text_file_url = #{maturityTextFileUrl,jdbcType=VARCHAR},
- maturity_video_url = #{maturityVideoUrl,jdbcType=VARCHAR},
- innovation = #{innovation,jdbcType=INTEGER},
- owner_id = #{ownerId,jdbcType=VARCHAR},
- 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=INTEGER},
- 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},
- audit_status = #{auditStatus,jdbcType=INTEGER},
- tech_broker_id = #{techBrokerId,jdbcType=VARCHAR},
- country_name_zh = #{countryNameZh,jdbcType=VARCHAR},
- international_flag = #{internationalFlag,jdbcType=INTEGER},
- jmrh_flag = #{jmrhFlag,jdbcType=INTEGER},
- boutique = #{boutique,jdbcType=INTEGER}
- where id = #{id,jdbcType=VARCHAR}
- </update>
-
- <select id="findUserOwnerAchievementListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.AchievementListBo">
- select
- a.id, a.serial_number as serialNumber, a.data_category as dataCategory,
- a.name, a.keyword, a.category, a.owner_name as ownerName, a.owner_type as ownerType,
- ui.username as username, a.owner_id as ownerId, a.org_id as orgId, a.contacts,
- a.release_date as releaseDate, a.audit_status as auditStatus, ad.name as techBrokerId,a.boutique
- <if test="hot != null and hot == 1"><!-- 在首页 -->
- ,1 as hot
- </if>
- <if test="hot != null and hot == 0"><!-- 不在首页 -->
- ,0 as hot
- </if>
- <if test="hot==null"><!-- 无首页参数 -->
- ,ifnull(mm.effective,0) as hot
- </if>
- from achievement a
- LEFT JOIN admin ad on a.id = a.tech_broker_id
- LEFT JOIN user_identity ui on a.owner_id = ui.uid
- <if test="hot != null and hot == 1"><!-- 在首页 -->
- inner join marketing_management mm on a.id = mm.product_id
- </if>
- <if test="hot == null"> <!-- 无首页参数 -->
- left join marketing_management mm on a.id = mm.product_id
- </if>
- where a.deleted_sign = 0 and a.owner_type = 0
- <if test="ownerName != null">
- and a.owner_name like CONCAT('%',#{ownerName,jdbcType=VARCHAR},'%')
- and (a.owner_id is null or a.owner_id = '')
- </if>
- <if test="username != null">
- and ui.username like CONCAT('%',#{username,jdbcType=VARCHAR},'%')
- </if>
- <if test="ownerId != null">
- and a.owner_id = #{ownerId,jdbcType=VARCHAR}
- </if>
- <if test="serialNumber != null">
- and a.serial_number = #{serialNumber,jdbcType=INTEGER}
- </if>
- <if test="auditStatus != null">
- and a.audit_status = #{auditStatus,jdbcType=INTEGER}
- </if>
- <if test="name != null">
- and a.name like CONCAT('%',#{name,jdbcType=VARCHAR},'%')
- </if>
- <if test="keyword != null">
- and a.keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
- </if>
- <if test="category != null">
- and a.category = #{category,jdbcType=INTEGER}
- </if>
- <if test="status != null">
- and a.status = #{status,jdbcType=INTEGER}
- </if>
- <if test="rStart != null">
- and a.release_date <![CDATA[ > ]]> #{rStart,jdbcType=TIMESTAMP}
- </if>
- <if test="rEnd != null">
- and a.release_date <![CDATA[ < ]]> #{rEnd,jdbcType=TIMESTAMP}
- </if>
- <if test="releaseStatus != null">
- and a.release_status = #{releaseStatus,jdbcType=INTEGER}
- </if>
- <if test="techBrokerId != null">
- and a.tech_broker_id = #{techBrokerId,jdbcType=VARCHAR}
- </if>
- <if test="boutique != null">
- and a.boutique = #{boutique,jdbcType=INTEGER}
- </if>
- <if test="hot != null and hot == 0"><!-- 不在首页 -->
- and a.id not in(select mm.product_id from marketing_management mm where mm.effective = 1)
- </if>
- <if test="hot != null and hot == 1"><!-- 在首页 -->
- and mm.effective = 1
- </if>
- order by a.serial_number desc
- <if test="page_sql!=null">
- ${page_sql}
- </if>
- </select>
-
- <select id="findUserOwnerAchievementCount" parameterType="String" resultType="java.lang.Integer">
- select
- count(1)
- from achievement a
- <if test="hot != null and hot == 1"><!-- 在首页 -->
- inner join marketing_management mm on a.id = mm.product_id
- </if>
- <if test="hot == null"> <!-- 无首页参数 -->
- left join marketing_management mm on a.id = mm.product_id
- </if>
- where deleted_sign = 0 and owner_type = 0
- <if test="ownerName != null">
- and a.owner_name like CONCAT('%',#{ownerName,jdbcType=VARCHAR},'%')
- and (a.owner_id is null or a.owner_id = '')
- </if>
- <if test="username != null">
- and ui.username like CONCAT('%',#{username,jdbcType=VARCHAR},'%')
- </if>
- <if test="ownerId != null">
- and owner_id = #{ownerId,jdbcType=VARCHAR}
- </if>
- <if test="serialNumber != null">
- and serial_number = #{serialNumber,jdbcType=INTEGER}
- </if>
- <if test="auditStatus != null">
- and audit_status = #{auditStatus,jdbcType=INTEGER}
- </if>
- <if test="name != null">
- and name like CONCAT('%',#{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="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>
- <if test="techBrokerId != null">
- and a.tech_broker_id = #{techBrokerId,jdbcType=VARCHAR}
- </if>
- <if test="boutique != null">
- and a.boutique = #{boutique,jdbcType=INTEGER}
- </if>
- <if test="hot != null and hot = 0"><!-- 不在首页 -->
- and a.id not in(select mm.product_id from marketing_management mm where mm.effective = 1)
- </if>
- <if test="hot != null and hot = 1"><!-- 在首页 -->
- and mm.effective = 1
- </if>
- </select>
-
-
-
- <select id="findOrgOwnerAchievementListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.AchievementListBo">
- select
- a.id, a.serial_number as serialNumber, a.data_category as dataCategory,
- a.name, a.keyword, a.category, a.owner_name as ownerName, a.owner_type as ownerType,
- oi.unit_name as username, a.owner_id as ownerId, a.org_id as orgId, a.contacts,
- a.release_date as releaseDate, a.audit_status as auditStatus, ad.name as techBrokerId,a.boutique
- <if test="hot != null and hot == 1"><!-- 在首页 -->
- ,1 as hot
- </if>
- <if test="hot != null and hot == 0"><!-- 无首页参数 -->
- ,0 as hot
- </if>
- <if test="hot==null"><!-- 在首页 -->
- ,ifnull(mm.effective,0) as hot
- </if>
- from achievement a
- LEFT JOIN admin ad on ad.id = a.tech_broker_id
- LEFT JOIN organization_identity oi on a.owner_id = oi.uid
- <if test="adminId != null">
- LEFT JOIN user u on a.owner_id = u.id
- </if>
- <if test="hot != null and hot == 1"> <!-- 在首页 -->
- inner join marketing_management mm on a.id = mm.product_id
- </if>
- <if test="hot == null"> <!-- 无首页参数 -->
- left join marketing_management mm on a.id = mm.product_id
- </if>
- where a.deleted_sign = 0 and a.owner_type = 1
- <if test="adminId != null">
- and (u.mid = #{adminId,jdbcType=VARCHAR}
- </if>
- <if test="adminId != null">
- or a.salesman_id = #{adminId,jdbcType=VARCHAR}
- </if>
- <if test="adminId != null">
- or a.tech_broker_id = #{adminId,jdbcType=VARCHAR}
- )
- </if>
- <if test="ownerName != null">
- and a.owner_name like CONCAT('%',#{ownerName,jdbcType=VARCHAR},'%')
- and (a.owner_id is null or a.owner_id = '')
- </if>
- <if test="unitName != null">
- and oi.unit_name like CONCAT('%',#{unitName,jdbcType=VARCHAR},'%')
- </if>
- <if test="ownerId != null">
- and a.owner_id = #{ownerId,jdbcType=VARCHAR}
- </if>
- <if test="serialNumber != null">
- and a.serial_number = #{serialNumber,jdbcType=INTEGER}
- </if>
- <if test="auditStatus != null">
- and a.audit_status = #{auditStatus,jdbcType=INTEGER}
- </if>
- <if test="name != null">
- and a.name like CONCAT('%',#{name,jdbcType=VARCHAR},'%')
- </if>
- <if test="keyword != null">
- and a.keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
- </if>
- <if test="category != null">
- and a.category = #{category,jdbcType=INTEGER}
- </if>
- <if test="status != null">
- and a.status = #{status,jdbcType=INTEGER}
- </if>
- <if test="rStart != null">
- and a.release_date <![CDATA[ >= ]]> #{rStart,jdbcType=TIMESTAMP}
- </if>
- <if test="rEnd != null">
- and a.release_date <![CDATA[ < ]]> #{rEnd,jdbcType=TIMESTAMP}
- </if>
- <if test="releaseStatus != null">
- and a.release_status = #{releaseStatus,jdbcType=INTEGER}
- </if>
- <if test="techBrokerId != null">
- and a.tech_broker_id = #{techBrokerId,jdbcType=VARCHAR}
- </if>
- <if test="boutique != null">
- and a.boutique = #{boutique,jdbcType=INTEGER}
- </if>
- <if test="hot != null and hot == 0"><!-- 不在首页 -->
- and a.id not in(select mm.product_id from marketing_management mm where mm.effective = 1)
- </if>
- <if test="hot != null and hot == 1"><!-- 在首页 -->
- and mm.effective = 1
- </if>
- order by serial_number desc
- <if test="page_sql!=null">
- ${page_sql}
- </if>
- </select>
-
- <select id="findOrgOwnerAchievementCount" parameterType="String" resultType="java.lang.Integer">
- select
- count(1)
- from achievement a
- LEFT JOIN admin ad on ad.id = a.tech_broker_id
- LEFT JOIN organization_identity oi on a.owner_id = oi.uid
- <if test="adminId != null">
- LEFT JOIN user u on a.owner_id = u.id
- </if>
- <if test="hot != null and hot == 1"><!-- 在首页 -->
- inner join marketing_management mm on a.id = mm.product_id
- </if>
- <if test="hot == null"> <!-- 无首页参数 -->
- left join marketing_management mm on a.id = mm.product_id
- </if>
- where a.deleted_sign = 0 and a.owner_type = 1
- <if test="adminId != null">
- and (u.mid = #{adminId,jdbcType=VARCHAR}
- </if>
- <if test="adminId != null">
- or a.salesman_id = #{adminId,jdbcType=VARCHAR}
- </if>
- <if test="adminId != null">
- or a.tech_broker_id = #{adminId,jdbcType=VARCHAR}
- )
- </if>
- <if test="ownerName != null">
- and a.owner_name like CONCAT('%',#{ownerName,jdbcType=VARCHAR},'%')
- and (a.owner_id is null or a.owner_id = '')
- </if>
- <if test="unitName != null">
- and oi.unit_name like CONCAT('%',#{unitName,jdbcType=VARCHAR},'%')
- </if>
- <if test="ownerId != null">
- and a.owner_id = #{ownerId,jdbcType=VARCHAR}
- </if>
- <if test="serialNumber != null">
- and a.serial_number = #{serialNumber,jdbcType=INTEGER}
- </if>
- <if test="auditStatus != null">
- and a.audit_status = #{auditStatus,jdbcType=INTEGER}
- </if>
- <if test="name != null">
- and a.name like CONCAT('%',#{name,jdbcType=VARCHAR},'%')
- </if>
- <if test="keyword != null">
- and a.keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
- </if>
- <if test="category != null">
- and a.category = #{category,jdbcType=INTEGER}
- </if>
- <if test="status != null">
- and a.status = #{status,jdbcType=INTEGER}
- </if>
- <if test="rStart != null">
- and a.release_date <![CDATA[ >= ]]> #{rStart,jdbcType=TIMESTAMP}
- </if>
- <if test="rEnd != null">
- and a.release_date <![CDATA[ < ]]> #{rEnd,jdbcType=TIMESTAMP}
- </if>
- <if test="releaseStatus != null">
- and a.release_status = #{releaseStatus,jdbcType=INTEGER}
- </if>
- <if test="techBrokerId != null">
- and a.tech_broker_id = #{techBrokerId,jdbcType=VARCHAR}
- </if>
- <if test="hot != null and hot == 0"><!-- 不在首页 -->
- and a.id not in(select mm.product_id from marketing_management mm where mm.effective = 1)
- </if>
- <if test="hot != null and hot == 1"><!-- 在首页 -->
- and mm.effective = 1
- </if>
- </select>
-
-
- <update id="updateReleaseDate" parameterType="java.lang.String">
- update achievement set release_date = null
- where id = #{id,jdbcType=VARCHAR}
- </update>
-
- <update id="batchDeleteByPrimaryKey" parameterType="java.util.List">
- update achievement set deleted_sign = 1
- where id in
- <foreach item="item" collection="list" open="(" separator="," close=")">
- #{item}
- </foreach>
- </update>
-
- <select id="findAchievementListByPage" 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, audit_status as auditStatus
- from achievement
- where deleted_sign = 0 and owner_id = #{ownerId,jdbcType=VARCHAR}
- <if test="serialNumber != null">
- and serial_number = #{serialNumber,jdbcType=INTEGER}
- </if>
- <if test="auditStatus != null">
- and audit_status = #{auditStatus,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="findAchievementCount" parameterType="String" resultType="java.lang.Integer">
- select
- count(1)
- from achievement
- where deleted_sign = 0 and owner_id = #{ownerId,jdbcType=VARCHAR}
- <if test="serialNumber != null">
- and serial_number = #{serialNumber,jdbcType=INTEGER}
- </if>
- <if test="auditStatus != null">
- and audit_status = #{auditStatus,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>
-
- <select id="selectUserOwnerDetail" parameterType="java.lang.String" resultType="com.goafanti.achievement.bo.AchievementUserOwnerDetailBo">
- select
- a.id, a.serial_number as serialNumber, a.data_category as dataCategory,
- a.name, a.keyword, a.category,
- a.summary, a.introduction, a.technical_picture_url as technicalPictureUrl,
- a.field_a as fieldA, a.field_b as fieldB, a.field_c as fieldC,
- a.maturity, a.maturity_picture_url as maturityPictureUrl, a.maturity_text_file_url as maturityTextFileUrl,
- a.maturity_video_url as maturityVideoUrl, a.innovation, a.owner_id as ownerId,
- a.owner_name as ownerName, a.owner_type as ownerType, a.owner_id_number as ownerIdNumber,
- a.owner_mobile as ownerMobile, a.owner_email as ownerEmail, a.owner_postal_address as ownerPostalAddress,
- a.cooperation_mode as cooperationMode, a.transfer_mode as transferMode, a.bargaining_mode as bargainingMode,
- a.transfer_price as transferPrice, a.technical_scene as technicalScene, a.breakthrough,
- a.patent_case as patentCase, a.awards, a.team_des as teamDes,
- a.parameter, a.tech_plan_url as techPlanUrl, a.business_plan_url as businessPlanUrl,
- a.contacts, a.manager_id as managerId, a.salesman_id as salesmanId,
- a.create_time as createTime, a.release_status as releaseStatus,
- a.release_date as releaseDate, a.audit_status as auditStatus, a.tech_broker_id as techBrokerId,
- ui.username as iOwnerName, ui.province, ui.city, ui.area, u.email as iOwnerEmail,
- ui.id_number as iOwnerIdNumber, u.mobile as iOwnerMobile,a.boutique,ifnull(mm.effective,0) as hot,mm.cover_img as coverImg
- from achievement a
- left join user_identity ui on a.owner_id = ui.uid
- left join user u on u.id = a.owner_id
- left join marketing_management mm on a.id = mm.product_id
- where a.id = #{id,jdbcType=VARCHAR}
- </select>
-
- <select id="selectOrgOwnerDetail" parameterType="java.lang.String" resultType="com.goafanti.achievement.bo.AchievementOrgOwnerDetailBo">
- select
- a.id, a.serial_number as serialNumber, a.data_category as dataCategory,
- a.name, a.keyword, a.category,
- a.summary, a.introduction, a.technical_picture_url as technicalPictureUrl,
- a.field_a as fieldA, a.field_b as fieldB, a.field_c as fieldC,
- a.maturity, a.maturity_picture_url as maturityPictureUrl, a.maturity_text_file_url as maturityTextFileUrl,
- a.maturity_video_url as maturityVideoUrl, a.innovation, a.owner_id as ownerId,
- a.owner_name as ownerName, a.owner_type as ownerType, a.owner_id_number as ownerIdNumber,
- a.owner_mobile as ownerMobile, a.owner_email as ownerEmail, a.owner_postal_address as ownerPostalAddress,
- a.cooperation_mode as cooperationMode, a.transfer_mode as transferMode, a.bargaining_mode as bargainingMode,
- a.transfer_price as transferPrice, a.technical_scene as technicalScene, a.breakthrough,
- a.patent_case as patentCase, a.awards, a.team_des as teamDes,
- a.parameter, a.tech_plan_url as techPlanUrl, a.business_plan_url as businessPlanUrl,
- a.contacts, a.manager_id as managerId, a.salesman_id as salesmanId,
- a.create_time as createTime, a.release_status as releaseStatus,
- a.release_date as releaseDate, a.audit_status as auditStatus, a.tech_broker_id as techBrokerId,
- oi.unit_name as iOwnerName, oi.postal_address as iOwnerPostalAddress, u.email as iOwnerEmail,
- oi.org_code as iOwnerIdNumber, u.mobile as iOwnerMobile,a.boutique,ifnull(mm.effective,0) hot,mm.cover_img as coverImg
- from achievement a
- left join organization_identity oi on a.owner_id = oi.uid
- left join user u on u.id = a.owner_id
- left join marketing_management mm on a.id = mm.product_id
- where a.id = #{id,jdbcType=VARCHAR}
- </select>
-
- <insert id="insertBatch" parameterType="com.goafanti.common.model.Achievement">
- insert into achievement
- (id, deleted_sign, audit_status,
- create_time, release_status, data_category,
- name, keyword, category,
- owner_name, owner_type, owner_id_number,
- owner_mobile, owner_email, owner_postal_address,
- cooperation_mode, introduction, tech_broker_id
- )
- values
- <foreach item="item" index="index" collection="list" separator=",">
- (
- #{item.id,jdbcType=VARCHAR}, #{item.deletedSign,jdbcType=INTEGER}, #{item.auditStatus,jdbcType=INTEGER},
- #{item.createTime,jdbcType=TIMESTAMP}, #{item.releaseStatus,jdbcType=INTEGER}, #{item.dataCategory,jdbcType=INTEGER},
- #{item.name,jdbcType=VARCHAR}, #{item.keyword,jdbcType=VARCHAR}, #{item.category,jdbcType=INTEGER},
- #{item.ownerName,jdbcType=VARCHAR}, #{item.ownerType,jdbcType=VARCHAR}, #{item.ownerIdNumber,jdbcType=VARCHAR},
- #{item.ownerMobile,jdbcType=VARCHAR}, #{item.ownerEmail,jdbcType=VARCHAR}, #{item.ownerPostalAddress,jdbcType=VARCHAR},
- #{item.cooperationMode,jdbcType=INTEGER}, #{item.introduction,jdbcType=LONGVARCHAR},#{item.techBrokerId,jdbcType=VARCHAR}
- )
- </foreach>
- </insert>
-
- <select id="findSearchAchievementListByPage" parameterType="String" resultType="com.goafanti.portal.bo.AchievementSearchListBo">
- select
- a.id, a.name, a.keyword,a.introduction,a.category,
- a.serial_number as serialNumber,
- a.data_category as dataCategory,
- a.owner_type as ownerType,
- a.owner_name as ownerName,
- a.field_a as fieldA,
- a.field_b as fieldB,
- a.transfer_price as transferPrice,
- a.maturity,
- a.introduction,
- a.transfer_mode as transferMode,
- a.technical_picture_url as technicalPictureUrl,
- b.name as fieldAs
- from achievement a
- left join field_glossory b on a.field_a = b.id
- where a.deleted_sign = 0
- <if test="dataCategory != null and dataCategory != ''">
- and a.data_category = #{dataCategory,jdbcType=INTEGER}
- </if>
- <if test="category != null and category != ''">
- and a.category = #{category,jdbcType=INTEGER}
- </if>
- <if test="fieldA != null and fieldA != ''">
- and a.field_a = #{fieldA,jdbcType=INTEGER}
- </if>
- <if test="keyword != null and keyword != ''">
- and a.keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
- </if>
- <if test="transferMode != null">
- and a.transfer_mode = #{transferMode,jdbcType=INTEGER}
- </if>
- <if test="upperPrice != null and upperPrice != ''">
- and a.transfer_price < #{upperPrice,jdbcType=VARCHAR}
- </if>
- <if test="lowerPrice != null and lowerPrice != ''">
- and a.transfer_price > #{lowerPrice,jdbcType=VARCHAR}
- </if>
-
- and a.release_status = 1
- and a.audit_status = 3
- <if test="dateSort == 0">
- order by a.release_date asc
- </if>
- <if test="dateSort == 1">
- order by a.release_date desc
- </if>
- <if test="page_sql != null">
- ${page_sql}
- </if>
- </select>
-
- <select id="findSearchAchievementCount" parameterType="String" resultType="java.lang.Integer">
- select
- count(1)
- from achievement a
- where a.deleted_sign = 0
- <if test="dataCategory != null and dataCategory != ''">
- and a.data_category = #{dataCategory,jdbcType=INTEGER}
- </if>
- <if test="category != null and category != ''">
- and a.category = #{category,jdbcType=INTEGER}
- </if>
- <if test="fieldA != null and fieldA != ''">
- and a.field_a = #{fieldA,jdbcType=INTEGER}
- </if>
- <if test="keyword != null and keyword != ''">
- and a.keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
- </if>
- <if test="transferMode != null">
- and a.transfer_mode = #{transferMode,jdbcType=INTEGER}
- </if>
- <if test="upperPrice != null and upperPrice != ''">
- and a.transfer_price < #{upperPrice,jdbcType=VARCHAR}
- </if>
- <if test="lowerPrice != null and lowerPrice != ''">
- and a.transfer_price > #{lowerPrice,jdbcType=VARCHAR}
- </if>
-
- and a.release_status = 1
- and a.audit_status = 3
- <if test="dateSort == 0">
- order by a.release_date asc
- </if>
- <if test="dateSort == 1">
- order by a.release_date desc
- </if>
- </select>
-
- <select id="selectAchievementSearchDetail" resultType="com.goafanti.portal.bo.AchievementDetailBo">
- select
- a.id,
- a.owner_name as ownerName,
- a.serial_number as serialNumber,
- a.keyword,
- a.name,
- a.data_category as dataCategory,
- a.category,
- ui.username,
- oi.unit_name as unitName,
- a.release_date as releaseDate,
- a.owner_type as ownerType,
- a.field_a as fieldA,
- a.field_b as fieldB,
- a.transfer_price as transferPrice,
- a.maturity,
- a.transfer_mode as transferMode,
- a.bargaining_mode as bargainingMode,
- a.summary,
- a.introduction,
- a.technical_picture_url as technicalPictureUrl,
- a.maturity_picture_url as maturityPictureUrl,
- a.maturity_text_file_url as maturityTextFileUrl,
- a.maturity_video_url as maturityVideoUrl,
- a.innovation,
- a.cooperation_mode as cooperationMode,
- a.bargaining_mode as bargainingMode,
- a.technical_scene as technicalScene,
- a.breakthrough,
- a.patent_case as patentCase,
- a.awards,
- a.team_des as teamDes,
- a.parameter,
- a.tech_plan_url as techPlanUrl,
- a.business_plan_url as businessPlanUrl,
- ai.id as achievementInterestId,
- ao.id as achievementOrderId,
- ao.status as orderStatus
- from achievement a
- left join user_identity ui on ui.uid = a.owner_id
- left join organization_identity oi on oi.uid = a.owner_id
- left join achievement_interest ai on ai.achievement_id = a.id and ai.uid = #{0}
- left join achievement_order ao on ao.achievement_id = a.id and ao.uid = #{0} and ao.status <![CDATA[ <> ]]> 6
- where a.id = #{1}
- </select>
-
- <select id="findAchievementNumByUid" parameterType="java.lang.String" resultType="java.lang.Integer">
- select
- count(1)
- from achievement
- where
- deleted_sign = 0
- and release_status = 1
- and audit_status = 3
- and owner_id = #{uid,jdbcType=VARCHAR}
- </select>
-
- <select id="findPartnerAchievementListByPage" parameterType="java.lang.String" resultType="com.goafanti.achievement.bo.AchievementPartnerListBo">
- SELECT
- id,
- serial_number AS serialNumber,
- data_category AS dataCategory,
- NAME,
- keyword,
- category,
- owner_type as ownerType,
- release_date AS releaseDate,
- field_a as fieldA,
- maturity,
- introduction,
- technical_picture_url as technicalPictureUrl,
- bargaining_mode as bargainingMode,
- transfer_price as transferPrice
- FROM
- achievement
- WHERE
- audit_status = 3
- AND release_status = 1
- AND deleted_sign = 0
- AND owner_id = #{ownerId,jdbcType=VARCHAR}
- </select>
-
- <select id="findPartnerAchievementCount" parameterType="java.lang.String" resultType="java.lang.Integer">
- SELECT
- count(1)
- FROM
- achievement
- WHERE
- audit_status = 3
- AND release_status = 1
- AND deleted_sign = 0
- AND owner_id = #{ownerId,jdbcType=VARCHAR}
- </select>
-
- <select id="findUserPortalAchievementDetail" parameterType="java.lang.String" resultType="com.goafanti.portal.bo.AchievementPortalDetailBo">
- SELECT
- a.id,
- a.name,
- a.keyword,
- a.category,
- a.introduction,
- a.maturity,
- a.transfer_price AS transferPrice,
- a.patent_case AS patentCase,
- a.field_a as fieldA,
- fg.name AS fieldAS,
- fgg.name AS fieldBS,
- a.release_date AS releaseDate,
- dg.name as province,
- dgg.name as city,
- a.technical_picture_url AS technicalPictureUrl,
- a.transfer_mode as transferMode,
- interest.id as interestId,
- u.lvl as level,
- a.owner_name as ownerName,
- a.owner_mobile as ownerMobile,
- a.bargaining_mode as bargainingMode,
- ui.city as location
- FROM
- achievement a
- LEFT JOIN <![CDATA[ user ]]> u on u.id = a.owner_id
- LEFT JOIN user_identity ui on ui.uid = a.owner_id
- LEFT JOIN district_glossory dg on dg.id = ui.province
- LEFT JOIN district_glossory dgg on dgg.id = ui.city
- LEFT JOIN field_glossory fg on fg.id = a.field_a
- LEFT JOIN field_glossory fgg on fgg.id = a.field_b
- LEFT JOIN achievement_interest interest on interest.achievement_id = a.id and interest.uid = #{uid,jdbcType=VARCHAR}
- WHERE
- a.id = #{id,jdbcType=VARCHAR}
- </select>
-
- <select id="findOrgPortalAchievementDetail" parameterType="java.lang.String" resultType="com.goafanti.portal.bo.AchievementPortalDetailBo">
- SELECT
- a.id,
- a.name,
- a.keyword,
- a.category,
- a.introduction,
- a.maturity,
- a.transfer_price AS transferPrice,
- a.patent_case AS patentCase,
- a.field_a as fieldA,
- fg.name AS fieldAS,
- fgg.name AS fieldBS,
- a.release_date AS releaseDate,
- dg.name as province,
- dgg.name as city,
- a.technical_picture_url AS technicalPictureUrl,
- a.transfer_mode as transferMode,
- interest.id as interestId,
- u.lvl as level,
- a.owner_name as ownerName,
- a.bargaining_mode as bargainingMode
- FROM
- achievement a
- LEFT JOIN <![CDATA[ user ]]> u on u.id = a.owner_id
- LEFT JOIN organization_identity oi on oi.uid = a.owner_id
- LEFT JOIN district_glossory dg on dg.id = oi.licence_province
- LEFT JOIN district_glossory dgg on dgg.id = oi.licence_city
- LEFT JOIN field_glossory fg on fg.id = a.field_a
- LEFT JOIN field_glossory fgg on fgg.id = a.field_b
- LEFT JOIN achievement_interest interest on interest.achievement_id = a.id and interest.uid = #{uid,jdbcType=VARCHAR}
- WHERE
- a.id = #{id,jdbcType=VARCHAR}
- </select>
-
- <select id="findUserPortalSimilarByFieldA" resultType="com.goafanti.portal.bo.AchievementPortalSimilarListBo">
- SELECT
- a.id,
- a.name,
- a.maturity,
- dg.name as uprovince,
- dgg.name as ucity,
- dggg.name as oprovince,
- dgggg.name as ocity,
- a.transfer_price as transferPrice,
- a.bargaining_mode as bargainingMode
- FROM
- achievement a
- LEFT JOIN user_identity ui ON ui.uid = a.owner_id
- LEFT JOIN organization_identity oi on oi.uid = a.owner_id
- LEFT JOIN district_glossory dg on dg.id = ui.province
- LEFT JOIN district_glossory dgg on dgg.id = ui.city
- LEFT JOIN district_glossory dggg on dggg.id = oi.licence_province
- LEFT JOIN district_glossory dgggg on dgggg.id = oi.licence_city
- WHERE
- a.audit_status = 3
- AND a.deleted_sign = 0
- AND a.release_status = 1
- AND a.field_a = #{fieldA,jdbcType=INTEGER}
- AND a.id <![CDATA[ <> ]]> #{id,jdbcType=VARCHAR}
- order by a.serial_number desc
- limit 5
- </select>
-
- <select id="findOrgPortalSimilarByFieldA" resultType="com.goafanti.portal.bo.AchievementPortalSimilarListBo">
- SELECT
- a.id,
- a.name,
- a.maturity,
- dg.name as oprovince,
- dgg.name as ocity,
- dggg.name as uprovince,
- dgggg.name as ucity,
- a.transfer_price as transferPrice,
- a.bargaining_mode as bargainingMode
- FROM
- achievement a
- LEFT JOIN organization_identity oi ON oi.uid = a.owner_id
- LEFT JOIN user_identity ui ON ui.uid = a.owner_id
- LEFT JOIN district_glossory dg on dg.id = oi.licence_province
- LEFT JOIN district_glossory dgg on dgg.id = oi.licence_city
- LEFT JOIN district_glossory dggg on dggg.id = ui.province
- LEFT JOIN district_glossory dgggg on dgggg.id = ui.city
- WHERE
- a.audit_status = 3
- AND a.deleted_sign = 0
- AND a.release_status = 1
- AND a.field_a = #{fieldA,jdbcType=INTEGER}
- AND a.id <![CDATA[ <> ]]> #{id,jdbcType=VARCHAR}
- order by a.serial_number desc
- limit 5
- </select>
-
- <update id="updateOwnerId" parameterType="java.lang.String" >
- update achievement
- set owner_id = null
- where id = #{id,jdbcType=VARCHAR}
- </update>
-
- <select id="selectInternationalAchievement" resultType="com.goafanti.portal.bo.InternationalListBo">
- select
- a.id as id,
- a.name as techName,
- a.introduction,
- a.owner_name as ownerName,
- a.owner_type as ownerType,
- a.technical_picture_url as technicalPictureUrl,
- a.country_name_zh as countryNameZh
- from
- achievement a
- where
- a.deleted_sign = 0 and a.data_category = 1
- <!-- and a.release_status = 1 and nternational_flag = 1 -->
- order by
- a.release_date desc
- limit 0,5
- </select>
- <select id="selectJmrhAchievement" resultType="com.goafanti.residentIntegration.bo.ResidentIntegrationBo">
- select
- id, name, owner_type as ownerType
- from
- achievement t
- where
- jmrh_flag = 1 and data_category = 0 and audit_status = 3
- order by
- create_time desc
- limit 5;
- </select>
- <select id="selectJmrTechnology" resultType="com.goafanti.residentIntegration.bo.ResidentIntegrationBo">
- select
- id, name, maturity, owner_type as ownerType
- from
- achievement t
- where
- jmrh_flag = 1 and data_category = 1 and audit_status = 3
- order by
- create_time desc
- limit 5;
- </select>
- <select id="selectJmrProject" resultType="com.goafanti.residentIntegration.bo.ResidentIntegrationBo">
- select
- a.id, a.name, c.residence_city as residenceCity,d.name as industry, owner_type as ownerType
- from
- achievement a
- left join
- user b on a.owner_id = b.id
- left join
- user_info c on b.id = c.uid
- left join
- field_glossory d on a.field_a = d.id
- where
- jmrh_flag = 1 and data_category = 1 and audit_status = 3
- order by
- a.create_time asc
- limit 5;
- </select>
- <select id="findBoutiqueListByPage" parameterType="java.lang.String" resultType="com.goafanti.portal.bo.BoutiqueListBo">
- select
- a.id ,
- a.name,
- a.transfer_price as price,
- a.summary as sketch,
- a.technical_picture_url as pictureUrl,
- a.owner_type as ownerType,
- b.name as industryCatalog,
- a.owner_name as personName
- from
- achievement a
- left join
- field_glossory b
- on
- a.field_a = b.id
- where
- a.boutique = 1 and a.audit_status = 3 and a.deleted_sign=0
- <if test="fieldA != null and fieldA != ''">
- and a.field_a = #{fieldA,jdbcType=INTEGER}
- </if>
- <if test="dataCategory != null and dataCategory != ''">
- and data_category = #{dataCategory,jdbcType=INTEGER}
- </if>
- <if test="category != null and category != ''">
- and category = #{category,jdbcType=INTEGER}
- </if>
- order by a.create_time desc
- <if test="page_sql!=null">
- ${page_sql}
- </if>
- </select>
- <select id="findBoutiqueCount" parameterType="java.lang.String" resultType="java.lang.Integer">
- select
- count(0)
- from
- achievement a
- left join
- field_glossory b
- on
- a.field_a = b.id
- where
- a.boutique = 1 and a.audit_status = 3 and a.deleted_sign=0
- <if test="fieldA != null and fieldA != ''">
- and a.field_a = #{fieldA,jdbcType=INTEGER}
- </if>
- <if test="dataCategory != null and dataCategory != ''">
- and data_category = #{dataCategory,jdbcType=INTEGER}
- </if>
- <if test="category != null and category != ''">
- and category = #{category,jdbcType=INTEGER}
- </if>
- </select>
-
- <select id="listAchievement" resultType="com.goafanti.achievement.bo.AchievementListBo">
- select
- a.id, a.name, a.keyword,a.introduction,a.category,
- a.serial_number as serialNumber,
- a.data_category as dataCategory,
- a.owner_type as ownerType,
- a.owner_name as ownerName,
- a.field_a as fieldA,
- a.transfer_price as transferPrice,
- a.transfer_mode as transfermode,
- a.maturity,
- a.technical_picture_url as technicalpictureurl
- from achievement a
- where
- a.deleted_sign = 0
- and a.category = 0
- and a.release_status = 1
- and a.audit_status = 3
- order by a.release_date desc limit 0,12
- </select>
-
- <!-- 查询猜你喜欢 -->
- <select id="selectCsutomerLike" resultType="com.goafanti.achievement.bo.AchievementListBo">
- select
- a.id, a.name, a.keyword,a.introduction,a.category,
- a.serial_number as serialNumber,
- a.data_category as dataCategory,
- a.owner_type as ownerType,
- a.owner_name as ownerName,
- a.field_a as fieldA,
- a.field_b as fieldB,
- a.transfer_price as transferPrice,
- a.technical_picture_url as technicalpictureurl
- from achievement a
- LEFT JOIN aft.achievement_interest b on a.id = b.achievement_id
- where
- a.deleted_sign = 0
- and category = 0
- and a.release_status = 1
- and a.audit_status = 3
- <if test="boutique != null">
- and a.boutique= #{boutique,jdbcType=INTEGER}
- </if>
- order by a.release_date desc limit 0,4
- </select>
- <select id="findBusinessVarietiesListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.BusinessBo">
- select
- b.id,b.create_id,b.create_time,b.update_time,b.delete_sign,b.cid,
- b.cname,b.super_id,b.super_id,b.layer,b.status,b2.cname
- from business_varieties b
- LEFT JOIN business_varieties b2 on b.super_id = b2.id
- where b.deleted_sign= 1
- <if test="cname != null">
- and b.cname= #{cname,jdbcType=VARCHAR}
- </if>
- <if test="super_id != null">
- and b.super_id= #{super_id,jdbcType=INTEGER}
- </if>
- <if test="layer != null">
- and layer= #{layer,jdbcType=VARCHAR}
- </if>
- <if test="status != null">
- and status= #{status,jdbcType=VARCHAR}
- </if>
- order by b.id desc
- <if test="page_sql!=null">
- ${page_sql}
- </if>
- </select>
-
- <select id="findBusinessVarietiesListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.BusinessBo">
- select
- count(distinct(c.id))
- from business_varieties b
- LEFT JOIN business_varieties b2 on b.super_id = b2.id
- where b.deleted_sign= 1
- <if test="cname != null">
- and b.cname= #{cname,jdbcType=VARCHAR}
- </if>
- <if test="super_id != null">
- and b.super_id= #{super_id,jdbcType=INTEGER}
- </if>
- <if test="layer != null">
- and layer= #{layer,jdbcType=VARCHAR}
- </if>
- <if test="status != null">
- and status= #{status,jdbcType=VARCHAR}
- </if>
-
- </select>
-
- </mapper>
|