Commit 1f4321ae by wutong

自动周转实际冗余和实际缺货保存数量

parent 5a11a8ea
...@@ -153,6 +153,15 @@ public class DcAutoForecastFluctuation { ...@@ -153,6 +153,15 @@ public class DcAutoForecastFluctuation {
private BigDecimal avgSalesThree; private BigDecimal avgSalesThree;
/** /**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_forecast_fluctuation.quantity
*
* @mbg.generated
*/
private Integer quantity;
/**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_auto_forecast_fluctuation * This method corresponds to the database table dc_auto_forecast_fluctuation
* *
...@@ -180,6 +189,7 @@ public class DcAutoForecastFluctuation { ...@@ -180,6 +189,7 @@ public class DcAutoForecastFluctuation {
sb.append(", confirmTime=").append(confirmTime); sb.append(", confirmTime=").append(confirmTime);
sb.append(", type=").append(type); sb.append(", type=").append(type);
sb.append(", avgSalesThree=").append(avgSalesThree); sb.append(", avgSalesThree=").append(avgSalesThree);
sb.append(", quantity=").append(quantity);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
} }
...@@ -217,7 +227,8 @@ public class DcAutoForecastFluctuation { ...@@ -217,7 +227,8 @@ public class DcAutoForecastFluctuation {
&& (this.getHasConfirm() == null ? other.getHasConfirm() == null : this.getHasConfirm().equals(other.getHasConfirm())) && (this.getHasConfirm() == null ? other.getHasConfirm() == null : this.getHasConfirm().equals(other.getHasConfirm()))
&& (this.getConfirmTime() == null ? other.getConfirmTime() == null : this.getConfirmTime().equals(other.getConfirmTime())) && (this.getConfirmTime() == null ? other.getConfirmTime() == null : this.getConfirmTime().equals(other.getConfirmTime()))
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType())) && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
&& (this.getAvgSalesThree() == null ? other.getAvgSalesThree() == null : this.getAvgSalesThree().equals(other.getAvgSalesThree())); && (this.getAvgSalesThree() == null ? other.getAvgSalesThree() == null : this.getAvgSalesThree().equals(other.getAvgSalesThree()))
&& (this.getQuantity() == null ? other.getQuantity() == null : this.getQuantity().equals(other.getQuantity()));
} }
/** /**
...@@ -246,6 +257,7 @@ public class DcAutoForecastFluctuation { ...@@ -246,6 +257,7 @@ public class DcAutoForecastFluctuation {
result = prime * result + ((getConfirmTime() == null) ? 0 : getConfirmTime().hashCode()); result = prime * result + ((getConfirmTime() == null) ? 0 : getConfirmTime().hashCode());
result = prime * result + ((getType() == null) ? 0 : getType().hashCode()); result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
result = prime * result + ((getAvgSalesThree() == null) ? 0 : getAvgSalesThree().hashCode()); result = prime * result + ((getAvgSalesThree() == null) ? 0 : getAvgSalesThree().hashCode());
result = prime * result + ((getQuantity() == null) ? 0 : getQuantity().hashCode());
return result; return result;
} }
} }
\ No newline at end of file
...@@ -220,6 +220,36 @@ public class DcAutoForecastFluctuationExample { ...@@ -220,6 +220,36 @@ public class DcAutoForecastFluctuationExample {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public DcAutoForecastFluctuationExample when(boolean condition, IExampleWhen then) {
if (condition) {
then.example(this);
}
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_auto_forecast_fluctuation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public DcAutoForecastFluctuationExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
if (condition) {
then.example(this);
} else {
otherwise.example(this);
}
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_auto_forecast_fluctuation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public void setOffset(Integer offset) { public void setOffset(Integer offset) {
this.offset = offset; this.offset = offset;
} }
...@@ -1351,6 +1381,66 @@ public class DcAutoForecastFluctuationExample { ...@@ -1351,6 +1381,66 @@ public class DcAutoForecastFluctuationExample {
addCriterion("avg_sales_three not between", value1, value2, "avgSalesThree"); addCriterion("avg_sales_three not between", value1, value2, "avgSalesThree");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andQuantityIsNull() {
addCriterion("quantity is null");
return (Criteria) this;
}
public Criteria andQuantityIsNotNull() {
addCriterion("quantity is not null");
return (Criteria) this;
}
public Criteria andQuantityEqualTo(Integer value) {
addCriterion("quantity =", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityNotEqualTo(Integer value) {
addCriterion("quantity <>", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityGreaterThan(Integer value) {
addCriterion("quantity >", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityGreaterThanOrEqualTo(Integer value) {
addCriterion("quantity >=", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityLessThan(Integer value) {
addCriterion("quantity <", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityLessThanOrEqualTo(Integer value) {
addCriterion("quantity <=", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityIn(List<Integer> values) {
addCriterion("quantity in", values, "quantity");
return (Criteria) this;
}
public Criteria andQuantityNotIn(List<Integer> values) {
addCriterion("quantity not in", values, "quantity");
return (Criteria) this;
}
public Criteria andQuantityBetween(Integer value1, Integer value2) {
addCriterion("quantity between", value1, value2, "quantity");
return (Criteria) this;
}
public Criteria andQuantityNotBetween(Integer value1, Integer value2) {
addCriterion("quantity not between", value1, value2, "quantity");
return (Criteria) this;
}
} }
/** /**
...@@ -1399,6 +1489,7 @@ public class DcAutoForecastFluctuationExample { ...@@ -1399,6 +1489,7 @@ public class DcAutoForecastFluctuationExample {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
@Deprecated
public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
if (ifAdd) { if (ifAdd) {
add.add(this); add.add(this);
...@@ -1407,12 +1498,43 @@ public class DcAutoForecastFluctuationExample { ...@@ -1407,12 +1498,43 @@ public class DcAutoForecastFluctuationExample {
} }
/** /**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_auto_forecast_fluctuation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria when(boolean condition, ICriteriaWhen then) {
if (condition) {
then.criteria(this);
}
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_auto_forecast_fluctuation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
if (condition) {
then.criteria(this);
} else {
otherwise.criteria(this);
}
return this;
}
/**
* This interface was generated by MyBatis Generator. * This interface was generated by MyBatis Generator.
* This interface corresponds to the database table dc_auto_forecast_fluctuation * This interface corresponds to the database table dc_auto_forecast_fluctuation
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
@Deprecated
public interface ICriteriaAdd { public interface ICriteriaAdd {
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -1516,4 +1638,40 @@ public class DcAutoForecastFluctuationExample { ...@@ -1516,4 +1638,40 @@ public class DcAutoForecastFluctuationExample {
this(condition, value, secondValue, null); this(condition, value, secondValue, null);
} }
} }
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table dc_auto_forecast_fluctuation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public interface ICriteriaWhen {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_auto_forecast_fluctuation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
void criteria(Criteria criteria);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table dc_auto_forecast_fluctuation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public interface IExampleWhen {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_auto_forecast_fluctuation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
void example(DcAutoForecastFluctuationExample example);
}
} }
\ No newline at end of file
...@@ -555,12 +555,15 @@ public class AutoTurnoverJob extends PointJob { ...@@ -555,12 +555,15 @@ public class AutoTurnoverJob extends PointJob {
dcAutoForecastFluctuationActual = new DcAutoForecastFluctuation(); dcAutoForecastFluctuationActual = new DcAutoForecastFluctuation();
//实际冗余 //实际冗余
dcAutoForecastFluctuationActual.setType(3); dcAutoForecastFluctuationActual.setType(3);
float v = realInventory - forecastSalesList.get(0).add(totalSafeInventory).floatValue();
dcAutoForecastFluctuationActual.setQuantity(Math.round(v));
} }
if (outStock > 0) { if (outStock > 0) {
dcAutoForecastFluctuationActual = new DcAutoForecastFluctuation(); dcAutoForecastFluctuationActual = new DcAutoForecastFluctuation();
//实际缺货 //实际缺货
dcAutoForecastFluctuationActual.setType(1); dcAutoForecastFluctuationActual.setType(1);
dcAutoForecastFluctuationActual.setQuantity(outStock);
} }
if (dcAutoForecastFluctuationActual != null) { if (dcAutoForecastFluctuationActual != null) {
dcAutoForecastFluctuationActual.setAvgSalesThree(avgHistoryThreedaySales); dcAutoForecastFluctuationActual.setAvgSalesThree(avgHistoryThreedaySales);
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<result column="confirm_time" jdbcType="TIMESTAMP" property="confirmTime" /> <result column="confirm_time" jdbcType="TIMESTAMP" property="confirmTime" />
<result column="type" jdbcType="TINYINT" property="type" /> <result column="type" jdbcType="TINYINT" property="type" />
<result column="avg_sales_three" jdbcType="DECIMAL" property="avgSalesThree" /> <result column="avg_sales_three" jdbcType="DECIMAL" property="avgSalesThree" />
<result column="quantity" jdbcType="INTEGER" property="quantity" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
...@@ -96,7 +97,7 @@ ...@@ -96,7 +97,7 @@
--> -->
id, gmt_create, gmt_modified, bailun_sku, warehouse_code, warehouse_name, start_time, id, gmt_create, gmt_modified, bailun_sku, warehouse_code, warehouse_name, start_time,
end_time, bl_operator, remark, has_solve, forecast_solve_time, has_confirm, confirm_time, end_time, bl_operator, remark, has_solve, forecast_solve_time, has_confirm, confirm_time,
type, avg_sales_three type, avg_sales_three, quantity
</sql> </sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcAutoForecastFluctuationExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcAutoForecastFluctuationExample" resultMap="BaseResultMap">
<!-- <!--
...@@ -162,13 +163,13 @@ ...@@ -162,13 +163,13 @@
start_time, end_time, bl_operator, start_time, end_time, bl_operator,
remark, has_solve, forecast_solve_time, remark, has_solve, forecast_solve_time,
has_confirm, confirm_time, type, has_confirm, confirm_time, type,
avg_sales_three) avg_sales_three, quantity)
values (#{id,jdbcType=INTEGER}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, values (#{id,jdbcType=INTEGER}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{bailunSku,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR},
#{startTime,jdbcType=DATE}, #{endTime,jdbcType=DATE}, #{blOperator,jdbcType=VARCHAR}, #{startTime,jdbcType=DATE}, #{endTime,jdbcType=DATE}, #{blOperator,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR}, #{hasSolve,jdbcType=BIT}, #{forecastSolveTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{hasSolve,jdbcType=BIT}, #{forecastSolveTime,jdbcType=TIMESTAMP},
#{hasConfirm,jdbcType=BIT}, #{confirmTime,jdbcType=TIMESTAMP}, #{type,jdbcType=TINYINT}, #{hasConfirm,jdbcType=BIT}, #{confirmTime,jdbcType=TIMESTAMP}, #{type,jdbcType=TINYINT},
#{avgSalesThree,jdbcType=DECIMAL}) #{avgSalesThree,jdbcType=DECIMAL}, #{quantity,jdbcType=INTEGER})
</insert> </insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcAutoForecastFluctuation"> <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcAutoForecastFluctuation">
<!-- <!--
...@@ -225,6 +226,9 @@ ...@@ -225,6 +226,9 @@
<if test="avgSalesThree != null"> <if test="avgSalesThree != null">
avg_sales_three, avg_sales_three,
</if> </if>
<if test="quantity != null">
quantity,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -275,6 +279,9 @@ ...@@ -275,6 +279,9 @@
<if test="avgSalesThree != null"> <if test="avgSalesThree != null">
#{avgSalesThree,jdbcType=DECIMAL}, #{avgSalesThree,jdbcType=DECIMAL},
</if> </if>
<if test="quantity != null">
#{quantity,jdbcType=INTEGER},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcAutoForecastFluctuationExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.bailuntec.domain.example.DcAutoForecastFluctuationExample" resultType="java.lang.Long">
...@@ -342,6 +349,9 @@ ...@@ -342,6 +349,9 @@
<if test="record.avgSalesThree != null"> <if test="record.avgSalesThree != null">
avg_sales_three = #{record.avgSalesThree,jdbcType=DECIMAL}, avg_sales_three = #{record.avgSalesThree,jdbcType=DECIMAL},
</if> </if>
<if test="record.quantity != null">
quantity = #{record.quantity,jdbcType=INTEGER},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
...@@ -368,7 +378,8 @@ ...@@ -368,7 +378,8 @@
has_confirm = #{record.hasConfirm,jdbcType=BIT}, has_confirm = #{record.hasConfirm,jdbcType=BIT},
confirm_time = #{record.confirmTime,jdbcType=TIMESTAMP}, confirm_time = #{record.confirmTime,jdbcType=TIMESTAMP},
type = #{record.type,jdbcType=TINYINT}, type = #{record.type,jdbcType=TINYINT},
avg_sales_three = #{record.avgSalesThree,jdbcType=DECIMAL} avg_sales_three = #{record.avgSalesThree,jdbcType=DECIMAL},
quantity = #{record.quantity,jdbcType=INTEGER}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -425,6 +436,9 @@ ...@@ -425,6 +436,9 @@
<if test="avgSalesThree != null"> <if test="avgSalesThree != null">
avg_sales_three = #{avgSalesThree,jdbcType=DECIMAL}, avg_sales_three = #{avgSalesThree,jdbcType=DECIMAL},
</if> </if>
<if test="quantity != null">
quantity = #{quantity,jdbcType=INTEGER},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -448,7 +462,8 @@ ...@@ -448,7 +462,8 @@
has_confirm = #{hasConfirm,jdbcType=BIT}, has_confirm = #{hasConfirm,jdbcType=BIT},
confirm_time = #{confirmTime,jdbcType=TIMESTAMP}, confirm_time = #{confirmTime,jdbcType=TIMESTAMP},
type = #{type,jdbcType=TINYINT}, type = #{type,jdbcType=TINYINT},
avg_sales_three = #{avgSalesThree,jdbcType=DECIMAL} avg_sales_three = #{avgSalesThree,jdbcType=DECIMAL},
quantity = #{quantity,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcAutoForecastFluctuation"> <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcAutoForecastFluctuation">
...@@ -507,6 +522,9 @@ ...@@ -507,6 +522,9 @@
<if test="avgSalesThree != null"> <if test="avgSalesThree != null">
avg_sales_three, avg_sales_three,
</if> </if>
<if test="quantity != null">
quantity,
</if>
</trim> </trim>
values values
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -558,6 +576,9 @@ ...@@ -558,6 +576,9 @@
<if test="avgSalesThree != null"> <if test="avgSalesThree != null">
#{avgSalesThree,jdbcType=DECIMAL}, #{avgSalesThree,jdbcType=DECIMAL},
</if> </if>
<if test="quantity != null">
#{quantity,jdbcType=INTEGER},
</if>
</trim> </trim>
on duplicate key update on duplicate key update
<trim suffixOverrides=","> <trim suffixOverrides=",">
...@@ -609,6 +630,9 @@ ...@@ -609,6 +630,9 @@
<if test="avgSalesThree != null"> <if test="avgSalesThree != null">
avg_sales_three = #{avgSalesThree,jdbcType=DECIMAL}, avg_sales_three = #{avgSalesThree,jdbcType=DECIMAL},
</if> </if>
<if test="quantity != null">
quantity = #{quantity,jdbcType=INTEGER},
</if>
</trim> </trim>
</insert> </insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcAutoForecastFluctuation"> <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcAutoForecastFluctuation">
...@@ -620,18 +644,18 @@ ...@@ -620,18 +644,18 @@
insert into dc_auto_forecast_fluctuation insert into dc_auto_forecast_fluctuation
(id, gmt_create, gmt_modified, bailun_sku, warehouse_code, warehouse_name, start_time, (id, gmt_create, gmt_modified, bailun_sku, warehouse_code, warehouse_name, start_time,
end_time, bl_operator, remark, has_solve, forecast_solve_time, has_confirm, confirm_time, end_time, bl_operator, remark, has_solve, forecast_solve_time, has_confirm, confirm_time,
type, avg_sales_three) type, avg_sales_three, quantity)
values values
(#{id,jdbcType=INTEGER}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, (#{id,jdbcType=INTEGER}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{bailunSku,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR},
#{startTime,jdbcType=DATE}, #{endTime,jdbcType=DATE}, #{blOperator,jdbcType=VARCHAR}, #{startTime,jdbcType=DATE}, #{endTime,jdbcType=DATE}, #{blOperator,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR}, #{hasSolve,jdbcType=BIT}, #{forecastSolveTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{hasSolve,jdbcType=BIT}, #{forecastSolveTime,jdbcType=TIMESTAMP},
#{hasConfirm,jdbcType=BIT}, #{confirmTime,jdbcType=TIMESTAMP}, #{type,jdbcType=TINYINT}, #{hasConfirm,jdbcType=BIT}, #{confirmTime,jdbcType=TIMESTAMP}, #{type,jdbcType=TINYINT},
#{avgSalesThree,jdbcType=DECIMAL}) #{avgSalesThree,jdbcType=DECIMAL}, #{quantity,jdbcType=INTEGER})
on duplicate key update on duplicate key update
id = #{id,jdbcType=INTEGER}, id = #{id,jdbcType=INTEGER},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}, gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
bailun_sku = #{bailunSku,jdbcType=VARCHAR}, bailun_sku = #{bailunSku,jdbcType=VARCHAR},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR}, warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{warehouseName,jdbcType=VARCHAR}, warehouse_name = #{warehouseName,jdbcType=VARCHAR},
...@@ -640,11 +664,12 @@ ...@@ -640,11 +664,12 @@
bl_operator = #{blOperator,jdbcType=VARCHAR}, bl_operator = #{blOperator,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
has_solve = #{hasSolve,jdbcType=BIT}, has_solve = #{hasSolve,jdbcType=BIT},
forecast_solve_time = #{forecastSolveTime,jdbcType=TIMESTAMP}, forecast_solve_time = #{forecastSolveTime,jdbcType=TIMESTAMP},
has_confirm = #{hasConfirm,jdbcType=BIT}, has_confirm = #{hasConfirm,jdbcType=BIT},
confirm_time = #{confirmTime,jdbcType=TIMESTAMP}, confirm_time = #{confirmTime,jdbcType=TIMESTAMP},
type = #{type,jdbcType=TINYINT}, type = #{type,jdbcType=TINYINT},
avg_sales_three = #{avgSalesThree,jdbcType=DECIMAL} avg_sales_three = #{avgSalesThree,jdbcType=DECIMAL},
quantity = #{quantity,jdbcType=INTEGER}
</insert> </insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcAutoForecastFluctuationExample" resultMap="BaseResultMap"> <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcAutoForecastFluctuationExample" resultMap="BaseResultMap">
<!-- <!--
......
...@@ -52,7 +52,7 @@ public class AutoTurnoverTest { ...@@ -52,7 +52,7 @@ public class AutoTurnoverTest {
// dcBaseStock = mapper.selectOneByExample(DcBaseStockExample.newAndCreateCriteria().andBailunSkuEqualTo("322572421").andWarehouseCodeEqualTo("QYBLZZ").example()); // dcBaseStock = mapper.selectOneByExample(DcBaseStockExample.newAndCreateCriteria().andBailunSkuEqualTo("322572421").andWarehouseCodeEqualTo("QYBLZZ").example());
// dcBaseStock = mapper.selectOneByExample(DcBaseStockExample.newAndCreateCriteria().andBailunSkuEqualTo("232232601").andWarehouseCodeEqualTo("CHUKFBA").example()); // dcBaseStock = mapper.selectOneByExample(DcBaseStockExample.newAndCreateCriteria().andBailunSkuEqualTo("232232601").andWarehouseCodeEqualTo("CHUKFBA").example());
// dcBaseStock = mapper.selectOneByExample(DcBaseStockExample.newAndCreateCriteria().andBailunSkuEqualTo("213789601").andWarehouseCodeEqualTo("GZBLWH").example()); // dcBaseStock = mapper.selectOneByExample(DcBaseStockExample.newAndCreateCriteria().andBailunSkuEqualTo("213789601").andWarehouseCodeEqualTo("GZBLWH").example());
dcBaseStock = mapper.selectOneByExample(DcBaseStockExample.newAndCreateCriteria().andBailunSkuEqualTo("381757501").andWarehouseCodeEqualTo("GZBLWH").example()); dcBaseStock = mapper.selectOneByExample(DcBaseStockExample.newAndCreateCriteria().andBailunSkuEqualTo("406585310").andWarehouseCodeEqualTo("QYBLZZ").example());
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} finally { } finally {
......
table-name=dc_auto_config_safe_inventory table-name=dc_auto_forecast_fluctuation
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