Commit dc989528 by 邹磊浩

修改代码

parent 94a97290
<?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">
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.pz.system.mapper.StoreIncomeMapper">
<resultMap type="com.pz.system.domain.StoreIncome" id="StoreIncomeResult">
......@@ -21,15 +21,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="findStoreIncomeVoPage" resultType="com.pz.system.domain.vo.StoreIncomeVo">
select sin.name as storeName,si.* from store_income AS si
left join store_info AS sin on sin.id = si.store_id
<if test="bo.storeName != null and bo.storeName != ''">
where sin.name LIKE CONCAT('%', #{bo.storeName}, '%')
</if>
<if test="bo.storeId != null">
where si.store_id = #{storeId}
</if>
<if test="bo.status != null">
where si.status = #{bo.status}
</if>
<where>
<if test="bo.storeName != null and bo.storeName != ''">
and sin.name LIKE CONCAT('%', #{bo.storeName}, '%')
</if>
<if test="bo.storeId != null">
and si.store_id = #{bo.storeId}
</if>
<if test="bo.status != null">
and si.status = #{bo.status}
</if>
</where>
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment