1
0
mirror of https://gitee.com/coder-xiaomo/flashsale synced 2025-01-10 19:58:14 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

商品模型3-修改Price数据库中小数点,并重新生成

This commit is contained in:
程序员小墨 2022-03-03 13:14:44 +08:00
parent 8bd1474f0d
commit add4aa6996
9 changed files with 78 additions and 76 deletions

View File

@ -11,7 +11,7 @@
Target Server Version : 50726 Target Server Version : 50726
File Encoding : 65001 File Encoding : 65001
Date: 03/03/2022 12:57:18 Date: 03/03/2022 13:13:05
*/ */
SET NAMES utf8mb4; SET NAMES utf8mb4;
@ -24,7 +24,7 @@ DROP TABLE IF EXISTS `item_info`;
CREATE TABLE `item_info` ( CREATE TABLE `item_info` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `title` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`price` decimal(10, 0) NOT NULL DEFAULT 0, `price` decimal(10, 2) NOT NULL DEFAULT 0.00,
`description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`sales` int(11) NOT NULL, `sales` int(11) NOT NULL,
`img_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `img_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,

View File

@ -7,7 +7,7 @@ public interface ItemDOMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table item_info * This method corresponds to the database table item_info
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
int deleteByPrimaryKey(Integer id); int deleteByPrimaryKey(Integer id);
@ -15,7 +15,7 @@ public interface ItemDOMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table item_info * This method corresponds to the database table item_info
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
int insert(ItemDO record); int insert(ItemDO record);
@ -23,7 +23,7 @@ public interface ItemDOMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table item_info * This method corresponds to the database table item_info
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
int insertSelective(ItemDO record); int insertSelective(ItemDO record);
@ -31,7 +31,7 @@ public interface ItemDOMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table item_info * This method corresponds to the database table item_info
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
ItemDO selectByPrimaryKey(Integer id); ItemDO selectByPrimaryKey(Integer id);
@ -39,7 +39,7 @@ public interface ItemDOMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table item_info * This method corresponds to the database table item_info
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
int updateByPrimaryKeySelective(ItemDO record); int updateByPrimaryKeySelective(ItemDO record);
@ -47,7 +47,7 @@ public interface ItemDOMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table item_info * This method corresponds to the database table item_info
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
int updateByPrimaryKey(ItemDO record); int updateByPrimaryKey(ItemDO record);
} }

View File

@ -7,7 +7,7 @@ public interface ItemStockDOMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table item_stock * This method corresponds to the database table item_stock
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
int deleteByPrimaryKey(Integer id); int deleteByPrimaryKey(Integer id);
@ -15,7 +15,7 @@ public interface ItemStockDOMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table item_stock * This method corresponds to the database table item_stock
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
int insert(ItemStockDO record); int insert(ItemStockDO record);
@ -23,7 +23,7 @@ public interface ItemStockDOMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table item_stock * This method corresponds to the database table item_stock
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
int insertSelective(ItemStockDO record); int insertSelective(ItemStockDO record);
@ -31,7 +31,7 @@ public interface ItemStockDOMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table item_stock * This method corresponds to the database table item_stock
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
ItemStockDO selectByPrimaryKey(Integer id); ItemStockDO selectByPrimaryKey(Integer id);
@ -39,7 +39,7 @@ public interface ItemStockDOMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table item_stock * This method corresponds to the database table item_stock
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
int updateByPrimaryKeySelective(ItemStockDO record); int updateByPrimaryKeySelective(ItemStockDO record);
@ -47,7 +47,7 @@ public interface ItemStockDOMapper {
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table item_stock * This method corresponds to the database table item_stock
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
int updateByPrimaryKey(ItemStockDO record); int updateByPrimaryKey(ItemStockDO record);
} }

View File

@ -1,12 +1,14 @@
package com.cxyxiaomo.flashsale.dataobject; package com.cxyxiaomo.flashsale.dataobject;
import java.math.BigDecimal;
public class ItemDO { public class ItemDO {
/** /**
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column item_info.id * This field corresponds to the database column item_info.id
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
private Integer id; private Integer id;
@ -15,7 +17,7 @@ public class ItemDO {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column item_info.title * This field corresponds to the database column item_info.title
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
private String title; private String title;
@ -24,16 +26,16 @@ public class ItemDO {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column item_info.price * This field corresponds to the database column item_info.price
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
private Long price; private BigDecimal price;
/** /**
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column item_info.description * This field corresponds to the database column item_info.description
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
private String description; private String description;
@ -42,7 +44,7 @@ public class ItemDO {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column item_info.sales * This field corresponds to the database column item_info.sales
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
private Integer sales; private Integer sales;
@ -51,7 +53,7 @@ public class ItemDO {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column item_info.img_url * This field corresponds to the database column item_info.img_url
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
private String imgUrl; private String imgUrl;
@ -61,7 +63,7 @@ public class ItemDO {
* *
* @return the value of item_info.id * @return the value of item_info.id
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public Integer getId() { public Integer getId() {
return id; return id;
@ -73,7 +75,7 @@ public class ItemDO {
* *
* @param id the value for item_info.id * @param id the value for item_info.id
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
@ -85,7 +87,7 @@ public class ItemDO {
* *
* @return the value of item_info.title * @return the value of item_info.title
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public String getTitle() { public String getTitle() {
return title; return title;
@ -97,7 +99,7 @@ public class ItemDO {
* *
* @param title the value for item_info.title * @param title the value for item_info.title
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public void setTitle(String title) { public void setTitle(String title) {
this.title = title == null ? null : title.trim(); this.title = title == null ? null : title.trim();
@ -109,9 +111,9 @@ public class ItemDO {
* *
* @return the value of item_info.price * @return the value of item_info.price
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public Long getPrice() { public BigDecimal getPrice() {
return price; return price;
} }
@ -121,9 +123,9 @@ public class ItemDO {
* *
* @param price the value for item_info.price * @param price the value for item_info.price
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public void setPrice(Long price) { public void setPrice(BigDecimal price) {
this.price = price; this.price = price;
} }
@ -133,7 +135,7 @@ public class ItemDO {
* *
* @return the value of item_info.description * @return the value of item_info.description
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public String getDescription() { public String getDescription() {
return description; return description;
@ -145,7 +147,7 @@ public class ItemDO {
* *
* @param description the value for item_info.description * @param description the value for item_info.description
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public void setDescription(String description) { public void setDescription(String description) {
this.description = description == null ? null : description.trim(); this.description = description == null ? null : description.trim();
@ -157,7 +159,7 @@ public class ItemDO {
* *
* @return the value of item_info.sales * @return the value of item_info.sales
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public Integer getSales() { public Integer getSales() {
return sales; return sales;
@ -169,7 +171,7 @@ public class ItemDO {
* *
* @param sales the value for item_info.sales * @param sales the value for item_info.sales
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public void setSales(Integer sales) { public void setSales(Integer sales) {
this.sales = sales; this.sales = sales;
@ -181,7 +183,7 @@ public class ItemDO {
* *
* @return the value of item_info.img_url * @return the value of item_info.img_url
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public String getImgUrl() { public String getImgUrl() {
return imgUrl; return imgUrl;
@ -193,7 +195,7 @@ public class ItemDO {
* *
* @param imgUrl the value for item_info.img_url * @param imgUrl the value for item_info.img_url
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public void setImgUrl(String imgUrl) { public void setImgUrl(String imgUrl) {
this.imgUrl = imgUrl == null ? null : imgUrl.trim(); this.imgUrl = imgUrl == null ? null : imgUrl.trim();

View File

@ -6,7 +6,7 @@ public class ItemStockDO {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column item_stock.id * This field corresponds to the database column item_stock.id
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
private Integer id; private Integer id;
@ -15,7 +15,7 @@ public class ItemStockDO {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column item_stock.stock * This field corresponds to the database column item_stock.stock
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
private Integer stock; private Integer stock;
@ -24,7 +24,7 @@ public class ItemStockDO {
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column item_stock.item_id * This field corresponds to the database column item_stock.item_id
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
private Integer itemId; private Integer itemId;
@ -34,7 +34,7 @@ public class ItemStockDO {
* *
* @return the value of item_stock.id * @return the value of item_stock.id
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public Integer getId() { public Integer getId() {
return id; return id;
@ -46,7 +46,7 @@ public class ItemStockDO {
* *
* @param id the value for item_stock.id * @param id the value for item_stock.id
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
@ -58,7 +58,7 @@ public class ItemStockDO {
* *
* @return the value of item_stock.stock * @return the value of item_stock.stock
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public Integer getStock() { public Integer getStock() {
return stock; return stock;
@ -70,7 +70,7 @@ public class ItemStockDO {
* *
* @param stock the value for item_stock.stock * @param stock the value for item_stock.stock
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public void setStock(Integer stock) { public void setStock(Integer stock) {
this.stock = stock; this.stock = stock;
@ -82,7 +82,7 @@ public class ItemStockDO {
* *
* @return the value of item_stock.item_id * @return the value of item_stock.item_id
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public Integer getItemId() { public Integer getItemId() {
return itemId; return itemId;
@ -94,7 +94,7 @@ public class ItemStockDO {
* *
* @param itemId the value for item_stock.item_id * @param itemId the value for item_stock.item_id
* *
* @mbg.generated Thu Mar 03 13:00:43 CST 2022 * @mbg.generated Thu Mar 03 13:12:13 CST 2022
*/ */
public void setItemId(Integer itemId) { public void setItemId(Integer itemId) {
this.itemId = itemId; this.itemId = itemId;

View File

@ -5,7 +5,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
<id column="id" jdbcType="INTEGER" property="id" /> <id column="id" jdbcType="INTEGER" property="id" />
<result column="title" jdbcType="VARCHAR" property="title" /> <result column="title" jdbcType="VARCHAR" property="title" />
@ -18,7 +18,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
id, title, price, description, sales, img_url id, title, price, description, sales, img_url
</sql> </sql>
@ -26,7 +26,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
@ -37,7 +37,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
delete from item_info delete from item_info
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
@ -46,7 +46,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
insert into item_info (id, title, price, insert into item_info (id, title, price,
description, sales, img_url description, sales, img_url
@ -59,7 +59,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
insert into item_info insert into item_info
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
@ -107,7 +107,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
update item_info update item_info
<set> <set>
@ -133,7 +133,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
update item_info update item_info
set title = #{title,jdbcType=VARCHAR}, set title = #{title,jdbcType=VARCHAR},

View File

@ -5,7 +5,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
<id column="id" jdbcType="INTEGER" property="id" /> <id column="id" jdbcType="INTEGER" property="id" />
<result column="stock" jdbcType="INTEGER" property="stock" /> <result column="stock" jdbcType="INTEGER" property="stock" />
@ -15,7 +15,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
id, stock, item_id id, stock, item_id
</sql> </sql>
@ -23,7 +23,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
@ -34,7 +34,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
delete from item_stock delete from item_stock
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
@ -43,7 +43,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
insert into item_stock (id, stock, item_id insert into item_stock (id, stock, item_id
) )
@ -54,7 +54,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
insert into item_stock insert into item_stock
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
@ -84,7 +84,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
update item_stock update item_stock
<set> <set>
@ -101,7 +101,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
update item_stock update item_stock
set stock = #{stock,jdbcType=INTEGER}, set stock = #{stock,jdbcType=INTEGER},

View File

@ -5,7 +5,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
<id column="id" jdbcType="INTEGER" property="id" /> <id column="id" jdbcType="INTEGER" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" /> <result column="name" jdbcType="VARCHAR" property="name" />
@ -19,7 +19,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
id, name, gender, age, telephone, register_mode, third_party_id id, name, gender, age, telephone, register_mode, third_party_id
</sql> </sql>
@ -27,7 +27,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
@ -38,7 +38,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
delete from user_info delete from user_info
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
@ -47,7 +47,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
insert into user_info (id, name, gender, insert into user_info (id, name, gender,
age, telephone, register_mode, age, telephone, register_mode,
@ -60,7 +60,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
insert into user_info insert into user_info
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
@ -114,7 +114,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
update user_info update user_info
<set> <set>
@ -143,7 +143,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
update user_info update user_info
set name = #{name,jdbcType=VARCHAR}, set name = #{name,jdbcType=VARCHAR},

View File

@ -5,7 +5,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
<id column="id" jdbcType="INTEGER" property="id" /> <id column="id" jdbcType="INTEGER" property="id" />
<result column="encrypt_password" jdbcType="VARCHAR" property="encryptPassword" /> <result column="encrypt_password" jdbcType="VARCHAR" property="encryptPassword" />
@ -15,7 +15,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
id, encrypt_password, user_id id, encrypt_password, user_id
</sql> </sql>
@ -23,7 +23,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
@ -34,7 +34,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
delete from user_password delete from user_password
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
@ -43,7 +43,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
insert into user_password (id, encrypt_password, user_id insert into user_password (id, encrypt_password, user_id
) )
@ -54,7 +54,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
insert into user_password insert into user_password
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
@ -84,7 +84,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
update user_password update user_password
<set> <set>
@ -101,7 +101,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Mar 03 13:03:11 CST 2022. This element was generated on Thu Mar 03 13:12:13 CST 2022.
--> -->
update user_password update user_password
set encrypt_password = #{encryptPassword,jdbcType=VARCHAR}, set encrypt_password = #{encryptPassword,jdbcType=VARCHAR},