| | |
| | | <?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.customervisits.mapper.CustomerVisitsMapper"> |
| | | |
| | | </mapper> |
| | | |
| | | <select id="listPage" resultType="com.ruoyi.customervisits.dto.CustomerVisitsDto"> |
| | | select * from customer_visits |
| | | where 1=1 |
| | | <if test="c.customerName != null "> |
| | | AND customer_name like concat('%',#{c.customerName},'%') |
| | | </if> |
| | | <if test="c.visitingPeople != null "> |
| | | AND visiting_people like concat('%',#{c.visitingPeople},'%') |
| | | </if> |
| | | </select> |
| | | </mapper> |