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.2 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.RegionInformationMapper">
  4. <!-- 单位信息列表 -->
  5. <select id="regionInformationSearch" resultType="com.spring.modules.part.vo.RegionInformationVo">
  6. SELECT
  7. site,
  8. region_of_origin,
  9. region_of_origin_desc,
  10. active,
  11. create_by,
  12. create_date,
  13. update_by,
  14. update_date,
  15. show_in_query_flag
  16. FROM plm_region_of_origin
  17. <where>
  18. site = #{query.site}
  19. <if test = "query.regionOfOrigin != null and query.regionOfOrigin != ''">
  20. AND region_of_origin like #{query.regionOfOrigin}
  21. </if>
  22. <if test = "query.regionOfOriginDesc != null and query.regionOfOriginDesc != ''">
  23. AND region_of_origin_desc like #{query.regionOfOriginDesc}
  24. </if>
  25. <if test = "query.active != null and query.active != ''">
  26. AND active = #{query.active}
  27. </if>
  28. </where>
  29. </select>
  30. </mapper>