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