RemoteDegreeMapper.xml 5.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.platform.dao.mapper.remote.RemoteDegreeMapper">
  4. <sql id="Base_Column_List">
  5. degree.id,
  6. degree.sb_id,
  7. degree.sb_name,
  8. degree.position_num,
  9. degree.type,
  10. degree.desc,
  11. degree.value,
  12. degree.ratio,
  13. degree.unit,
  14. degree.remark,
  15. degree.created_user_id,
  16. degree.update_user_id,
  17. degree.created_time,
  18. degree.update_time
  19. </sql>
  20. <sql id="Ref_Column_List">
  21. degree.sb_id,
  22. degree.sb_name,
  23. degree.position_num,
  24. degree.type,
  25. degree.desc,
  26. degree.value,
  27. degree.ratio,
  28. degree.unit,
  29. degree.remark,
  30. </sql>
  31. <sql id="List_Condition">
  32. <if test="id != null and id != ''">
  33. and degree.id = #{id}
  34. </if>
  35. <if test="sbId != null and sbId != ''">
  36. and degree.sb_id = #{sbId}
  37. </if>
  38. <if test="sbName != null and sbName != ''">
  39. and degree.sb_name = #{sbName}
  40. </if>
  41. <if test="positionNum != null">
  42. and degree.position_num = #{positionNum}
  43. </if>
  44. <if test="type != null">
  45. and degree.type = #{type}
  46. </if>
  47. <if test="desc != null and desc != ''">
  48. and degree.desc = #{desc}
  49. </if>
  50. <if test="value != null and value != ''">
  51. and degree.value = #{value}
  52. </if>
  53. <if test="ratio != null">
  54. and degree.ratio = #{ratio}
  55. </if>
  56. <if test="unit != null and unit != ''">
  57. and degree.unit = #{unit}
  58. </if>
  59. <if test="remark != null and remark != ''">
  60. and degree.remark = #{remark}
  61. </if>
  62. <if test="createdUserId != null and createdUserId != ''">
  63. and degree.created_user_id = #{createdUserId}
  64. </if>
  65. <if test="updateUserId != null and updateUserId != ''">
  66. and degree.update_user_id = #{updateUserId}
  67. </if>
  68. <if test="createdTimeStart != null">
  69. and degree.created_time <![CDATA[>=]]>; #{createdTimeStart}
  70. </if>
  71. <if test="createdTimeEnd != null">
  72. and degree.created_time <![CDATA[<=]]> #{createdTimeEnd}
  73. </if>
  74. <if test="createdTime != null">
  75. and degree.created_time = #{createdTime}
  76. </if>
  77. <if test="updateTimeStart != null">
  78. and degree.update_time <![CDATA[>=]]>; #{updateTimeStart}
  79. </if>
  80. <if test="updateTimeEnd != null">
  81. and degree.update_time <![CDATA[<=]]> #{updateTimeEnd}
  82. </if>
  83. <if test="updateTime != null">
  84. and degree.update_time = #{updateTime}
  85. </if>
  86. <if test="keyword != null and keyword != ''">
  87. and degree.id like concat(concat('%',#{keyword}),'%')
  88. </if>
  89. </sql>
  90. <select id="selectList" parameterType="com.platform.dao.dto.remote.RemoteDegreeDTO" resultType="com.platform.dao.vo.query.remote.RemoteDegreeVO">
  91. select degree.*
  92. from t_remote_degree as degree
  93. <where>
  94. <include refid="List_Condition" />
  95. </where>
  96. </select>
  97. </mapper>