Commit dc989528 by 邹磊浩

修改代码

parent 94a97290
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.pz.system.mapper.StoreIncomeMapper"> <mapper namespace="com.pz.system.mapper.StoreIncomeMapper">
<resultMap type="com.pz.system.domain.StoreIncome" id="StoreIncomeResult"> <resultMap type="com.pz.system.domain.StoreIncome" id="StoreIncomeResult">
...@@ -21,15 +21,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -21,15 +21,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="findStoreIncomeVoPage" resultType="com.pz.system.domain.vo.StoreIncomeVo"> <select id="findStoreIncomeVoPage" resultType="com.pz.system.domain.vo.StoreIncomeVo">
select sin.name as storeName,si.* from store_income AS si select sin.name as storeName,si.* from store_income AS si
left join store_info AS sin on sin.id = si.store_id left join store_info AS sin on sin.id = si.store_id
<where>
<if test="bo.storeName != null and bo.storeName != ''"> <if test="bo.storeName != null and bo.storeName != ''">
where sin.name LIKE CONCAT('%', #{bo.storeName}, '%') and sin.name LIKE CONCAT('%', #{bo.storeName}, '%')
</if> </if>
<if test="bo.storeId != null"> <if test="bo.storeId != null">
where si.store_id = #{storeId} and si.store_id = #{bo.storeId}
</if> </if>
<if test="bo.status != null"> <if test="bo.status != null">
where si.status = #{bo.status} and si.status = #{bo.status}
</if> </if>
</where>
</select> </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