Commit ebea9b4a by 吕明尚

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

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