Authored by Zhao

add field to recalldetail table

... ... @@ -6,12 +6,13 @@
<result column="page_id" property="pageId" jdbcType="TINYINT" />
<result column="recall_type" property="recallType" jdbcType="INTEGER" />
<result column="recall_percent" property="recallPercent" jdbcType="INTEGER" />
<result column="value_type" property="valueType" jdbcType="TINYINT" />
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
<result column="status" property="status" jdbcType="TINYINT" />
</resultMap>
<sql id="Base_Column_List" >
id, page_id, recall_type, recall_percent, update_time, status
id, page_id, recall_type, recall_percent, value_type, update_time, status
</sql>
<delete id="deleteByPrimaryKey">
... ... @@ -19,11 +20,12 @@
</delete>
<insert id="insert">
insert ignore into page_recall_strategy_detail (id, page_id, recall_type, recall_percent, update_time, status)
insert ignore into page_recall_strategy_detail (id, page_id, recall_type, recall_percent, value_type, update_time, status)
values (#{record.id,jdbcType=INTEGER},
#{record.pageId,jdbcType=TINYINT},
#{record.recallType,jdbcType=INTEGER},
#{record.recallPercent,jdbcType=INTEGER},
#{record.valueType,jdbcType=TINYINT},
#{record.updateTime,jdbcType=INTEGER},
#{record.status,jdbcType=TINYINT})
</insert>
... ... @@ -33,6 +35,7 @@
set page_id = #{record.pageId,jdbcType=TINYINT},
recall_type = #{record.recallType,jdbcType=INTEGER},
recall_percent = #{record.recallPercent,jdbcType=INTEGER},
value_type = #{record.valueType,jdbcType=TINYINT},
update_time = #{record.updateTime,jdbcType=INTEGER},
status = #{record.status,jdbcType=TINYINT}
where id = #{record.id,jdbcType=INTEGER}
... ...
... ... @@ -24,7 +24,8 @@ public class PageRecallStrategyBO {
public static class RecallStrategyBO {
private Integer recallType;
private Integer recallPercent;
private Integer recallValue;
private Integer valueType;
public Integer getRecallType() {
return recallType;
... ... @@ -34,12 +35,20 @@ public class PageRecallStrategyBO {
this.recallType = recallType;
}
public Integer getRecallPercent() {
return recallPercent;
public Integer getRecallValue() {
return recallValue;
}
public void setRecallPercent(Integer recallPercent) {
this.recallPercent = recallPercent;
public void setRecallValue(Integer recallValue) {
this.recallValue = recallValue;
}
public Integer getValueType() {
return valueType;
}
public void setValueType(Integer valueType) {
this.valueType = valueType;
}
}
... ...
... ... @@ -45,7 +45,8 @@ public class RecallStrategyLogicService {
if (e != null) {
PageRecallStrategyBO.RecallStrategyBO strategy = new PageRecallStrategyBO.RecallStrategyBO();
strategy.setRecallType(e.getRecallType());
strategy.setRecallPercent(e.getRecallPercent());
strategy.setRecallValue(e.getRecallPercent());
strategy.setValueType(e.getValueType());
strategyList.add(strategy);
}
});
... ...