BBusiWishUniversitiesMapper.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.syzy.mapper.BBusiWishUniversitiesMapper">
  6. <resultMap type="BBusiWishUniversities" id="BBusiWishUniversitiesResult">
  7. <result property="id" column="id" />
  8. <result property="code" column="code" />
  9. <result property="name" column="name" />
  10. <result property="logo" column="logo" />
  11. <result property="location" column="location" />
  12. <result property="managerType" column="managerType" />
  13. <result property="type" column="type" />
  14. <result property="level" column="level" />
  15. <result property="ylxx" column="ylxx" />
  16. <result property="ylxk" column="ylxk" />
  17. <result property="yjsy" column="yjsy" />
  18. <result property="dlxy" column="dlxy" />
  19. <result property="mbgx" column="mbgx" />
  20. <result property="tel" column="tel" />
  21. <result property="url" column="url" />
  22. <result property="favorities" column="favorities" />
  23. <result property="createTime" column="createTime" />
  24. <result property="status" column="status" />
  25. <result property="numberOfBSH" column="numberOfBSH" />
  26. <result property="numberOfStu" column="numberOfStu" />
  27. <result property="comScore" column="comScore" />
  28. <result property="rankingOfEdu" column="rankingOfEdu" />
  29. <result property="ranking" column="ranking" />
  30. <result property="createdYear" column="createdYear" />
  31. <result property="shuoShiZBWZ" column="shuoShiZBWZ" />
  32. <result property="vrUrl" column="vrUrl" />
  33. <result property="motto" column="motto" />
  34. <result property="zhaoBanWZ" column="zhaoBanWZ" />
  35. <result property="shortName" column="shortName" />
  36. <result property="cityName" column="cityName" />
  37. <result property="enName" column="enName" />
  38. <result property="introduction" column="introduction" />
  39. <result property="star" column="star" />
  40. <result property="vrShortUrl" column="vrShortUrl" />
  41. <result property="celebrateDay" column="celebrateDay" />
  42. <result property="natureType" column="natureType" />
  43. <result property="majorRule" column="majorRule" />
  44. <result property="pointsOfBo" column="pointsOfBo" />
  45. <result property="pointsOfShuo" column="pointsOfShuo" />
  46. <result property="bxLevel" column="bxLevel" />
  47. <result property="features" column="features" />
  48. <result property="entranceType" column="entranceType" />
  49. <result property="shuoShiZBDH" column="shuoShiZBDH" />
  50. <result property="bxType" column="bxType" />
  51. <result property="zhaoBanDH" column="zhaoBanDH" />
  52. <result property="nameUsed" column="nameUsed" />
  53. <result property="address" column="address" />
  54. <result property="awards" column="awards" />
  55. <result property="hits" column="hits" />
  56. <result property="natureTypeCN" column="natureTypeCN" />
  57. <result property="bannerUrl" column="bannerUrl" />
  58. <result property="webSite" column="webSite" />
  59. <result property="area" column="area" />
  60. <result property="enrollLocation" column="enrollLocation" />
  61. <result property="collect" column="collect" />
  62. </resultMap>
  63. <sql id="selectBBusiWishUniversitiesVo">
  64. select id, code, name, logo, location, managerType, type, level, tel, url, favorities, createTime, status,
  65. numberOfBSH,numberOfStu,comScore,rankingOfEdu,ranking,createdYear,shuoShiZBWZ,vrUrl,motto,zhaoBanWZ,shortName,cityName,
  66. enName,introduction,star,vrShortUrl,celebrateDay,natureType,majorRule,pointsOfBo,pointsOfShuo,bxLevel,features,
  67. entranceType,shuoShiZBDH,bxType,zhaoBanDH,address,hits,natureTypeCN,bannerUrl,webSite,area,enrollLocation,collect
  68. from b_busi_wish_universities
  69. </sql>
  70. <select id="listForCourses" parameterType="String" resultType="java.lang.Long">
  71. select id from b_busi_wish_universities where status>0 ${qw}
  72. <!--order by (SELECT code from b_busi_wish_universities t2 where t2.id=universityId) asc-->
  73. </select>
  74. <select id="selectBBusiWishUniversitiesListSimpleByIds" parameterType="map" resultMap="BBusiWishUniversitiesResult">
  75. select id, code, name, logo, location, managerType, type, level,
  76. comScore,rankingOfEdu,ranking,cityName,
  77. bxLevel,features,hits,natureTypeCN,bannerUrl,webSite,area,enrollLocation,collect,star,address
  78. from b_busi_wish_universities where status>0 and
  79. id in <foreach item="o" collection="ids" open="(" separator="," close=")">#{o}</foreach>
  80. order by code
  81. <!--if test="params.orderBy!=null and params.orderBy != ''"> order by #{params.orderBy} </if-->
  82. <!--if test="params.limit!=null and params.limit != ''"> limit #{params.limit} </if-->
  83. </select>
  84. <select id="selectBBusiWishUniversitiesList" parameterType="BBusiWishUniversities" resultMap="BBusiWishUniversitiesResult">
  85. <include refid="selectBBusiWishUniversitiesVo" />
  86. <where>
  87. status>0
  88. <if test="code != null and code != ''"> and code = #{code}</if>
  89. <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
  90. <if test="logo != null and logo != ''"> and logo like concat('%', #{logo}, '%')</if>
  91. <if test="bannerUrl != null and bannerUrl != ''"> and bannerUrl like concat('%', #{bannerUrl}, '%')</if>
  92. <if test="location != null and location != ''"> and location = #{location}</if>
  93. <if test="managerType != null and managerType != ''"> and managerType = #{managerType}</if>
  94. <if test="type != null and type != ''"> and type like concat('%', #{type}, '%')</if>
  95. <if test="level != null and level != ''"> and level = #{level}</if>
  96. <if test="ylxx != null "> and ylxx = #{ylxx}</if>
  97. <if test="ylxk != null "> and ylxk = #{ylxk}</if>
  98. <if test="yjsy != null "> and yjsy = #{yjsy}</if>
  99. <if test="dlxy != null "> and dlxy = #{dlxy}</if>
  100. <if test="mbgx != null "> and mbgx = #{mbgx}</if>
  101. <if test="tel != null and tel != ''"> and tel = #{tel}</if>
  102. <if test="url != null and url != ''"> and url = #{url}</if>
  103. <if test="favorities != null "> and favorities = #{favorities}</if>
  104. <if test="createTime != null "> and createTime = #{createTime}</if>
  105. <if test="status != null "> and status = #{status}</if>
  106. <if test="natureTypeCN != null and natureTypeCN != ''"> and natureTypeCN like concat('%', #{natureTypeCN}, '%')</if>
  107. <if test="features != null and features != ''"> and features like concat('%', #{features}, '%')</if>
  108. </where>
  109. <if test="params.orderBy!=null and params.orderBy != ''"> order by #{params.orderBy} </if>
  110. </select>
  111. <select id="listMyByPage" parameterType="String" resultMap="BBusiWishUniversitiesResult">
  112. select u.id, code, name, logo, location, managerType, type, level,
  113. comScore,rankingOfEdu,ranking,cityName,
  114. bxLevel,features,hits,natureTypeCN,bannerUrl,webSite,area,enrollLocation,collect,star,address
  115. from b_customer_universities cu join b_busi_wish_universities u on cu.universityId = u.id
  116. <where>
  117. cu.status>0
  118. <if test="customerCode != null and customerCode != ''"> and cu.customerCode = #{customerCode}</if>
  119. </where>
  120. order by cu.createTime desc
  121. </select>
  122. <select id="selectMajorWishUniversitiesListSimpleByMap" parameterType="map" resultMap="BBusiWishUniversitiesResult">
  123. SELECT DISTINCT u.id, u.code, u.name, logo, u.location, u.managerType, u.type, u.level, u.comScore,u.rankingOfEdu,u.ranking,u.cityName,
  124. u.bxLevel,u.features,u.hits,u.natureTypeCN,u.bannerUrl,u.webSite,u.area,u.enrollLocation,u.collect,u.star,u.address
  125. FROM `b_busi_wish_universities` u
  126. <where>
  127. u.status >0
  128. <if test="enrollLocation != null and enrollLocation != ''"> and (u.`enrollLocation` = #{enrollLocation} or u.`enrollLocation` like '%全国%')</if>
  129. <if test="id != null"> and u.id = #{id}</if>
  130. <if test="code != null and code != ''"> and u.code = #{code}</if>
  131. <if test="name != null and name != ''"> and u.name like concat('%', #{name}, '%')</if>
  132. <if test="managerType != null and managerType != ''"> and u.managerType = #{managerType}</if>
  133. <if test="status != null "> and u.status = #{status}</if>
  134. <if test="entranceType != null "> and u.entranceType = #{entranceType}</if>
  135. <if test="types != null"> and <foreach item="o" collection="types" open="(" separator=" OR " close=")">u.type like concat('%', #{o}, '%')</foreach></if>
  136. <if test="levels != null"> and u.level in <foreach item="o" collection="levels" open="(" separator="," close=")">#{o}</foreach></if>
  137. <if test="natureTypeCNs != null"> and <foreach item="o" collection="natureTypeCNs" open="(" separator=" OR " close=")">u.natureTypeCN like concat('%', #{o}, '%')</foreach></if>
  138. <if test="featureses!= null"> and <foreach item="o" collection="featureses" open="(" separator=" OR " close=")">u.features like concat('%', #{o}, '%')</foreach></if>
  139. <if test="bxTypes!= null"> and <foreach item="o" collection="bxTypes" open="(" separator=" OR " close=")">u.bxType like concat('%', #{o}, '%')</foreach></if>
  140. <if test="enrollLocations!= null"> and <foreach item="o" collection="enrollLocations" open="(" separator=" OR " close=")">u.enrollLocation like concat('%', #{o}, '%')</foreach></if>
  141. <if test="stars!= null"> and <foreach item="o" collection="stars" open="(" separator=" OR " close=")">u.star like concat('%', #{o}, '%')</foreach></if>
  142. <if test="filterRank!= null and filterRank"> and u.star &gt; 0 </if>
  143. <if test="codes!= null">
  144. and u.code in
  145. <foreach item="code" collection="codes" open="(" separator="," close=")">
  146. #{code}
  147. </foreach>
  148. </if>
  149. </where>
  150. <choose>
  151. <when test="filterRank!= null and filterRank"> order by u.star desc, u.code </when>
  152. <otherwise> order by IF(u.`location` = #{rankLocation}, 0, 1), u.code</otherwise>
  153. </choose>
  154. </select>
  155. <select id="selectMajorWishUniversitiesListSimpleByMap2" parameterType="map" resultMap="BBusiWishUniversitiesResult">
  156. SELECT DISTINCT u.id, u.code, u.name, logo, u.location, u.managerType, u.type, u.level, u.comScore,u.rankingOfEdu,u.ranking,u.cityName,
  157. u.bxLevel,u.features,u.hits,u.natureTypeCN,u.bannerUrl,u.webSite,u.area,u.enrollLocation,u.collect,u.star,u.address
  158. FROM `b_busi_wish_university_submit_recruit_plan` p
  159. JOIN `b_busi_wish_universities` u ON p.`universityId` = u.`id`
  160. <if test="majorCategory != null and majorCategory != ''">
  161. JOIN `sy_major` m1 ON m1.`name` = p.`marjorName` and m1.`exam_type` = u.entranceType
  162. JOIN `sy_major` m2 ON m1.`parent_code` = m2.`code` and m2.`exam_type` = m1.`exam_type`
  163. JOIN `sy_major` m3 ON m2.`parent_code` = m3.`code` and m3.`exam_type` = m1.`exam_type`
  164. </if>
  165. <where>
  166. u.status>0
  167. <if test="enrollLocation != null and enrollLocation != ''"> and (u.`enrollLocation` = #{enrollLocation} or u.`enrollLocation` like '%全国%')</if>
  168. <if test="majorCategory != null and majorCategory != ''"> and m3.`code` = #{majorCategory}</if>
  169. <if test="id != null"> and u.id = #{id}</if>
  170. <if test="year != null"> and p.year = #{year}</if>
  171. <if test="code != null and code != ''"> and u.code = #{code}</if>
  172. <if test="name != null and name != ''"> and u.name like concat('%', #{name}, '%')</if>
  173. <if test="managerType != null and managerType != ''"> and u.managerType = #{managerType}</if>
  174. <if test="status != null "> and u.status = #{status}</if>
  175. <if test="entranceType != null "> and u.entranceType = #{entranceType}</if>
  176. <if test="examMajor != null "> and p.liberalScience = #{examMajor}</if>
  177. <if test="types != null"> and <foreach item="o" collection="types" open="(" separator=" OR " close=")">u.type like concat('%', #{o}, '%')</foreach></if>
  178. <if test="levels != null"> and u.level in <foreach item="o" collection="levels" open="(" separator="," close=")">#{o}</foreach></if>
  179. <if test="natureTypeCNs != null"> and <foreach item="o" collection="natureTypeCNs" open="(" separator=" OR " close=")">u.natureTypeCN like concat('%', #{o}, '%')</foreach></if>
  180. <if test="featureses!= null"> and <foreach item="o" collection="featureses" open="(" separator=" OR " close=")">u.features like concat('%', #{o}, '%')</foreach></if>
  181. <if test="bxTypes!= null"> and <foreach item="o" collection="bxTypes" open="(" separator=" OR " close=")">u.bxType like concat('%', #{o}, '%')</foreach></if>
  182. <if test="enrollLocations!= null"> and <foreach item="o" collection="enrollLocations" open="(" separator=" OR " close=")">u.enrollLocation like concat('%', #{o}, '%')</foreach></if>
  183. <if test="stars!= null"> and <foreach item="o" collection="stars" open="(" separator=" OR " close=")">u.star like concat('%', #{o}, '%')</foreach></if>
  184. <if test="majorCodes!= null">
  185. and u.code in (select distinct t2.collegeCode from b_busi_wish_universities_profession t2 where t2.code in <foreach item="majorCode" collection="majorCodes" open="(" separator="," close=")">#{majorCode}</foreach>
  186. <if test="examMajor != null "> and t2.examMajor = #{examMajor}</if>
  187. )
  188. </if>
  189. <if test="codes!= null">
  190. and u.code in
  191. <foreach item="code" collection="codes" open="(" separator="," close=")">
  192. #{code}
  193. </foreach>
  194. </if>
  195. </where>
  196. <choose>
  197. <when test="filterRank!= null and filterRank"> order by if(u.ranking = 0, 9999, u.ranking), u.code </when>
  198. <otherwise>order by u.code</otherwise>
  199. </choose>
  200. </select>
  201. <select id="selectBBusiWishUniversitiesListSimpleByMap" parameterType="map" resultMap="BBusiWishUniversitiesResult">
  202. select id, code, name, logo, location, managerType, type, level,
  203. comScore,rankingOfEdu,ranking,cityName,
  204. bxLevel,features,hits,natureTypeCN,bannerUrl,webSite,area,enrollLocation,collect,star,address
  205. from b_busi_wish_universities
  206. <where>
  207. status>0
  208. <if test="id != null"> and id = #{id}</if>
  209. <if test="code != null and code != ''"> and code = #{code}</if>
  210. <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
  211. <if test="managerType != null and managerType != ''"> and managerType = #{managerType}</if>
  212. <if test="status != null "> and status = #{status}</if>
  213. <if test="entranceType != null "> and u.entranceType = #{entranceType}</if>
  214. <if test="locations != null"> and location in <foreach item="o" collection="locations" open="(" separator="," close=")">#{o}</foreach></if>
  215. <if test="types != null"> and <foreach item="o" collection="types" open="(" separator=" OR " close=")">type like concat('%', #{o}, '%')</foreach></if>
  216. <if test="levels != null"> and level in <foreach item="o" collection="levels" open="(" separator="," close=")">#{o}</foreach></if>
  217. <if test="natureTypeCNs != null"> and <foreach item="o" collection="natureTypeCNs" open="(" separator=" OR " close=")">natureTypeCN like concat('%', #{o}, '%')</foreach></if>
  218. <if test="featureses!= null"> and <foreach item="o" collection="featureses" open="(" separator=" OR " close=")">features like concat('%', #{o}, '%')</foreach></if>
  219. <if test="bxTypes!= null"> and <foreach item="o" collection="bxTypes" open="(" separator=" OR " close=")">bxType like concat('%', #{o}, '%')</foreach></if>
  220. <if test="stars!= null"> and <foreach item="o" collection="stars" open="(" separator=" OR " close=")">star like concat('%', #{o}, '%')</foreach></if>
  221. <if test="filterRank!= null and filterRank"> and star &gt; 0 </if>
  222. <if test="majorCodes!= null">
  223. and code in (select distinct t2.collegeCode from b_busi_wish_universities_profession t2 where 1=1 and t2.code in
  224. <foreach item="majorCode" collection="majorCodes" open="(" separator="," close=")">
  225. #{majorCode}
  226. </foreach>
  227. )
  228. </if>
  229. <if test="codes!= null">
  230. and code in
  231. <foreach item="code" collection="codes" open="(" separator="," close=")">
  232. #{code}
  233. </foreach>
  234. </if>
  235. </where>
  236. <choose>
  237. <when test="filterRank!= null and filterRank"> order by star desc, code </when>
  238. <otherwise> code</otherwise>
  239. </choose>
  240. </select>
  241. <select id="selectBBusiWishUniversitiesListSimple" parameterType="BBusiWishUniversities" resultMap="BBusiWishUniversitiesResult">
  242. select id, code, name, logo, location, managerType, type, level,
  243. comScore,rankingOfEdu,ranking,cityName,
  244. bxLevel,features,hits,natureTypeCN,bannerUrl,webSite,area,enrollLocation,collect
  245. from b_busi_wish_universities
  246. <where>
  247. status>0
  248. <if test="id != null"> and id = #{id}</if>
  249. <if test="code != null and code != ''"> and code = #{code}</if>
  250. <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
  251. <if test="location != null and location != ''"> and location = #{location}</if>
  252. <if test="managerType != null and managerType != ''"> and managerType = #{managerType}</if>
  253. <if test="type != null and type != ''"> and type like concat('%', #{type}, '%')</if>
  254. <if test="level != null and level != ''"> and level = #{level}</if>
  255. <if test="status != null "> and status = #{status}</if>
  256. <if test="natureTypeCN != null and natureTypeCN != ''"> and natureTypeCN like concat('%', #{natureTypeCN}, '%')</if>
  257. <if test="features != null and features != ''"> and features like concat('%', #{features}, '%')</if>
  258. </where>
  259. order by code
  260. <!--if test="params.orderBy!=null and params.orderBy != ''"> order by #{params.orderBy} </if-->
  261. <!--if test="params.limit!=null and params.limit != ''"> limit #{params.limit} </if-->
  262. </select>
  263. <select id="selectBBusiWishUniversitiesById" parameterType="Long" resultMap="BBusiWishUniversitiesResult">
  264. <include refid="selectBBusiWishUniversitiesVo" />
  265. where status>0 and id = #{id}
  266. </select>
  267. <select id="selectBBusiWishUniversitiesByCode" parameterType="String" resultMap="BBusiWishUniversitiesResult">
  268. <include refid="selectBBusiWishUniversitiesVo" />
  269. where status>0 and code = #{code}
  270. </select>
  271. <select id="listByMajorId" parameterType="Long" resultMap="BBusiWishUniversitiesResult">
  272. select id, code, name from b_busi_wish_universities
  273. where status>0
  274. and id in( select universityId from b_busi_wish_university_marjors where status>0 and marjorsId= #{majorId})
  275. </select>
  276. <select id="selectBBusiWishUniversitiesLocations" parameterType="String" resultMap="BBusiWishUniversitiesResult">
  277. SELECT distinct location from b_busi_wish_universities where entranceType = #{entranceType}
  278. ORDER BY CONVERT( location USING gbk ) COLLATE gbk_chinese_ci ASC
  279. </select>
  280. <select id="selectBBusiWishUniversitiesTypes" parameterType="String" resultMap="BBusiWishUniversitiesResult">
  281. SELECT distinct type from b_busi_wish_universities where status>0 and type is not null and type !='' and entranceType = #{entranceType}
  282. </select>
  283. <select id="selectBBusiWishUniversitiesNatureTypes" parameterType="String" resultMap="BBusiWishUniversitiesResult">
  284. SELECT distinct natureTypeCN from b_busi_wish_universities where status>0 and natureTypeCN is not null and natureTypeCN !='' and entranceType = #{entranceType}
  285. </select>
  286. <select id="selectBBusiWishUniversitiesFeatures" parameterType="String" resultMap="BBusiWishUniversitiesResult">
  287. SELECT distinct features from b_busi_wish_universities where status>0 and features is not null and features !='' and entranceType = #{entranceType}
  288. </select>
  289. <select id="selectBBusiWishUniversitiesBxTypes" parameterType="String" resultMap="BBusiWishUniversitiesResult">
  290. SELECT distinct bxType from b_busi_wish_universities where status>0 and bxType is not null and bxType !='' and entranceType = #{entranceType}
  291. </select>
  292. <select id="selectBBusiWishUniversitiesLevels" parameterType="String" resultMap="BBusiWishUniversitiesResult">
  293. SELECT distinct level from b_busi_wish_universities where status>0 and level is not null and level !='' and entranceType = #{entranceType}
  294. </select>
  295. <insert id="insertBBusiWishUniversities" parameterType="BBusiWishUniversities" useGeneratedKeys="true" keyProperty="id">
  296. insert into b_busi_wish_universities
  297. <trim prefix="(" suffix=")" suffixOverrides=",">
  298. <if test="code != null">code,</if>
  299. <if test="name != null and name != ''">name,</if>
  300. <if test="logo != null">logo,</if>
  301. <if test="location != null">location,</if>
  302. <if test="managerType != null">managerType,</if>
  303. <if test="type != null">type,</if>
  304. <if test="level != null">level,</if>
  305. <if test="ylxx != null">ylxx,</if>
  306. <if test="ylxk != null">ylxk,</if>
  307. <if test="yjsy != null">yjsy,</if>
  308. <if test="dlxy != null">dlxy,</if>
  309. <if test="mbgx != null">mbgx,</if>
  310. <if test="tel != null">tel,</if>
  311. <if test="url != null">url,</if>
  312. <if test="favorities != null">favorities,</if>
  313. <if test="createTime != null">createTime,</if>
  314. <if test="status != null">status,</if>
  315. <if test="logo != null and logo != ''">logo,</if>
  316. <if test="bannerUrl != null and bannerUrl != ''">bannerUrl,</if>
  317. </trim>
  318. <trim prefix="values (" suffix=")" suffixOverrides=",">
  319. <if test="code != null">#{code},</if>
  320. <if test="name != null and name != ''">#{name},</if>
  321. <if test="logo != null">#{logo},</if>
  322. <if test="location != null">#{location},</if>
  323. <if test="managerType != null">#{managerType},</if>
  324. <if test="type != null">#{type},</if>
  325. <if test="level != null">#{level},</if>
  326. <if test="ylxx != null">#{ylxx},</if>
  327. <if test="ylxk != null">#{ylxk},</if>
  328. <if test="yjsy != null">#{yjsy},</if>
  329. <if test="dlxy != null">#{dlxy},</if>
  330. <if test="mbgx != null">#{mbgx},</if>
  331. <if test="tel != null">#{tel},</if>
  332. <if test="url != null">#{url},</if>
  333. <if test="favorities != null">#{favorities},</if>
  334. <if test="createTime != null">#{createTime},</if>
  335. <if test="status != null">#{status},</if>
  336. <if test="logo != null and logo != ''">#{logo},</if>
  337. <if test="bannerUrl != null and bannerUrl != ''"> #{bannerUrl},</if>
  338. </trim>
  339. </insert>
  340. <update id="updateBBusiWishUniversities" parameterType="BBusiWishUniversities">
  341. update b_busi_wish_universities
  342. <trim prefix="SET" suffixOverrides=",">
  343. <if test="code != null">code = #{code},</if>
  344. <if test="name != null and name != ''">name = #{name},</if>
  345. <if test="logo != null">logo = #{logo},</if>
  346. <if test="location != null">location = #{location},</if>
  347. <if test="managerType != null">managerType = #{managerType},</if>
  348. <if test="type != null">type = #{type},</if>
  349. <if test="level != null">level = #{level},</if>
  350. <if test="ylxx != null">ylxx = #{ylxx},</if>
  351. <if test="ylxk != null">ylxk = #{ylxk},</if>
  352. <if test="yjsy != null">yjsy = #{yjsy},</if>
  353. <if test="dlxy != null">dlxy = #{dlxy},</if>
  354. <if test="mbgx != null">mbgx = #{mbgx},</if>
  355. <if test="tel != null">tel = #{tel},</if>
  356. <if test="url != null">url = #{url},</if>
  357. <if test="favorities != null">favorities = #{favorities},</if>
  358. <if test="hits != null">hits = #{hits},</if>
  359. <if test="createTime != null">createTime = #{createTime},</if>
  360. <if test="status != null">status = #{status},</if>
  361. <if test="logo != null and logo != ''">logo = #{logo},</if>
  362. <if test="bannerUrl != null and bannerUrl != ''">bannerUrl = #{bannerUrl},</if>
  363. </trim>
  364. where id = #{id}
  365. </update>
  366. <update id="updateCollect">
  367. update b_busi_wish_universities SET collect = collect + #{collect}
  368. where id = #{id}
  369. </update>
  370. <delete id="deleteBBusiWishUniversitiesById" parameterType="Long">
  371. delete from b_busi_wish_universities where id = #{id}
  372. </delete>
  373. <delete id="deleteBBusiWishUniversitiesByIds" parameterType="String">
  374. delete from b_busi_wish_universities where id in
  375. <foreach item="id" collection="array" open="(" separator="," close=")">
  376. #{id}
  377. </foreach>
  378. </delete>
  379. </mapper>