You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.1 KiB

1 year ago
1 year ago
1 year ago
  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.spring.modules.part.mapper.PartStatusInformationMapper">
  4. <!-- 单位信息列表 -->
  5. <select id="partStatusInformationSearch" resultType="com.spring.modules.part.vo.PartStatusInformationVo">
  6. SELECT
  7. site,
  8. part_status,
  9. part_status_desc,
  10. active,
  11. create_by,
  12. create_date,
  13. update_by,
  14. update_date,
  15. show_in_query_flag
  16. FROM plm_part_status
  17. <where>
  18. site = #{query.site}
  19. <if test = "query.partStatus != null and query.partStatus != ''">
  20. AND part_status like #{query.partStatus}
  21. </if>
  22. <if test = "query.partStatusDesc != null and query.partStatusDesc != ''">
  23. AND part_status_desc like #{query.partStatusDesc}
  24. </if>
  25. <if test = "query.active != null and query.active != ''">
  26. AND active = #{query.active}
  27. </if>
  28. </where>
  29. </select>
  30. </mapper>