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

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.spring.modules.part.mapper.RegionInformationMapper">
<!-- 单位信息列表 -->
<select id="regionInformationSearch" resultType="com.spring.modules.part.vo.RegionInformationVo">
SELECT
site,
region_of_origin,
region_of_origin_desc,
active,
create_by,
create_date,
update_by,
update_date,
show_in_query_flag
FROM plm_region_of_origin
<where>
site = #{query.site}
<if test = "query.regionOfOrigin != null and query.regionOfOrigin != ''">
AND region_of_origin like #{query.regionOfOrigin}
</if>
<if test = "query.regionOfOriginDesc != null and query.regionOfOriginDesc != ''">
AND region_of_origin_desc like #{query.regionOfOriginDesc}
</if>
<if test = "query.active != null and query.active != ''">
AND active = #{query.active}
</if>
</where>
</select>
</mapper>