sku表修改及添加购物流程图
This commit is contained in:
parent
f92927086d
commit
6b573d261a
BIN
document/axure/mall-flow.rp
Normal file
BIN
document/axure/mall-flow.rp
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.macro</groupId>
|
<groupId>com.macro.mall</groupId>
|
||||||
<artifactId>mall-mbg</artifactId>
|
<artifactId>mall-mbg</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.macro</groupId>
|
<groupId>com.macro.mall</groupId>
|
||||||
<artifactId>mall-mbg</artifactId>
|
<artifactId>mall-mbg</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -56,6 +56,20 @@ public class PmsSkuStock implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer sale;
|
private Integer sale;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 单品促销价格
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
private BigDecimal promotionPrice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 锁定库存
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
private Integer lockStock;
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
@ -146,6 +160,22 @@ public class PmsSkuStock implements Serializable {
|
|||||||
this.sale = sale;
|
this.sale = sale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public BigDecimal getPromotionPrice() {
|
||||||
|
return promotionPrice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPromotionPrice(BigDecimal promotionPrice) {
|
||||||
|
this.promotionPrice = promotionPrice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getLockStock() {
|
||||||
|
return lockStock;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLockStock(Integer lockStock) {
|
||||||
|
this.lockStock = lockStock;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
@ -163,6 +193,8 @@ public class PmsSkuStock implements Serializable {
|
|||||||
sb.append(", sp3=").append(sp3);
|
sb.append(", sp3=").append(sp3);
|
||||||
sb.append(", pic=").append(pic);
|
sb.append(", pic=").append(pic);
|
||||||
sb.append(", sale=").append(sale);
|
sb.append(", sale=").append(sale);
|
||||||
|
sb.append(", promotionPrice=").append(promotionPrice);
|
||||||
|
sb.append(", lockStock=").append(lockStock);
|
||||||
sb.append(", serialVersionUID=").append(serialVersionUID);
|
sb.append(", serialVersionUID=").append(serialVersionUID);
|
||||||
sb.append("]");
|
sb.append("]");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
@ -814,6 +814,126 @@ public class PmsSkuStockExample {
|
|||||||
addCriterion("sale not between", value1, value2, "sale");
|
addCriterion("sale not between", value1, value2, "sale");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Criteria andPromotionPriceIsNull() {
|
||||||
|
addCriterion("promotion_price is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPromotionPriceIsNotNull() {
|
||||||
|
addCriterion("promotion_price is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPromotionPriceEqualTo(BigDecimal value) {
|
||||||
|
addCriterion("promotion_price =", value, "promotionPrice");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPromotionPriceNotEqualTo(BigDecimal value) {
|
||||||
|
addCriterion("promotion_price <>", value, "promotionPrice");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPromotionPriceGreaterThan(BigDecimal value) {
|
||||||
|
addCriterion("promotion_price >", value, "promotionPrice");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPromotionPriceGreaterThanOrEqualTo(BigDecimal value) {
|
||||||
|
addCriterion("promotion_price >=", value, "promotionPrice");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPromotionPriceLessThan(BigDecimal value) {
|
||||||
|
addCriterion("promotion_price <", value, "promotionPrice");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPromotionPriceLessThanOrEqualTo(BigDecimal value) {
|
||||||
|
addCriterion("promotion_price <=", value, "promotionPrice");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPromotionPriceIn(List<BigDecimal> values) {
|
||||||
|
addCriterion("promotion_price in", values, "promotionPrice");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPromotionPriceNotIn(List<BigDecimal> values) {
|
||||||
|
addCriterion("promotion_price not in", values, "promotionPrice");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPromotionPriceBetween(BigDecimal value1, BigDecimal value2) {
|
||||||
|
addCriterion("promotion_price between", value1, value2, "promotionPrice");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPromotionPriceNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||||
|
addCriterion("promotion_price not between", value1, value2, "promotionPrice");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andLockStockIsNull() {
|
||||||
|
addCriterion("lock_stock is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andLockStockIsNotNull() {
|
||||||
|
addCriterion("lock_stock is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andLockStockEqualTo(Integer value) {
|
||||||
|
addCriterion("lock_stock =", value, "lockStock");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andLockStockNotEqualTo(Integer value) {
|
||||||
|
addCriterion("lock_stock <>", value, "lockStock");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andLockStockGreaterThan(Integer value) {
|
||||||
|
addCriterion("lock_stock >", value, "lockStock");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andLockStockGreaterThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("lock_stock >=", value, "lockStock");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andLockStockLessThan(Integer value) {
|
||||||
|
addCriterion("lock_stock <", value, "lockStock");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andLockStockLessThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("lock_stock <=", value, "lockStock");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andLockStockIn(List<Integer> values) {
|
||||||
|
addCriterion("lock_stock in", values, "lockStock");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andLockStockNotIn(List<Integer> values) {
|
||||||
|
addCriterion("lock_stock not in", values, "lockStock");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andLockStockBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("lock_stock between", value1, value2, "lockStock");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andLockStockNotBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("lock_stock not between", value1, value2, "lockStock");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Criteria extends GeneratedCriteria {
|
public static class Criteria extends GeneratedCriteria {
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<result column="sp3" jdbcType="VARCHAR" property="sp3" />
|
<result column="sp3" jdbcType="VARCHAR" property="sp3" />
|
||||||
<result column="pic" jdbcType="VARCHAR" property="pic" />
|
<result column="pic" jdbcType="VARCHAR" property="pic" />
|
||||||
<result column="sale" jdbcType="INTEGER" property="sale" />
|
<result column="sale" jdbcType="INTEGER" property="sale" />
|
||||||
|
<result column="promotion_price" jdbcType="DECIMAL" property="promotionPrice" />
|
||||||
|
<result column="lock_stock" jdbcType="INTEGER" property="lockStock" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Example_Where_Clause">
|
<sql id="Example_Where_Clause">
|
||||||
<where>
|
<where>
|
||||||
@ -73,7 +75,8 @@
|
|||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, product_id, sku_code, price, stock, low_stock, sp1, sp2, sp3, pic, sale
|
id, product_id, sku_code, price, stock, low_stock, sp1, sp2, sp3, pic, sale, promotion_price,
|
||||||
|
lock_stock
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByExample" parameterType="com.macro.mall.model.PmsSkuStockExample" resultMap="BaseResultMap">
|
<select id="selectByExample" parameterType="com.macro.mall.model.PmsSkuStockExample" resultMap="BaseResultMap">
|
||||||
select
|
select
|
||||||
@ -111,12 +114,12 @@
|
|||||||
</selectKey>
|
</selectKey>
|
||||||
insert into pms_sku_stock (product_id, sku_code, price,
|
insert into pms_sku_stock (product_id, sku_code, price,
|
||||||
stock, low_stock, sp1,
|
stock, low_stock, sp1,
|
||||||
sp2, sp3, pic, sale
|
sp2, sp3, pic, sale,
|
||||||
)
|
promotion_price, lock_stock)
|
||||||
values (#{productId,jdbcType=BIGINT}, #{skuCode,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL},
|
values (#{productId,jdbcType=BIGINT}, #{skuCode,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL},
|
||||||
#{stock,jdbcType=INTEGER}, #{lowStock,jdbcType=INTEGER}, #{sp1,jdbcType=VARCHAR},
|
#{stock,jdbcType=INTEGER}, #{lowStock,jdbcType=INTEGER}, #{sp1,jdbcType=VARCHAR},
|
||||||
#{sp2,jdbcType=VARCHAR}, #{sp3,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, #{sale,jdbcType=INTEGER}
|
#{sp2,jdbcType=VARCHAR}, #{sp3,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, #{sale,jdbcType=INTEGER},
|
||||||
)
|
#{promotionPrice,jdbcType=DECIMAL}, #{lockStock,jdbcType=INTEGER})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsSkuStock">
|
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsSkuStock">
|
||||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
@ -154,6 +157,12 @@
|
|||||||
<if test="sale != null">
|
<if test="sale != null">
|
||||||
sale,
|
sale,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="promotionPrice != null">
|
||||||
|
promotion_price,
|
||||||
|
</if>
|
||||||
|
<if test="lockStock != null">
|
||||||
|
lock_stock,
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="productId != null">
|
<if test="productId != null">
|
||||||
@ -186,6 +195,12 @@
|
|||||||
<if test="sale != null">
|
<if test="sale != null">
|
||||||
#{sale,jdbcType=INTEGER},
|
#{sale,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="promotionPrice != null">
|
||||||
|
#{promotionPrice,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="lockStock != null">
|
||||||
|
#{lockStock,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
<select id="countByExample" parameterType="com.macro.mall.model.PmsSkuStockExample" resultType="java.lang.Integer">
|
<select id="countByExample" parameterType="com.macro.mall.model.PmsSkuStockExample" resultType="java.lang.Integer">
|
||||||
@ -230,6 +245,12 @@
|
|||||||
<if test="record.sale != null">
|
<if test="record.sale != null">
|
||||||
sale = #{record.sale,jdbcType=INTEGER},
|
sale = #{record.sale,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="record.promotionPrice != null">
|
||||||
|
promotion_price = #{record.promotionPrice,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.lockStock != null">
|
||||||
|
lock_stock = #{record.lockStock,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" />
|
||||||
@ -247,7 +268,9 @@
|
|||||||
sp2 = #{record.sp2,jdbcType=VARCHAR},
|
sp2 = #{record.sp2,jdbcType=VARCHAR},
|
||||||
sp3 = #{record.sp3,jdbcType=VARCHAR},
|
sp3 = #{record.sp3,jdbcType=VARCHAR},
|
||||||
pic = #{record.pic,jdbcType=VARCHAR},
|
pic = #{record.pic,jdbcType=VARCHAR},
|
||||||
sale = #{record.sale,jdbcType=INTEGER}
|
sale = #{record.sale,jdbcType=INTEGER},
|
||||||
|
promotion_price = #{record.promotionPrice,jdbcType=DECIMAL},
|
||||||
|
lock_stock = #{record.lockStock,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>
|
||||||
@ -285,6 +308,12 @@
|
|||||||
<if test="sale != null">
|
<if test="sale != null">
|
||||||
sale = #{sale,jdbcType=INTEGER},
|
sale = #{sale,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="promotionPrice != null">
|
||||||
|
promotion_price = #{promotionPrice,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="lockStock != null">
|
||||||
|
lock_stock = #{lockStock,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
</set>
|
</set>
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
@ -299,7 +328,9 @@
|
|||||||
sp2 = #{sp2,jdbcType=VARCHAR},
|
sp2 = #{sp2,jdbcType=VARCHAR},
|
||||||
sp3 = #{sp3,jdbcType=VARCHAR},
|
sp3 = #{sp3,jdbcType=VARCHAR},
|
||||||
pic = #{pic,jdbcType=VARCHAR},
|
pic = #{pic,jdbcType=VARCHAR},
|
||||||
sale = #{sale,jdbcType=INTEGER}
|
sale = #{sale,jdbcType=INTEGER},
|
||||||
|
promotion_price = #{promotionPrice,jdbcType=DECIMAL},
|
||||||
|
lock_stock = #{lockStock,jdbcType=INTEGER}
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
<javaClientGenerator type="XMLMAPPER" targetPackage="com.macro.mall.mapper"
|
<javaClientGenerator type="XMLMAPPER" targetPackage="com.macro.mall.mapper"
|
||||||
targetProject="mall-mbg\src\main\java"/>
|
targetProject="mall-mbg\src\main\java"/>
|
||||||
|
<!--生成全部表tableName设为%-->
|
||||||
<table tableName="%">
|
<table tableName="%">
|
||||||
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
|
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
|
||||||
</table>
|
</table>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.macro</groupId>
|
<groupId>com.macro.mall</groupId>
|
||||||
<artifactId>mall-mbg</artifactId>
|
<artifactId>mall-mbg</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.macro</groupId>
|
<groupId>com.macro.mall</groupId>
|
||||||
<artifactId>mall-mbg</artifactId>
|
<artifactId>mall-mbg</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user