Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
96fc2c6d
Commit
96fc2c6d
authored
Aug 02, 2018
by
zhh
Browse files
添加购物车表
parent
983293ff
Changes
7
Hide whitespace changes
Inline
Side-by-side
document/pdm/mall.pdb
View file @
96fc2c6d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
document/pdm/mall.pdm
View file @
96fc2c6d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
mall-mbg/src/main/java/com/macro/mall/mapper/OmsCartItemMapper.java
0 → 100644
View file @
96fc2c6d
package
com.macro.mall.mapper
;
import
com.macro.mall.model.OmsCartItem
;
import
com.macro.mall.model.OmsCartItemExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
OmsCartItemMapper
{
int
countByExample
(
OmsCartItemExample
example
);
int
deleteByExample
(
OmsCartItemExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
OmsCartItem
record
);
int
insertSelective
(
OmsCartItem
record
);
List
<
OmsCartItem
>
selectByExample
(
OmsCartItemExample
example
);
OmsCartItem
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
OmsCartItem
record
,
@Param
(
"example"
)
OmsCartItemExample
example
);
int
updateByExample
(
@Param
(
"record"
)
OmsCartItem
record
,
@Param
(
"example"
)
OmsCartItemExample
example
);
int
updateByPrimaryKeySelective
(
OmsCartItem
record
);
int
updateByPrimaryKey
(
OmsCartItem
record
);
}
\ No newline at end of file
mall-mbg/src/main/java/com/macro/mall/model/OmsCartItem.java
0 → 100644
View file @
96fc2c6d
package
com.macro.mall.model
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
public
class
OmsCartItem
implements
Serializable
{
private
Long
id
;
private
Long
productId
;
private
Long
productSkuId
;
private
Long
memberId
;
/**
* 购买数量
*
* @mbggenerated
*/
private
Integer
quantity
;
/**
* 添加到购物车的价格
*
* @mbggenerated
*/
private
BigDecimal
price
;
/**
* 销售属性1
*
* @mbggenerated
*/
private
String
sp1
;
/**
* 销售属性2
*
* @mbggenerated
*/
private
String
sp2
;
/**
* 销售属性3
*
* @mbggenerated
*/
private
String
sp3
;
/**
* 商品主图
*
* @mbggenerated
*/
private
String
productPic
;
/**
* 商品名称
*
* @mbggenerated
*/
private
String
productName
;
/**
* 商品副标题(卖点)
*
* @mbggenerated
*/
private
String
productSubTitle
;
/**
* 商品sku条码
*
* @mbggenerated
*/
private
String
productSkuCode
;
/**
* 会员昵称
*
* @mbggenerated
*/
private
String
memberNickname
;
/**
* 创建时间
*
* @mbggenerated
*/
private
Date
createDate
;
/**
* 修改时间
*
* @mbggenerated
*/
private
Date
modifyDate
;
/**
* 是否删除
*
* @mbggenerated
*/
private
Integer
deleteStatus
;
private
static
final
long
serialVersionUID
=
1L
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
Long
productId
)
{
this
.
productId
=
productId
;
}
public
Long
getProductSkuId
()
{
return
productSkuId
;
}
public
void
setProductSkuId
(
Long
productSkuId
)
{
this
.
productSkuId
=
productSkuId
;
}
public
Long
getMemberId
()
{
return
memberId
;
}
public
void
setMemberId
(
Long
memberId
)
{
this
.
memberId
=
memberId
;
}
public
Integer
getQuantity
()
{
return
quantity
;
}
public
void
setQuantity
(
Integer
quantity
)
{
this
.
quantity
=
quantity
;
}
public
BigDecimal
getPrice
()
{
return
price
;
}
public
void
setPrice
(
BigDecimal
price
)
{
this
.
price
=
price
;
}
public
String
getSp1
()
{
return
sp1
;
}
public
void
setSp1
(
String
sp1
)
{
this
.
sp1
=
sp1
;
}
public
String
getSp2
()
{
return
sp2
;
}
public
void
setSp2
(
String
sp2
)
{
this
.
sp2
=
sp2
;
}
public
String
getSp3
()
{
return
sp3
;
}
public
void
setSp3
(
String
sp3
)
{
this
.
sp3
=
sp3
;
}
public
String
getProductPic
()
{
return
productPic
;
}
public
void
setProductPic
(
String
productPic
)
{
this
.
productPic
=
productPic
;
}
public
String
getProductName
()
{
return
productName
;
}
public
void
setProductName
(
String
productName
)
{
this
.
productName
=
productName
;
}
public
String
getProductSubTitle
()
{
return
productSubTitle
;
}
public
void
setProductSubTitle
(
String
productSubTitle
)
{
this
.
productSubTitle
=
productSubTitle
;
}
public
String
getProductSkuCode
()
{
return
productSkuCode
;
}
public
void
setProductSkuCode
(
String
productSkuCode
)
{
this
.
productSkuCode
=
productSkuCode
;
}
public
String
getMemberNickname
()
{
return
memberNickname
;
}
public
void
setMemberNickname
(
String
memberNickname
)
{
this
.
memberNickname
=
memberNickname
;
}
public
Date
getCreateDate
()
{
return
createDate
;
}
public
void
setCreateDate
(
Date
createDate
)
{
this
.
createDate
=
createDate
;
}
public
Date
getModifyDate
()
{
return
modifyDate
;
}
public
void
setModifyDate
(
Date
modifyDate
)
{
this
.
modifyDate
=
modifyDate
;
}
public
Integer
getDeleteStatus
()
{
return
deleteStatus
;
}
public
void
setDeleteStatus
(
Integer
deleteStatus
)
{
this
.
deleteStatus
=
deleteStatus
;
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", productId="
).
append
(
productId
);
sb
.
append
(
", productSkuId="
).
append
(
productSkuId
);
sb
.
append
(
", memberId="
).
append
(
memberId
);
sb
.
append
(
", quantity="
).
append
(
quantity
);
sb
.
append
(
", price="
).
append
(
price
);
sb
.
append
(
", sp1="
).
append
(
sp1
);
sb
.
append
(
", sp2="
).
append
(
sp2
);
sb
.
append
(
", sp3="
).
append
(
sp3
);
sb
.
append
(
", productPic="
).
append
(
productPic
);
sb
.
append
(
", productName="
).
append
(
productName
);
sb
.
append
(
", productSubTitle="
).
append
(
productSubTitle
);
sb
.
append
(
", productSkuCode="
).
append
(
productSkuCode
);
sb
.
append
(
", memberNickname="
).
append
(
memberNickname
);
sb
.
append
(
", createDate="
).
append
(
createDate
);
sb
.
append
(
", modifyDate="
).
append
(
modifyDate
);
sb
.
append
(
", deleteStatus="
).
append
(
deleteStatus
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
mall-mbg/src/main/java/com/macro/mall/model/OmsCartItemExample.java
0 → 100644
View file @
96fc2c6d
package
com.macro.mall.model
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
OmsCartItemExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
OmsCartItemExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
public
String
getOrderByClause
()
{
return
orderByClause
;
}
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
public
boolean
isDistinct
()
{
return
distinct
;
}
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
();
return
criteria
;
}
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Long
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Long
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Long
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductIdIsNull
()
{
addCriterion
(
"product_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductIdIsNotNull
()
{
addCriterion
(
"product_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductIdEqualTo
(
Long
value
)
{
addCriterion
(
"product_id ="
,
value
,
"productId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"product_id <>"
,
value
,
"productId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductIdGreaterThan
(
Long
value
)
{
addCriterion
(
"product_id >"
,
value
,
"productId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"product_id >="
,
value
,
"productId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductIdLessThan
(
Long
value
)
{
addCriterion
(
"product_id <"
,
value
,
"productId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"product_id <="
,
value
,
"productId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"product_id in"
,
values
,
"productId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"product_id not in"
,
values
,
"productId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"product_id between"
,
value1
,
value2
,
"productId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"product_id not between"
,
value1
,
value2
,
"productId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuIdIsNull
()
{
addCriterion
(
"product_sku_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuIdIsNotNull
()
{
addCriterion
(
"product_sku_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuIdEqualTo
(
Long
value
)
{
addCriterion
(
"product_sku_id ="
,
value
,
"productSkuId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"product_sku_id <>"
,
value
,
"productSkuId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuIdGreaterThan
(
Long
value
)
{
addCriterion
(
"product_sku_id >"
,
value
,
"productSkuId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"product_sku_id >="
,
value
,
"productSkuId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuIdLessThan
(
Long
value
)
{
addCriterion
(
"product_sku_id <"
,
value
,
"productSkuId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"product_sku_id <="
,
value
,
"productSkuId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"product_sku_id in"
,
values
,
"productSkuId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"product_sku_id not in"
,
values
,
"productSkuId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"product_sku_id between"
,
value1
,
value2
,
"productSkuId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"product_sku_id not between"
,
value1
,
value2
,
"productSkuId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberIdIsNull
()
{
addCriterion
(
"member_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberIdIsNotNull
()
{
addCriterion
(
"member_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberIdEqualTo
(
Long
value
)
{
addCriterion
(
"member_id ="
,
value
,
"memberId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"member_id <>"
,
value
,
"memberId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberIdGreaterThan
(
Long
value
)
{
addCriterion
(
"member_id >"
,
value
,
"memberId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"member_id >="
,
value
,
"memberId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberIdLessThan
(
Long
value
)
{
addCriterion
(
"member_id <"
,
value
,
"memberId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"member_id <="
,
value
,
"memberId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"member_id in"
,
values
,
"memberId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"member_id not in"
,
values
,
"memberId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"member_id between"
,
value1
,
value2
,
"memberId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"member_id not between"
,
value1
,
value2
,
"memberId"
);
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
;
}
public
Criteria
andPriceIsNull
()
{
addCriterion
(
"price is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceIsNotNull
()
{
addCriterion
(
"price is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"price ="
,
value
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"price <>"
,
value
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"price >"
,
value
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"price >="
,
value
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceLessThan
(
BigDecimal
value
)
{
addCriterion
(
"price <"
,
value
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"price <="
,
value
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"price in"
,
values
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"price not in"
,
values
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"price between"
,
value1
,
value2
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"price not between"
,
value1
,
value2
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1IsNull
()
{
addCriterion
(
"sp1 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1IsNotNull
()
{
addCriterion
(
"sp1 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1EqualTo
(
String
value
)
{
addCriterion
(
"sp1 ="
,
value
,
"sp1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1NotEqualTo
(
String
value
)
{
addCriterion
(
"sp1 <>"
,
value
,
"sp1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1GreaterThan
(
String
value
)
{
addCriterion
(
"sp1 >"
,
value
,
"sp1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"sp1 >="
,
value
,
"sp1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1LessThan
(
String
value
)
{
addCriterion
(
"sp1 <"
,
value
,
"sp1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"sp1 <="
,
value
,
"sp1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1Like
(
String
value
)
{
addCriterion
(
"sp1 like"
,
value
,
"sp1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1NotLike
(
String
value
)
{
addCriterion
(
"sp1 not like"
,
value
,
"sp1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1In
(
List
<
String
>
values
)
{
addCriterion
(
"sp1 in"
,
values
,
"sp1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"sp1 not in"
,
values
,
"sp1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"sp1 between"
,
value1
,
value2
,
"sp1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp1NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"sp1 not between"
,
value1
,
value2
,
"sp1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2IsNull
()
{
addCriterion
(
"sp2 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2IsNotNull
()
{
addCriterion
(
"sp2 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2EqualTo
(
String
value
)
{
addCriterion
(
"sp2 ="
,
value
,
"sp2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2NotEqualTo
(
String
value
)
{
addCriterion
(
"sp2 <>"
,
value
,
"sp2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2GreaterThan
(
String
value
)
{
addCriterion
(
"sp2 >"
,
value
,
"sp2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"sp2 >="
,
value
,
"sp2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2LessThan
(
String
value
)
{
addCriterion
(
"sp2 <"
,
value
,
"sp2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"sp2 <="
,
value
,
"sp2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2Like
(
String
value
)
{
addCriterion
(
"sp2 like"
,
value
,
"sp2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2NotLike
(
String
value
)
{
addCriterion
(
"sp2 not like"
,
value
,
"sp2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2In
(
List
<
String
>
values
)
{
addCriterion
(
"sp2 in"
,
values
,
"sp2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"sp2 not in"
,
values
,
"sp2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"sp2 between"
,
value1
,
value2
,
"sp2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp2NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"sp2 not between"
,
value1
,
value2
,
"sp2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3IsNull
()
{
addCriterion
(
"sp3 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3IsNotNull
()
{
addCriterion
(
"sp3 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3EqualTo
(
String
value
)
{
addCriterion
(
"sp3 ="
,
value
,
"sp3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3NotEqualTo
(
String
value
)
{
addCriterion
(
"sp3 <>"
,
value
,
"sp3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3GreaterThan
(
String
value
)
{
addCriterion
(
"sp3 >"
,
value
,
"sp3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"sp3 >="
,
value
,
"sp3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3LessThan
(
String
value
)
{
addCriterion
(
"sp3 <"
,
value
,
"sp3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"sp3 <="
,
value
,
"sp3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3Like
(
String
value
)
{
addCriterion
(
"sp3 like"
,
value
,
"sp3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3NotLike
(
String
value
)
{
addCriterion
(
"sp3 not like"
,
value
,
"sp3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3In
(
List
<
String
>
values
)
{
addCriterion
(
"sp3 in"
,
values
,
"sp3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"sp3 not in"
,
values
,
"sp3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"sp3 between"
,
value1
,
value2
,
"sp3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSp3NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"sp3 not between"
,
value1
,
value2
,
"sp3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicIsNull
()
{
addCriterion
(
"product_pic is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicIsNotNull
()
{
addCriterion
(
"product_pic is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicEqualTo
(
String
value
)
{
addCriterion
(
"product_pic ="
,
value
,
"productPic"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicNotEqualTo
(
String
value
)
{
addCriterion
(
"product_pic <>"
,
value
,
"productPic"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicGreaterThan
(
String
value
)
{
addCriterion
(
"product_pic >"
,
value
,
"productPic"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"product_pic >="
,
value
,
"productPic"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicLessThan
(
String
value
)
{
addCriterion
(
"product_pic <"
,
value
,
"productPic"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"product_pic <="
,
value
,
"productPic"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicLike
(
String
value
)
{
addCriterion
(
"product_pic like"
,
value
,
"productPic"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicNotLike
(
String
value
)
{
addCriterion
(
"product_pic not like"
,
value
,
"productPic"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicIn
(
List
<
String
>
values
)
{
addCriterion
(
"product_pic in"
,
values
,
"productPic"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"product_pic not in"
,
values
,
"productPic"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"product_pic between"
,
value1
,
value2
,
"productPic"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductPicNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"product_pic not between"
,
value1
,
value2
,
"productPic"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameIsNull
()
{
addCriterion
(
"product_name is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameIsNotNull
()
{
addCriterion
(
"product_name is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameEqualTo
(
String
value
)
{
addCriterion
(
"product_name ="
,
value
,
"productName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameNotEqualTo
(
String
value
)
{
addCriterion
(
"product_name <>"
,
value
,
"productName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameGreaterThan
(
String
value
)
{
addCriterion
(
"product_name >"
,
value
,
"productName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"product_name >="
,
value
,
"productName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameLessThan
(
String
value
)
{
addCriterion
(
"product_name <"
,
value
,
"productName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"product_name <="
,
value
,
"productName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameLike
(
String
value
)
{
addCriterion
(
"product_name like"
,
value
,
"productName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameNotLike
(
String
value
)
{
addCriterion
(
"product_name not like"
,
value
,
"productName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameIn
(
List
<
String
>
values
)
{
addCriterion
(
"product_name in"
,
values
,
"productName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"product_name not in"
,
values
,
"productName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"product_name between"
,
value1
,
value2
,
"productName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductNameNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"product_name not between"
,
value1
,
value2
,
"productName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleIsNull
()
{
addCriterion
(
"product_sub_title is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleIsNotNull
()
{
addCriterion
(
"product_sub_title is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleEqualTo
(
String
value
)
{
addCriterion
(
"product_sub_title ="
,
value
,
"productSubTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleNotEqualTo
(
String
value
)
{
addCriterion
(
"product_sub_title <>"
,
value
,
"productSubTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleGreaterThan
(
String
value
)
{
addCriterion
(
"product_sub_title >"
,
value
,
"productSubTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"product_sub_title >="
,
value
,
"productSubTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleLessThan
(
String
value
)
{
addCriterion
(
"product_sub_title <"
,
value
,
"productSubTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"product_sub_title <="
,
value
,
"productSubTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleLike
(
String
value
)
{
addCriterion
(
"product_sub_title like"
,
value
,
"productSubTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleNotLike
(
String
value
)
{
addCriterion
(
"product_sub_title not like"
,
value
,
"productSubTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleIn
(
List
<
String
>
values
)
{
addCriterion
(
"product_sub_title in"
,
values
,
"productSubTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"product_sub_title not in"
,
values
,
"productSubTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"product_sub_title between"
,
value1
,
value2
,
"productSubTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSubTitleNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"product_sub_title not between"
,
value1
,
value2
,
"productSubTitle"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeIsNull
()
{
addCriterion
(
"product_sku_code is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeIsNotNull
()
{
addCriterion
(
"product_sku_code is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeEqualTo
(
String
value
)
{
addCriterion
(
"product_sku_code ="
,
value
,
"productSkuCode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeNotEqualTo
(
String
value
)
{
addCriterion
(
"product_sku_code <>"
,
value
,
"productSkuCode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeGreaterThan
(
String
value
)
{
addCriterion
(
"product_sku_code >"
,
value
,
"productSkuCode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"product_sku_code >="
,
value
,
"productSkuCode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeLessThan
(
String
value
)
{
addCriterion
(
"product_sku_code <"
,
value
,
"productSkuCode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"product_sku_code <="
,
value
,
"productSkuCode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeLike
(
String
value
)
{
addCriterion
(
"product_sku_code like"
,
value
,
"productSkuCode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeNotLike
(
String
value
)
{
addCriterion
(
"product_sku_code not like"
,
value
,
"productSkuCode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeIn
(
List
<
String
>
values
)
{
addCriterion
(
"product_sku_code in"
,
values
,
"productSkuCode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"product_sku_code not in"
,
values
,
"productSkuCode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"product_sku_code between"
,
value1
,
value2
,
"productSkuCode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSkuCodeNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"product_sku_code not between"
,
value1
,
value2
,
"productSkuCode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameIsNull
()
{
addCriterion
(
"member_nickname is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameIsNotNull
()
{
addCriterion
(
"member_nickname is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameEqualTo
(
String
value
)
{
addCriterion
(
"member_nickname ="
,
value
,
"memberNickname"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameNotEqualTo
(
String
value
)
{
addCriterion
(
"member_nickname <>"
,
value
,
"memberNickname"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameGreaterThan
(
String
value
)
{
addCriterion
(
"member_nickname >"
,
value
,
"memberNickname"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"member_nickname >="
,
value
,
"memberNickname"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameLessThan
(
String
value
)
{
addCriterion
(
"member_nickname <"
,
value
,
"memberNickname"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"member_nickname <="
,
value
,
"memberNickname"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameLike
(
String
value
)
{
addCriterion
(
"member_nickname like"
,
value
,
"memberNickname"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameNotLike
(
String
value
)
{
addCriterion
(
"member_nickname not like"
,
value
,
"memberNickname"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameIn
(
List
<
String
>
values
)
{
addCriterion
(
"member_nickname in"
,
values
,
"memberNickname"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"member_nickname not in"
,
values
,
"memberNickname"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"member_nickname between"
,
value1
,
value2
,
"memberNickname"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMemberNicknameNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"member_nickname not between"
,
value1
,
value2
,
"memberNickname"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateDateIsNull
()
{
addCriterion
(
"create_date is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateDateIsNotNull
()
{
addCriterion
(
"create_date is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateDateEqualTo
(
Date
value
)
{
addCriterion
(
"create_date ="
,
value
,
"createDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateDateNotEqualTo
(
Date
value
)
{
addCriterion
(
"create_date <>"
,
value
,
"createDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateDateGreaterThan
(
Date
value
)
{
addCriterion
(
"create_date >"
,
value
,
"createDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateDateGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_date >="
,
value
,
"createDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateDateLessThan
(
Date
value
)
{
addCriterion
(
"create_date <"
,
value
,
"createDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateDateLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_date <="
,
value
,
"createDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateDateIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_date in"
,
values
,
"createDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateDateNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_date not in"
,
values
,
"createDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateDateBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_date between"
,
value1
,
value2
,
"createDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateDateNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_date not between"
,
value1
,
value2
,
"createDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModifyDateIsNull
()
{
addCriterion
(
"modify_date is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModifyDateIsNotNull
()
{
addCriterion
(
"modify_date is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModifyDateEqualTo
(
Date
value
)
{
addCriterion
(
"modify_date ="
,
value
,
"modifyDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModifyDateNotEqualTo
(
Date
value
)
{
addCriterion
(
"modify_date <>"
,
value
,
"modifyDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModifyDateGreaterThan
(
Date
value
)
{
addCriterion
(
"modify_date >"
,
value
,
"modifyDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModifyDateGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"modify_date >="
,
value
,
"modifyDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModifyDateLessThan
(
Date
value
)
{
addCriterion
(
"modify_date <"
,
value
,
"modifyDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModifyDateLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"modify_date <="
,
value
,
"modifyDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModifyDateIn
(
List
<
Date
>
values
)
{
addCriterion
(
"modify_date in"
,
values
,
"modifyDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModifyDateNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"modify_date not in"
,
values
,
"modifyDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModifyDateBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"modify_date between"
,
value1
,
value2
,
"modifyDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModifyDateNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"modify_date not between"
,
value1
,
value2
,
"modifyDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeleteStatusIsNull
()
{
addCriterion
(
"delete_status is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeleteStatusIsNotNull
()
{
addCriterion
(
"delete_status is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeleteStatusEqualTo
(
Integer
value
)
{
addCriterion
(
"delete_status ="
,
value
,
"deleteStatus"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeleteStatusNotEqualTo
(
Integer
value
)
{
addCriterion
(
"delete_status <>"
,
value
,
"deleteStatus"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeleteStatusGreaterThan
(
Integer
value
)
{
addCriterion
(
"delete_status >"
,
value
,
"deleteStatus"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeleteStatusGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"delete_status >="
,
value
,
"deleteStatus"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeleteStatusLessThan
(
Integer
value
)
{
addCriterion
(
"delete_status <"
,
value
,
"deleteStatus"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeleteStatusLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"delete_status <="
,
value
,
"deleteStatus"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeleteStatusIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"delete_status in"
,
values
,
"deleteStatus"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeleteStatusNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"delete_status not in"
,
values
,
"deleteStatus"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeleteStatusBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"delete_status between"
,
value1
,
value2
,
"deleteStatus"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeleteStatusNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"delete_status not between"
,
value1
,
value2
,
"deleteStatus"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
protected
Criteria
()
{
super
();
}
}
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeValue.java
View file @
96fc2c6d
...
...
@@ -10,7 +10,7 @@ public class PmsProductAttributeValue implements Serializable {
private
Long
productAttributeId
;
/**
*
存储的值
*
手动添加规格或参数的值,参数单值,规格有多个时以逗号隔开
*
* @mbggenerated
*/
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/OmsCartItemMapper.xml
0 → 100644
View file @
96fc2c6d
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.macro.mall.mapper.OmsCartItemMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.OmsCartItem"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"product_id"
jdbcType=
"BIGINT"
property=
"productId"
/>
<result
column=
"product_sku_id"
jdbcType=
"BIGINT"
property=
"productSkuId"
/>
<result
column=
"member_id"
jdbcType=
"BIGINT"
property=
"memberId"
/>
<result
column=
"quantity"
jdbcType=
"INTEGER"
property=
"quantity"
/>
<result
column=
"price"
jdbcType=
"DECIMAL"
property=
"price"
/>
<result
column=
"sp1"
jdbcType=
"VARCHAR"
property=
"sp1"
/>
<result
column=
"sp2"
jdbcType=
"VARCHAR"
property=
"sp2"
/>
<result
column=
"sp3"
jdbcType=
"VARCHAR"
property=
"sp3"
/>
<result
column=
"product_pic"
jdbcType=
"VARCHAR"
property=
"productPic"
/>
<result
column=
"product_name"
jdbcType=
"VARCHAR"
property=
"productName"
/>
<result
column=
"product_sub_title"
jdbcType=
"VARCHAR"
property=
"productSubTitle"
/>
<result
column=
"product_sku_code"
jdbcType=
"VARCHAR"
property=
"productSkuCode"
/>
<result
column=
"member_nickname"
jdbcType=
"VARCHAR"
property=
"memberNickname"
/>
<result
column=
"create_date"
jdbcType=
"TIMESTAMP"
property=
"createDate"
/>
<result
column=
"modify_date"
jdbcType=
"TIMESTAMP"
property=
"modifyDate"
/>
<result
column=
"delete_status"
jdbcType=
"INTEGER"
property=
"deleteStatus"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, product_id, product_sku_id, member_id, quantity, price, sp1, sp2, sp3, product_pic,
product_name, product_sub_title, product_sku_code, member_nickname, create_date,
modify_date, delete_status
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.OmsCartItemExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from oms_cart_item
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from oms_cart_item
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from oms_cart_item
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.OmsCartItemExample"
>
delete from oms_cart_item
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.OmsCartItem"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_cart_item (product_id, product_sku_id, member_id,
quantity, price, sp1,
sp2, sp3, product_pic,
product_name, product_sub_title, product_sku_code,
member_nickname, create_date, modify_date,
delete_status)
values (#{productId,jdbcType=BIGINT}, #{productSkuId,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT},
#{quantity,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, #{sp1,jdbcType=VARCHAR},
#{sp2,jdbcType=VARCHAR}, #{sp3,jdbcType=VARCHAR}, #{productPic,jdbcType=VARCHAR},
#{productName,jdbcType=VARCHAR}, #{productSubTitle,jdbcType=VARCHAR}, #{productSkuCode,jdbcType=VARCHAR},
#{memberNickname,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{modifyDate,jdbcType=TIMESTAMP},
#{deleteStatus,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.OmsCartItem"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_cart_item
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"productId != null"
>
product_id,
</if>
<if
test=
"productSkuId != null"
>
product_sku_id,
</if>
<if
test=
"memberId != null"
>
member_id,
</if>
<if
test=
"quantity != null"
>
quantity,
</if>
<if
test=
"price != null"
>
price,
</if>
<if
test=
"sp1 != null"
>
sp1,
</if>
<if
test=
"sp2 != null"
>
sp2,
</if>
<if
test=
"sp3 != null"
>
sp3,
</if>
<if
test=
"productPic != null"
>
product_pic,
</if>
<if
test=
"productName != null"
>
product_name,
</if>
<if
test=
"productSubTitle != null"
>
product_sub_title,
</if>
<if
test=
"productSkuCode != null"
>
product_sku_code,
</if>
<if
test=
"memberNickname != null"
>
member_nickname,
</if>
<if
test=
"createDate != null"
>
create_date,
</if>
<if
test=
"modifyDate != null"
>
modify_date,
</if>
<if
test=
"deleteStatus != null"
>
delete_status,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"productId != null"
>
#{productId,jdbcType=BIGINT},
</if>
<if
test=
"productSkuId != null"
>
#{productSkuId,jdbcType=BIGINT},
</if>
<if
test=
"memberId != null"
>
#{memberId,jdbcType=BIGINT},
</if>
<if
test=
"quantity != null"
>
#{quantity,jdbcType=INTEGER},
</if>
<if
test=
"price != null"
>
#{price,jdbcType=DECIMAL},
</if>
<if
test=
"sp1 != null"
>
#{sp1,jdbcType=VARCHAR},
</if>
<if
test=
"sp2 != null"
>
#{sp2,jdbcType=VARCHAR},
</if>
<if
test=
"sp3 != null"
>
#{sp3,jdbcType=VARCHAR},
</if>
<if
test=
"productPic != null"
>
#{productPic,jdbcType=VARCHAR},
</if>
<if
test=
"productName != null"
>
#{productName,jdbcType=VARCHAR},
</if>
<if
test=
"productSubTitle != null"
>
#{productSubTitle,jdbcType=VARCHAR},
</if>
<if
test=
"productSkuCode != null"
>
#{productSkuCode,jdbcType=VARCHAR},
</if>
<if
test=
"memberNickname != null"
>
#{memberNickname,jdbcType=VARCHAR},
</if>
<if
test=
"createDate != null"
>
#{createDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"modifyDate != null"
>
#{modifyDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleteStatus != null"
>
#{deleteStatus,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.OmsCartItemExample"
resultType=
"java.lang.Integer"
>
select count(*) from oms_cart_item
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update oms_cart_item
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.productId != null"
>
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if
test=
"record.productSkuId != null"
>
product_sku_id = #{record.productSkuId,jdbcType=BIGINT},
</if>
<if
test=
"record.memberId != null"
>
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if
test=
"record.quantity != null"
>
quantity = #{record.quantity,jdbcType=INTEGER},
</if>
<if
test=
"record.price != null"
>
price = #{record.price,jdbcType=DECIMAL},
</if>
<if
test=
"record.sp1 != null"
>
sp1 = #{record.sp1,jdbcType=VARCHAR},
</if>
<if
test=
"record.sp2 != null"
>
sp2 = #{record.sp2,jdbcType=VARCHAR},
</if>
<if
test=
"record.sp3 != null"
>
sp3 = #{record.sp3,jdbcType=VARCHAR},
</if>
<if
test=
"record.productPic != null"
>
product_pic = #{record.productPic,jdbcType=VARCHAR},
</if>
<if
test=
"record.productName != null"
>
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if
test=
"record.productSubTitle != null"
>
product_sub_title = #{record.productSubTitle,jdbcType=VARCHAR},
</if>
<if
test=
"record.productSkuCode != null"
>
product_sku_code = #{record.productSkuCode,jdbcType=VARCHAR},
</if>
<if
test=
"record.memberNickname != null"
>
member_nickname = #{record.memberNickname,jdbcType=VARCHAR},
</if>
<if
test=
"record.createDate != null"
>
create_date = #{record.createDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.modifyDate != null"
>
modify_date = #{record.modifyDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleteStatus != null"
>
delete_status = #{record.deleteStatus,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update oms_cart_item
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
product_sku_id = #{record.productSkuId,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
quantity = #{record.quantity,jdbcType=INTEGER},
price = #{record.price,jdbcType=DECIMAL},
sp1 = #{record.sp1,jdbcType=VARCHAR},
sp2 = #{record.sp2,jdbcType=VARCHAR},
sp3 = #{record.sp3,jdbcType=VARCHAR},
product_pic = #{record.productPic,jdbcType=VARCHAR},
product_name = #{record.productName,jdbcType=VARCHAR},
product_sub_title = #{record.productSubTitle,jdbcType=VARCHAR},
product_sku_code = #{record.productSkuCode,jdbcType=VARCHAR},
member_nickname = #{record.memberNickname,jdbcType=VARCHAR},
create_date = #{record.createDate,jdbcType=TIMESTAMP},
modify_date = #{record.modifyDate,jdbcType=TIMESTAMP},
delete_status = #{record.deleteStatus,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.OmsCartItem"
>
update oms_cart_item
<set>
<if
test=
"productId != null"
>
product_id = #{productId,jdbcType=BIGINT},
</if>
<if
test=
"productSkuId != null"
>
product_sku_id = #{productSkuId,jdbcType=BIGINT},
</if>
<if
test=
"memberId != null"
>
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if
test=
"quantity != null"
>
quantity = #{quantity,jdbcType=INTEGER},
</if>
<if
test=
"price != null"
>
price = #{price,jdbcType=DECIMAL},
</if>
<if
test=
"sp1 != null"
>
sp1 = #{sp1,jdbcType=VARCHAR},
</if>
<if
test=
"sp2 != null"
>
sp2 = #{sp2,jdbcType=VARCHAR},
</if>
<if
test=
"sp3 != null"
>
sp3 = #{sp3,jdbcType=VARCHAR},
</if>
<if
test=
"productPic != null"
>
product_pic = #{productPic,jdbcType=VARCHAR},
</if>
<if
test=
"productName != null"
>
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if
test=
"productSubTitle != null"
>
product_sub_title = #{productSubTitle,jdbcType=VARCHAR},
</if>
<if
test=
"productSkuCode != null"
>
product_sku_code = #{productSkuCode,jdbcType=VARCHAR},
</if>
<if
test=
"memberNickname != null"
>
member_nickname = #{memberNickname,jdbcType=VARCHAR},
</if>
<if
test=
"createDate != null"
>
create_date = #{createDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"modifyDate != null"
>
modify_date = #{modifyDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleteStatus != null"
>
delete_status = #{deleteStatus,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.OmsCartItem"
>
update oms_cart_item
set product_id = #{productId,jdbcType=BIGINT},
product_sku_id = #{productSkuId,jdbcType=BIGINT},
member_id = #{memberId,jdbcType=BIGINT},
quantity = #{quantity,jdbcType=INTEGER},
price = #{price,jdbcType=DECIMAL},
sp1 = #{sp1,jdbcType=VARCHAR},
sp2 = #{sp2,jdbcType=VARCHAR},
sp3 = #{sp3,jdbcType=VARCHAR},
product_pic = #{productPic,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
product_sub_title = #{productSubTitle,jdbcType=VARCHAR},
product_sku_code = #{productSkuCode,jdbcType=VARCHAR},
member_nickname = #{memberNickname,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=TIMESTAMP},
modify_date = #{modifyDate,jdbcType=TIMESTAMP},
delete_status = #{deleteStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment