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
2f79e06b
Commit
2f79e06b
authored
Nov 14, 2018
by
zhh
Browse files
限时购库表修改
parent
ec93f735
Changes
18
Expand all
Hide whitespace changes
Inline
Side-by-side
document/pdm/mall.pdb
View file @
2f79e06b
This diff is collapsed.
Click to expand it.
document/pdm/mall.pdm
View file @
2f79e06b
This diff is collapsed.
Click to expand it.
document/sql/mall.sql
View file @
2f79e06b
This diff is collapsed.
Click to expand it.
mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionMapper.java
View file @
2f79e06b
...
@@ -10,7 +10,7 @@ public interface SmsFlashPromotionMapper {
...
@@ -10,7 +10,7 @@ public interface SmsFlashPromotionMapper {
int
deleteByExample
(
SmsFlashPromotionExample
example
);
int
deleteByExample
(
SmsFlashPromotionExample
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
SmsFlashPromotion
record
);
int
insert
(
SmsFlashPromotion
record
);
...
@@ -18,7 +18,7 @@ public interface SmsFlashPromotionMapper {
...
@@ -18,7 +18,7 @@ public interface SmsFlashPromotionMapper {
List
<
SmsFlashPromotion
>
selectByExample
(
SmsFlashPromotionExample
example
);
List
<
SmsFlashPromotion
>
selectByExample
(
SmsFlashPromotionExample
example
);
SmsFlashPromotion
selectByPrimaryKey
(
Integer
id
);
SmsFlashPromotion
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
SmsFlashPromotion
record
,
@Param
(
"example"
)
SmsFlashPromotionExample
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
SmsFlashPromotion
record
,
@Param
(
"example"
)
SmsFlashPromotionExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.java
0 → 100644
View file @
2f79e06b
package
com.macro.mall.mapper
;
import
com.macro.mall.model.SmsFlashPromotionProductRelation
;
import
com.macro.mall.model.SmsFlashPromotionProductRelationExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
SmsFlashPromotionProductRelationMapper
{
int
countByExample
(
SmsFlashPromotionProductRelationExample
example
);
int
deleteByExample
(
SmsFlashPromotionProductRelationExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
SmsFlashPromotionProductRelation
record
);
int
insertSelective
(
SmsFlashPromotionProductRelation
record
);
List
<
SmsFlashPromotionProductRelation
>
selectByExample
(
SmsFlashPromotionProductRelationExample
example
);
SmsFlashPromotionProductRelation
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
SmsFlashPromotionProductRelation
record
,
@Param
(
"example"
)
SmsFlashPromotionProductRelationExample
example
);
int
updateByExample
(
@Param
(
"record"
)
SmsFlashPromotionProductRelation
record
,
@Param
(
"example"
)
SmsFlashPromotionProductRelationExample
example
);
int
updateByPrimaryKeySelective
(
SmsFlashPromotionProductRelation
record
);
int
updateByPrimaryKey
(
SmsFlashPromotionProductRelation
record
);
}
\ No newline at end of file
mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.java
0 → 100644
View file @
2f79e06b
package
com.macro.mall.mapper
;
import
com.macro.mall.model.SmsFlashPromotionSession
;
import
com.macro.mall.model.SmsFlashPromotionSessionExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
SmsFlashPromotionSessionMapper
{
int
countByExample
(
SmsFlashPromotionSessionExample
example
);
int
deleteByExample
(
SmsFlashPromotionSessionExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
SmsFlashPromotionSession
record
);
int
insertSelective
(
SmsFlashPromotionSession
record
);
List
<
SmsFlashPromotionSession
>
selectByExample
(
SmsFlashPromotionSessionExample
example
);
SmsFlashPromotionSession
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
SmsFlashPromotionSession
record
,
@Param
(
"example"
)
SmsFlashPromotionSessionExample
example
);
int
updateByExample
(
@Param
(
"record"
)
SmsFlashPromotionSession
record
,
@Param
(
"example"
)
SmsFlashPromotionSessionExample
example
);
int
updateByPrimaryKeySelective
(
SmsFlashPromotionSession
record
);
int
updateByPrimaryKey
(
SmsFlashPromotionSession
record
);
}
\ No newline at end of file
mall-mbg/src/main/java/com/macro/mall/model/PmsProduct.java
View file @
2f79e06b
...
@@ -15,13 +15,6 @@ public class PmsProduct implements Serializable {
...
@@ -15,13 +15,6 @@ public class PmsProduct implements Serializable {
private
Long
productAttributeCategoryId
;
private
Long
productAttributeCategoryId
;
/**
* 限时购id
*
* @mbggenerated
*/
private
Integer
flashPromotionId
;
private
String
name
;
private
String
name
;
private
String
pic
;
private
String
pic
;
...
@@ -181,27 +174,6 @@ public class PmsProduct implements Serializable {
...
@@ -181,27 +174,6 @@ public class PmsProduct implements Serializable {
private
String
detailTitle
;
private
String
detailTitle
;
/**
* 限时购价格
*
* @mbggenerated
*/
private
BigDecimal
flashPromotionPrice
;
/**
* 限时购数量
*
* @mbggenerated
*/
private
Integer
flashPromotionCount
;
/**
* 限时购排序
*
* @mbggenerated
*/
private
Integer
flashPromotionSort
;
/**
/**
* 促销开始时间
* 促销开始时间
*
*
...
@@ -224,7 +196,7 @@ public class PmsProduct implements Serializable {
...
@@ -224,7 +196,7 @@ public class PmsProduct implements Serializable {
private
Integer
promotionPerLimit
;
private
Integer
promotionPerLimit
;
/**
/**
* 促销类型:0->没有促销使用原价;1->使用促销价;2->使用会员价;3->使用阶梯价格;4->使用满减价格
* 促销类型:0->没有促销使用原价;1->使用促销价;2->使用会员价;3->使用阶梯价格;4->使用满减价格
;5->限时购
*
*
* @mbggenerated
* @mbggenerated
*/
*/
...
@@ -309,14 +281,6 @@ public class PmsProduct implements Serializable {
...
@@ -309,14 +281,6 @@ public class PmsProduct implements Serializable {
this
.
productAttributeCategoryId
=
productAttributeCategoryId
;
this
.
productAttributeCategoryId
=
productAttributeCategoryId
;
}
}
public
Integer
getFlashPromotionId
()
{
return
flashPromotionId
;
}
public
void
setFlashPromotionId
(
Integer
flashPromotionId
)
{
this
.
flashPromotionId
=
flashPromotionId
;
}
public
String
getName
()
{
public
String
getName
()
{
return
name
;
return
name
;
}
}
...
@@ -533,30 +497,6 @@ public class PmsProduct implements Serializable {
...
@@ -533,30 +497,6 @@ public class PmsProduct implements Serializable {
this
.
detailTitle
=
detailTitle
;
this
.
detailTitle
=
detailTitle
;
}
}
public
BigDecimal
getFlashPromotionPrice
()
{
return
flashPromotionPrice
;
}
public
void
setFlashPromotionPrice
(
BigDecimal
flashPromotionPrice
)
{
this
.
flashPromotionPrice
=
flashPromotionPrice
;
}
public
Integer
getFlashPromotionCount
()
{
return
flashPromotionCount
;
}
public
void
setFlashPromotionCount
(
Integer
flashPromotionCount
)
{
this
.
flashPromotionCount
=
flashPromotionCount
;
}
public
Integer
getFlashPromotionSort
()
{
return
flashPromotionSort
;
}
public
void
setFlashPromotionSort
(
Integer
flashPromotionSort
)
{
this
.
flashPromotionSort
=
flashPromotionSort
;
}
public
Date
getPromotionStartTime
()
{
public
Date
getPromotionStartTime
()
{
return
promotionStartTime
;
return
promotionStartTime
;
}
}
...
@@ -648,7 +588,6 @@ public class PmsProduct implements Serializable {
...
@@ -648,7 +588,6 @@ public class PmsProduct implements Serializable {
sb
.
append
(
", productCategoryId="
).
append
(
productCategoryId
);
sb
.
append
(
", productCategoryId="
).
append
(
productCategoryId
);
sb
.
append
(
", feightTemplateId="
).
append
(
feightTemplateId
);
sb
.
append
(
", feightTemplateId="
).
append
(
feightTemplateId
);
sb
.
append
(
", productAttributeCategoryId="
).
append
(
productAttributeCategoryId
);
sb
.
append
(
", productAttributeCategoryId="
).
append
(
productAttributeCategoryId
);
sb
.
append
(
", flashPromotionId="
).
append
(
flashPromotionId
);
sb
.
append
(
", name="
).
append
(
name
);
sb
.
append
(
", name="
).
append
(
name
);
sb
.
append
(
", pic="
).
append
(
pic
);
sb
.
append
(
", pic="
).
append
(
pic
);
sb
.
append
(
", productSn="
).
append
(
productSn
);
sb
.
append
(
", productSn="
).
append
(
productSn
);
...
@@ -676,9 +615,6 @@ public class PmsProduct implements Serializable {
...
@@ -676,9 +615,6 @@ public class PmsProduct implements Serializable {
sb
.
append
(
", note="
).
append
(
note
);
sb
.
append
(
", note="
).
append
(
note
);
sb
.
append
(
", albumPics="
).
append
(
albumPics
);
sb
.
append
(
", albumPics="
).
append
(
albumPics
);
sb
.
append
(
", detailTitle="
).
append
(
detailTitle
);
sb
.
append
(
", detailTitle="
).
append
(
detailTitle
);
sb
.
append
(
", flashPromotionPrice="
).
append
(
flashPromotionPrice
);
sb
.
append
(
", flashPromotionCount="
).
append
(
flashPromotionCount
);
sb
.
append
(
", flashPromotionSort="
).
append
(
flashPromotionSort
);
sb
.
append
(
", promotionStartTime="
).
append
(
promotionStartTime
);
sb
.
append
(
", promotionStartTime="
).
append
(
promotionStartTime
);
sb
.
append
(
", promotionEndTime="
).
append
(
promotionEndTime
);
sb
.
append
(
", promotionEndTime="
).
append
(
promotionEndTime
);
sb
.
append
(
", promotionPerLimit="
).
append
(
promotionPerLimit
);
sb
.
append
(
", promotionPerLimit="
).
append
(
promotionPerLimit
);
...
...
mall-mbg/src/main/java/com/macro/mall/model/PmsProductExample.java
View file @
2f79e06b
...
@@ -406,66 +406,6 @@ public class PmsProductExample {
...
@@ -406,66 +406,6 @@ public class PmsProductExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andFlashPromotionIdIsNull
()
{
addCriterion
(
"flash_promotion_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionIdIsNotNull
()
{
addCriterion
(
"flash_promotion_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionIdEqualTo
(
Integer
value
)
{
addCriterion
(
"flash_promotion_id ="
,
value
,
"flashPromotionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"flash_promotion_id <>"
,
value
,
"flashPromotionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"flash_promotion_id >"
,
value
,
"flashPromotionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"flash_promotion_id >="
,
value
,
"flashPromotionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionIdLessThan
(
Integer
value
)
{
addCriterion
(
"flash_promotion_id <"
,
value
,
"flashPromotionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"flash_promotion_id <="
,
value
,
"flashPromotionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"flash_promotion_id in"
,
values
,
"flashPromotionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"flash_promotion_id not in"
,
values
,
"flashPromotionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"flash_promotion_id between"
,
value1
,
value2
,
"flashPromotionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"flash_promotion_id not between"
,
value1
,
value2
,
"flashPromotionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameIsNull
()
{
public
Criteria
andNameIsNull
()
{
addCriterion
(
"name is null"
);
addCriterion
(
"name is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
@@ -2186,186 +2126,6 @@ public class PmsProductExample {
...
@@ -2186,186 +2126,6 @@ public class PmsProductExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andFlashPromotionPriceIsNull
()
{
addCriterion
(
"flash_promotion_price is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionPriceIsNotNull
()
{
addCriterion
(
"flash_promotion_price is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionPriceEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"flash_promotion_price ="
,
value
,
"flashPromotionPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionPriceNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"flash_promotion_price <>"
,
value
,
"flashPromotionPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionPriceGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"flash_promotion_price >"
,
value
,
"flashPromotionPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionPriceGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"flash_promotion_price >="
,
value
,
"flashPromotionPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionPriceLessThan
(
BigDecimal
value
)
{
addCriterion
(
"flash_promotion_price <"
,
value
,
"flashPromotionPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionPriceLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"flash_promotion_price <="
,
value
,
"flashPromotionPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionPriceIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"flash_promotion_price in"
,
values
,
"flashPromotionPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionPriceNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"flash_promotion_price not in"
,
values
,
"flashPromotionPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionPriceBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"flash_promotion_price between"
,
value1
,
value2
,
"flashPromotionPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionPriceNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"flash_promotion_price not between"
,
value1
,
value2
,
"flashPromotionPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionCountIsNull
()
{
addCriterion
(
"flash_promotion_count is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionCountIsNotNull
()
{
addCriterion
(
"flash_promotion_count is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionCountEqualTo
(
Integer
value
)
{
addCriterion
(
"flash_promotion_count ="
,
value
,
"flashPromotionCount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionCountNotEqualTo
(
Integer
value
)
{
addCriterion
(
"flash_promotion_count <>"
,
value
,
"flashPromotionCount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionCountGreaterThan
(
Integer
value
)
{
addCriterion
(
"flash_promotion_count >"
,
value
,
"flashPromotionCount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionCountGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"flash_promotion_count >="
,
value
,
"flashPromotionCount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionCountLessThan
(
Integer
value
)
{
addCriterion
(
"flash_promotion_count <"
,
value
,
"flashPromotionCount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionCountLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"flash_promotion_count <="
,
value
,
"flashPromotionCount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionCountIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"flash_promotion_count in"
,
values
,
"flashPromotionCount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionCountNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"flash_promotion_count not in"
,
values
,
"flashPromotionCount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionCountBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"flash_promotion_count between"
,
value1
,
value2
,
"flashPromotionCount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionCountNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"flash_promotion_count not between"
,
value1
,
value2
,
"flashPromotionCount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionSortIsNull
()
{
addCriterion
(
"flash_promotion_sort is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionSortIsNotNull
()
{
addCriterion
(
"flash_promotion_sort is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionSortEqualTo
(
Integer
value
)
{
addCriterion
(
"flash_promotion_sort ="
,
value
,
"flashPromotionSort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionSortNotEqualTo
(
Integer
value
)
{
addCriterion
(
"flash_promotion_sort <>"
,
value
,
"flashPromotionSort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionSortGreaterThan
(
Integer
value
)
{
addCriterion
(
"flash_promotion_sort >"
,
value
,
"flashPromotionSort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionSortGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"flash_promotion_sort >="
,
value
,
"flashPromotionSort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionSortLessThan
(
Integer
value
)
{
addCriterion
(
"flash_promotion_sort <"
,
value
,
"flashPromotionSort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionSortLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"flash_promotion_sort <="
,
value
,
"flashPromotionSort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionSortIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"flash_promotion_sort in"
,
values
,
"flashPromotionSort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionSortNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"flash_promotion_sort not in"
,
values
,
"flashPromotionSort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionSortBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"flash_promotion_sort between"
,
value1
,
value2
,
"flashPromotionSort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFlashPromotionSortNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"flash_promotion_sort not between"
,
value1
,
value2
,
"flashPromotionSort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPromotionStartTimeIsNull
()
{
public
Criteria
andPromotionStartTimeIsNull
()
{
addCriterion
(
"promotion_start_time is null"
);
addCriterion
(
"promotion_start_time is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
...
mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotion.java
View file @
2f79e06b
...
@@ -4,23 +4,23 @@ import java.io.Serializable;
...
@@ -4,23 +4,23 @@ import java.io.Serializable;
import
java.util.Date
;
import
java.util.Date
;
public
class
SmsFlashPromotion
implements
Serializable
{
public
class
SmsFlashPromotion
implements
Serializable
{
private
Integer
id
;
private
Long
id
;
private
String
title
;
private
String
title
;
/**
/**
* 开始
时间
* 开始
日期
*
*
* @mbggenerated
* @mbggenerated
*/
*/
private
Date
start
Tim
e
;
private
Date
start
Dat
e
;
/**
/**
* 结束
时间
* 结束
日期
*
*
* @mbggenerated
* @mbggenerated
*/
*/
private
Date
end
Tim
e
;
private
Date
end
Dat
e
;
/**
/**
* 上下线状态
* 上下线状态
...
@@ -34,15 +34,15 @@ public class SmsFlashPromotion implements Serializable {
...
@@ -34,15 +34,15 @@ public class SmsFlashPromotion implements Serializable {
*
*
* @mbggenerated
* @mbggenerated
*/
*/
private
String
timeNa
me
;
private
Date
createTi
me
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
Integer
getId
()
{
public
Long
getId
()
{
return
id
;
return
id
;
}
}
public
void
setId
(
Integer
id
)
{
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
this
.
id
=
id
;
}
}
...
@@ -54,20 +54,20 @@ public class SmsFlashPromotion implements Serializable {
...
@@ -54,20 +54,20 @@ public class SmsFlashPromotion implements Serializable {
this
.
title
=
title
;
this
.
title
=
title
;
}
}
public
Date
getStart
Tim
e
()
{
public
Date
getStart
Dat
e
()
{
return
start
Tim
e
;
return
start
Dat
e
;
}
}
public
void
setStart
Tim
e
(
Date
start
Tim
e
)
{
public
void
setStart
Dat
e
(
Date
start
Dat
e
)
{
this
.
start
Tim
e
=
start
Tim
e
;
this
.
start
Dat
e
=
start
Dat
e
;
}
}
public
Date
getEnd
Tim
e
()
{
public
Date
getEnd
Dat
e
()
{
return
end
Tim
e
;
return
end
Dat
e
;
}
}
public
void
setEnd
Tim
e
(
Date
end
Tim
e
)
{
public
void
setEnd
Dat
e
(
Date
end
Dat
e
)
{
this
.
end
Tim
e
=
end
Tim
e
;
this
.
end
Dat
e
=
end
Dat
e
;
}
}
public
Integer
getStatus
()
{
public
Integer
getStatus
()
{
...
@@ -78,12 +78,12 @@ public class SmsFlashPromotion implements Serializable {
...
@@ -78,12 +78,12 @@ public class SmsFlashPromotion implements Serializable {
this
.
status
=
status
;
this
.
status
=
status
;
}
}
public
String
getTimeNa
me
()
{
public
Date
getCreateTi
me
()
{
return
timeNa
me
;
return
createTi
me
;
}
}
public
void
set
TimeName
(
String
timeNa
me
)
{
public
void
set
CreateTime
(
Date
createTi
me
)
{
this
.
timeName
=
timeNa
me
;
this
.
createTime
=
createTi
me
;
}
}
@Override
@Override
...
@@ -94,10 +94,10 @@ public class SmsFlashPromotion implements Serializable {
...
@@ -94,10 +94,10 @@ public class SmsFlashPromotion implements Serializable {
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", title="
).
append
(
title
);
sb
.
append
(
", title="
).
append
(
title
);
sb
.
append
(
", start
Tim
e="
).
append
(
start
Tim
e
);
sb
.
append
(
", start
Dat
e="
).
append
(
start
Dat
e
);
sb
.
append
(
", end
Tim
e="
).
append
(
end
Tim
e
);
sb
.
append
(
", end
Dat
e="
).
append
(
end
Dat
e
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
",
timeNa
me="
).
append
(
timeNa
me
);
sb
.
append
(
",
createTi
me="
).
append
(
createTi
me
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
return
sb
.
toString
();
...
...
mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionExample.java
View file @
2f79e06b
...
@@ -2,6 +2,7 @@ package com.macro.mall.model;
...
@@ -2,6 +2,7 @@ package com.macro.mall.model;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.List
;
public
class
SmsFlashPromotionExample
{
public
class
SmsFlashPromotionExample
{
...
@@ -105,6 +106,32 @@ public class SmsFlashPromotionExample {
...
@@ -105,6 +106,32 @@ public class SmsFlashPromotionExample {
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
}
protected
void
addCriterionForJDBCDate
(
String
condition
,
Date
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
addCriterion
(
condition
,
new
java
.
sql
.
Date
(
value
.
getTime
()),
property
);
}
protected
void
addCriterionForJDBCDate
(
String
condition
,
List
<
Date
>
values
,
String
property
)
{
if
(
values
==
null
||
values
.
size
()
==
0
)
{
throw
new
RuntimeException
(
"Value list for "
+
property
+
" cannot be null or empty"
);
}
List
<
java
.
sql
.
Date
>
dateList
=
new
ArrayList
<
java
.
sql
.
Date
>();
Iterator
<
Date
>
iter
=
values
.
iterator
();
while
(
iter
.
hasNext
())
{
dateList
.
add
(
new
java
.
sql
.
Date
(
iter
.
next
().
getTime
()));
}
addCriterion
(
condition
,
dateList
,
property
);
}
protected
void
addCriterionForJDBCDate
(
String
condition
,
Date
value1
,
Date
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
addCriterion
(
condition
,
new
java
.
sql
.
Date
(
value1
.
getTime
()),
new
java
.
sql
.
Date
(
value2
.
getTime
()),
property
);
}
public
Criteria
andIdIsNull
()
{
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
@@ -115,52 +142,52 @@ public class SmsFlashPromotionExample {
...
@@ -115,52 +142,52 @@ public class SmsFlashPromotionExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdEqualTo
(
Integer
value
)
{
public
Criteria
andIdEqualTo
(
Long
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdNotEqualTo
(
Integer
value
)
{
public
Criteria
andIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdGreaterThan
(
Integer
value
)
{
public
Criteria
andIdGreaterThan
(
Long
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Integer
value
)
{
public
Criteria
andIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdLessThan
(
Integer
value
)
{
public
Criteria
andIdLessThan
(
Long
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdLessThanOrEqualTo
(
Integer
value
)
{
public
Criteria
andIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdIn
(
List
<
Integer
>
values
)
{
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdNotIn
(
List
<
Integer
>
values
)
{
public
Criteria
andIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdBetween
(
Integer
value1
,
Integer
value2
)
{
public
Criteria
andIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
public
Criteria
andIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
@@ -235,123 +262,123 @@ public class SmsFlashPromotionExample {
...
@@ -235,123 +262,123 @@ public class SmsFlashPromotionExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andStart
Tim
eIsNull
()
{
public
Criteria
andStart
Dat
eIsNull
()
{
addCriterion
(
"start_
tim
e is null"
);
addCriterion
(
"start_
dat
e is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andStart
Tim
eIsNotNull
()
{
public
Criteria
andStart
Dat
eIsNotNull
()
{
addCriterion
(
"start_
tim
e is not null"
);
addCriterion
(
"start_
dat
e is not null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andStart
Tim
eEqualTo
(
Date
value
)
{
public
Criteria
andStart
Dat
eEqualTo
(
Date
value
)
{
addCriterion
(
"start_
tim
e ="
,
value
,
"start
Tim
e"
);
addCriterion
ForJDBCDate
(
"start_
dat
e ="
,
value
,
"start
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andStart
Tim
eNotEqualTo
(
Date
value
)
{
public
Criteria
andStart
Dat
eNotEqualTo
(
Date
value
)
{
addCriterion
(
"start_
tim
e <>"
,
value
,
"start
Tim
e"
);
addCriterion
ForJDBCDate
(
"start_
dat
e <>"
,
value
,
"start
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andStart
Tim
eGreaterThan
(
Date
value
)
{
public
Criteria
andStart
Dat
eGreaterThan
(
Date
value
)
{
addCriterion
(
"start_
tim
e >"
,
value
,
"start
Tim
e"
);
addCriterion
ForJDBCDate
(
"start_
dat
e >"
,
value
,
"start
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andStart
Tim
eGreaterThanOrEqualTo
(
Date
value
)
{
public
Criteria
andStart
Dat
eGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"start_
tim
e >="
,
value
,
"start
Tim
e"
);
addCriterion
ForJDBCDate
(
"start_
dat
e >="
,
value
,
"start
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andStart
Tim
eLessThan
(
Date
value
)
{
public
Criteria
andStart
Dat
eLessThan
(
Date
value
)
{
addCriterion
(
"start_
tim
e <"
,
value
,
"start
Tim
e"
);
addCriterion
ForJDBCDate
(
"start_
dat
e <"
,
value
,
"start
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andStart
Tim
eLessThanOrEqualTo
(
Date
value
)
{
public
Criteria
andStart
Dat
eLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"start_
tim
e <="
,
value
,
"start
Tim
e"
);
addCriterion
ForJDBCDate
(
"start_
dat
e <="
,
value
,
"start
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andStart
Tim
eIn
(
List
<
Date
>
values
)
{
public
Criteria
andStart
Dat
eIn
(
List
<
Date
>
values
)
{
addCriterion
(
"start_
tim
e in"
,
values
,
"start
Tim
e"
);
addCriterion
ForJDBCDate
(
"start_
dat
e in"
,
values
,
"start
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andStart
Tim
eNotIn
(
List
<
Date
>
values
)
{
public
Criteria
andStart
Dat
eNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"start_
tim
e not in"
,
values
,
"start
Tim
e"
);
addCriterion
ForJDBCDate
(
"start_
dat
e not in"
,
values
,
"start
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andStart
Tim
eBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andStart
Dat
eBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"start_
tim
e between"
,
value1
,
value2
,
"start
Tim
e"
);
addCriterion
ForJDBCDate
(
"start_
dat
e between"
,
value1
,
value2
,
"start
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andStart
Tim
eNotBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andStart
Dat
eNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"start_
tim
e not between"
,
value1
,
value2
,
"start
Tim
e"
);
addCriterion
ForJDBCDate
(
"start_
dat
e not between"
,
value1
,
value2
,
"start
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andEnd
Tim
eIsNull
()
{
public
Criteria
andEnd
Dat
eIsNull
()
{
addCriterion
(
"end_
tim
e is null"
);
addCriterion
(
"end_
dat
e is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andEnd
Tim
eIsNotNull
()
{
public
Criteria
andEnd
Dat
eIsNotNull
()
{
addCriterion
(
"end_
tim
e is not null"
);
addCriterion
(
"end_
dat
e is not null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andEnd
Tim
eEqualTo
(
Date
value
)
{
public
Criteria
andEnd
Dat
eEqualTo
(
Date
value
)
{
addCriterion
(
"end_
tim
e ="
,
value
,
"end
Tim
e"
);
addCriterion
ForJDBCDate
(
"end_
dat
e ="
,
value
,
"end
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andEnd
Tim
eNotEqualTo
(
Date
value
)
{
public
Criteria
andEnd
Dat
eNotEqualTo
(
Date
value
)
{
addCriterion
(
"end_
tim
e <>"
,
value
,
"end
Tim
e"
);
addCriterion
ForJDBCDate
(
"end_
dat
e <>"
,
value
,
"end
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andEnd
Tim
eGreaterThan
(
Date
value
)
{
public
Criteria
andEnd
Dat
eGreaterThan
(
Date
value
)
{
addCriterion
(
"end_
tim
e >"
,
value
,
"end
Tim
e"
);
addCriterion
ForJDBCDate
(
"end_
dat
e >"
,
value
,
"end
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andEnd
Tim
eGreaterThanOrEqualTo
(
Date
value
)
{
public
Criteria
andEnd
Dat
eGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"end_
tim
e >="
,
value
,
"end
Tim
e"
);
addCriterion
ForJDBCDate
(
"end_
dat
e >="
,
value
,
"end
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andEnd
Tim
eLessThan
(
Date
value
)
{
public
Criteria
andEnd
Dat
eLessThan
(
Date
value
)
{
addCriterion
(
"end_
tim
e <"
,
value
,
"end
Tim
e"
);
addCriterion
ForJDBCDate
(
"end_
dat
e <"
,
value
,
"end
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andEnd
Tim
eLessThanOrEqualTo
(
Date
value
)
{
public
Criteria
andEnd
Dat
eLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"end_
tim
e <="
,
value
,
"end
Tim
e"
);
addCriterion
ForJDBCDate
(
"end_
dat
e <="
,
value
,
"end
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andEnd
Tim
eIn
(
List
<
Date
>
values
)
{
public
Criteria
andEnd
Dat
eIn
(
List
<
Date
>
values
)
{
addCriterion
(
"end_
tim
e in"
,
values
,
"end
Tim
e"
);
addCriterion
ForJDBCDate
(
"end_
dat
e in"
,
values
,
"end
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andEnd
Tim
eNotIn
(
List
<
Date
>
values
)
{
public
Criteria
andEnd
Dat
eNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"end_
tim
e not in"
,
values
,
"end
Tim
e"
);
addCriterion
ForJDBCDate
(
"end_
dat
e not in"
,
values
,
"end
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andEnd
Tim
eBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andEnd
Dat
eBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"end_
tim
e between"
,
value1
,
value2
,
"end
Tim
e"
);
addCriterion
ForJDBCDate
(
"end_
dat
e between"
,
value1
,
value2
,
"end
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andEnd
Tim
eNotBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andEnd
Dat
eNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"end_
tim
e not between"
,
value1
,
value2
,
"end
Tim
e"
);
addCriterion
ForJDBCDate
(
"end_
dat
e not between"
,
value1
,
value2
,
"end
Dat
e"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
@@ -415,73 +442,63 @@ public class SmsFlashPromotionExample {
...
@@ -415,73 +442,63 @@ public class SmsFlashPromotionExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTimeNameIsNull
()
{
public
Criteria
andCreateTimeIsNull
()
{
addCriterion
(
"time_name is null"
);
addCriterion
(
"create_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTimeNameIsNotNull
()
{
addCriterion
(
"time_name is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTimeNameEqualTo
(
String
value
)
{
addCriterion
(
"time_name ="
,
value
,
"timeName"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TimeNameNotEqualTo
(
String
value
)
{
public
Criteria
and
CreateTimeIsNotNull
(
)
{
addCriterion
(
"
time_name <>"
,
value
,
"timeName
"
);
addCriterion
(
"
create_time is not null
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TimeNameGreaterThan
(
String
value
)
{
public
Criteria
and
CreateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"
time_na
me
>
"
,
value
,
"
timeNa
me"
);
addCriterion
(
"
create_ti
me
=
"
,
value
,
"
createTi
me"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TimeNameGreaterThanOr
EqualTo
(
String
value
)
{
public
Criteria
and
CreateTimeNot
EqualTo
(
Date
value
)
{
addCriterion
(
"
time_na
me >
=
"
,
value
,
"
timeNa
me"
);
addCriterion
(
"
create_ti
me
<
>"
,
value
,
"
createTi
me"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TimeNameLessThan
(
String
value
)
{
public
Criteria
and
CreateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"
time_na
me
<
"
,
value
,
"
timeNa
me"
);
addCriterion
(
"
create_ti
me
>
"
,
value
,
"
createTi
me"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TimeNameLess
ThanOrEqualTo
(
String
value
)
{
public
Criteria
and
CreateTimeGreater
ThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"
time_na
me
<
="
,
value
,
"
timeNa
me"
);
addCriterion
(
"
create_ti
me
>
="
,
value
,
"
createTi
me"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TimeNameLike
(
String
value
)
{
public
Criteria
and
CreateTimeLessThan
(
Date
value
)
{
addCriterion
(
"
time_name like
"
,
value
,
"
timeNa
me"
);
addCriterion
(
"
create_time <
"
,
value
,
"
createTi
me"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TimeNameNotLike
(
String
value
)
{
public
Criteria
and
CreateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"
time_name not like
"
,
value
,
"
timeNa
me"
);
addCriterion
(
"
create_time <=
"
,
value
,
"
createTi
me"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TimeNa
meIn
(
List
<
String
>
values
)
{
public
Criteria
and
CreateTi
meIn
(
List
<
Date
>
values
)
{
addCriterion
(
"
time_na
me in"
,
values
,
"
timeNa
me"
);
addCriterion
(
"
create_ti
me in"
,
values
,
"
createTi
me"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TimeNa
meNotIn
(
List
<
String
>
values
)
{
public
Criteria
and
CreateTi
meNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"
time_na
me not in"
,
values
,
"
timeNa
me"
);
addCriterion
(
"
create_ti
me not in"
,
values
,
"
createTi
me"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TimeNa
meBetween
(
String
value1
,
String
value2
)
{
public
Criteria
and
CreateTi
meBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"
time_na
me between"
,
value1
,
value2
,
"
timeNa
me"
);
addCriterion
(
"
create_ti
me between"
,
value1
,
value2
,
"
createTi
me"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TimeNa
meNotBetween
(
String
value1
,
String
value2
)
{
public
Criteria
and
CreateTi
meNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"
time_na
me not between"
,
value1
,
value2
,
"
timeNa
me"
);
addCriterion
(
"
create_ti
me not between"
,
value1
,
value2
,
"
createTi
me"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
}
}
...
...
mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionProductRelation.java
0 → 100644
View file @
2f79e06b
package
com.macro.mall.model
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
public
class
SmsFlashPromotionProductRelation
implements
Serializable
{
/**
* 编号
*
* @mbggenerated
*/
private
Long
id
;
private
Long
flashPromotionId
;
/**
* 编号
*
* @mbggenerated
*/
private
Long
flashPromotionSessionId
;
private
Long
productId
;
/**
* 限时购价格
*
* @mbggenerated
*/
private
BigDecimal
flashPromotionPrice
;
/**
* 限时购数量
*
* @mbggenerated
*/
private
Integer
flashPromotionCount
;
/**
* 每人限购数量
*
* @mbggenerated
*/
private
Integer
flashPromotionLimit
;
/**
* 排序
*
* @mbggenerated
*/
private
Integer
sort
;
private
static
final
long
serialVersionUID
=
1L
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getFlashPromotionId
()
{
return
flashPromotionId
;
}
public
void
setFlashPromotionId
(
Long
flashPromotionId
)
{
this
.
flashPromotionId
=
flashPromotionId
;
}
public
Long
getFlashPromotionSessionId
()
{
return
flashPromotionSessionId
;
}
public
void
setFlashPromotionSessionId
(
Long
flashPromotionSessionId
)
{
this
.
flashPromotionSessionId
=
flashPromotionSessionId
;
}
public
Long
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
Long
productId
)
{
this
.
productId
=
productId
;
}
public
BigDecimal
getFlashPromotionPrice
()
{
return
flashPromotionPrice
;
}
public
void
setFlashPromotionPrice
(
BigDecimal
flashPromotionPrice
)
{
this
.
flashPromotionPrice
=
flashPromotionPrice
;
}
public
Integer
getFlashPromotionCount
()
{
return
flashPromotionCount
;
}
public
void
setFlashPromotionCount
(
Integer
flashPromotionCount
)
{
this
.
flashPromotionCount
=
flashPromotionCount
;
}
public
Integer
getFlashPromotionLimit
()
{
return
flashPromotionLimit
;
}
public
void
setFlashPromotionLimit
(
Integer
flashPromotionLimit
)
{
this
.
flashPromotionLimit
=
flashPromotionLimit
;
}
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
@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
(
", flashPromotionId="
).
append
(
flashPromotionId
);
sb
.
append
(
", flashPromotionSessionId="
).
append
(
flashPromotionSessionId
);
sb
.
append
(
", productId="
).
append
(
productId
);
sb
.
append
(
", flashPromotionPrice="
).
append
(
flashPromotionPrice
);
sb
.
append
(
", flashPromotionCount="
).
append
(
flashPromotionCount
);
sb
.
append
(
", flashPromotionLimit="
).
append
(
flashPromotionLimit
);
sb
.
append
(
", sort="
).
append
(
sort
);
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/SmsFlashPromotionProductRelationExample.java
0 → 100644
View file @
2f79e06b
This diff is collapsed.
Click to expand it.
mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionSession.java
0 → 100644
View file @
2f79e06b
package
com.macro.mall.model
;
import
java.io.Serializable
;
import
java.util.Date
;
public
class
SmsFlashPromotionSession
implements
Serializable
{
/**
* 编号
*
* @mbggenerated
*/
private
Long
id
;
/**
* 场次名称
*
* @mbggenerated
*/
private
String
name
;
/**
* 每日开始时间
*
* @mbggenerated
*/
private
Date
startTime
;
/**
* 每日结束时间
*
* @mbggenerated
*/
private
Date
endTime
;
/**
* 启用状态:0->不启用;1->启用
*
* @mbggenerated
*/
private
Integer
status
;
/**
* 创建时间
*
* @mbggenerated
*/
private
Date
createTime
;
private
static
final
long
serialVersionUID
=
1L
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Date
getStartTime
()
{
return
startTime
;
}
public
void
setStartTime
(
Date
startTime
)
{
this
.
startTime
=
startTime
;
}
public
Date
getEndTime
()
{
return
endTime
;
}
public
void
setEndTime
(
Date
endTime
)
{
this
.
endTime
=
endTime
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
@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
(
", name="
).
append
(
name
);
sb
.
append
(
", startTime="
).
append
(
startTime
);
sb
.
append
(
", endTime="
).
append
(
endTime
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
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/SmsFlashPromotionSessionExample.java
0 → 100644
View file @
2f79e06b
package
com.macro.mall.model
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Iterator
;
import
java.util.List
;
public
class
SmsFlashPromotionSessionExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
SmsFlashPromotionSessionExample
()
{
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
));
}
protected
void
addCriterionForJDBCTime
(
String
condition
,
Date
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
addCriterion
(
condition
,
new
java
.
sql
.
Time
(
value
.
getTime
()),
property
);
}
protected
void
addCriterionForJDBCTime
(
String
condition
,
List
<
Date
>
values
,
String
property
)
{
if
(
values
==
null
||
values
.
size
()
==
0
)
{
throw
new
RuntimeException
(
"Value list for "
+
property
+
" cannot be null or empty"
);
}
List
<
java
.
sql
.
Time
>
timeList
=
new
ArrayList
<
java
.
sql
.
Time
>();
Iterator
<
Date
>
iter
=
values
.
iterator
();
while
(
iter
.
hasNext
())
{
timeList
.
add
(
new
java
.
sql
.
Time
(
iter
.
next
().
getTime
()));
}
addCriterion
(
condition
,
timeList
,
property
);
}
protected
void
addCriterionForJDBCTime
(
String
condition
,
Date
value1
,
Date
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
addCriterion
(
condition
,
new
java
.
sql
.
Time
(
value1
.
getTime
()),
new
java
.
sql
.
Time
(
value2
.
getTime
()),
property
);
}
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
andNameIsNull
()
{
addCriterion
(
"name is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameIsNotNull
()
{
addCriterion
(
"name is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameEqualTo
(
String
value
)
{
addCriterion
(
"name ="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotEqualTo
(
String
value
)
{
addCriterion
(
"name <>"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameGreaterThan
(
String
value
)
{
addCriterion
(
"name >"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"name >="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameLessThan
(
String
value
)
{
addCriterion
(
"name <"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"name <="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameLike
(
String
value
)
{
addCriterion
(
"name like"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotLike
(
String
value
)
{
addCriterion
(
"name not like"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameIn
(
List
<
String
>
values
)
{
addCriterion
(
"name in"
,
values
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"name not in"
,
values
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"name between"
,
value1
,
value2
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"name not between"
,
value1
,
value2
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeIsNull
()
{
addCriterion
(
"start_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeIsNotNull
()
{
addCriterion
(
"start_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeEqualTo
(
Date
value
)
{
addCriterionForJDBCTime
(
"start_time ="
,
value
,
"startTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeNotEqualTo
(
Date
value
)
{
addCriterionForJDBCTime
(
"start_time <>"
,
value
,
"startTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeGreaterThan
(
Date
value
)
{
addCriterionForJDBCTime
(
"start_time >"
,
value
,
"startTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterionForJDBCTime
(
"start_time >="
,
value
,
"startTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeLessThan
(
Date
value
)
{
addCriterionForJDBCTime
(
"start_time <"
,
value
,
"startTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterionForJDBCTime
(
"start_time <="
,
value
,
"startTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeIn
(
List
<
Date
>
values
)
{
addCriterionForJDBCTime
(
"start_time in"
,
values
,
"startTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeNotIn
(
List
<
Date
>
values
)
{
addCriterionForJDBCTime
(
"start_time not in"
,
values
,
"startTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterionForJDBCTime
(
"start_time between"
,
value1
,
value2
,
"startTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterionForJDBCTime
(
"start_time not between"
,
value1
,
value2
,
"startTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeIsNull
()
{
addCriterion
(
"end_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeIsNotNull
()
{
addCriterion
(
"end_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeEqualTo
(
Date
value
)
{
addCriterionForJDBCTime
(
"end_time ="
,
value
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeNotEqualTo
(
Date
value
)
{
addCriterionForJDBCTime
(
"end_time <>"
,
value
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeGreaterThan
(
Date
value
)
{
addCriterionForJDBCTime
(
"end_time >"
,
value
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterionForJDBCTime
(
"end_time >="
,
value
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeLessThan
(
Date
value
)
{
addCriterionForJDBCTime
(
"end_time <"
,
value
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterionForJDBCTime
(
"end_time <="
,
value
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeIn
(
List
<
Date
>
values
)
{
addCriterionForJDBCTime
(
"end_time in"
,
values
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeNotIn
(
List
<
Date
>
values
)
{
addCriterionForJDBCTime
(
"end_time not in"
,
values
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterionForJDBCTime
(
"end_time between"
,
value1
,
value2
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterionForJDBCTime
(
"end_time not between"
,
value1
,
value2
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusIsNull
()
{
addCriterion
(
"status is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusIsNotNull
()
{
addCriterion
(
"status is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusEqualTo
(
Integer
value
)
{
addCriterion
(
"status ="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotEqualTo
(
Integer
value
)
{
addCriterion
(
"status <>"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusGreaterThan
(
Integer
value
)
{
addCriterion
(
"status >"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"status >="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusLessThan
(
Integer
value
)
{
addCriterion
(
"status <"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"status <="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"status in"
,
values
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"status not in"
,
values
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"status between"
,
value1
,
value2
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"status not between"
,
value1
,
value2
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNull
()
{
addCriterion
(
"create_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNotNull
()
{
addCriterion
(
"create_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"create_time ="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <>"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"create_time >"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time >="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThan
(
Date
value
)
{
addCriterion
(
"create_time <"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_time in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_time not in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_time between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_time not between"
,
value1
,
value2
,
"createTime"
);
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/resources/com/macro/mall/mapper/PmsProductMapper.xml
View file @
2f79e06b
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
<result
column=
"product_category_id"
jdbcType=
"BIGINT"
property=
"productCategoryId"
/>
<result
column=
"product_category_id"
jdbcType=
"BIGINT"
property=
"productCategoryId"
/>
<result
column=
"feight_template_id"
jdbcType=
"BIGINT"
property=
"feightTemplateId"
/>
<result
column=
"feight_template_id"
jdbcType=
"BIGINT"
property=
"feightTemplateId"
/>
<result
column=
"product_attribute_category_id"
jdbcType=
"BIGINT"
property=
"productAttributeCategoryId"
/>
<result
column=
"product_attribute_category_id"
jdbcType=
"BIGINT"
property=
"productAttributeCategoryId"
/>
<result
column=
"flash_promotion_id"
jdbcType=
"INTEGER"
property=
"flashPromotionId"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"pic"
jdbcType=
"VARCHAR"
property=
"pic"
/>
<result
column=
"pic"
jdbcType=
"VARCHAR"
property=
"pic"
/>
<result
column=
"product_sn"
jdbcType=
"VARCHAR"
property=
"productSn"
/>
<result
column=
"product_sn"
jdbcType=
"VARCHAR"
property=
"productSn"
/>
...
@@ -35,9 +34,6 @@
...
@@ -35,9 +34,6 @@
<result
column=
"note"
jdbcType=
"VARCHAR"
property=
"note"
/>
<result
column=
"note"
jdbcType=
"VARCHAR"
property=
"note"
/>
<result
column=
"album_pics"
jdbcType=
"VARCHAR"
property=
"albumPics"
/>
<result
column=
"album_pics"
jdbcType=
"VARCHAR"
property=
"albumPics"
/>
<result
column=
"detail_title"
jdbcType=
"VARCHAR"
property=
"detailTitle"
/>
<result
column=
"detail_title"
jdbcType=
"VARCHAR"
property=
"detailTitle"
/>
<result
column=
"flash_promotion_price"
jdbcType=
"DECIMAL"
property=
"flashPromotionPrice"
/>
<result
column=
"flash_promotion_count"
jdbcType=
"INTEGER"
property=
"flashPromotionCount"
/>
<result
column=
"flash_promotion_sort"
jdbcType=
"INTEGER"
property=
"flashPromotionSort"
/>
<result
column=
"promotion_start_time"
jdbcType=
"TIMESTAMP"
property=
"promotionStartTime"
/>
<result
column=
"promotion_start_time"
jdbcType=
"TIMESTAMP"
property=
"promotionStartTime"
/>
<result
column=
"promotion_end_time"
jdbcType=
"TIMESTAMP"
property=
"promotionEndTime"
/>
<result
column=
"promotion_end_time"
jdbcType=
"TIMESTAMP"
property=
"promotionEndTime"
/>
<result
column=
"promotion_per_limit"
jdbcType=
"INTEGER"
property=
"promotionPerLimit"
/>
<result
column=
"promotion_per_limit"
jdbcType=
"INTEGER"
property=
"promotionPerLimit"
/>
...
@@ -111,11 +107,10 @@
...
@@ -111,11 +107,10 @@
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, brand_id, product_category_id, feight_template_id, product_attribute_category_id,
id, brand_id, product_category_id, feight_template_id, product_attribute_category_id,
flash_promotion_id, name, pic, product_sn, delete_status, publish_status, new_status,
name, pic, product_sn, delete_status, publish_status, new_status, recommand_status,
recommand_status, verify_status, sort, sale, price, promotion_price, gift_growth,
verify_status, sort, sale, price, promotion_price, gift_growth, gift_point, use_point_limit,
gift_point, use_point_limit, sub_title, original_price, stock, low_stock, unit, weight,
sub_title, original_price, stock, low_stock, unit, weight, preview_status, service_ids,
preview_status, service_ids, keywords, note, album_pics, detail_title, flash_promotion_price,
keywords, note, album_pics, detail_title, promotion_start_time, promotion_end_time,
flash_promotion_count, flash_promotion_sort, promotion_start_time, promotion_end_time,
promotion_per_limit, promotion_type, brand_name, product_category_name
promotion_per_limit, promotion_type, brand_name, product_category_name
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
...
@@ -174,39 +169,33 @@
...
@@ -174,39 +169,33 @@
SELECT LAST_INSERT_ID()
SELECT LAST_INSERT_ID()
</selectKey>
</selectKey>
insert into pms_product (brand_id, product_category_id, feight_template_id,
insert into pms_product (brand_id, product_category_id, feight_template_id,
product_attribute_category_id, flash_promotion_id,
product_attribute_category_id, name, pic,
name, pic, product_sn,
product_sn, delete_status, publish_status,
delete_status, publish_status, new_status,
new_status, recommand_status, verify_status,
recommand_status, verify_status, sort,
sort, sale, price,
sale, price, promotion_price,
promotion_price, gift_growth, gift_point,
gift_growth, gift_point, use_point_limit,
use_point_limit, sub_title, original_price,
sub_title, original_price, stock,
stock, low_stock, unit,
low_stock, unit, weight,
weight, preview_status, service_ids,
preview_status, service_ids, keywords,
keywords, note, album_pics,
note, album_pics, detail_title,
detail_title, promotion_start_time, promotion_end_time,
flash_promotion_price, flash_promotion_count,
promotion_per_limit, promotion_type, brand_name,
flash_promotion_sort, promotion_start_time,
product_category_name, description, detail_desc,
promotion_end_time, promotion_per_limit,
detail_html, detail_mobile_html)
promotion_type, brand_name, product_category_name,
description, detail_desc, detail_html,
detail_mobile_html)
values (#{brandId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}, #{feightTemplateId,jdbcType=BIGINT},
values (#{brandId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}, #{feightTemplateId,jdbcType=BIGINT},
#{productAttributeCategoryId,jdbcType=BIGINT}, #{flashPromotionId,jdbcType=INTEGER},
#{productAttributeCategoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, #{productSn,jdbcType=VARCHAR},
#{productSn,jdbcType=VARCHAR}, #{deleteStatus,jdbcType=INTEGER}, #{publishStatus,jdbcType=INTEGER},
#{deleteStatus,jdbcType=INTEGER}, #{publishStatus,jdbcType=INTEGER}, #{newStatus,jdbcType=INTEGER},
#{newStatus,jdbcType=INTEGER}, #{recommandStatus,jdbcType=INTEGER}, #{verifyStatus,jdbcType=INTEGER},
#{recommandStatus,jdbcType=INTEGER}, #{verifyStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER}, #{sale,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL},
#{sale,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, #{promotionPrice,jdbcType=DECIMAL},
#{promotionPrice,jdbcType=DECIMAL}, #{giftGrowth,jdbcType=INTEGER}, #{giftPoint,jdbcType=INTEGER},
#{giftGrowth,jdbcType=INTEGER}, #{giftPoint,jdbcType=INTEGER}, #{usePointLimit,jdbcType=INTEGER},
#{usePointLimit,jdbcType=INTEGER}, #{subTitle,jdbcType=VARCHAR}, #{originalPrice,jdbcType=DECIMAL},
#{subTitle,jdbcType=VARCHAR}, #{originalPrice,jdbcType=DECIMAL}, #{stock,jdbcType=INTEGER},
#{stock,jdbcType=INTEGER}, #{lowStock,jdbcType=INTEGER}, #{unit,jdbcType=VARCHAR},
#{lowStock,jdbcType=INTEGER}, #{unit,jdbcType=VARCHAR}, #{weight,jdbcType=DECIMAL},
#{weight,jdbcType=DECIMAL}, #{previewStatus,jdbcType=INTEGER}, #{serviceIds,jdbcType=VARCHAR},
#{previewStatus,jdbcType=INTEGER}, #{serviceIds,jdbcType=VARCHAR}, #{keywords,jdbcType=VARCHAR},
#{keywords,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{albumPics,jdbcType=VARCHAR},
#{note,jdbcType=VARCHAR}, #{albumPics,jdbcType=VARCHAR}, #{detailTitle,jdbcType=VARCHAR},
#{detailTitle,jdbcType=VARCHAR}, #{promotionStartTime,jdbcType=TIMESTAMP}, #{promotionEndTime,jdbcType=TIMESTAMP},
#{flashPromotionPrice,jdbcType=DECIMAL}, #{flashPromotionCount,jdbcType=INTEGER},
#{promotionPerLimit,jdbcType=INTEGER}, #{promotionType,jdbcType=INTEGER}, #{brandName,jdbcType=VARCHAR},
#{flashPromotionSort,jdbcType=INTEGER}, #{promotionStartTime,jdbcType=TIMESTAMP},
#{productCategoryName,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR}, #{detailDesc,jdbcType=LONGVARCHAR},
#{promotionEndTime,jdbcType=TIMESTAMP}, #{promotionPerLimit,jdbcType=INTEGER},
#{detailHtml,jdbcType=LONGVARCHAR}, #{detailMobileHtml,jdbcType=LONGVARCHAR})
#{promotionType,jdbcType=INTEGER}, #{brandName,jdbcType=VARCHAR}, #{productCategoryName,jdbcType=VARCHAR},
#{description,jdbcType=LONGVARCHAR}, #{detailDesc,jdbcType=LONGVARCHAR}, #{detailHtml,jdbcType=LONGVARCHAR},
#{detailMobileHtml,jdbcType=LONGVARCHAR})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.PmsProduct"
>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.PmsProduct"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
...
@@ -226,9 +215,6 @@
...
@@ -226,9 +215,6 @@
<if
test=
"productAttributeCategoryId != null"
>
<if
test=
"productAttributeCategoryId != null"
>
product_attribute_category_id,
product_attribute_category_id,
</if>
</if>
<if
test=
"flashPromotionId != null"
>
flash_promotion_id,
</if>
<if
test=
"name != null"
>
<if
test=
"name != null"
>
name,
name,
</if>
</if>
...
@@ -310,15 +296,6 @@
...
@@ -310,15 +296,6 @@
<if
test=
"detailTitle != null"
>
<if
test=
"detailTitle != null"
>
detail_title,
detail_title,
</if>
</if>
<if
test=
"flashPromotionPrice != null"
>
flash_promotion_price,
</if>
<if
test=
"flashPromotionCount != null"
>
flash_promotion_count,
</if>
<if
test=
"flashPromotionSort != null"
>
flash_promotion_sort,
</if>
<if
test=
"promotionStartTime != null"
>
<if
test=
"promotionStartTime != null"
>
promotion_start_time,
promotion_start_time,
</if>
</if>
...
@@ -363,9 +340,6 @@
...
@@ -363,9 +340,6 @@
<if
test=
"productAttributeCategoryId != null"
>
<if
test=
"productAttributeCategoryId != null"
>
#{productAttributeCategoryId,jdbcType=BIGINT},
#{productAttributeCategoryId,jdbcType=BIGINT},
</if>
</if>
<if
test=
"flashPromotionId != null"
>
#{flashPromotionId,jdbcType=INTEGER},
</if>
<if
test=
"name != null"
>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR},
</if>
</if>
...
@@ -447,15 +421,6 @@
...
@@ -447,15 +421,6 @@
<if
test=
"detailTitle != null"
>
<if
test=
"detailTitle != null"
>
#{detailTitle,jdbcType=VARCHAR},
#{detailTitle,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"flashPromotionPrice != null"
>
#{flashPromotionPrice,jdbcType=DECIMAL},
</if>
<if
test=
"flashPromotionCount != null"
>
#{flashPromotionCount,jdbcType=INTEGER},
</if>
<if
test=
"flashPromotionSort != null"
>
#{flashPromotionSort,jdbcType=INTEGER},
</if>
<if
test=
"promotionStartTime != null"
>
<if
test=
"promotionStartTime != null"
>
#{promotionStartTime,jdbcType=TIMESTAMP},
#{promotionStartTime,jdbcType=TIMESTAMP},
</if>
</if>
...
@@ -512,9 +477,6 @@
...
@@ -512,9 +477,6 @@
<if
test=
"record.productAttributeCategoryId != null"
>
<if
test=
"record.productAttributeCategoryId != null"
>
product_attribute_category_id = #{record.productAttributeCategoryId,jdbcType=BIGINT},
product_attribute_category_id = #{record.productAttributeCategoryId,jdbcType=BIGINT},
</if>
</if>
<if
test=
"record.flashPromotionId != null"
>
flash_promotion_id = #{record.flashPromotionId,jdbcType=INTEGER},
</if>
<if
test=
"record.name != null"
>
<if
test=
"record.name != null"
>
name = #{record.name,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
</if>
</if>
...
@@ -596,15 +558,6 @@
...
@@ -596,15 +558,6 @@
<if
test=
"record.detailTitle != null"
>
<if
test=
"record.detailTitle != null"
>
detail_title = #{record.detailTitle,jdbcType=VARCHAR},
detail_title = #{record.detailTitle,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.flashPromotionPrice != null"
>
flash_promotion_price = #{record.flashPromotionPrice,jdbcType=DECIMAL},
</if>
<if
test=
"record.flashPromotionCount != null"
>
flash_promotion_count = #{record.flashPromotionCount,jdbcType=INTEGER},
</if>
<if
test=
"record.flashPromotionSort != null"
>
flash_promotion_sort = #{record.flashPromotionSort,jdbcType=INTEGER},
</if>
<if
test=
"record.promotionStartTime != null"
>
<if
test=
"record.promotionStartTime != null"
>
promotion_start_time = #{record.promotionStartTime,jdbcType=TIMESTAMP},
promotion_start_time = #{record.promotionStartTime,jdbcType=TIMESTAMP},
</if>
</if>
...
@@ -647,7 +600,6 @@
...
@@ -647,7 +600,6 @@
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
feight_template_id = #{record.feightTemplateId,jdbcType=BIGINT},
feight_template_id = #{record.feightTemplateId,jdbcType=BIGINT},
product_attribute_category_id = #{record.productAttributeCategoryId,jdbcType=BIGINT},
product_attribute_category_id = #{record.productAttributeCategoryId,jdbcType=BIGINT},
flash_promotion_id = #{record.flashPromotionId,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
pic = #{record.pic,jdbcType=VARCHAR},
pic = #{record.pic,jdbcType=VARCHAR},
product_sn = #{record.productSn,jdbcType=VARCHAR},
product_sn = #{record.productSn,jdbcType=VARCHAR},
...
@@ -675,9 +627,6 @@
...
@@ -675,9 +627,6 @@
note = #{record.note,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR},
album_pics = #{record.albumPics,jdbcType=VARCHAR},
album_pics = #{record.albumPics,jdbcType=VARCHAR},
detail_title = #{record.detailTitle,jdbcType=VARCHAR},
detail_title = #{record.detailTitle,jdbcType=VARCHAR},
flash_promotion_price = #{record.flashPromotionPrice,jdbcType=DECIMAL},
flash_promotion_count = #{record.flashPromotionCount,jdbcType=INTEGER},
flash_promotion_sort = #{record.flashPromotionSort,jdbcType=INTEGER},
promotion_start_time = #{record.promotionStartTime,jdbcType=TIMESTAMP},
promotion_start_time = #{record.promotionStartTime,jdbcType=TIMESTAMP},
promotion_end_time = #{record.promotionEndTime,jdbcType=TIMESTAMP},
promotion_end_time = #{record.promotionEndTime,jdbcType=TIMESTAMP},
promotion_per_limit = #{record.promotionPerLimit,jdbcType=INTEGER},
promotion_per_limit = #{record.promotionPerLimit,jdbcType=INTEGER},
...
@@ -699,7 +648,6 @@
...
@@ -699,7 +648,6 @@
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
feight_template_id = #{record.feightTemplateId,jdbcType=BIGINT},
feight_template_id = #{record.feightTemplateId,jdbcType=BIGINT},
product_attribute_category_id = #{record.productAttributeCategoryId,jdbcType=BIGINT},
product_attribute_category_id = #{record.productAttributeCategoryId,jdbcType=BIGINT},
flash_promotion_id = #{record.flashPromotionId,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
pic = #{record.pic,jdbcType=VARCHAR},
pic = #{record.pic,jdbcType=VARCHAR},
product_sn = #{record.productSn,jdbcType=VARCHAR},
product_sn = #{record.productSn,jdbcType=VARCHAR},
...
@@ -727,9 +675,6 @@
...
@@ -727,9 +675,6 @@
note = #{record.note,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR},
album_pics = #{record.albumPics,jdbcType=VARCHAR},
album_pics = #{record.albumPics,jdbcType=VARCHAR},
detail_title = #{record.detailTitle,jdbcType=VARCHAR},
detail_title = #{record.detailTitle,jdbcType=VARCHAR},
flash_promotion_price = #{record.flashPromotionPrice,jdbcType=DECIMAL},
flash_promotion_count = #{record.flashPromotionCount,jdbcType=INTEGER},
flash_promotion_sort = #{record.flashPromotionSort,jdbcType=INTEGER},
promotion_start_time = #{record.promotionStartTime,jdbcType=TIMESTAMP},
promotion_start_time = #{record.promotionStartTime,jdbcType=TIMESTAMP},
promotion_end_time = #{record.promotionEndTime,jdbcType=TIMESTAMP},
promotion_end_time = #{record.promotionEndTime,jdbcType=TIMESTAMP},
promotion_per_limit = #{record.promotionPerLimit,jdbcType=INTEGER},
promotion_per_limit = #{record.promotionPerLimit,jdbcType=INTEGER},
...
@@ -755,9 +700,6 @@
...
@@ -755,9 +700,6 @@
<if
test=
"productAttributeCategoryId != null"
>
<if
test=
"productAttributeCategoryId != null"
>
product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT},
product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT},
</if>
</if>
<if
test=
"flashPromotionId != null"
>
flash_promotion_id = #{flashPromotionId,jdbcType=INTEGER},
</if>
<if
test=
"name != null"
>
<if
test=
"name != null"
>
name = #{name,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
</if>
</if>
...
@@ -839,15 +781,6 @@
...
@@ -839,15 +781,6 @@
<if
test=
"detailTitle != null"
>
<if
test=
"detailTitle != null"
>
detail_title = #{detailTitle,jdbcType=VARCHAR},
detail_title = #{detailTitle,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"flashPromotionPrice != null"
>
flash_promotion_price = #{flashPromotionPrice,jdbcType=DECIMAL},
</if>
<if
test=
"flashPromotionCount != null"
>
flash_promotion_count = #{flashPromotionCount,jdbcType=INTEGER},
</if>
<if
test=
"flashPromotionSort != null"
>
flash_promotion_sort = #{flashPromotionSort,jdbcType=INTEGER},
</if>
<if
test=
"promotionStartTime != null"
>
<if
test=
"promotionStartTime != null"
>
promotion_start_time = #{promotionStartTime,jdbcType=TIMESTAMP},
promotion_start_time = #{promotionStartTime,jdbcType=TIMESTAMP},
</if>
</if>
...
@@ -887,7 +820,6 @@
...
@@ -887,7 +820,6 @@
product_category_id = #{productCategoryId,jdbcType=BIGINT},
product_category_id = #{productCategoryId,jdbcType=BIGINT},
feight_template_id = #{feightTemplateId,jdbcType=BIGINT},
feight_template_id = #{feightTemplateId,jdbcType=BIGINT},
product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT},
product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT},
flash_promotion_id = #{flashPromotionId,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
pic = #{pic,jdbcType=VARCHAR},
pic = #{pic,jdbcType=VARCHAR},
product_sn = #{productSn,jdbcType=VARCHAR},
product_sn = #{productSn,jdbcType=VARCHAR},
...
@@ -915,9 +847,6 @@
...
@@ -915,9 +847,6 @@
note = #{note,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR},
album_pics = #{albumPics,jdbcType=VARCHAR},
album_pics = #{albumPics,jdbcType=VARCHAR},
detail_title = #{detailTitle,jdbcType=VARCHAR},
detail_title = #{detailTitle,jdbcType=VARCHAR},
flash_promotion_price = #{flashPromotionPrice,jdbcType=DECIMAL},
flash_promotion_count = #{flashPromotionCount,jdbcType=INTEGER},
flash_promotion_sort = #{flashPromotionSort,jdbcType=INTEGER},
promotion_start_time = #{promotionStartTime,jdbcType=TIMESTAMP},
promotion_start_time = #{promotionStartTime,jdbcType=TIMESTAMP},
promotion_end_time = #{promotionEndTime,jdbcType=TIMESTAMP},
promotion_end_time = #{promotionEndTime,jdbcType=TIMESTAMP},
promotion_per_limit = #{promotionPerLimit,jdbcType=INTEGER},
promotion_per_limit = #{promotionPerLimit,jdbcType=INTEGER},
...
@@ -936,7 +865,6 @@
...
@@ -936,7 +865,6 @@
product_category_id = #{productCategoryId,jdbcType=BIGINT},
product_category_id = #{productCategoryId,jdbcType=BIGINT},
feight_template_id = #{feightTemplateId,jdbcType=BIGINT},
feight_template_id = #{feightTemplateId,jdbcType=BIGINT},
product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT},
product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT},
flash_promotion_id = #{flashPromotionId,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
pic = #{pic,jdbcType=VARCHAR},
pic = #{pic,jdbcType=VARCHAR},
product_sn = #{productSn,jdbcType=VARCHAR},
product_sn = #{productSn,jdbcType=VARCHAR},
...
@@ -964,9 +892,6 @@
...
@@ -964,9 +892,6 @@
note = #{note,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR},
album_pics = #{albumPics,jdbcType=VARCHAR},
album_pics = #{albumPics,jdbcType=VARCHAR},
detail_title = #{detailTitle,jdbcType=VARCHAR},
detail_title = #{detailTitle,jdbcType=VARCHAR},
flash_promotion_price = #{flashPromotionPrice,jdbcType=DECIMAL},
flash_promotion_count = #{flashPromotionCount,jdbcType=INTEGER},
flash_promotion_sort = #{flashPromotionSort,jdbcType=INTEGER},
promotion_start_time = #{promotionStartTime,jdbcType=TIMESTAMP},
promotion_start_time = #{promotionStartTime,jdbcType=TIMESTAMP},
promotion_end_time = #{promotionEndTime,jdbcType=TIMESTAMP},
promotion_end_time = #{promotionEndTime,jdbcType=TIMESTAMP},
promotion_per_limit = #{promotionPerLimit,jdbcType=INTEGER},
promotion_per_limit = #{promotionPerLimit,jdbcType=INTEGER},
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionMapper.xml
View file @
2f79e06b
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.macro.mall.mapper.SmsFlashPromotionMapper"
>
<mapper
namespace=
"com.macro.mall.mapper.SmsFlashPromotionMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.SmsFlashPromotion"
>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.SmsFlashPromotion"
>
<id
column=
"id"
jdbcType=
"INT
EGER
"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"
BIG
INT"
property=
"id"
/>
<result
column=
"title"
jdbcType=
"VARCHAR"
property=
"title"
/>
<result
column=
"title"
jdbcType=
"VARCHAR"
property=
"title"
/>
<result
column=
"start_
tim
e"
jdbcType=
"
TIMESTAMP
"
property=
"start
Tim
e"
/>
<result
column=
"start_
dat
e"
jdbcType=
"
DATE
"
property=
"start
Dat
e"
/>
<result
column=
"end_
tim
e"
jdbcType=
"
TIMESTAMP
"
property=
"end
Tim
e"
/>
<result
column=
"end_
dat
e"
jdbcType=
"
DATE
"
property=
"end
Dat
e"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"
time_na
me"
jdbcType=
"
VARCHAR
"
property=
"
timeNa
me"
/>
<result
column=
"
create_ti
me"
jdbcType=
"
TIMESTAMP
"
property=
"
createTi
me"
/>
</resultMap>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<sql
id=
"Example_Where_Clause"
>
<where>
<where>
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
</where>
</where>
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, title, start_
tim
e, end_
tim
e, status,
time_na
me
id, title, start_
dat
e, end_
dat
e, status,
create_ti
me
</sql>
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.SmsFlashPromotionExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.SmsFlashPromotionExample"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -84,15 +84,15 @@
...
@@ -84,15 +84,15 @@
order by ${orderByClause}
order by ${orderByClause}
</if>
</if>
</select>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.
Integer
"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.
Long
"
resultMap=
"BaseResultMap"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from sms_flash_promotion
from sms_flash_promotion
where id = #{id,jdbcType=INT
EGER
}
where id = #{id,jdbcType=
BIG
INT}
</select>
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.
Integer
"
>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.
Long
"
>
delete from sms_flash_promotion
delete from sms_flash_promotion
where id = #{id,jdbcType=INT
EGER
}
where id = #{id,jdbcType=
BIG
INT}
</delete>
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.SmsFlashPromotionExample"
>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.SmsFlashPromotionExample"
>
delete from sms_flash_promotion
delete from sms_flash_promotion
...
@@ -101,16 +101,16 @@
...
@@ -101,16 +101,16 @@
</if>
</if>
</delete>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsFlashPromotion"
>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsFlashPromotion"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.
Integer
"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.
Long
"
>
SELECT LAST_INSERT_ID()
SELECT LAST_INSERT_ID()
</selectKey>
</selectKey>
insert into sms_flash_promotion (title, start_
tim
e, end_
tim
e,
insert into sms_flash_promotion (title, start_
dat
e, end_
dat
e,
status,
time_na
me)
status,
create_ti
me)
values (#{title,jdbcType=VARCHAR}, #{start
Tim
e,jdbcType=
TIMESTAMP
}, #{end
Tim
e,jdbcType=
TIMESTAMP
},
values (#{title,jdbcType=VARCHAR}, #{start
Dat
e,jdbcType=
DATE
}, #{end
Dat
e,jdbcType=
DATE
},
#{status,jdbcType=INTEGER}, #{
timeNa
me,jdbcType=
VARCHAR
})
#{status,jdbcType=INTEGER}, #{
createTi
me,jdbcType=
TIMESTAMP
})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsFlashPromotion"
>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsFlashPromotion"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.
Integer
"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.
Long
"
>
SELECT LAST_INSERT_ID()
SELECT LAST_INSERT_ID()
</selectKey>
</selectKey>
insert into sms_flash_promotion
insert into sms_flash_promotion
...
@@ -118,34 +118,34 @@
...
@@ -118,34 +118,34 @@
<if
test=
"title != null"
>
<if
test=
"title != null"
>
title,
title,
</if>
</if>
<if
test=
"start
Tim
e != null"
>
<if
test=
"start
Dat
e != null"
>
start_
tim
e,
start_
dat
e,
</if>
</if>
<if
test=
"end
Tim
e != null"
>
<if
test=
"end
Dat
e != null"
>
end_
tim
e,
end_
dat
e,
</if>
</if>
<if
test=
"status != null"
>
<if
test=
"status != null"
>
status,
status,
</if>
</if>
<if
test=
"
timeNa
me != null"
>
<if
test=
"
createTi
me != null"
>
time_na
me,
create_ti
me,
</if>
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"title != null"
>
<if
test=
"title != null"
>
#{title,jdbcType=VARCHAR},
#{title,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"start
Tim
e != null"
>
<if
test=
"start
Dat
e != null"
>
#{start
Tim
e,jdbcType=
TIMESTAMP
},
#{start
Dat
e,jdbcType=
DATE
},
</if>
</if>
<if
test=
"end
Tim
e != null"
>
<if
test=
"end
Dat
e != null"
>
#{end
Tim
e,jdbcType=
TIMESTAMP
},
#{end
Dat
e,jdbcType=
DATE
},
</if>
</if>
<if
test=
"status != null"
>
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
#{status,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
timeNa
me != null"
>
<if
test=
"
createTi
me != null"
>
#{
timeNa
me,jdbcType=
VARCHAR
},
#{
createTi
me,jdbcType=
TIMESTAMP
},
</if>
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -159,22 +159,22 @@
...
@@ -159,22 +159,22 @@
update sms_flash_promotion
update sms_flash_promotion
<set>
<set>
<if
test=
"record.id != null"
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INT
EGER
},
id = #{record.id,jdbcType=
BIG
INT},
</if>
</if>
<if
test=
"record.title != null"
>
<if
test=
"record.title != null"
>
title = #{record.title,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.start
Tim
e != null"
>
<if
test=
"record.start
Dat
e != null"
>
start_
tim
e = #{record.start
Tim
e,jdbcType=
TIMESTAMP
},
start_
dat
e = #{record.start
Dat
e,jdbcType=
DATE
},
</if>
</if>
<if
test=
"record.end
Tim
e != null"
>
<if
test=
"record.end
Dat
e != null"
>
end_
tim
e = #{record.end
Tim
e,jdbcType=
TIMESTAMP
},
end_
dat
e = #{record.end
Dat
e,jdbcType=
DATE
},
</if>
</if>
<if
test=
"record.status != null"
>
<if
test=
"record.status != null"
>
status = #{record.status,jdbcType=INTEGER},
status = #{record.status,jdbcType=INTEGER},
</if>
</if>
<if
test=
"record.
timeNa
me != null"
>
<if
test=
"record.
createTi
me != null"
>
time_na
me = #{record.
timeNa
me,jdbcType=
VARCHAR
},
create_ti
me = #{record.
createTi
me,jdbcType=
TIMESTAMP
},
</if>
</if>
</set>
</set>
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
...
@@ -183,12 +183,12 @@
...
@@ -183,12 +183,12 @@
</update>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<update
id=
"updateByExample"
parameterType=
"map"
>
update sms_flash_promotion
update sms_flash_promotion
set id = #{record.id,jdbcType=INT
EGER
},
set id = #{record.id,jdbcType=
BIG
INT},
title = #{record.title,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
start_
tim
e = #{record.start
Tim
e,jdbcType=
TIMESTAMP
},
start_
dat
e = #{record.start
Dat
e,jdbcType=
DATE
},
end_
tim
e = #{record.end
Tim
e,jdbcType=
TIMESTAMP
},
end_
dat
e = #{record.end
Dat
e,jdbcType=
DATE
},
status = #{record.status,jdbcType=INTEGER},
status = #{record.status,jdbcType=INTEGER},
time_na
me = #{record.
timeNa
me,jdbcType=
VARCHAR
}
create_ti
me = #{record.
createTi
me,jdbcType=
TIMESTAMP
}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</if>
...
@@ -199,28 +199,28 @@
...
@@ -199,28 +199,28 @@
<if
test=
"title != null"
>
<if
test=
"title != null"
>
title = #{title,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"start
Tim
e != null"
>
<if
test=
"start
Dat
e != null"
>
start_
tim
e = #{start
Tim
e,jdbcType=
TIMESTAMP
},
start_
dat
e = #{start
Dat
e,jdbcType=
DATE
},
</if>
</if>
<if
test=
"end
Tim
e != null"
>
<if
test=
"end
Dat
e != null"
>
end_
tim
e = #{end
Tim
e,jdbcType=
TIMESTAMP
},
end_
dat
e = #{end
Dat
e,jdbcType=
DATE
},
</if>
</if>
<if
test=
"status != null"
>
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
timeNa
me != null"
>
<if
test=
"
createTi
me != null"
>
time_name = #{timeNa
me,jdbcType=
VARCHAR
},
create_time = #{createTi
me,jdbcType=
TIMESTAMP
},
</if>
</if>
</set>
</set>
where id = #{id,jdbcType=INT
EGER
}
where id = #{id,jdbcType=
BIG
INT}
</update>
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.SmsFlashPromotion"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.SmsFlashPromotion"
>
update sms_flash_promotion
update sms_flash_promotion
set title = #{title,jdbcType=VARCHAR},
set title = #{title,jdbcType=VARCHAR},
start_
tim
e = #{start
Tim
e,jdbcType=
TIMESTAMP
},
start_
dat
e = #{start
Dat
e,jdbcType=
DATE
},
end_
tim
e = #{end
Tim
e,jdbcType=
TIMESTAMP
},
end_
dat
e = #{end
Dat
e,jdbcType=
DATE
},
status = #{status,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
time_name = #{timeNa
me,jdbcType=
VARCHAR
}
create_time = #{createTi
me,jdbcType=
TIMESTAMP
}
where id = #{id,jdbcType=INT
EGER
}
where id = #{id,jdbcType=
BIG
INT}
</update>
</update>
</mapper>
</mapper>
\ No newline at end of file
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.xml
0 → 100644
View file @
2f79e06b
<?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.SmsFlashPromotionProductRelationMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.SmsFlashPromotionProductRelation"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"flash_promotion_id"
jdbcType=
"BIGINT"
property=
"flashPromotionId"
/>
<result
column=
"flash_promotion_session_id"
jdbcType=
"BIGINT"
property=
"flashPromotionSessionId"
/>
<result
column=
"product_id"
jdbcType=
"BIGINT"
property=
"productId"
/>
<result
column=
"flash_promotion_price"
jdbcType=
"DECIMAL"
property=
"flashPromotionPrice"
/>
<result
column=
"flash_promotion_count"
jdbcType=
"INTEGER"
property=
"flashPromotionCount"
/>
<result
column=
"flash_promotion_limit"
jdbcType=
"INTEGER"
property=
"flashPromotionLimit"
/>
<result
column=
"sort"
jdbcType=
"INTEGER"
property=
"sort"
/>
</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, flash_promotion_id, flash_promotion_session_id, product_id, flash_promotion_price,
flash_promotion_count, flash_promotion_limit, sort
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.SmsFlashPromotionProductRelationExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from sms_flash_promotion_product_relation
<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 sms_flash_promotion_product_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from sms_flash_promotion_product_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.SmsFlashPromotionProductRelationExample"
>
delete from sms_flash_promotion_product_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsFlashPromotionProductRelation"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion_product_relation (flash_promotion_id, flash_promotion_session_id,
product_id, flash_promotion_price, flash_promotion_count,
flash_promotion_limit, sort)
values (#{flashPromotionId,jdbcType=BIGINT}, #{flashPromotionSessionId,jdbcType=BIGINT},
#{productId,jdbcType=BIGINT}, #{flashPromotionPrice,jdbcType=DECIMAL}, #{flashPromotionCount,jdbcType=INTEGER},
#{flashPromotionLimit,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsFlashPromotionProductRelation"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion_product_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"flashPromotionId != null"
>
flash_promotion_id,
</if>
<if
test=
"flashPromotionSessionId != null"
>
flash_promotion_session_id,
</if>
<if
test=
"productId != null"
>
product_id,
</if>
<if
test=
"flashPromotionPrice != null"
>
flash_promotion_price,
</if>
<if
test=
"flashPromotionCount != null"
>
flash_promotion_count,
</if>
<if
test=
"flashPromotionLimit != null"
>
flash_promotion_limit,
</if>
<if
test=
"sort != null"
>
sort,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"flashPromotionId != null"
>
#{flashPromotionId,jdbcType=BIGINT},
</if>
<if
test=
"flashPromotionSessionId != null"
>
#{flashPromotionSessionId,jdbcType=BIGINT},
</if>
<if
test=
"productId != null"
>
#{productId,jdbcType=BIGINT},
</if>
<if
test=
"flashPromotionPrice != null"
>
#{flashPromotionPrice,jdbcType=DECIMAL},
</if>
<if
test=
"flashPromotionCount != null"
>
#{flashPromotionCount,jdbcType=INTEGER},
</if>
<if
test=
"flashPromotionLimit != null"
>
#{flashPromotionLimit,jdbcType=INTEGER},
</if>
<if
test=
"sort != null"
>
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.SmsFlashPromotionProductRelationExample"
resultType=
"java.lang.Integer"
>
select count(*) from sms_flash_promotion_product_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update sms_flash_promotion_product_relation
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.flashPromotionId != null"
>
flash_promotion_id = #{record.flashPromotionId,jdbcType=BIGINT},
</if>
<if
test=
"record.flashPromotionSessionId != null"
>
flash_promotion_session_id = #{record.flashPromotionSessionId,jdbcType=BIGINT},
</if>
<if
test=
"record.productId != null"
>
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if
test=
"record.flashPromotionPrice != null"
>
flash_promotion_price = #{record.flashPromotionPrice,jdbcType=DECIMAL},
</if>
<if
test=
"record.flashPromotionCount != null"
>
flash_promotion_count = #{record.flashPromotionCount,jdbcType=INTEGER},
</if>
<if
test=
"record.flashPromotionLimit != null"
>
flash_promotion_limit = #{record.flashPromotionLimit,jdbcType=INTEGER},
</if>
<if
test=
"record.sort != null"
>
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update sms_flash_promotion_product_relation
set id = #{record.id,jdbcType=BIGINT},
flash_promotion_id = #{record.flashPromotionId,jdbcType=BIGINT},
flash_promotion_session_id = #{record.flashPromotionSessionId,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
flash_promotion_price = #{record.flashPromotionPrice,jdbcType=DECIMAL},
flash_promotion_count = #{record.flashPromotionCount,jdbcType=INTEGER},
flash_promotion_limit = #{record.flashPromotionLimit,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.SmsFlashPromotionProductRelation"
>
update sms_flash_promotion_product_relation
<set>
<if
test=
"flashPromotionId != null"
>
flash_promotion_id = #{flashPromotionId,jdbcType=BIGINT},
</if>
<if
test=
"flashPromotionSessionId != null"
>
flash_promotion_session_id = #{flashPromotionSessionId,jdbcType=BIGINT},
</if>
<if
test=
"productId != null"
>
product_id = #{productId,jdbcType=BIGINT},
</if>
<if
test=
"flashPromotionPrice != null"
>
flash_promotion_price = #{flashPromotionPrice,jdbcType=DECIMAL},
</if>
<if
test=
"flashPromotionCount != null"
>
flash_promotion_count = #{flashPromotionCount,jdbcType=INTEGER},
</if>
<if
test=
"flashPromotionLimit != null"
>
flash_promotion_limit = #{flashPromotionLimit,jdbcType=INTEGER},
</if>
<if
test=
"sort != null"
>
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.SmsFlashPromotionProductRelation"
>
update sms_flash_promotion_product_relation
set flash_promotion_id = #{flashPromotionId,jdbcType=BIGINT},
flash_promotion_session_id = #{flashPromotionSessionId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=BIGINT},
flash_promotion_price = #{flashPromotionPrice,jdbcType=DECIMAL},
flash_promotion_count = #{flashPromotionCount,jdbcType=INTEGER},
flash_promotion_limit = #{flashPromotionLimit,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.xml
0 → 100644
View file @
2f79e06b
<?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.SmsFlashPromotionSessionMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.SmsFlashPromotionSession"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"start_time"
jdbcType=
"TIME"
property=
"startTime"
/>
<result
column=
"end_time"
jdbcType=
"TIME"
property=
"endTime"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
</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, name, start_time, end_time, status, create_time
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.SmsFlashPromotionSessionExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from sms_flash_promotion_session
<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 sms_flash_promotion_session
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from sms_flash_promotion_session
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.SmsFlashPromotionSessionExample"
>
delete from sms_flash_promotion_session
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsFlashPromotionSession"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion_session (name, start_time, end_time,
status, create_time)
values (#{name,jdbcType=VARCHAR}, #{startTime,jdbcType=TIME}, #{endTime,jdbcType=TIME},
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsFlashPromotionSession"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion_session
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"startTime != null"
>
start_time,
</if>
<if
test=
"endTime != null"
>
end_time,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"startTime != null"
>
#{startTime,jdbcType=TIME},
</if>
<if
test=
"endTime != null"
>
#{endTime,jdbcType=TIME},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.SmsFlashPromotionSessionExample"
resultType=
"java.lang.Integer"
>
select count(*) from sms_flash_promotion_session
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update sms_flash_promotion_session
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.name != null"
>
name = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.startTime != null"
>
start_time = #{record.startTime,jdbcType=TIME},
</if>
<if
test=
"record.endTime != null"
>
end_time = #{record.endTime,jdbcType=TIME},
</if>
<if
test=
"record.status != null"
>
status = #{record.status,jdbcType=INTEGER},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update sms_flash_promotion_session
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=TIME},
end_time = #{record.endTime,jdbcType=TIME},
status = #{record.status,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.SmsFlashPromotionSession"
>
update sms_flash_promotion_session
<set>
<if
test=
"name != null"
>
name = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"startTime != null"
>
start_time = #{startTime,jdbcType=TIME},
</if>
<if
test=
"endTime != null"
>
end_time = #{endTime,jdbcType=TIME},
</if>
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.SmsFlashPromotionSession"
>
update sms_flash_promotion_session
set name = #{name,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=TIME},
end_time = #{endTime,jdbcType=TIME},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}
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