AddressMapper.xml
620 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="com.huaheng.pc.config.address.mapper.AddressMapper">
<select id="selectEntity" resultType="com.huaheng.pc.config.address.domain.Address">
select param,url from address where warehouseCode=#{warehouseCode} and param=#{param}
</select>
<select id="selectWarehouse" resultType="com.huaheng.pc.config.address.domain.Address">
select warehouseCode from address where url like CONCAT('%',#{url},'%')
</select>
</mapper>