Commit ebea9b4a by 吕明尚

套餐增加是否首次下单可用

parent bdce2596
...@@ -56,21 +56,22 @@ public class SPack extends BaseEntity { ...@@ -56,21 +56,22 @@ public class SPack extends BaseEntity {
@Excel(name = "套餐结束时段") @Excel(name = "套餐结束时段")
private String packaEndPeriod; private String packaEndPeriod;
/**
* 是否首次下单可用
*/
@Excel(name = "是否首次下单可用:0否,1是")
private Integer firstOrderAvailable;
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) return "SPack{" +
.append("id", getId()) "id=" + id +
.append("name", getName()) ", name='" + name + '\'' +
.append("duration", getDuration()) ", duration='" + duration + '\'' +
.append("price", getPrice()) ", price=" + price +
.append("packaStartPeriod", getPackaStartPeriod()) ", packaStartPeriod='" + packaStartPeriod + '\'' +
.append("packaEndPeriod", getPackaEndPeriod()) ", packaEndPeriod='" + packaEndPeriod + '\'' +
.append("createBy", getCreateBy()) ", firstOrderAvailable=" + firstOrderAvailable +
.append("createTime", getCreateTime()) '}';
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
} }
} }
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<result property="price" column="price"/> <result property="price" column="price"/>
<result property="packaStartPeriod" column="packa_start_period"/> <result property="packaStartPeriod" column="packa_start_period"/>
<result property="packaEndPeriod" column="packa_end_period"/> <result property="packaEndPeriod" column="packa_end_period"/>
<result property="firstOrderAvailable" column="first_order_available"/>
<result property="createBy" column="create_by"/> <result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/> <result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/> <result property="updateBy" column="update_by"/>
...@@ -25,6 +26,7 @@ ...@@ -25,6 +26,7 @@
price, price,
packa_start_period, packa_start_period,
packa_end_period, packa_end_period,
first_order_available,
create_by, create_by,
create_time, create_time,
update_by, update_by,
...@@ -43,6 +45,9 @@ ...@@ -43,6 +45,9 @@
#{packaStartPeriod} #{packaStartPeriod}
</if> </if>
<if test="packaEndPeriod != null and packaEndPeriod != ''">and packa_end_period = #{packaEndPeriod}</if> <if test="packaEndPeriod != null and packaEndPeriod != ''">and packa_end_period = #{packaEndPeriod}</if>
<if test="firstOrderAvailable != null and firstOrderAvailable != ''">and first_order_available =
#{firstOrderAvailable}
</if>
</where> </where>
</select> </select>
...@@ -59,6 +64,7 @@ ...@@ -59,6 +64,7 @@
<if test="price != null">price,</if> <if test="price != null">price,</if>
<if test="packaStartPeriod != null">packa_start_period,</if> <if test="packaStartPeriod != null">packa_start_period,</if>
<if test="packaEndPeriod != null">packa_end_period,</if> <if test="packaEndPeriod != null">packa_end_period,</if>
<if test="firstOrderAvailable != null">first_order_available,</if>
<if test="createBy != null">create_by,</if> <if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if> <if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if> <if test="updateBy != null">update_by,</if>
...@@ -71,6 +77,7 @@ ...@@ -71,6 +77,7 @@
<if test="price != null">#{price},</if> <if test="price != null">#{price},</if>
<if test="packaStartPeriod != null">#{packaStartPeriod},</if> <if test="packaStartPeriod != null">#{packaStartPeriod},</if>
<if test="packaEndPeriod != null">#{packaEndPeriod},</if> <if test="packaEndPeriod != null">#{packaEndPeriod},</if>
<if test="firstOrderAvailable != null">#{firstOrderAvailable},</if>
<if test="createBy != null">#{createBy},</if> <if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if> <if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if> <if test="updateBy != null">#{updateBy},</if>
...@@ -87,6 +94,7 @@ ...@@ -87,6 +94,7 @@
<if test="price != null">price = #{price},</if> <if test="price != null">price = #{price},</if>
<if test="packaStartPeriod != null">packa_start_period = #{packaStartPeriod},</if> <if test="packaStartPeriod != null">packa_start_period = #{packaStartPeriod},</if>
<if test="packaEndPeriod != null">packa_end_period = #{packaEndPeriod},</if> <if test="packaEndPeriod != null">packa_end_period = #{packaEndPeriod},</if>
<if test="firstOrderAvailable != null">first_order_available = #{firstOrderAvailable},</if>
<if test="createBy != null">create_by = #{createBy},</if> <if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if> <if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if> <if test="updateBy != null">update_by = #{updateBy},</if>
......
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