BBusiWishUniversitiesEmploymentreportMapper.xml 5.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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.BBusiWishUniversitiesEmploymentreportMapper">
  6. <resultMap type="BBusiWishUniversitiesEmploymentreport" id="BBusiWishUniversitiesEmploymentreportResult">
  7. <result property="id" column="id" />
  8. <result property="collegeCode" column="collegeCode" />
  9. <result property="title" column="title" />
  10. <result property="webSite" column="webSite" />
  11. <result property="name" column="name" />
  12. <result property="type" column="type" />
  13. <result property="url" column="url" />
  14. <result property="updateTime" column="updateTime" />
  15. <result property="createTime" column="createTime" />
  16. </resultMap>
  17. <sql id="selectBBusiWishUniversitiesEmploymentreportVo">
  18. select id, collegeCode, title, webSite, name, type, url, updateTime, createTime from b_busi_wish_universities_employmentreport
  19. </sql>
  20. <select id="selectBBusiWishUniversitiesEmploymentreportList" parameterType="BBusiWishUniversitiesEmploymentreport" resultMap="BBusiWishUniversitiesEmploymentreportResult">
  21. <include refid="selectBBusiWishUniversitiesEmploymentreportVo"/>
  22. <where>
  23. <if test="collegeCode != null and collegeCode != ''"> and collegeCode = #{collegeCode}</if>
  24. <if test="title != null and title != ''"> and title = #{title}</if>
  25. <if test="webSite != null and webSite != ''"> and webSite = #{webSite}</if>
  26. <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
  27. <if test="type != null and type != ''"> and type = #{type}</if>
  28. <if test="url != null and url != ''"> and url = #{url}</if>
  29. <if test="updateTime != null "> and updateTime = #{updateTime}</if>
  30. <if test="createTime != null "> and createTime = #{createTime}</if>
  31. </where>
  32. order by title desc
  33. </select>
  34. <select id="selectBBusiWishUniversitiesEmploymentreportById" parameterType="String" resultMap="BBusiWishUniversitiesEmploymentreportResult">
  35. <include refid="selectBBusiWishUniversitiesEmploymentreportVo"/>
  36. where id = #{id}
  37. </select>
  38. <insert id="insertBBusiWishUniversitiesEmploymentreport" parameterType="BBusiWishUniversitiesEmploymentreport">
  39. insert into b_busi_wish_universities_employmentreport
  40. <trim prefix="(" suffix=")" suffixOverrides=",">
  41. <if test="id != null and id != ''">id,</if>
  42. <if test="collegeCode != null and collegeCode != ''">collegeCode,</if>
  43. <if test="title != null and title != ''">title,</if>
  44. <if test="webSite != null and webSite != ''">webSite,</if>
  45. <if test="name != null">name,</if>
  46. <if test="type != null">type,</if>
  47. <if test="url != null">url,</if>
  48. <if test="updateTime != null">updateTime,</if>
  49. <if test="createTime != null">createTime,</if>
  50. </trim>
  51. <trim prefix="values (" suffix=")" suffixOverrides=",">
  52. <if test="id != null and id != ''">#{id},</if>
  53. <if test="collegeCode != null and collegeCode != ''">#{collegeCode},</if>
  54. <if test="title != null and title != ''">#{title},</if>
  55. <if test="webSite != null and webSite != ''">#{webSite},</if>
  56. <if test="name != null">#{name},</if>
  57. <if test="type != null">#{type},</if>
  58. <if test="url != null">#{url},</if>
  59. <if test="updateTime != null">#{updateTime},</if>
  60. <if test="createTime != null">#{createTime},</if>
  61. </trim>
  62. </insert>
  63. <update id="updateBBusiWishUniversitiesEmploymentreport" parameterType="BBusiWishUniversitiesEmploymentreport">
  64. update b_busi_wish_universities_employmentreport
  65. <trim prefix="SET" suffixOverrides=",">
  66. <if test="collegeCode != null and collegeCode != ''">collegeCode = #{collegeCode},</if>
  67. <if test="title != null and title != ''">title = #{title},</if>
  68. <if test="webSite != null and webSite != ''">webSite = #{webSite},</if>
  69. <if test="name != null">name = #{name},</if>
  70. <if test="type != null">type = #{type},</if>
  71. <if test="url != null">url = #{url},</if>
  72. <if test="updateTime != null">updateTime = #{updateTime},</if>
  73. <if test="createTime != null">createTime = #{createTime},</if>
  74. </trim>
  75. where id = #{id}
  76. </update>
  77. <delete id="deleteBBusiWishUniversitiesEmploymentreportById" parameterType="String">
  78. delete from b_busi_wish_universities_employmentreport where id = #{id}
  79. </delete>
  80. <delete id="deleteBBusiWishUniversitiesEmploymentreportByIds" parameterType="String">
  81. delete from b_busi_wish_universities_employmentreport where id in
  82. <foreach item="id" collection="array" open="(" separator="," close=")">
  83. #{id}
  84. </foreach>
  85. </delete>
  86. </mapper>