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.

38 lines
1.3 KiB

9 months ago
<?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.techsor.datacenter.business.dao.ex.DataSourceConfigMapperExt">
<select id="getListPage" resultType="com.techsor.datacenter.business.vo.datasrc.DataSourceConfigVO">
select
id,
code,
api_key,
name,
method_type,
params,
state,
company_id,
device_id_position
from data_src_config
<where>
<if test="code != null and code != ''">
and code like CONCAT('%', #{code}, '%')
</if>
<if test="name != null and name != ''">
and `name` like CONCAT('%', #{name}, '%')
</if>
<foreach collection="companyIdList" item="companyId" open="and (" separator="or" close=")">
company_id = #{companyId}
</foreach>
<if test="state !=null and state != ''">
and `state` = #{state}
</if>
<if test="methodType !=null and methodType != ''">
and `method_type` = #{methodType}
</if>
and flag=0
</where>
</select>
</mapper>