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.
JinJiHuJava/ruoyi-admin/src/main/resources/mapper/jjh/ent/JEnterpriseContactMapper.xml

29 lines
1.3 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.ruoyi.jjh.ent.mapper.JEnterpriseContactMapper">
<select id="page" resultType="com.ruoyi.jjh.ent.entity.JEnterpriseContact">
select * from j_enterprise_contact
<where>
<if test="req.enterpriseName != null and req.enterpriseName != '' ">
and enterprise_name like concat('%',#{req.enterpriseName},'%')
</if>
<if test="req.enterpriseCode != null and req.enterpriseCode != '' ">
and enterprise_code like concat('%',#{req.enterpriseCode},'%')
</if>
<if test="req.contactName != null and req.contactName != '' ">
and contact_name like concat('%',#{req.contactName},'%')
</if>
<if test="req.contactPhone != null and req.contactPhone != '' ">
and contact_phone like concat('%',#{req.contactPhone},'%')
</if>
<if test="req.contactOffice != null and req.contactOffice != '' ">
and contact_office like concat('%',#{req.contactOffice},'%')
</if>
</where>
order by create_time desc
</select>
</mapper>