Commit 04d158a2 by 吕明尚

套餐增加字段

parent 0b3b439b
......@@ -48,7 +48,7 @@ public class PackServiceImpl extends ServiceImpl<PackMapper, SPack> implements I
/**
* 新增套餐
*
* @param SPack 套餐
* @param sPack 套餐
* @return 结果
*/
@Override
......
......@@ -38,6 +38,7 @@
<select id="selectPackList" parameterType="SPack" resultMap="PackResult">
<include refid="selectPackVo"/>
<where>
1=1
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
<if test="duration != null and duration != ''">and duration = #{duration}</if>
<if test="price != null ">and price = #{price}</if>
......@@ -45,7 +46,8 @@
#{packaStartPeriod}
</if>
<if test="packaEndPeriod != null and packaEndPeriod != ''">and packa_end_period = #{packaEndPeriod}</if>
<if test="firstOrderAvailable != null and firstOrderAvailable != ''">and first_order_available =
<if test="firstOrderAvailable != null and firstOrderAvailable != '' or firstOrderAvailable==0">and
first_order_available =
#{firstOrderAvailable}
</if>
</where>
......
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