CustomFormBomMapper.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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.custom.CustomFormBomMapper">
  4. <sql id="Base_Column_List">
  5. bom
  6. .
  7. id
  8. ,
  9. bom.data_id,
  10. bom.apply_man,
  11. bom.apply_time,
  12. bom.cdefine1,
  13. bom.cdefine2,
  14. bom.cdefine3,
  15. bom.cdefine4,
  16. bom.cdefine5,
  17. bom.cdefine6,
  18. bom.cdefine7,
  19. bom.cdefine8,
  20. bom.cdefine9,
  21. bom.cdefine10,
  22. bom.remark,
  23. bom.created_user_id,
  24. bom.created_user_name,
  25. bom.created_time,
  26. bom.update_user_id,
  27. bom.update_user_name,
  28. bom.update_time
  29. </sql>
  30. <sql id="Ref_Column_List">
  31. bom
  32. .
  33. data_id
  34. ,
  35. bom.apply_man,
  36. bom.apply_time,
  37. bom.cdefine1,
  38. bom.cdefine2,
  39. bom.cdefine3,
  40. bom.cdefine4,
  41. bom.cdefine5,
  42. bom.cdefine6,
  43. bom.cdefine7,
  44. bom.cdefine8,
  45. bom.cdefine9,
  46. bom.cdefine10,
  47. bom.remark,
  48. </sql>
  49. <sql id="List_Condition">
  50. <if test="id != null and id != ''">
  51. and bom.id = #{id}
  52. </if>
  53. <if test="dataId != null and dataId != ''">
  54. and bom.data_id = #{dataId}
  55. </if>
  56. <if test="applyMan != null and applyMan != ''">
  57. and bom.apply_man = #{applyMan}
  58. </if>
  59. <if test="applyTimeStart != null">
  60. and bom.apply_time <![CDATA[>=]]>; #{applyTimeStart}
  61. </if>
  62. <if test="applyTimeEnd != null">
  63. and bom.apply_time <![CDATA[<=]]> #{applyTimeEnd}
  64. </if>
  65. <if test="applyTime != null">
  66. and bom.apply_time = #{applyTime}
  67. </if>
  68. <if test="cdefine1 != null and cdefine1 != ''">
  69. and bom.cdefine1 = #{cdefine1}
  70. </if>
  71. <if test="cdefine2 != null and cdefine2 != ''">
  72. and bom.cdefine2 = #{cdefine2}
  73. </if>
  74. <if test="cdefine3 != null and cdefine3 != ''">
  75. and bom.cdefine3 = #{cdefine3}
  76. </if>
  77. <if test="cdefine4 != null and cdefine4 != ''">
  78. and bom.cdefine4 = #{cdefine4}
  79. </if>
  80. <if test="cdefine5 != null and cdefine5 != ''">
  81. and bom.cdefine5 = #{cdefine5}
  82. </if>
  83. <if test="cdefine6 != null and cdefine6 != ''">
  84. and bom.cdefine6 = #{cdefine6}
  85. </if>
  86. <if test="cdefine7 != null and cdefine7 != ''">
  87. and bom.cdefine7 = #{cdefine7}
  88. </if>
  89. <if test="cdefine8 != null and cdefine8 != ''">
  90. and bom.cdefine8 = #{cdefine8}
  91. </if>
  92. <if test="cdefine9 != null and cdefine9 != ''">
  93. and bom.cdefine9 = #{cdefine9}
  94. </if>
  95. <if test="cdefine10 != null and cdefine10 != ''">
  96. and bom.cdefine10 = #{cdefine10}
  97. </if>
  98. <if test="remark != null and remark != ''">
  99. and bom.remark = #{remark}
  100. </if>
  101. <if test="createdUserId != null and createdUserId != ''">
  102. and bom.created_user_id = #{createdUserId}
  103. </if>
  104. <if test="createdUserName != null and createdUserName != ''">
  105. and bom.created_user_name = #{createdUserName}
  106. </if>
  107. <if test="createdTimeStart != null">
  108. and bom.created_time <![CDATA[>=]]>; #{createdTimeStart}
  109. </if>
  110. <if test="createdTimeEnd != null">
  111. and bom.created_time <![CDATA[<=]]> #{createdTimeEnd}
  112. </if>
  113. <if test="createdTime != null">
  114. and bom.created_time = #{createdTime}
  115. </if>
  116. <if test="updateUserId != null and updateUserId != ''">
  117. and bom.update_user_id = #{updateUserId}
  118. </if>
  119. <if test="updateUserName != null and updateUserName != ''">
  120. and bom.update_user_name = #{updateUserName}
  121. </if>
  122. <if test="updateTimeStart != null">
  123. and bom.update_time <![CDATA[>=]]>; #{updateTimeStart}
  124. </if>
  125. <if test="updateTimeEnd != null">
  126. and bom.update_time <![CDATA[<=]]> #{updateTimeEnd}
  127. </if>
  128. <if test="updateTime != null">
  129. and bom.update_time = #{updateTime}
  130. </if>
  131. <if test="keyword != null and keyword != ''">
  132. and bom.id like concat(concat('%',#{keyword}),'%')
  133. </if>
  134. </sql>
  135. <select id="selectList" parameterType="com.platform.dao.dto.custom.CustomFormBomDTO"
  136. resultType="com.platform.dao.vo.query.custom.CustomFormBomVO">
  137. select bom.*
  138. from t_custom_form_bom as bom
  139. <where>
  140. <include refid="List_Condition"/>
  141. </where>
  142. </select>
  143. </mapper>