safeway/bwie-moudels/bwie-merch/target/classes/mapper/MerchMapper.xml

20 lines
606 B
XML

<?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.bwie.merch.mapper.MerchMapper">
<select id="list" resultType="com.bwie.common.domain.Merch">
select * from t_merch
<where>
<if test="barCode!=null and barCode!=''">
and bat_code like concat('%',#{barCode},'%')
</if>
<if test="merchNum!=null">
and merch_num = #{merchNum}
</if>
</where>
</select>
</mapper>