MaintainStandardMapper.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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.maintain.MaintainStandardMapper">
  4. <sql id="Base_Column_List">
  5. maintainstandard.id,
  6. maintainstandard.name,
  7. maintainstandard.no,
  8. maintainstandard.type,
  9. maintainstandard.enable,
  10. maintainstandard.requirement,
  11. maintainstandard.remark,
  12. maintainstandard.created_user_id,
  13. maintainstandard.update_user_id,
  14. maintainstandard.created_user_name,
  15. maintainstandard.update_user_name,
  16. maintainstandard.created_time,
  17. maintainstandard.update_time
  18. </sql>
  19. <sql id="Ref_Column_List">
  20. maintainstandard.name,
  21. maintainstandard.no,
  22. maintainstandard.type,
  23. maintainstandard.enable,
  24. maintainstandard.requirement,
  25. maintainstandard.remark,
  26. </sql>
  27. <sql id="List_Condition">
  28. <if test="id != null and id != ''">
  29. and maintainstandard.id = #{id}
  30. </if>
  31. <if test="name != null and name != ''">
  32. and maintainstandard.name = #{name}
  33. </if>
  34. <if test="no != null and no != ''">
  35. and maintainstandard.no = #{no}
  36. </if>
  37. <if test="type != null">
  38. and maintainstandard.type = #{type}
  39. </if>
  40. <if test="enable != null">
  41. and maintainstandard.enable = #{enable}
  42. </if>
  43. <if test="requirement != null and requirement != ''">
  44. and maintainstandard.requirement = #{requirement}
  45. </if>
  46. <if test="remark != null and remark != ''">
  47. and maintainstandard.remark = #{remark}
  48. </if>
  49. <if test="createdUserId != null and createdUserId != ''">
  50. and maintainstandard.created_user_id = #{createdUserId}
  51. </if>
  52. <if test="updateUserId != null and updateUserId != ''">
  53. and maintainstandard.update_user_id = #{updateUserId}
  54. </if>
  55. <if test="createdUserName != null and createdUserName != ''">
  56. and maintainstandard.created_user_name = #{createdUserName}
  57. </if>
  58. <if test="updateUserName != null and updateUserName != ''">
  59. and maintainstandard.update_user_name = #{updateUserName}
  60. </if>
  61. <if test="createdTimeStart != null">
  62. and maintainstandard.created_time <![CDATA[>=]]>; #{createdTimeStart}
  63. </if>
  64. <if test="createdTimeEnd != null">
  65. and maintainstandard.created_time <![CDATA[<=]]> #{createdTimeEnd}
  66. </if>
  67. <if test="createdTime != null">
  68. and maintainstandard.created_time = #{createdTime}
  69. </if>
  70. <if test="updateTimeStart != null">
  71. and maintainstandard.update_time <![CDATA[>=]]>; #{updateTimeStart}
  72. </if>
  73. <if test="updateTimeEnd != null">
  74. and maintainstandard.update_time <![CDATA[<=]]> #{updateTimeEnd}
  75. </if>
  76. <if test="updateTime != null">
  77. and maintainstandard.update_time = #{updateTime}
  78. </if>
  79. <if test="keyword != null and keyword != ''">
  80. and maintainstandard.name like concat('%',#{keyword},'%')
  81. </if>
  82. </sql>
  83. <select id="selectList" parameterType="com.platform.dao.dto.maintain.MaintainStandardDTO" resultType="com.platform.dao.entity.maintain.MaintainStandard">
  84. select maintainstandard.*
  85. from t_maintain_standard as maintainstandard
  86. <where>
  87. <include refid="List_Condition"/>
  88. </where>
  89. </select>
  90. </mapper>