ChargingGunMapper.xml 593 Bytes
<?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="cn.com.glsx.evbusiness.modules.mapper.ChargingGunMapper">


  <select id="page" resultType="cn.com.glsx.evbusiness.modules.entity.ChargingGun">
    select *
    from charging_gun
    <where>
      <if test="pileId != null and pileId != ''">
        and `pile_id` = #{pileId}
      </if>
      <if test="name != null and name != ''">
        and `name` like concat('%',#{name},'%')
      </if>
    </where>
  </select>
</mapper>