mirror of
https://gitee.com/coder-xiaomo/flashsale
synced 2025-01-10 19:58:14 +08:00
商品模型3-修改Price数据库中小数点,并重新生成
This commit is contained in:
parent
8bd1474f0d
commit
add4aa6996
@ -11,7 +11,7 @@
|
||||
Target Server Version : 50726
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 03/03/2022 12:57:18
|
||||
Date: 03/03/2022 13:13:05
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
@ -24,7 +24,7 @@ DROP TABLE IF EXISTS `item_info`;
|
||||
CREATE TABLE `item_info` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`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 '',
|
||||
`sales` int(11) NOT NULL,
|
||||
`img_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
|
@ -7,7 +7,7 @@ public interface ItemDOMapper {
|
||||
* This method was generated by MyBatis Generator.
|
||||
* 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);
|
||||
|
||||
@ -15,7 +15,7 @@ public interface ItemDOMapper {
|
||||
* This method was generated by MyBatis Generator.
|
||||
* 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);
|
||||
|
||||
@ -23,7 +23,7 @@ public interface ItemDOMapper {
|
||||
* This method was generated by MyBatis Generator.
|
||||
* 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);
|
||||
|
||||
@ -31,7 +31,7 @@ public interface ItemDOMapper {
|
||||
* This method was generated by MyBatis Generator.
|
||||
* 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);
|
||||
|
||||
@ -39,7 +39,7 @@ public interface ItemDOMapper {
|
||||
* This method was generated by MyBatis Generator.
|
||||
* 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);
|
||||
|
||||
@ -47,7 +47,7 @@ public interface ItemDOMapper {
|
||||
* This method was generated by MyBatis Generator.
|
||||
* 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);
|
||||
}
|
@ -7,7 +7,7 @@ public interface ItemStockDOMapper {
|
||||
* This method was generated by MyBatis Generator.
|
||||
* 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);
|
||||
|
||||
@ -15,7 +15,7 @@ public interface ItemStockDOMapper {
|
||||
* This method was generated by MyBatis Generator.
|
||||
* 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);
|
||||
|
||||
@ -23,7 +23,7 @@ public interface ItemStockDOMapper {
|
||||
* This method was generated by MyBatis Generator.
|
||||
* 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);
|
||||
|
||||
@ -31,7 +31,7 @@ public interface ItemStockDOMapper {
|
||||
* This method was generated by MyBatis Generator.
|
||||
* 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);
|
||||
|
||||
@ -39,7 +39,7 @@ public interface ItemStockDOMapper {
|
||||
* This method was generated by MyBatis Generator.
|
||||
* 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);
|
||||
|
||||
@ -47,7 +47,7 @@ public interface ItemStockDOMapper {
|
||||
* This method was generated by MyBatis Generator.
|
||||
* 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);
|
||||
}
|
@ -1,12 +1,14 @@
|
||||
package com.cxyxiaomo.flashsale.dataobject;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class ItemDO {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* 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;
|
||||
|
||||
@ -15,7 +17,7 @@ public class ItemDO {
|
||||
* This field was generated by MyBatis Generator.
|
||||
* 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;
|
||||
|
||||
@ -24,16 +26,16 @@ public class ItemDO {
|
||||
* This field was generated by MyBatis Generator.
|
||||
* 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 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;
|
||||
|
||||
@ -42,7 +44,7 @@ public class ItemDO {
|
||||
* This field was generated by MyBatis Generator.
|
||||
* 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;
|
||||
|
||||
@ -51,7 +53,7 @@ public class ItemDO {
|
||||
* This field was generated by MyBatis Generator.
|
||||
* 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;
|
||||
|
||||
@ -61,7 +63,7 @@ public class ItemDO {
|
||||
*
|
||||
* @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() {
|
||||
return id;
|
||||
@ -73,7 +75,7 @@ public class ItemDO {
|
||||
*
|
||||
* @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) {
|
||||
this.id = id;
|
||||
@ -85,7 +87,7 @@ public class ItemDO {
|
||||
*
|
||||
* @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() {
|
||||
return title;
|
||||
@ -97,7 +99,7 @@ public class ItemDO {
|
||||
*
|
||||
* @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) {
|
||||
this.title = title == null ? null : title.trim();
|
||||
@ -109,9 +111,9 @@ public class ItemDO {
|
||||
*
|
||||
* @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;
|
||||
}
|
||||
|
||||
@ -121,9 +123,9 @@ public class ItemDO {
|
||||
*
|
||||
* @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;
|
||||
}
|
||||
|
||||
@ -133,7 +135,7 @@ public class ItemDO {
|
||||
*
|
||||
* @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() {
|
||||
return description;
|
||||
@ -145,7 +147,7 @@ public class ItemDO {
|
||||
*
|
||||
* @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) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
@ -157,7 +159,7 @@ public class ItemDO {
|
||||
*
|
||||
* @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() {
|
||||
return sales;
|
||||
@ -169,7 +171,7 @@ public class ItemDO {
|
||||
*
|
||||
* @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) {
|
||||
this.sales = sales;
|
||||
@ -181,7 +183,7 @@ public class ItemDO {
|
||||
*
|
||||
* @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() {
|
||||
return imgUrl;
|
||||
@ -193,7 +195,7 @@ public class ItemDO {
|
||||
*
|
||||
* @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) {
|
||||
this.imgUrl = imgUrl == null ? null : imgUrl.trim();
|
||||
|
@ -6,7 +6,7 @@ public class ItemStockDO {
|
||||
* This field was generated by MyBatis Generator.
|
||||
* 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;
|
||||
|
||||
@ -15,7 +15,7 @@ public class ItemStockDO {
|
||||
* This field was generated by MyBatis Generator.
|
||||
* 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;
|
||||
|
||||
@ -24,7 +24,7 @@ public class ItemStockDO {
|
||||
* This field was generated by MyBatis Generator.
|
||||
* 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;
|
||||
|
||||
@ -34,7 +34,7 @@ public class ItemStockDO {
|
||||
*
|
||||
* @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() {
|
||||
return id;
|
||||
@ -46,7 +46,7 @@ public class ItemStockDO {
|
||||
*
|
||||
* @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) {
|
||||
this.id = id;
|
||||
@ -58,7 +58,7 @@ public class ItemStockDO {
|
||||
*
|
||||
* @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() {
|
||||
return stock;
|
||||
@ -70,7 +70,7 @@ public class ItemStockDO {
|
||||
*
|
||||
* @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) {
|
||||
this.stock = stock;
|
||||
@ -82,7 +82,7 @@ public class ItemStockDO {
|
||||
*
|
||||
* @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() {
|
||||
return itemId;
|
||||
@ -94,7 +94,7 @@ public class ItemStockDO {
|
||||
*
|
||||
* @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) {
|
||||
this.itemId = itemId;
|
||||
|
@ -5,7 +5,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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" />
|
||||
<result column="title" jdbcType="VARCHAR" property="title" />
|
||||
@ -18,7 +18,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
</sql>
|
||||
@ -26,7 +26,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
<include refid="Base_Column_List" />
|
||||
@ -37,7 +37,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
@ -46,7 +46,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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,
|
||||
description, sales, img_url
|
||||
@ -59,7 +59,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@ -107,7 +107,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
<set>
|
||||
@ -133,7 +133,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
set title = #{title,jdbcType=VARCHAR},
|
||||
|
@ -5,7 +5,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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" />
|
||||
<result column="stock" jdbcType="INTEGER" property="stock" />
|
||||
@ -15,7 +15,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
</sql>
|
||||
@ -23,7 +23,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
<include refid="Base_Column_List" />
|
||||
@ -34,7 +34,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
@ -43,7 +43,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
)
|
||||
@ -54,7 +54,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@ -84,7 +84,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
<set>
|
||||
@ -101,7 +101,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
set stock = #{stock,jdbcType=INTEGER},
|
||||
|
@ -5,7 +5,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
@ -19,7 +19,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
</sql>
|
||||
@ -27,7 +27,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
<include refid="Base_Column_List" />
|
||||
@ -38,7 +38,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
@ -47,7 +47,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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,
|
||||
age, telephone, register_mode,
|
||||
@ -60,7 +60,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@ -114,7 +114,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
<set>
|
||||
@ -143,7 +143,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
|
@ -5,7 +5,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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" />
|
||||
<result column="encrypt_password" jdbcType="VARCHAR" property="encryptPassword" />
|
||||
@ -15,7 +15,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
</sql>
|
||||
@ -23,7 +23,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
<include refid="Base_Column_List" />
|
||||
@ -34,7 +34,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
@ -43,7 +43,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
)
|
||||
@ -54,7 +54,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@ -84,7 +84,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
<set>
|
||||
@ -101,7 +101,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
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
|
||||
set encrypt_password = #{encryptPassword,jdbcType=VARCHAR},
|
||||
|
Loading…
Reference in New Issue
Block a user