SpareRestoreDetailMapper.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.store.SpareRestoreDetailMapper">
  4. <sql id="Base_Column_List">
  5. sparepickdetail.id,
  6. sparepickdetail.pick_id,
  7. sparepickdetail.pick_no,
  8. sparepickdetail.spare_id,
  9. sparepickdetail.num,
  10. sparepickdetail.created_user_id,
  11. sparepickdetail.created_user_name,
  12. sparepickdetail.update_user_id,
  13. sparepickdetail.update_user_name,
  14. sparepickdetail.created_time,
  15. sparepickdetail.update_time
  16. </sql>
  17. <sql id="Ref_Column_List">
  18. sparepickdetail.pick_id,
  19. sparepickdetail.pick_no,
  20. sparepickdetail.spare_id,
  21. sparepickdetail.num,
  22. </sql>
  23. <sql id="List_Condition">
  24. <if test="id != null and id != ''">
  25. and sparepickdetail.id = #{id}
  26. </if>
  27. <if test="pickId != null and pickId != ''">
  28. and sparepickdetail.pick_id = #{pickId}
  29. </if>
  30. <if test="pickNo != null and pickNo != ''">
  31. and sparepickdetail.pick_no = #{pickNo}
  32. </if>
  33. <if test="spareId != null and spareId != ''">
  34. and sparepickdetail.spare_id = #{spareId}
  35. </if>
  36. <if test="num != null">
  37. and sparepickdetail.num = #{num}
  38. </if>
  39. <if test="createdUserId != null and createdUserId != ''">
  40. and sparepickdetail.created_user_id = #{createdUserId}
  41. </if>
  42. <if test="createdUserName != null and createdUserName != ''">
  43. and sparepickdetail.created_user_name = #{createdUserName}
  44. </if>
  45. <if test="updateUserId != null and updateUserId != ''">
  46. and sparepickdetail.update_user_id = #{updateUserId}
  47. </if>
  48. <if test="updateUserName != null and updateUserName != ''">
  49. and sparepickdetail.update_user_name = #{updateUserName}
  50. </if>
  51. <if test="createdTimeStart != null">
  52. and sparepickdetail.created_time <![CDATA[>=]]>; #{createdTimeStart}
  53. </if>
  54. <if test="createdTimeEnd != null">
  55. and sparepickdetail.created_time <![CDATA[<=]]> #{createdTimeEnd}
  56. </if>
  57. <if test="createdTime != null">
  58. and sparepickdetail.created_time = #{createdTime}
  59. </if>
  60. <if test="updateTimeStart != null">
  61. and sparepickdetail.update_time <![CDATA[>=]]>; #{updateTimeStart}
  62. </if>
  63. <if test="updateTimeEnd != null">
  64. and sparepickdetail.update_time <![CDATA[<=]]> #{updateTimeEnd}
  65. </if>
  66. <if test="updateTime != null">
  67. and sparepickdetail.update_time = #{updateTime}
  68. </if>
  69. <if test="keyword != null and keyword != ''">
  70. and sparepickdetail.id like concat('%',#{keyword},'%')
  71. </if>
  72. </sql>
  73. <select id="selectList" parameterType="com.platform.dao.dto.store.SpareRestoreDetailDTO"
  74. resultType="com.platform.dao.vo.query.store.SpareRestoreDetailVO">
  75. select sparepickdetail.*
  76. from t_spare_restore_detail as sparepickdetail
  77. <where>
  78. <include refid="List_Condition"/>
  79. </where>
  80. </select>
  81. </mapper>