<?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.ruoyi.system.mapper.EnterpriseMapper">
|
|
<select id="getEnterpriseList" resultType="com.ruoyi.system.api.model.Enterprise">
|
select *
|
from t_enterprise
|
<where>
|
<if test="null != req.name and '' != req.name">
|
and `name` like CONCAT('%', #{req.name}, '%')
|
</if>
|
<if test="null != req.businessScope and '' != req.businessScope">
|
and business_scope like CONCAT('%', #{req.businessScope}, '%')
|
</if>
|
<if test="null != req.mailingAddress and '' != req.mailingAddress">
|
and mailing_address like CONCAT('%', #{req.mailingAddress}, '%')
|
</if>
|
<if test="null != req.legalRepresentative and '' != req.legalRepresentative">
|
and legal_representative like CONCAT('%', #{req.legalRepresentative}, '%')
|
</if>
|
<if test="null != req.operationType and '' != req.operationType">
|
and operation_type like CONCAT('%', #{req.operationType}, '%')
|
</if>
|
</where>
|
</select>
|
|
</mapper>
|