Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
7bcff6ba
Commit
7bcff6ba
authored
Jul 26, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
藏家商品转团购
parent
cde2136e
Changes
37
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
9003 additions
and
51 deletions
+9003
-51
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysGroupPurchaseServiceImpl.java
...a/com/wwdz/ch/admin/impl/SysGroupPurchaseServiceImpl.java
+91
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
...va/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
+47
-7
ch-admin-api/src/main/java/com/wwdz/ch/admin/service/SysGroupPurchaseService.java
...va/com/wwdz/ch/admin/service/SysGroupPurchaseService.java
+14
-0
ch-core/src/main/java/com/wwdz/ch/core/consts/CommConsts.java
...ore/src/main/java/com/wwdz/ch/core/consts/CommConsts.java
+6
-0
ch-core/src/main/java/com/wwdz/ch/core/consts/DistributionEnum.java
...c/main/java/com/wwdz/ch/core/consts/DistributionEnum.java
+3
-0
ch-core/src/main/java/com/wwdz/ch/core/consts/GroupPurchaseEnum.java
.../main/java/com/wwdz/ch/core/consts/GroupPurchaseEnum.java
+73
-0
ch-core/src/main/java/com/wwdz/ch/core/entity/SupplierItemVo.java
...src/main/java/com/wwdz/ch/core/entity/SupplierItemVo.java
+22
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/GroupPurchaseConfigDao.java
...m/wwdz/ch/db/dao/distribution/GroupPurchaseConfigDao.java
+48
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/GroupPurchaseDiscountDao.java
...wwdz/ch/db/dao/distribution/GroupPurchaseDiscountDao.java
+28
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/GroupPurchaseRecordDao.java
...m/wwdz/ch/db/dao/distribution/GroupPurchaseRecordDao.java
+37
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/GroupPurchaseConfig.java
...m/wwdz/ch/db/domain/distribution/GroupPurchaseConfig.java
+341
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/GroupPurchaseConfigExample.java
...ch/db/domain/distribution/GroupPurchaseConfigExample.java
+2019
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/GroupPurchaseDiscount.java
...wwdz/ch/db/domain/distribution/GroupPurchaseDiscount.java
+285
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/GroupPurchaseDiscountExample.java
.../db/domain/distribution/GroupPurchaseDiscountExample.java
+1228
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/GroupPurchaseRecord.java
...m/wwdz/ch/db/domain/distribution/GroupPurchaseRecord.java
+347
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/GroupPurchaseRecordExample.java
...ch/db/domain/distribution/GroupPurchaseRecordExample.java
+2201
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/CollectionShareRecordRequestDto.java
...request/distribution/CollectionShareRecordRequestDto.java
+1
-1
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/GroupPurchaseRecordRequestDto.java
...o/request/distribution/GroupPurchaseRecordRequestDto.java
+77
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/SupplierItemRequestDto.java
...h/db/dto/request/distribution/SupplierItemRequestDto.java
+31
-1
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/GroupPurchaseConfigDaoImpl.java
...z/ch/db/impl/distribution/GroupPurchaseConfigDaoImpl.java
+56
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/GroupPurchaseDiscountDaoImpl.java
...ch/db/impl/distribution/GroupPurchaseDiscountDaoImpl.java
+48
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/GroupPurchaseRecordDaoImpl.java
...z/ch/db/impl/distribution/GroupPurchaseRecordDaoImpl.java
+61
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/GroupPurchaseConfigMapper.java
.../ch/db/mapper/distribution/GroupPurchaseConfigMapper.java
+69
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/GroupPurchaseDiscountMapper.java
...h/db/mapper/distribution/GroupPurchaseDiscountMapper.java
+69
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/GroupPurchaseRecordMapper.java
.../ch/db/mapper/distribution/GroupPurchaseRecordMapper.java
+72
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/GroupPurchaseConfigMapper.xml
...z/ch/db/mapper/distribution/GroupPurchaseConfigMapper.xml
+434
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/GroupPurchaseDiscountMapper.xml
...ch/db/mapper/distribution/GroupPurchaseDiscountMapper.xml
+338
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/GroupPurchaseRecordMapper.xml
...z/ch/db/mapper/distribution/GroupPurchaseRecordMapper.xml
+458
-0
ch-dao/src/main/resources/generatorConfig_new.xml
ch-dao/src/main/resources/generatorConfig_new.xml
+4
-4
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/WxPayCallbackController.java
...main/java/com/wwdz/ch/wx/api/WxPayCallbackController.java
+129
-35
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/CollectionShareRecordServiceImpl.java
...x/impl/distribution/CollectionShareRecordServiceImpl.java
+2
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
...ch/wx/impl/distribution/DistributionOrderServiceImpl.java
+56
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/GroupPurchaseServiceImpl.java
...wdz/ch/wx/impl/distribution/GroupPurchaseServiceImpl.java
+205
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+57
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/DistributionOrderService.java
.../ch/wx/service/distribution/DistributionOrderService.java
+9
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/GroupPurchaseService.java
...wwdz/ch/wx/service/distribution/GroupPurchaseService.java
+28
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/SupplierItemService.java
.../wwdz/ch/wx/service/distribution/SupplierItemService.java
+9
-0
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysGroupPurchaseServiceImpl.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.admin.impl
;
import
com.wwdz.ch.admin.service.SysGroupPurchaseService
;
import
com.wwdz.ch.core.consts.AuctionEnum
;
import
com.wwdz.ch.core.consts.DistributionEnum
;
import
com.wwdz.ch.core.consts.GroupPurchaseEnum
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.db.dao.distribution.GroupPurchaseConfigDao
;
import
com.wwdz.ch.db.dao.distribution.GroupPurchaseDiscountDao
;
import
com.wwdz.ch.db.dao.distribution.SupplierItemDao
;
import
com.wwdz.ch.db.domain.distribution.AuctionConfig
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseConfig
;
import
com.wwdz.ch.db.domain.distribution.SupplierItem
;
import
com.wwdz.ch.db.dto.request.distribution.SupplierItemRequestDto
;
import
com.xxdxxs.utils.DateUtils
;
import
com.xxdxxs.utils.EntityMapper
;
import
com.xxdxxs.utils.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
java.time.Duration
;
import
java.time.Instant
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.List
;
@Service
public
class
SysGroupPurchaseServiceImpl
implements
SysGroupPurchaseService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
SysGroupPurchaseServiceImpl
.
class
);
@Autowired
GroupPurchaseDiscountDao
groupPurchaseDiscountDao
;
@Autowired
GroupPurchaseConfigDao
groupPurchaseConfigDao
;
@Autowired
SupplierItemDao
supplierItemDao
;
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Result
collectorItemConvertToGroupPurchase
(
SupplierItemRequestDto
dto
)
{
try
{
Date
now
=
new
Date
();
List
<
String
>
idList
=
Arrays
.
asList
(
dto
.
getItemIdsStr
().
split
(
","
));
for
(
String
id
:
idList
)
{
long
itemId
=
Long
.
valueOf
(
id
);
SupplierItem
oldItem
=
supplierItemDao
.
findById
(
itemId
);
if
(
supplierItemDao
.
isSupplierIdExisted
(
itemId
))
{
continue
;
}
//复制一份藏家藏品的数据,设置为团购品
SupplierItem
supplierItem
=
new
SupplierItem
();
EntityMapper
.
copyAttribute
(
oldItem
,
supplierItem
);
//该字段设置为原来藏品的id,用来溯源该拍品是由哪个藏品转换而来
supplierItem
.
setSupplierId
(
itemId
);
supplierItem
.
setId
(
null
);
supplierItem
.
setStock
(
oldItem
.
getStock
());
supplierItem
.
setIsOnSale
(
false
);
supplierItem
.
setIsDeleted
(
false
);
supplierItem
.
setCreateTime
(
now
);
supplierItem
.
setUpdateTime
(
now
);
supplierItem
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
GROUP_PURCHASE
.
getCode
());
supplierItem
.
setIsAbleSale
(
true
);
long
newItemId
=
supplierItemDao
.
insert
(
supplierItem
);
//新增默认团购配置
GroupPurchaseConfig
groupPurchaseConfig
=
new
GroupPurchaseConfig
();
groupPurchaseConfig
.
setItemId
(
newItemId
);
groupPurchaseConfig
.
setCreatorId
(
oldItem
.
getCreatorId
());
groupPurchaseConfig
.
setState
(
GroupPurchaseEnum
.
ItemStateEnum
.
NOT_START
.
getCode
());
groupPurchaseConfig
.
setIsValid
(
true
);
groupPurchaseConfig
.
setIsDeal
(
false
);
groupPurchaseConfig
.
setCreateTime
(
now
);
groupPurchaseConfig
.
setUpdateTime
(
now
);
groupPurchaseConfigDao
.
insert
(
groupPurchaseConfig
);
}
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"藏品上团购失败 error : {}"
,
e
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
}
return
Result
.
failed
();
}
}
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
View file @
7bcff6ba
...
...
@@ -36,10 +36,7 @@ import java.math.BigDecimal;
import
java.net.URL
;
import
java.time.Duration
;
import
java.time.Instant
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.*
;
import
java.util.stream.Collectors
;
@Service
...
...
@@ -89,6 +86,12 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
@Autowired
SpecialPerformanceConfigDao
specialPerformanceConfigDao
;
@Autowired
GroupPurchaseConfigDao
groupPurchaseConfigDao
;
@Autowired
GroupPurchaseDiscountDao
groupPurchaseDiscountDao
;
@Override
@Transactional
public
Result
create
(
SupplierItemRequestDto
dto
)
{
...
...
@@ -342,6 +345,16 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
supplierItemVo
.
setStartPrice
(
PriceUtil
.
convertPriceFenToYuan
(
auctionConfig
.
getStartPrice
()));
supplierItemVo
.
setAddExtent
(
PriceUtil
.
convertPriceFenToYuan
(
auctionConfig
.
getAddExtent
()));
supplierItemVo
.
setEstimatedPrice
(
PriceUtil
.
convertPriceFenToYuan
(
auctionConfig
.
getEstimatedPrice
()));
}
else
if
(
supplierItem
.
getType
()
==
DistributionEnum
.
DistributionTypeEnum
.
GROUP_PURCHASE
.
getCode
())
{
//团购商品查询相关配置和优惠信息
GroupPurchaseConfig
groupPurchaseConfig
=
groupPurchaseConfigDao
.
findByItemId
(
itemId
);
supplierItemVo
.
setSalePrice
(
PriceUtil
.
convertPriceFenToYuan
(
groupPurchaseConfig
.
getPrice
()));
supplierItemVo
.
setDeposit
(
PriceUtil
.
convertPriceFenToYuan
(
groupPurchaseConfig
.
getDeposit
()));
supplierItemVo
.
setGroupPurchaseStartTime
(
DateUtils
.
toString
(
groupPurchaseConfig
.
getStartTime
()));
supplierItemVo
.
setGroupPurchaseEndTime
(
DateUtils
.
toString
(
groupPurchaseConfig
.
getEndTime
()));
List
<
GroupPurchaseDiscount
>
discountList
=
groupPurchaseDiscountDao
.
findByItemId
(
itemId
);
supplierItemVo
.
setDiscountList
(
discountList
);
}
return
Result
.
success
(
supplierItemVo
);
}
catch
(
Exception
e
)
{
...
...
@@ -378,10 +391,37 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
auctionConfig
.
setIsDeal
(
false
);
}
auctionConfigDao
.
update
(
auctionConfig
);
//调整专场里商品的当前价
// List<SpecialPerformanceConfig> specialPerformanceConfigList = specialPerformanceConfigDao.findList();
// specialPerformanceConfigDao.update();
}
else
if
(
dto
.
getType
()
==
DistributionEnum
.
DistributionTypeEnum
.
GROUP_PURCHASE
.
getCode
())
{
//设置团购商品
GroupPurchaseConfig
groupPurchaseConfig
=
groupPurchaseConfigDao
.
findByItemId
(
dto
.
getId
());
groupPurchaseConfig
.
setPrice
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getSalePrice
()));
groupPurchaseConfig
.
setDeposit
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getDeposit
()));
groupPurchaseConfig
.
setSupplyPrice
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getSupplyPrice
()));
groupPurchaseConfig
.
setStartTime
(
DateUtils
.
parseString
(
dto
.
getGroupPurchaseStartTime
()));
groupPurchaseConfig
.
setEndTime
(
DateUtils
.
parseString
(
dto
.
getGroupPurchaseEndTime
()));
groupPurchaseConfigDao
.
update
(
groupPurchaseConfig
);
//设置团购商品优惠
//先删除之前的优惠信息,再插入新的
if
(
groupPurchaseDiscountDao
.
isExisted
(
dto
.
getId
()))
{
groupPurchaseDiscountDao
.
delete
(
dto
.
getId
());
}
String
discountJson
=
dto
.
getDiscountJson
();
List
<
Map
<
String
,
Object
>>
list
=
JsonUtils
.
toMapList
(
discountJson
);
for
(
Map
map
:
list
)
{
int
requireNum
=
Integer
.
valueOf
(
map
.
get
(
"requireNum"
).
toString
());
String
rebate
=
map
.
get
(
"rebate"
).
toString
();
GroupPurchaseDiscount
groupPurchaseDiscount
=
new
GroupPurchaseDiscount
();
groupPurchaseDiscount
.
setItemId
(
dto
.
getId
());
groupPurchaseDiscount
.
setCreateTime
(
new
Date
());
groupPurchaseDiscount
.
setUpdateTime
(
new
Date
());
groupPurchaseDiscount
.
setRequireNum
(
requireNum
);
groupPurchaseDiscount
.
setRebate
(
new
BigDecimal
(
rebate
));
groupPurchaseDiscount
.
setState
(
GroupPurchaseEnum
.
StateEnum
.
VALID
.
getCode
());
groupPurchaseDiscountDao
.
insert
(
groupPurchaseDiscount
);
}
}
long
oldDistributionPrice
=
oldSupplierItem
.
getDistributionPrice
();
if
(
oldDistributionPrice
!=
PriceUtil
.
convertPriceFromStr
(
dto
.
getDistributionPrice
()))
{
//把该商品所关联的所有分享链接都改为无效
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/service/SysGroupPurchaseService.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.admin.service
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.distribution.SupplierItemRequestDto
;
public
interface
SysGroupPurchaseService
{
/**
* 用户藏品上团购
* @param dto
* @return
*/
Result
collectorItemConvertToGroupPurchase
(
SupplierItemRequestDto
dto
);
}
ch-core/src/main/java/com/wwdz/ch/core/consts/CommConsts.java
View file @
7bcff6ba
...
...
@@ -88,6 +88,12 @@ public interface CommConsts {
*/
public
final
static
String
SETTLEMENT_PREFIX
=
"ST"
;
/**
* 团购支付定金交易号前缀
*/
public
final
static
String
GROUPPURCHASE_DEPOSIT_PREFIX
=
"GP"
;
/**
* 平台收货地址
*/
...
...
ch-core/src/main/java/com/wwdz/ch/core/consts/DistributionEnum.java
View file @
7bcff6ba
...
...
@@ -7,6 +7,7 @@ public class DistributionEnum {
*/
public
enum
DistributionOrderStateEnum
{
PRE_PAY
(
1
,
"待付款"
),
PRE_SALE
(
5
,
"预售中"
),
PRE_SEND
(
10
,
"待发货"
),
PRE_SIGNED
(
20
,
"待收货"
),
AFTER_SALE
(
30
,
"售后中"
),
...
...
@@ -55,6 +56,7 @@ public class DistributionEnum {
COLLECT
(
3
,
"藏品"
),
DISCOUNT
(
4
,
"折扣品"
),
AUCTION_PERFORMANCE
(
5
,
"竞拍专场"
),
GROUP_PURCHASE
(
6
,
"团购"
),
;
private
int
code
;
...
...
@@ -169,6 +171,7 @@ public class DistributionEnum {
PAGE
(
2
,
"个人藏馆"
),
SYSTEM_ITEM
(
3
,
"平台藏品"
),
COLLECTOR_AUCTION_ITEM
(
4
,
"藏家拍卖品"
),
GROUPPURASE_ITEM
(
5
,
"团购商品"
),
;
private
int
code
;
...
...
ch-core/src/main/java/com/wwdz/ch/core/consts/GroupPurchaseEnum.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.core.consts
;
/**
* 团购相关的枚举
*/
public
class
GroupPurchaseEnum
{
public
enum
StateEnum
{
INVALID
(
0
,
"无效"
),
VALID
(
1
,
"有效"
),
;
private
int
code
;
private
String
des
;
StateEnum
(
int
code
,
String
des
)
{
this
.
code
=
code
;
this
.
des
=
des
;
}
public
static
String
getNameByCode
(
int
code
)
{
for
(
GroupPurchaseEnum
.
StateEnum
stateEnum
:
GroupPurchaseEnum
.
StateEnum
.
values
())
{
if
(
code
==
stateEnum
.
getCode
())
{
return
stateEnum
.
getDes
();
}
}
return
null
;
}
public
int
getCode
()
{
return
code
;
}
public
String
getDes
()
{
return
des
;
}
}
public
enum
ItemStateEnum
{
NOT_START
(
0
,
"未开始"
),
PROCESSING
(
1
,
"进行中"
),
END
(
2
,
"已结束"
),
;
private
int
code
;
private
String
des
;
ItemStateEnum
(
int
code
,
String
des
)
{
this
.
code
=
code
;
this
.
des
=
des
;
}
public
static
String
getNameByCode
(
int
code
)
{
for
(
GroupPurchaseEnum
.
ItemStateEnum
stateEnum
:
GroupPurchaseEnum
.
ItemStateEnum
.
values
())
{
if
(
code
==
stateEnum
.
getCode
())
{
return
stateEnum
.
getDes
();
}
}
return
null
;
}
public
int
getCode
()
{
return
code
;
}
public
String
getDes
()
{
return
des
;
}
}
}
ch-core/src/main/java/com/wwdz/ch/core/entity/SupplierItemVo.java
View file @
7bcff6ba
package
com.wwdz.ch.core.entity
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscount
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
import
java.util.Date
;
...
...
@@ -54,6 +55,27 @@ public class SupplierItemVo implements Entity {
*/
private
String
salePrice
;
/**
* 团购商品定金
* 前端传过来的单位是元,后台要处理为分
*/
private
String
deposit
;
/**
* 团购开始时间
*/
private
String
groupPurchaseStartTime
;
/**
* 团购结束时间
*/
private
String
groupPurchaseEndTime
;
/**
* 团购折扣信息
*/
private
List
<
GroupPurchaseDiscount
>
discountList
;
/**
* 库存
*/
...
...
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/GroupPurchaseConfigDao.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.dao.distribution
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseConfig
;
public
interface
GroupPurchaseConfigDao
{
/**
* 插入新记录
*
* @param groupPurchaseConfig
* @return
*/
int
insert
(
GroupPurchaseConfig
groupPurchaseConfig
);
/**
* 更新团购配置
*
* @param groupPurchaseConfig
* @return
*/
int
update
(
GroupPurchaseConfig
groupPurchaseConfig
);
/**
* 更新团购配置
*
* @param groupPurchaseConfig
* @return
*/
int
updateByItemId
(
GroupPurchaseConfig
groupPurchaseConfig
);
/**
* 更新状态
* @param itemId
* @param state
* @return
*/
int
updateState
(
long
itemId
,
int
state
);
/**
* 根据商品id查询团购设置
* @param itemId
* @return
*/
GroupPurchaseConfig
findByItemId
(
long
itemId
);
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/GroupPurchaseDiscountDao.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.dao.distribution
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscount
;
import
java.util.List
;
public
interface
GroupPurchaseDiscountDao
{
/**
* 插入新记录
*
* @param groupPurchaseDiscount
* @return
*/
int
insert
(
GroupPurchaseDiscount
groupPurchaseDiscount
);
/**
* 根据商品id查询团购折扣
* @param itemId
* @return
*/
List
<
GroupPurchaseDiscount
>
findByItemId
(
long
itemId
);
boolean
isExisted
(
long
itemId
);
boolean
delete
(
long
itemId
);
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/GroupPurchaseRecordDao.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.dao.distribution
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseRecord
;
import
com.wwdz.ch.db.dto.request.distribution.GroupPurchaseRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.UserAccountDetailRequestDto
;
import
java.util.List
;
public
interface
GroupPurchaseRecordDao
{
/**
* 插入新记录
*
* @param groupPurchaseRecord
* @return
*/
int
insert
(
GroupPurchaseRecord
groupPurchaseRecord
);
GroupPurchaseRecord
findByPayId
(
String
dispositPayId
);
int
updateByPayId
(
GroupPurchaseRecord
groupPurchaseRecord
);
/**
* 统计当前商品已经团购的件数
* @param dto
* @return
*/
long
summaryItemNum
(
GroupPurchaseRecordRequestDto
dto
);
/**
* 统计当前商品参数团购的人数
* @param dto
* @return
*/
List
<
GroupPurchaseRecord
>
countPeople
(
GroupPurchaseRecordRequestDto
dto
);
}
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/GroupPurchaseConfig.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.domain.distribution
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
* @author shiyu
* @date 2024/07/25
*/
@Data
public
class
GroupPurchaseConfig
implements
Entity
{
/**
* id
*/
private
Integer
id
;
/**
* 商品id
*/
private
Long
itemId
;
/**
* 商品所属人id
*/
private
Long
creatorId
;
/**
* 团购开始时间
*/
private
Date
startTime
;
/**
* 团购结束时间
*/
private
Date
endTime
;
/**
* 售价
*/
private
Long
price
;
/**
* 供货价
*/
private
Long
supplyPrice
;
/**
* 定金
*/
private
Long
deposit
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 状态
*/
private
Integer
state
;
/**
* 是否有效
*/
private
Boolean
isValid
;
/**
* 是否成交
*/
private
Boolean
isDeal
;
private
static
final
long
serialVersionUID
=
1L
;
@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
(
", itemId="
).
append
(
itemId
);
sb
.
append
(
", creatorId="
).
append
(
creatorId
);
sb
.
append
(
", startTime="
).
append
(
startTime
);
sb
.
append
(
", endTime="
).
append
(
endTime
);
sb
.
append
(
", price="
).
append
(
price
);
sb
.
append
(
", supplyPrice="
).
append
(
supplyPrice
);
sb
.
append
(
", deposit="
).
append
(
deposit
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", state="
).
append
(
state
);
sb
.
append
(
", isValid="
).
append
(
isValid
);
sb
.
append
(
", isDeal="
).
append
(
isDeal
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
GroupPurchaseConfig
other
=
(
GroupPurchaseConfig
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getItemId
()
==
null
?
other
.
getItemId
()
==
null
:
this
.
getItemId
().
equals
(
other
.
getItemId
()))
&&
(
this
.
getCreatorId
()
==
null
?
other
.
getCreatorId
()
==
null
:
this
.
getCreatorId
().
equals
(
other
.
getCreatorId
()))
&&
(
this
.
getStartTime
()
==
null
?
other
.
getStartTime
()
==
null
:
this
.
getStartTime
().
equals
(
other
.
getStartTime
()))
&&
(
this
.
getEndTime
()
==
null
?
other
.
getEndTime
()
==
null
:
this
.
getEndTime
().
equals
(
other
.
getEndTime
()))
&&
(
this
.
getPrice
()
==
null
?
other
.
getPrice
()
==
null
:
this
.
getPrice
().
equals
(
other
.
getPrice
()))
&&
(
this
.
getSupplyPrice
()
==
null
?
other
.
getSupplyPrice
()
==
null
:
this
.
getSupplyPrice
().
equals
(
other
.
getSupplyPrice
()))
&&
(
this
.
getDeposit
()
==
null
?
other
.
getDeposit
()
==
null
:
this
.
getDeposit
().
equals
(
other
.
getDeposit
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getState
()
==
null
?
other
.
getState
()
==
null
:
this
.
getState
().
equals
(
other
.
getState
()))
&&
(
this
.
getIsValid
()
==
null
?
other
.
getIsValid
()
==
null
:
this
.
getIsValid
().
equals
(
other
.
getIsValid
()))
&&
(
this
.
getIsDeal
()
==
null
?
other
.
getIsDeal
()
==
null
:
this
.
getIsDeal
().
equals
(
other
.
getIsDeal
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getItemId
()
==
null
)
?
0
:
getItemId
().
hashCode
());
result
=
prime
*
result
+
((
getCreatorId
()
==
null
)
?
0
:
getCreatorId
().
hashCode
());
result
=
prime
*
result
+
((
getStartTime
()
==
null
)
?
0
:
getStartTime
().
hashCode
());
result
=
prime
*
result
+
((
getEndTime
()
==
null
)
?
0
:
getEndTime
().
hashCode
());
result
=
prime
*
result
+
((
getPrice
()
==
null
)
?
0
:
getPrice
().
hashCode
());
result
=
prime
*
result
+
((
getSupplyPrice
()
==
null
)
?
0
:
getSupplyPrice
().
hashCode
());
result
=
prime
*
result
+
((
getDeposit
()
==
null
)
?
0
:
getDeposit
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getState
()
==
null
)
?
0
:
getState
().
hashCode
());
result
=
prime
*
result
+
((
getIsValid
()
==
null
)
?
0
:
getIsValid
().
hashCode
());
result
=
prime
*
result
+
((
getIsDeal
()
==
null
)
?
0
:
getIsDeal
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"INTEGER"
,
false
),
itemId
(
"item_id"
,
"itemId"
,
"BIGINT"
,
false
),
creatorId
(
"creator_id"
,
"creatorId"
,
"BIGINT"
,
false
),
startTime
(
"start_time"
,
"startTime"
,
"TIMESTAMP"
,
false
),
endTime
(
"end_time"
,
"endTime"
,
"TIMESTAMP"
,
false
),
price
(
"price"
,
"price"
,
"BIGINT"
,
false
),
supplyPrice
(
"supply_price"
,
"supplyPrice"
,
"BIGINT"
,
false
),
deposit
(
"deposit"
,
"deposit"
,
"BIGINT"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
state
(
"state"
,
"state"
,
"INTEGER"
,
true
),
isValid
(
"is_valid"
,
"isValid"
,
"BIT"
,
false
),
isDeal
(
"is_deal"
,
"isDeal"
,
"BIT"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
BEGINNING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
ENDING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
column
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
boolean
isColumnNameDelimited
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
javaProperty
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
jdbcType
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
value
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getValue
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJavaProperty
()
{
return
this
.
javaProperty
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJdbcType
()
{
return
this
.
jdbcType
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column
(
String
column
,
String
javaProperty
,
String
jdbcType
,
boolean
isColumnNameDelimited
)
{
this
.
column
=
column
;
this
.
javaProperty
=
javaProperty
;
this
.
jdbcType
=
jdbcType
;
this
.
isColumnNameDelimited
=
isColumnNameDelimited
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
desc
()
{
return
this
.
getEscapedColumnName
()
+
" DESC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
asc
()
{
return
this
.
getEscapedColumnName
()
+
" ASC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Column
[]
excludes
(
Column
...
excludes
)
{
ArrayList
<
Column
>
columns
=
new
ArrayList
<>(
Arrays
.
asList
(
Column
.
values
()));
if
(
excludes
!=
null
&&
excludes
.
length
>
0
)
{
columns
.
removeAll
(
new
ArrayList
<>(
Arrays
.
asList
(
excludes
)));
}
return
columns
.
toArray
(
new
Column
[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getEscapedColumnName
()
{
if
(
this
.
isColumnNameDelimited
)
{
return
new
StringBuilder
().
append
(
BEGINNING_DELIMITER
).
append
(
this
.
column
).
append
(
ENDING_DELIMITER
).
toString
();
}
else
{
return
this
.
column
;
}
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/GroupPurchaseConfigExample.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.domain.distribution
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
GroupPurchaseConfigExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
GroupPurchaseConfigExample
()
{
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
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
GroupPurchaseConfigExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
GroupPurchaseConfigExample
orderBy
(
String
...
orderByClauses
)
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
orderByClauses
.
length
;
i
++)
{
sb
.
append
(
orderByClauses
[
i
]);
if
(
i
<
orderByClauses
.
length
-
1
)
{
sb
.
append
(
" , "
);
}
}
this
.
setOrderByClause
(
sb
.
toString
());
return
this
;
}
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
GroupPurchaseConfigExample
example
=
new
GroupPurchaseConfigExample
();
return
example
.
createCriteria
();
}
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Integer
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Integer
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIsNull
()
{
addCriterion
(
"item_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIsNotNull
()
{
addCriterion
(
"item_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdEqualTo
(
Long
value
)
{
addCriterion
(
"item_id ="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"item_id <>"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdNotEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdGreaterThan
(
Long
value
)
{
addCriterion
(
"item_id >"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"item_id >="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdLessThan
(
Long
value
)
{
addCriterion
(
"item_id <"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"item_id <="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"item_id in"
,
values
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"item_id not in"
,
values
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"item_id between"
,
value1
,
value2
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"item_id not between"
,
value1
,
value2
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatorIdIsNull
()
{
addCriterion
(
"creator_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatorIdIsNotNull
()
{
addCriterion
(
"creator_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatorIdEqualTo
(
Long
value
)
{
addCriterion
(
"creator_id ="
,
value
,
"creatorId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatorIdEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"creator_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatorIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"creator_id <>"
,
value
,
"creatorId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatorIdNotEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"creator_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatorIdGreaterThan
(
Long
value
)
{
addCriterion
(
"creator_id >"
,
value
,
"creatorId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatorIdGreaterThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"creator_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatorIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"creator_id >="
,
value
,
"creatorId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatorIdGreaterThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"creator_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatorIdLessThan
(
Long
value
)
{
addCriterion
(
"creator_id <"
,
value
,
"creatorId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatorIdLessThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"creator_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatorIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"creator_id <="
,
value
,
"creatorId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatorIdLessThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"creator_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatorIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"creator_id in"
,
values
,
"creatorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatorIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"creator_id not in"
,
values
,
"creatorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatorIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"creator_id between"
,
value1
,
value2
,
"creatorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatorIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"creator_id not between"
,
value1
,
value2
,
"creatorId"
);
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
)
{
addCriterion
(
"start_time ="
,
value
,
"startTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartTimeEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"start_time <>"
,
value
,
"startTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartTimeNotEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"start_time >"
,
value
,
"startTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartTimeGreaterThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"start_time >="
,
value
,
"startTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartTimeGreaterThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeLessThan
(
Date
value
)
{
addCriterion
(
"start_time <"
,
value
,
"startTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartTimeLessThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"start_time <="
,
value
,
"startTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartTimeLessThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"start_time in"
,
values
,
"startTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"start_time not in"
,
values
,
"startTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"start_time between"
,
value1
,
value2
,
"startTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"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
)
{
addCriterion
(
"end_time ="
,
value
,
"endTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndTimeEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"end_time <>"
,
value
,
"endTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndTimeNotEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"end_time >"
,
value
,
"endTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndTimeGreaterThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"end_time >="
,
value
,
"endTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndTimeGreaterThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeLessThan
(
Date
value
)
{
addCriterion
(
"end_time <"
,
value
,
"endTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndTimeLessThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"end_time <="
,
value
,
"endTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndTimeLessThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"end_time in"
,
values
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"end_time not in"
,
values
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"end_time between"
,
value1
,
value2
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"end_time not between"
,
value1
,
value2
,
"endTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceIsNull
()
{
addCriterion
(
"price is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceIsNotNull
()
{
addCriterion
(
"price is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceEqualTo
(
Long
value
)
{
addCriterion
(
"price ="
,
value
,
"price"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPriceEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"price = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPriceNotEqualTo
(
Long
value
)
{
addCriterion
(
"price <>"
,
value
,
"price"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPriceNotEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"price <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPriceGreaterThan
(
Long
value
)
{
addCriterion
(
"price >"
,
value
,
"price"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPriceGreaterThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"price > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPriceGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"price >="
,
value
,
"price"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPriceGreaterThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"price >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPriceLessThan
(
Long
value
)
{
addCriterion
(
"price <"
,
value
,
"price"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPriceLessThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"price < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPriceLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"price <="
,
value
,
"price"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPriceLessThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"price <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPriceIn
(
List
<
Long
>
values
)
{
addCriterion
(
"price in"
,
values
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"price not in"
,
values
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"price between"
,
value1
,
value2
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPriceNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"price not between"
,
value1
,
value2
,
"price"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSupplyPriceIsNull
()
{
addCriterion
(
"supply_price is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSupplyPriceIsNotNull
()
{
addCriterion
(
"supply_price is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSupplyPriceEqualTo
(
Long
value
)
{
addCriterion
(
"supply_price ="
,
value
,
"supplyPrice"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andSupplyPriceEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"supply_price = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andSupplyPriceNotEqualTo
(
Long
value
)
{
addCriterion
(
"supply_price <>"
,
value
,
"supplyPrice"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andSupplyPriceNotEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"supply_price <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andSupplyPriceGreaterThan
(
Long
value
)
{
addCriterion
(
"supply_price >"
,
value
,
"supplyPrice"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andSupplyPriceGreaterThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"supply_price > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andSupplyPriceGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"supply_price >="
,
value
,
"supplyPrice"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andSupplyPriceGreaterThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"supply_price >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andSupplyPriceLessThan
(
Long
value
)
{
addCriterion
(
"supply_price <"
,
value
,
"supplyPrice"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andSupplyPriceLessThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"supply_price < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andSupplyPriceLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"supply_price <="
,
value
,
"supplyPrice"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andSupplyPriceLessThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"supply_price <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andSupplyPriceIn
(
List
<
Long
>
values
)
{
addCriterion
(
"supply_price in"
,
values
,
"supplyPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSupplyPriceNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"supply_price not in"
,
values
,
"supplyPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSupplyPriceBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"supply_price between"
,
value1
,
value2
,
"supplyPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSupplyPriceNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"supply_price not between"
,
value1
,
value2
,
"supplyPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepositIsNull
()
{
addCriterion
(
"deposit is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepositIsNotNull
()
{
addCriterion
(
"deposit is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepositEqualTo
(
Long
value
)
{
addCriterion
(
"deposit ="
,
value
,
"deposit"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDepositEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deposit = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDepositNotEqualTo
(
Long
value
)
{
addCriterion
(
"deposit <>"
,
value
,
"deposit"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDepositNotEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deposit <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDepositGreaterThan
(
Long
value
)
{
addCriterion
(
"deposit >"
,
value
,
"deposit"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDepositGreaterThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deposit > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDepositGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"deposit >="
,
value
,
"deposit"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDepositGreaterThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deposit >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDepositLessThan
(
Long
value
)
{
addCriterion
(
"deposit <"
,
value
,
"deposit"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDepositLessThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deposit < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDepositLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"deposit <="
,
value
,
"deposit"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDepositLessThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deposit <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDepositIn
(
List
<
Long
>
values
)
{
addCriterion
(
"deposit in"
,
values
,
"deposit"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepositNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"deposit not in"
,
values
,
"deposit"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepositBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"deposit between"
,
value1
,
value2
,
"deposit"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepositNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"deposit not between"
,
value1
,
value2
,
"deposit"
);
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
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <>"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeNotEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"create_time >"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time >="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThan
(
Date
value
)
{
addCriterion
(
"create_time <"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
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
Criteria
andUpdateTimeIsNull
()
{
addCriterion
(
"update_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNotNull
()
{
addCriterion
(
"update_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeNotEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
Date
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateIsNull
()
{
addCriterion
(
"`state` is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateIsNotNull
()
{
addCriterion
(
"`state` is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` ="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` <>"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateNotEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateGreaterThan
(
Integer
value
)
{
addCriterion
(
"`state` >"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateGreaterThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` >="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateGreaterThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateLessThan
(
Integer
value
)
{
addCriterion
(
"`state` <"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateLessThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` <="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateLessThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`state` in"
,
values
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`state` not in"
,
values
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`state` between"
,
value1
,
value2
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`state` not between"
,
value1
,
value2
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNull
()
{
addCriterion
(
"is_valid is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNotNull
()
{
addCriterion
(
"is_valid is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid ="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid <>"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidNotEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidGreaterThan
(
Boolean
value
)
{
addCriterion
(
"is_valid >"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidGreaterThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid >="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidGreaterThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidLessThan
(
Boolean
value
)
{
addCriterion
(
"is_valid <"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidLessThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid <="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidLessThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_valid in"
,
values
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_valid not in"
,
values
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_valid between"
,
value1
,
value2
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_valid not between"
,
value1
,
value2
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDealIsNull
()
{
addCriterion
(
"is_deal is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDealIsNotNull
()
{
addCriterion
(
"is_deal is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDealEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deal ="
,
value
,
"isDeal"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDealEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deal = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDealNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deal <>"
,
value
,
"isDeal"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDealNotEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deal <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDealGreaterThan
(
Boolean
value
)
{
addCriterion
(
"is_deal >"
,
value
,
"isDeal"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDealGreaterThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deal > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDealGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deal >="
,
value
,
"isDeal"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDealGreaterThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deal >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDealLessThan
(
Boolean
value
)
{
addCriterion
(
"is_deal <"
,
value
,
"isDeal"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDealLessThanColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deal < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDealLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deal <="
,
value
,
"isDeal"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDealLessThanOrEqualToColumn
(
GroupPurchaseConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deal <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDealIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_deal in"
,
values
,
"isDeal"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDealNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_deal not in"
,
values
,
"isDeal"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDealBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_deal between"
,
value1
,
value2
,
"isDeal"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDealNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_deal not between"
,
value1
,
value2
,
"isDeal"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
GroupPurchaseConfigExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
GroupPurchaseConfigExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
GroupPurchaseConfigExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
}
return
this
;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria
add
(
Criteria
add
);
}
}
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
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/GroupPurchaseDiscount.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.domain.distribution
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
* @author shiyu
* @date 2024/07/25
*/
@Data
public
class
GroupPurchaseDiscount
implements
Entity
{
private
Integer
id
;
/**
* 商品id
*/
private
Long
itemId
;
/**
* 要求的数量
*/
private
Integer
requireNum
;
/**
* 折扣比例
*/
private
BigDecimal
rebate
;
/**
* 状态
*/
private
Integer
state
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
private
static
final
long
serialVersionUID
=
1L
;
@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
(
", itemId="
).
append
(
itemId
);
sb
.
append
(
", requireNum="
).
append
(
requireNum
);
sb
.
append
(
", rebate="
).
append
(
rebate
);
sb
.
append
(
", state="
).
append
(
state
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
GroupPurchaseDiscount
other
=
(
GroupPurchaseDiscount
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getItemId
()
==
null
?
other
.
getItemId
()
==
null
:
this
.
getItemId
().
equals
(
other
.
getItemId
()))
&&
(
this
.
getRequireNum
()
==
null
?
other
.
getRequireNum
()
==
null
:
this
.
getRequireNum
().
equals
(
other
.
getRequireNum
()))
&&
(
this
.
getRebate
()
==
null
?
other
.
getRebate
()
==
null
:
this
.
getRebate
().
equals
(
other
.
getRebate
()))
&&
(
this
.
getState
()
==
null
?
other
.
getState
()
==
null
:
this
.
getState
().
equals
(
other
.
getState
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getItemId
()
==
null
)
?
0
:
getItemId
().
hashCode
());
result
=
prime
*
result
+
((
getRequireNum
()
==
null
)
?
0
:
getRequireNum
().
hashCode
());
result
=
prime
*
result
+
((
getRebate
()
==
null
)
?
0
:
getRebate
().
hashCode
());
result
=
prime
*
result
+
((
getState
()
==
null
)
?
0
:
getState
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"INTEGER"
,
false
),
itemId
(
"item_id"
,
"itemId"
,
"BIGINT"
,
false
),
requireNum
(
"require_num"
,
"requireNum"
,
"INTEGER"
,
false
),
rebate
(
"rebate"
,
"rebate"
,
"DECIMAL"
,
false
),
state
(
"state"
,
"state"
,
"INTEGER"
,
true
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
BEGINNING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
ENDING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
column
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
boolean
isColumnNameDelimited
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
javaProperty
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
jdbcType
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
value
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getValue
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJavaProperty
()
{
return
this
.
javaProperty
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJdbcType
()
{
return
this
.
jdbcType
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column
(
String
column
,
String
javaProperty
,
String
jdbcType
,
boolean
isColumnNameDelimited
)
{
this
.
column
=
column
;
this
.
javaProperty
=
javaProperty
;
this
.
jdbcType
=
jdbcType
;
this
.
isColumnNameDelimited
=
isColumnNameDelimited
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
desc
()
{
return
this
.
getEscapedColumnName
()
+
" DESC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
asc
()
{
return
this
.
getEscapedColumnName
()
+
" ASC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Column
[]
excludes
(
Column
...
excludes
)
{
ArrayList
<
Column
>
columns
=
new
ArrayList
<>(
Arrays
.
asList
(
Column
.
values
()));
if
(
excludes
!=
null
&&
excludes
.
length
>
0
)
{
columns
.
removeAll
(
new
ArrayList
<>(
Arrays
.
asList
(
excludes
)));
}
return
columns
.
toArray
(
new
Column
[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getEscapedColumnName
()
{
if
(
this
.
isColumnNameDelimited
)
{
return
new
StringBuilder
().
append
(
BEGINNING_DELIMITER
).
append
(
this
.
column
).
append
(
ENDING_DELIMITER
).
toString
();
}
else
{
return
this
.
column
;
}
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/GroupPurchaseDiscountExample.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.domain.distribution
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
GroupPurchaseDiscountExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
GroupPurchaseDiscountExample
()
{
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
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
GroupPurchaseDiscountExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
GroupPurchaseDiscountExample
orderBy
(
String
...
orderByClauses
)
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
orderByClauses
.
length
;
i
++)
{
sb
.
append
(
orderByClauses
[
i
]);
if
(
i
<
orderByClauses
.
length
-
1
)
{
sb
.
append
(
" , "
);
}
}
this
.
setOrderByClause
(
sb
.
toString
());
return
this
;
}
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
GroupPurchaseDiscountExample
example
=
new
GroupPurchaseDiscountExample
();
return
example
.
createCriteria
();
}
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Integer
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Integer
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIsNull
()
{
addCriterion
(
"item_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIsNotNull
()
{
addCriterion
(
"item_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdEqualTo
(
Long
value
)
{
addCriterion
(
"item_id ="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"item_id <>"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdNotEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdGreaterThan
(
Long
value
)
{
addCriterion
(
"item_id >"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"item_id >="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdLessThan
(
Long
value
)
{
addCriterion
(
"item_id <"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"item_id <="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"item_id in"
,
values
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"item_id not in"
,
values
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"item_id between"
,
value1
,
value2
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"item_id not between"
,
value1
,
value2
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequireNumIsNull
()
{
addCriterion
(
"require_num is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequireNumIsNotNull
()
{
addCriterion
(
"require_num is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequireNumEqualTo
(
Integer
value
)
{
addCriterion
(
"require_num ="
,
value
,
"requireNum"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRequireNumEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"require_num = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRequireNumNotEqualTo
(
Integer
value
)
{
addCriterion
(
"require_num <>"
,
value
,
"requireNum"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRequireNumNotEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"require_num <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRequireNumGreaterThan
(
Integer
value
)
{
addCriterion
(
"require_num >"
,
value
,
"requireNum"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRequireNumGreaterThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"require_num > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRequireNumGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"require_num >="
,
value
,
"requireNum"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRequireNumGreaterThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"require_num >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRequireNumLessThan
(
Integer
value
)
{
addCriterion
(
"require_num <"
,
value
,
"requireNum"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRequireNumLessThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"require_num < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRequireNumLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"require_num <="
,
value
,
"requireNum"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRequireNumLessThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"require_num <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRequireNumIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"require_num in"
,
values
,
"requireNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequireNumNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"require_num not in"
,
values
,
"requireNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequireNumBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"require_num between"
,
value1
,
value2
,
"requireNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequireNumNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"require_num not between"
,
value1
,
value2
,
"requireNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRebateIsNull
()
{
addCriterion
(
"rebate is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRebateIsNotNull
()
{
addCriterion
(
"rebate is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRebateEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"rebate ="
,
value
,
"rebate"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRebateEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"rebate = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRebateNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"rebate <>"
,
value
,
"rebate"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRebateNotEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"rebate <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRebateGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"rebate >"
,
value
,
"rebate"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRebateGreaterThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"rebate > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRebateGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"rebate >="
,
value
,
"rebate"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRebateGreaterThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"rebate >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRebateLessThan
(
BigDecimal
value
)
{
addCriterion
(
"rebate <"
,
value
,
"rebate"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRebateLessThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"rebate < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRebateLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"rebate <="
,
value
,
"rebate"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRebateLessThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"rebate <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRebateIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"rebate in"
,
values
,
"rebate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRebateNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"rebate not in"
,
values
,
"rebate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRebateBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"rebate between"
,
value1
,
value2
,
"rebate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRebateNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"rebate not between"
,
value1
,
value2
,
"rebate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateIsNull
()
{
addCriterion
(
"`state` is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateIsNotNull
()
{
addCriterion
(
"`state` is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` ="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` <>"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateNotEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateGreaterThan
(
Integer
value
)
{
addCriterion
(
"`state` >"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateGreaterThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` >="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateGreaterThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateLessThan
(
Integer
value
)
{
addCriterion
(
"`state` <"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateLessThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` <="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateLessThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`state` in"
,
values
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`state` not in"
,
values
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`state` between"
,
value1
,
value2
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`state` not between"
,
value1
,
value2
,
"state"
);
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
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <>"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeNotEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"create_time >"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time >="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThan
(
Date
value
)
{
addCriterion
(
"create_time <"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
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
Criteria
andUpdateTimeIsNull
()
{
addCriterion
(
"update_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNotNull
()
{
addCriterion
(
"update_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeNotEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
Date
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanOrEqualToColumn
(
GroupPurchaseDiscount
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
GroupPurchaseDiscountExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
GroupPurchaseDiscountExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
GroupPurchaseDiscountExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
}
return
this
;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria
add
(
Criteria
add
);
}
}
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
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/GroupPurchaseRecord.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.domain.distribution
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
* @author shiyu
* @date 2024/07/25
*/
@Data
public
class
GroupPurchaseRecord
implements
Entity
{
private
Long
id
;
/**
* 团购定金支付id
*/
private
String
depositPayId
;
/**
* 关联的预售订单id
*/
private
String
distributionOrderId
;
/**
* 预支付id
*/
private
String
prepayId
;
/**
* 微信支付订单号
*/
private
String
transactionId
;
/**
* 商品id
*/
private
Long
itemId
;
/**
* 商品数量
*/
private
Integer
itemNum
;
/**
* 用户id
*/
private
Long
userId
;
/**
* 用户openid
*/
private
String
userOpenid
;
/**
* 定金金额
*/
private
Long
amount
;
/**
* 支付时间
*/
private
Date
payTime
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 状态
*/
private
Integer
state
;
private
static
final
long
serialVersionUID
=
1L
;
@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
(
", depositPayId="
).
append
(
depositPayId
);
sb
.
append
(
", distributionOrderId="
).
append
(
distributionOrderId
);
sb
.
append
(
", prepayId="
).
append
(
prepayId
);
sb
.
append
(
", transactionId="
).
append
(
transactionId
);
sb
.
append
(
", itemId="
).
append
(
itemId
);
sb
.
append
(
", itemNum="
).
append
(
itemNum
);
sb
.
append
(
", userId="
).
append
(
userId
);
sb
.
append
(
", userOpenid="
).
append
(
userOpenid
);
sb
.
append
(
", amount="
).
append
(
amount
);
sb
.
append
(
", payTime="
).
append
(
payTime
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", state="
).
append
(
state
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
GroupPurchaseRecord
other
=
(
GroupPurchaseRecord
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getDepositPayId
()
==
null
?
other
.
getDepositPayId
()
==
null
:
this
.
getDepositPayId
().
equals
(
other
.
getDepositPayId
()))
&&
(
this
.
getDistributionOrderId
()
==
null
?
other
.
getDistributionOrderId
()
==
null
:
this
.
getDistributionOrderId
().
equals
(
other
.
getDistributionOrderId
()))
&&
(
this
.
getPrepayId
()
==
null
?
other
.
getPrepayId
()
==
null
:
this
.
getPrepayId
().
equals
(
other
.
getPrepayId
()))
&&
(
this
.
getTransactionId
()
==
null
?
other
.
getTransactionId
()
==
null
:
this
.
getTransactionId
().
equals
(
other
.
getTransactionId
()))
&&
(
this
.
getItemId
()
==
null
?
other
.
getItemId
()
==
null
:
this
.
getItemId
().
equals
(
other
.
getItemId
()))
&&
(
this
.
getItemNum
()
==
null
?
other
.
getItemNum
()
==
null
:
this
.
getItemNum
().
equals
(
other
.
getItemNum
()))
&&
(
this
.
getUserId
()
==
null
?
other
.
getUserId
()
==
null
:
this
.
getUserId
().
equals
(
other
.
getUserId
()))
&&
(
this
.
getUserOpenid
()
==
null
?
other
.
getUserOpenid
()
==
null
:
this
.
getUserOpenid
().
equals
(
other
.
getUserOpenid
()))
&&
(
this
.
getAmount
()
==
null
?
other
.
getAmount
()
==
null
:
this
.
getAmount
().
equals
(
other
.
getAmount
()))
&&
(
this
.
getPayTime
()
==
null
?
other
.
getPayTime
()
==
null
:
this
.
getPayTime
().
equals
(
other
.
getPayTime
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getState
()
==
null
?
other
.
getState
()
==
null
:
this
.
getState
().
equals
(
other
.
getState
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getDepositPayId
()
==
null
)
?
0
:
getDepositPayId
().
hashCode
());
result
=
prime
*
result
+
((
getDistributionOrderId
()
==
null
)
?
0
:
getDistributionOrderId
().
hashCode
());
result
=
prime
*
result
+
((
getPrepayId
()
==
null
)
?
0
:
getPrepayId
().
hashCode
());
result
=
prime
*
result
+
((
getTransactionId
()
==
null
)
?
0
:
getTransactionId
().
hashCode
());
result
=
prime
*
result
+
((
getItemId
()
==
null
)
?
0
:
getItemId
().
hashCode
());
result
=
prime
*
result
+
((
getItemNum
()
==
null
)
?
0
:
getItemNum
().
hashCode
());
result
=
prime
*
result
+
((
getUserId
()
==
null
)
?
0
:
getUserId
().
hashCode
());
result
=
prime
*
result
+
((
getUserOpenid
()
==
null
)
?
0
:
getUserOpenid
().
hashCode
());
result
=
prime
*
result
+
((
getAmount
()
==
null
)
?
0
:
getAmount
().
hashCode
());
result
=
prime
*
result
+
((
getPayTime
()
==
null
)
?
0
:
getPayTime
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getState
()
==
null
)
?
0
:
getState
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"BIGINT"
,
false
),
depositPayId
(
"deposit_pay_id"
,
"depositPayId"
,
"VARCHAR"
,
false
),
distributionOrderId
(
"distribution_order_id"
,
"distributionOrderId"
,
"VARCHAR"
,
false
),
prepayId
(
"prepay_id"
,
"prepayId"
,
"VARCHAR"
,
false
),
transactionId
(
"transaction_id"
,
"transactionId"
,
"VARCHAR"
,
false
),
itemId
(
"item_id"
,
"itemId"
,
"BIGINT"
,
false
),
itemNum
(
"item_num"
,
"itemNum"
,
"INTEGER"
,
false
),
userId
(
"user_id"
,
"userId"
,
"BIGINT"
,
false
),
userOpenid
(
"user_openid"
,
"userOpenid"
,
"VARCHAR"
,
false
),
amount
(
"amount"
,
"amount"
,
"BIGINT"
,
false
),
payTime
(
"pay_time"
,
"payTime"
,
"TIMESTAMP"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
state
(
"state"
,
"state"
,
"INTEGER"
,
true
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
BEGINNING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
ENDING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
column
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
boolean
isColumnNameDelimited
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
javaProperty
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
jdbcType
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
value
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getValue
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJavaProperty
()
{
return
this
.
javaProperty
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJdbcType
()
{
return
this
.
jdbcType
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column
(
String
column
,
String
javaProperty
,
String
jdbcType
,
boolean
isColumnNameDelimited
)
{
this
.
column
=
column
;
this
.
javaProperty
=
javaProperty
;
this
.
jdbcType
=
jdbcType
;
this
.
isColumnNameDelimited
=
isColumnNameDelimited
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
desc
()
{
return
this
.
getEscapedColumnName
()
+
" DESC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
asc
()
{
return
this
.
getEscapedColumnName
()
+
" ASC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Column
[]
excludes
(
Column
...
excludes
)
{
ArrayList
<
Column
>
columns
=
new
ArrayList
<>(
Arrays
.
asList
(
Column
.
values
()));
if
(
excludes
!=
null
&&
excludes
.
length
>
0
)
{
columns
.
removeAll
(
new
ArrayList
<>(
Arrays
.
asList
(
excludes
)));
}
return
columns
.
toArray
(
new
Column
[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getEscapedColumnName
()
{
if
(
this
.
isColumnNameDelimited
)
{
return
new
StringBuilder
().
append
(
BEGINNING_DELIMITER
).
append
(
this
.
column
).
append
(
ENDING_DELIMITER
).
toString
();
}
else
{
return
this
.
column
;
}
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/GroupPurchaseRecordExample.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.domain.distribution
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
GroupPurchaseRecordExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
GroupPurchaseRecordExample
()
{
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
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
GroupPurchaseRecordExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
GroupPurchaseRecordExample
orderBy
(
String
...
orderByClauses
)
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
orderByClauses
.
length
;
i
++)
{
sb
.
append
(
orderByClauses
[
i
]);
if
(
i
<
orderByClauses
.
length
-
1
)
{
sb
.
append
(
" , "
);
}
}
this
.
setOrderByClause
(
sb
.
toString
());
return
this
;
}
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
GroupPurchaseRecordExample
example
=
new
GroupPurchaseRecordExample
();
return
example
.
createCriteria
();
}
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Long
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Long
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Long
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
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
andDepositPayIdIsNull
()
{
addCriterion
(
"deposit_pay_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepositPayIdIsNotNull
()
{
addCriterion
(
"deposit_pay_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepositPayIdEqualTo
(
String
value
)
{
addCriterion
(
"deposit_pay_id ="
,
value
,
"depositPayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDepositPayIdEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deposit_pay_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDepositPayIdNotEqualTo
(
String
value
)
{
addCriterion
(
"deposit_pay_id <>"
,
value
,
"depositPayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDepositPayIdNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deposit_pay_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDepositPayIdGreaterThan
(
String
value
)
{
addCriterion
(
"deposit_pay_id >"
,
value
,
"depositPayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDepositPayIdGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deposit_pay_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDepositPayIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"deposit_pay_id >="
,
value
,
"depositPayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDepositPayIdGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deposit_pay_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDepositPayIdLessThan
(
String
value
)
{
addCriterion
(
"deposit_pay_id <"
,
value
,
"depositPayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDepositPayIdLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deposit_pay_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDepositPayIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"deposit_pay_id <="
,
value
,
"depositPayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDepositPayIdLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deposit_pay_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDepositPayIdLike
(
String
value
)
{
addCriterion
(
"deposit_pay_id like"
,
value
,
"depositPayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepositPayIdNotLike
(
String
value
)
{
addCriterion
(
"deposit_pay_id not like"
,
value
,
"depositPayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepositPayIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"deposit_pay_id in"
,
values
,
"depositPayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepositPayIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"deposit_pay_id not in"
,
values
,
"depositPayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepositPayIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"deposit_pay_id between"
,
value1
,
value2
,
"depositPayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepositPayIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"deposit_pay_id not between"
,
value1
,
value2
,
"depositPayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdIsNull
()
{
addCriterion
(
"distribution_order_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdIsNotNull
()
{
addCriterion
(
"distribution_order_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdEqualTo
(
String
value
)
{
addCriterion
(
"distribution_order_id ="
,
value
,
"distributionOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDistributionOrderIdEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"distribution_order_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdNotEqualTo
(
String
value
)
{
addCriterion
(
"distribution_order_id <>"
,
value
,
"distributionOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDistributionOrderIdNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"distribution_order_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdGreaterThan
(
String
value
)
{
addCriterion
(
"distribution_order_id >"
,
value
,
"distributionOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDistributionOrderIdGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"distribution_order_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"distribution_order_id >="
,
value
,
"distributionOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDistributionOrderIdGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"distribution_order_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdLessThan
(
String
value
)
{
addCriterion
(
"distribution_order_id <"
,
value
,
"distributionOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDistributionOrderIdLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"distribution_order_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"distribution_order_id <="
,
value
,
"distributionOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDistributionOrderIdLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"distribution_order_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdLike
(
String
value
)
{
addCriterion
(
"distribution_order_id like"
,
value
,
"distributionOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdNotLike
(
String
value
)
{
addCriterion
(
"distribution_order_id not like"
,
value
,
"distributionOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"distribution_order_id in"
,
values
,
"distributionOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"distribution_order_id not in"
,
values
,
"distributionOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"distribution_order_id between"
,
value1
,
value2
,
"distributionOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributionOrderIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"distribution_order_id not between"
,
value1
,
value2
,
"distributionOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdIsNull
()
{
addCriterion
(
"prepay_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdIsNotNull
()
{
addCriterion
(
"prepay_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdEqualTo
(
String
value
)
{
addCriterion
(
"prepay_id ="
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdNotEqualTo
(
String
value
)
{
addCriterion
(
"prepay_id <>"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdGreaterThan
(
String
value
)
{
addCriterion
(
"prepay_id >"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"prepay_id >="
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdLessThan
(
String
value
)
{
addCriterion
(
"prepay_id <"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"prepay_id <="
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdLike
(
String
value
)
{
addCriterion
(
"prepay_id like"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdNotLike
(
String
value
)
{
addCriterion
(
"prepay_id not like"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"prepay_id in"
,
values
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"prepay_id not in"
,
values
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"prepay_id between"
,
value1
,
value2
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"prepay_id not between"
,
value1
,
value2
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdIsNull
()
{
addCriterion
(
"transaction_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdIsNotNull
()
{
addCriterion
(
"transaction_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdEqualTo
(
String
value
)
{
addCriterion
(
"transaction_id ="
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdNotEqualTo
(
String
value
)
{
addCriterion
(
"transaction_id <>"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdGreaterThan
(
String
value
)
{
addCriterion
(
"transaction_id >"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"transaction_id >="
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdLessThan
(
String
value
)
{
addCriterion
(
"transaction_id <"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"transaction_id <="
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdLike
(
String
value
)
{
addCriterion
(
"transaction_id like"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdNotLike
(
String
value
)
{
addCriterion
(
"transaction_id not like"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"transaction_id in"
,
values
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"transaction_id not in"
,
values
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"transaction_id between"
,
value1
,
value2
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"transaction_id not between"
,
value1
,
value2
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIsNull
()
{
addCriterion
(
"item_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIsNotNull
()
{
addCriterion
(
"item_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdEqualTo
(
Long
value
)
{
addCriterion
(
"item_id ="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"item_id <>"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdGreaterThan
(
Long
value
)
{
addCriterion
(
"item_id >"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"item_id >="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdLessThan
(
Long
value
)
{
addCriterion
(
"item_id <"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"item_id <="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"item_id in"
,
values
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"item_id not in"
,
values
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"item_id between"
,
value1
,
value2
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"item_id not between"
,
value1
,
value2
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemNumIsNull
()
{
addCriterion
(
"item_num is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemNumIsNotNull
()
{
addCriterion
(
"item_num is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemNumEqualTo
(
Integer
value
)
{
addCriterion
(
"item_num ="
,
value
,
"itemNum"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemNumEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_num = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemNumNotEqualTo
(
Integer
value
)
{
addCriterion
(
"item_num <>"
,
value
,
"itemNum"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemNumNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_num <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemNumGreaterThan
(
Integer
value
)
{
addCriterion
(
"item_num >"
,
value
,
"itemNum"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemNumGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_num > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemNumGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"item_num >="
,
value
,
"itemNum"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemNumGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_num >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemNumLessThan
(
Integer
value
)
{
addCriterion
(
"item_num <"
,
value
,
"itemNum"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemNumLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_num < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemNumLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"item_num <="
,
value
,
"itemNum"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemNumLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_num <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemNumIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"item_num in"
,
values
,
"itemNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemNumNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"item_num not in"
,
values
,
"itemNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemNumBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"item_num between"
,
value1
,
value2
,
"itemNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemNumNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"item_num not between"
,
value1
,
value2
,
"itemNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIsNull
()
{
addCriterion
(
"user_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIsNotNull
()
{
addCriterion
(
"user_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdEqualTo
(
Long
value
)
{
addCriterion
(
"user_id ="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"user_id <>"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdGreaterThan
(
Long
value
)
{
addCriterion
(
"user_id >"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"user_id >="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdLessThan
(
Long
value
)
{
addCriterion
(
"user_id <"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"user_id <="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"user_id in"
,
values
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"user_id not in"
,
values
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"user_id between"
,
value1
,
value2
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"user_id not between"
,
value1
,
value2
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidIsNull
()
{
addCriterion
(
"user_openid is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidIsNotNull
()
{
addCriterion
(
"user_openid is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidEqualTo
(
String
value
)
{
addCriterion
(
"user_openid ="
,
value
,
"userOpenid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenidEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_openid = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidNotEqualTo
(
String
value
)
{
addCriterion
(
"user_openid <>"
,
value
,
"userOpenid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenidNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_openid <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidGreaterThan
(
String
value
)
{
addCriterion
(
"user_openid >"
,
value
,
"userOpenid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenidGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_openid > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_openid >="
,
value
,
"userOpenid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenidGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_openid >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidLessThan
(
String
value
)
{
addCriterion
(
"user_openid <"
,
value
,
"userOpenid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenidLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_openid < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_openid <="
,
value
,
"userOpenid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenidLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_openid <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidLike
(
String
value
)
{
addCriterion
(
"user_openid like"
,
value
,
"userOpenid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidNotLike
(
String
value
)
{
addCriterion
(
"user_openid not like"
,
value
,
"userOpenid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_openid in"
,
values
,
"userOpenid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_openid not in"
,
values
,
"userOpenid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_openid between"
,
value1
,
value2
,
"userOpenid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenidNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_openid not between"
,
value1
,
value2
,
"userOpenid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountIsNull
()
{
addCriterion
(
"amount is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountIsNotNull
()
{
addCriterion
(
"amount is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountEqualTo
(
Long
value
)
{
addCriterion
(
"amount ="
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountNotEqualTo
(
Long
value
)
{
addCriterion
(
"amount <>"
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountGreaterThan
(
Long
value
)
{
addCriterion
(
"amount >"
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"amount >="
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountLessThan
(
Long
value
)
{
addCriterion
(
"amount <"
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"amount <="
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountIn
(
List
<
Long
>
values
)
{
addCriterion
(
"amount in"
,
values
,
"amount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"amount not in"
,
values
,
"amount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"amount between"
,
value1
,
value2
,
"amount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"amount not between"
,
value1
,
value2
,
"amount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeIsNull
()
{
addCriterion
(
"pay_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeIsNotNull
()
{
addCriterion
(
"pay_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeEqualTo
(
Date
value
)
{
addCriterion
(
"pay_time ="
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"pay_time <>"
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"pay_time >"
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"pay_time >="
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeLessThan
(
Date
value
)
{
addCriterion
(
"pay_time <"
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"pay_time <="
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"pay_time in"
,
values
,
"payTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"pay_time not in"
,
values
,
"payTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"pay_time between"
,
value1
,
value2
,
"payTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"pay_time not between"
,
value1
,
value2
,
"payTime"
);
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
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <>"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"create_time >"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time >="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThan
(
Date
value
)
{
addCriterion
(
"create_time <"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
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
Criteria
andUpdateTimeIsNull
()
{
addCriterion
(
"update_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNotNull
()
{
addCriterion
(
"update_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
Date
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateIsNull
()
{
addCriterion
(
"`state` is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateIsNotNull
()
{
addCriterion
(
"`state` is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` ="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` <>"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateNotEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateGreaterThan
(
Integer
value
)
{
addCriterion
(
"`state` >"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateGreaterThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` >="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateGreaterThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateLessThan
(
Integer
value
)
{
addCriterion
(
"`state` <"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateLessThanColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` <="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateLessThanOrEqualToColumn
(
GroupPurchaseRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`state` in"
,
values
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`state` not in"
,
values
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`state` between"
,
value1
,
value2
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`state` not between"
,
value1
,
value2
,
"state"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
GroupPurchaseRecordExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
GroupPurchaseRecordExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
GroupPurchaseRecordExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
}
return
this
;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria
add
(
Criteria
add
);
}
}
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
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/CollectionShareRecordRequestDto.java
View file @
7bcff6ba
...
...
@@ -42,7 +42,7 @@ public class CollectionShareRecordRequestDto extends BaseRequestDto implements E
private
Date
updateTime
;
/**
* 分享的类型1藏品
2藏馆
* 分享的类型1藏品
;2藏馆;5团购商品
*/
private
Integer
type
;
...
...
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/GroupPurchaseRecordRequestDto.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.dto.request.distribution
;
import
com.wwdz.ch.db.dto.request.BaseRequestDto
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
GroupPurchaseRecordRequestDto
extends
BaseRequestDto
{
private
Long
id
;
/**
* 团购定金支付id
*/
private
String
depositPayId
;
/**
* 关联的预售订单id
*/
private
String
distributionOrderId
;
/**
* 预支付id
*/
private
String
prepayId
;
/**
* 微信支付订单号
*/
private
String
transactionId
;
/**
* 商品id
*/
private
Long
itemId
;
/**
* 商品数量
*/
private
Integer
itemNum
;
/**
* 用户id
*/
private
Long
userId
;
/**
* 用户openid
*/
private
String
userOpenid
;
/**
* 定金金额
*/
private
String
amount
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 支付时间
*/
private
Date
payTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 状态
*/
private
Integer
state
;
}
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/SupplierItemRequestDto.java
View file @
7bcff6ba
...
...
@@ -47,10 +47,22 @@ public class SupplierItemRequestDto extends BaseRequestDto implements Entity {
/**
* 进货价格
*前端传过来的单位是元,后台要处理为分
*
前端传过来的单位是元,后台要处理为分
*/
private
String
supplyPrice
;
/**
* 团购商品售价
* 前端传过来的单位是元,后台要处理为分
*/
private
String
salePrice
;
/**
* 团购商品定金
* 前端传过来的单位是元,后台要处理为分
*/
private
String
deposit
;
/**
* 商品名称
*/
...
...
@@ -158,6 +170,18 @@ public class SupplierItemRequestDto extends BaseRequestDto implements Entity {
*/
private
String
auctionEndTime
;
/**
* 团购开始时间
*/
private
String
groupPurchaseStartTime
;
/**
* 团购结束时间
*/
private
String
groupPurchaseEndTime
;
/**
* 起拍价
* 单位元 需要转为分
...
...
@@ -214,4 +238,10 @@ public class SupplierItemRequestDto extends BaseRequestDto implements Entity {
*/
private
Integer
specialPerformanceId
;
/**
* 团购优惠信息
* json数组
*/
private
String
discountJson
;
}
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/GroupPurchaseConfigDaoImpl.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.impl.distribution
;
import
com.wwdz.ch.db.dao.distribution.GroupPurchaseConfigDao
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseConfig
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseConfigExample
;
import
com.wwdz.ch.db.mapper.distribution.GroupPurchaseConfigMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
import
java.util.Date
;
@Repository
public
class
GroupPurchaseConfigDaoImpl
implements
GroupPurchaseConfigDao
{
@Autowired
GroupPurchaseConfigMapper
groupPurchaseConfigMapper
;
@Override
public
int
insert
(
GroupPurchaseConfig
groupPurchaseConfig
)
{
return
groupPurchaseConfigMapper
.
insert
(
groupPurchaseConfig
);
}
@Override
public
int
update
(
GroupPurchaseConfig
groupPurchaseConfig
)
{
groupPurchaseConfig
.
setUpdateTime
(
new
Date
());
return
groupPurchaseConfigMapper
.
updateByPrimaryKeySelective
(
groupPurchaseConfig
);
}
@Override
public
int
updateByItemId
(
GroupPurchaseConfig
groupPurchaseConfig
)
{
groupPurchaseConfig
.
setUpdateTime
(
new
Date
());
GroupPurchaseConfigExample
example
=
new
GroupPurchaseConfigExample
();
GroupPurchaseConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andItemIdEqualTo
(
groupPurchaseConfig
.
getItemId
());
return
groupPurchaseConfigMapper
.
updateByExampleSelective
(
groupPurchaseConfig
,
example
);
}
@Override
public
int
updateState
(
long
itemId
,
int
state
)
{
GroupPurchaseConfigExample
example
=
new
GroupPurchaseConfigExample
();
GroupPurchaseConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andItemIdEqualTo
(
itemId
);
GroupPurchaseConfig
groupPurchaseConfig
=
new
GroupPurchaseConfig
();
groupPurchaseConfig
.
setUpdateTime
(
new
Date
());
groupPurchaseConfig
.
setState
(
state
);
return
groupPurchaseConfigMapper
.
updateByExampleSelective
(
groupPurchaseConfig
,
example
);
}
@Override
public
GroupPurchaseConfig
findByItemId
(
long
itemId
)
{
GroupPurchaseConfigExample
example
=
new
GroupPurchaseConfigExample
();
GroupPurchaseConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andItemIdEqualTo
(
itemId
);
return
groupPurchaseConfigMapper
.
selectOneByExample
(
example
);
}
}
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/GroupPurchaseDiscountDaoImpl.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.impl.distribution
;
import
com.wwdz.ch.db.dao.distribution.GroupPurchaseDiscountDao
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscount
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscountExample
;
import
com.wwdz.ch.db.mapper.distribution.GroupPurchaseDiscountMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Repository
public
class
GroupPurchaseDiscountDaoImpl
implements
GroupPurchaseDiscountDao
{
@Autowired
GroupPurchaseDiscountMapper
groupPurchaseDiscountMapper
;
@Override
public
int
insert
(
GroupPurchaseDiscount
groupPurchaseDiscount
)
{
return
groupPurchaseDiscountMapper
.
insert
(
groupPurchaseDiscount
);
}
@Override
public
List
<
GroupPurchaseDiscount
>
findByItemId
(
long
itemId
)
{
GroupPurchaseDiscountExample
example
=
new
GroupPurchaseDiscountExample
();
GroupPurchaseDiscountExample
.
Criteria
criteria
=
example
.
createCriteria
();;
criteria
.
andItemIdEqualTo
(
itemId
);
return
groupPurchaseDiscountMapper
.
selectByExample
(
example
);
}
@Override
public
boolean
isExisted
(
long
itemId
)
{
GroupPurchaseDiscountExample
example
=
new
GroupPurchaseDiscountExample
();
GroupPurchaseDiscountExample
.
Criteria
criteria
=
example
.
createCriteria
();;
criteria
.
andItemIdEqualTo
(
itemId
);
return
groupPurchaseDiscountMapper
.
countByExample
(
example
)
>
0
;
}
@Override
public
boolean
delete
(
long
itemId
)
{
GroupPurchaseDiscountExample
example
=
new
GroupPurchaseDiscountExample
();
GroupPurchaseDiscountExample
.
Criteria
criteria
=
example
.
createCriteria
();;
criteria
.
andItemIdEqualTo
(
itemId
);
return
groupPurchaseDiscountMapper
.
deleteByExample
(
example
)
>
0
;
}
}
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/GroupPurchaseRecordDaoImpl.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.impl.distribution
;
import
com.wwdz.ch.db.dao.distribution.GroupPurchaseRecordDao
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseRecord
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseRecordExample
;
import
com.wwdz.ch.db.dto.request.distribution.GroupPurchaseRecordRequestDto
;
import
com.wwdz.ch.db.mapper.distribution.GroupPurchaseRecordMapper
;
import
com.xxdxxs.db.component.JdbcHelper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Repository
public
class
GroupPurchaseRecordDaoImpl
implements
GroupPurchaseRecordDao
{
@Autowired
GroupPurchaseRecordMapper
groupPurchaseRecordMapper
;
@Override
public
int
insert
(
GroupPurchaseRecord
groupPurchaseRecord
)
{
return
groupPurchaseRecordMapper
.
insert
(
groupPurchaseRecord
);
}
@Override
public
GroupPurchaseRecord
findByPayId
(
String
dispositPayId
)
{
GroupPurchaseRecordExample
example
=
new
GroupPurchaseRecordExample
();
GroupPurchaseRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andDepositPayIdEqualTo
(
dispositPayId
);
return
groupPurchaseRecordMapper
.
selectOneByExample
(
example
);
}
@Override
public
int
updateByPayId
(
GroupPurchaseRecord
groupPurchaseRecord
)
{
GroupPurchaseRecordExample
example
=
new
GroupPurchaseRecordExample
();
GroupPurchaseRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andDepositPayIdEqualTo
(
groupPurchaseRecord
.
getDepositPayId
());
return
groupPurchaseRecordMapper
.
updateByExampleSelective
(
groupPurchaseRecord
,
example
);
}
@Override
public
long
summaryItemNum
(
GroupPurchaseRecordRequestDto
dto
)
{
GroupPurchaseRecordExample
example
=
new
GroupPurchaseRecordExample
();
GroupPurchaseRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
JdbcHelper
.
ifPresent
(
dto
.
getItemId
(),
criteria:
:
andItemIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getUserId
(),
criteria:
:
andUserIdEqualTo
);
return
groupPurchaseRecordMapper
.
summaryItemNum
(
example
);
}
@Override
public
List
<
GroupPurchaseRecord
>
countPeople
(
GroupPurchaseRecordRequestDto
dto
)
{
GroupPurchaseRecordExample
example
=
new
GroupPurchaseRecordExample
();
example
.
setDistinct
(
true
);
GroupPurchaseRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
JdbcHelper
.
ifPresent
(
dto
.
getItemId
(),
criteria:
:
andItemIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getUserId
(),
criteria:
:
andUserIdEqualTo
);
return
groupPurchaseRecordMapper
.
selectByExampleSelective
(
example
,
GroupPurchaseRecord
.
Column
.
userId
);
}
}
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/GroupPurchaseConfigMapper.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.mapper.distribution
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseConfig
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseConfigExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
GroupPurchaseConfigMapper
{
long
countByExample
(
GroupPurchaseConfigExample
example
);
int
deleteByExample
(
GroupPurchaseConfigExample
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
GroupPurchaseConfig
record
);
int
insertSelective
(
GroupPurchaseConfig
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
GroupPurchaseConfig
selectOneByExample
(
GroupPurchaseConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
GroupPurchaseConfig
selectOneByExampleSelective
(
@Param
(
"example"
)
GroupPurchaseConfigExample
example
,
@Param
(
"selective"
)
GroupPurchaseConfig
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
GroupPurchaseConfig
>
selectByExampleSelective
(
@Param
(
"example"
)
GroupPurchaseConfigExample
example
,
@Param
(
"selective"
)
GroupPurchaseConfig
.
Column
...
selective
);
List
<
GroupPurchaseConfig
>
selectByExample
(
GroupPurchaseConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
GroupPurchaseConfig
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"selective"
)
GroupPurchaseConfig
.
Column
...
selective
);
GroupPurchaseConfig
selectByPrimaryKey
(
Integer
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
GroupPurchaseConfig
record
,
@Param
(
"example"
)
GroupPurchaseConfigExample
example
);
int
updateByExample
(
@Param
(
"record"
)
GroupPurchaseConfig
record
,
@Param
(
"example"
)
GroupPurchaseConfigExample
example
);
int
updateByPrimaryKeySelective
(
GroupPurchaseConfig
record
);
int
updateByPrimaryKey
(
GroupPurchaseConfig
record
);
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/GroupPurchaseDiscountMapper.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.mapper.distribution
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscount
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscountExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
GroupPurchaseDiscountMapper
{
long
countByExample
(
GroupPurchaseDiscountExample
example
);
int
deleteByExample
(
GroupPurchaseDiscountExample
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
GroupPurchaseDiscount
record
);
int
insertSelective
(
GroupPurchaseDiscount
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
GroupPurchaseDiscount
selectOneByExample
(
GroupPurchaseDiscountExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
GroupPurchaseDiscount
selectOneByExampleSelective
(
@Param
(
"example"
)
GroupPurchaseDiscountExample
example
,
@Param
(
"selective"
)
GroupPurchaseDiscount
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
GroupPurchaseDiscount
>
selectByExampleSelective
(
@Param
(
"example"
)
GroupPurchaseDiscountExample
example
,
@Param
(
"selective"
)
GroupPurchaseDiscount
.
Column
...
selective
);
List
<
GroupPurchaseDiscount
>
selectByExample
(
GroupPurchaseDiscountExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_discount
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
GroupPurchaseDiscount
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"selective"
)
GroupPurchaseDiscount
.
Column
...
selective
);
GroupPurchaseDiscount
selectByPrimaryKey
(
Integer
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
GroupPurchaseDiscount
record
,
@Param
(
"example"
)
GroupPurchaseDiscountExample
example
);
int
updateByExample
(
@Param
(
"record"
)
GroupPurchaseDiscount
record
,
@Param
(
"example"
)
GroupPurchaseDiscountExample
example
);
int
updateByPrimaryKeySelective
(
GroupPurchaseDiscount
record
);
int
updateByPrimaryKey
(
GroupPurchaseDiscount
record
);
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/GroupPurchaseRecordMapper.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.db.mapper.distribution
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseRecord
;
import
com.wwdz.ch.db.domain.distribution.GroupPurchaseRecordExample
;
import
java.util.List
;
import
com.wwdz.ch.db.domain.distribution.UserAccountDetailExample
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
GroupPurchaseRecordMapper
{
long
countByExample
(
GroupPurchaseRecordExample
example
);
int
deleteByExample
(
GroupPurchaseRecordExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
GroupPurchaseRecord
record
);
int
insertSelective
(
GroupPurchaseRecord
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
GroupPurchaseRecord
selectOneByExample
(
GroupPurchaseRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
GroupPurchaseRecord
selectOneByExampleSelective
(
@Param
(
"example"
)
GroupPurchaseRecordExample
example
,
@Param
(
"selective"
)
GroupPurchaseRecord
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
GroupPurchaseRecord
>
selectByExampleSelective
(
@Param
(
"example"
)
GroupPurchaseRecordExample
example
,
@Param
(
"selective"
)
GroupPurchaseRecord
.
Column
...
selective
);
List
<
GroupPurchaseRecord
>
selectByExample
(
GroupPurchaseRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table group_purchase_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
GroupPurchaseRecord
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Long
id
,
@Param
(
"selective"
)
GroupPurchaseRecord
.
Column
...
selective
);
GroupPurchaseRecord
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
GroupPurchaseRecord
record
,
@Param
(
"example"
)
GroupPurchaseRecordExample
example
);
int
updateByExample
(
@Param
(
"record"
)
GroupPurchaseRecord
record
,
@Param
(
"example"
)
GroupPurchaseRecordExample
example
);
int
updateByPrimaryKeySelective
(
GroupPurchaseRecord
record
);
int
updateByPrimaryKey
(
GroupPurchaseRecord
record
);
long
summaryItemNum
(
GroupPurchaseRecordExample
example
);
}
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/GroupPurchaseConfigMapper.xml
0 → 100644
View file @
7bcff6ba
<?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.wwdz.ch.db.mapper.distribution.GroupPurchaseConfigMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseConfig"
>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"item_id"
jdbcType=
"BIGINT"
property=
"itemId"
/>
<result
column=
"creator_id"
jdbcType=
"BIGINT"
property=
"creatorId"
/>
<result
column=
"start_time"
jdbcType=
"TIMESTAMP"
property=
"startTime"
/>
<result
column=
"end_time"
jdbcType=
"TIMESTAMP"
property=
"endTime"
/>
<result
column=
"price"
jdbcType=
"BIGINT"
property=
"price"
/>
<result
column=
"supply_price"
jdbcType=
"BIGINT"
property=
"supplyPrice"
/>
<result
column=
"deposit"
jdbcType=
"BIGINT"
property=
"deposit"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"state"
jdbcType=
"INTEGER"
property=
"state"
/>
<result
column=
"is_valid"
jdbcType=
"BIT"
property=
"isValid"
/>
<result
column=
"is_deal"
jdbcType=
"BIT"
property=
"isDeal"
/>
</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, item_id, creator_id, start_time, end_time, price, supply_price, deposit, create_time,
update_time, `state`, is_valid, is_deal
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseConfigExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from group_purchase_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if
test=
"example.distinct"
>
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, item_id, creator_id, start_time, end_time, price, supply_price, deposit, create_time,
update_time, `state`, is_valid, is_deal
</otherwise>
</choose>
from group_purchase_config
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from group_purchase_config
where id = #{id,jdbcType=INTEGER}
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, item_id, creator_id, start_time, end_time, price, supply_price, deposit, create_time,
update_time, `state`, is_valid, is_deal
</otherwise>
</choose>
from group_purchase_config
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from group_purchase_config
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseConfigExample"
>
delete from group_purchase_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseConfig"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into group_purchase_config (item_id, creator_id, start_time,
end_time, price, supply_price,
deposit, create_time, update_time,
`state`, is_valid, is_deal)
values (#{itemId,jdbcType=BIGINT}, #{creatorId,jdbcType=BIGINT}, #{startTime,jdbcType=TIMESTAMP},
#{endTime,jdbcType=TIMESTAMP}, #{price,jdbcType=BIGINT}, #{supplyPrice,jdbcType=BIGINT},
#{deposit,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{state,jdbcType=INTEGER}, #{isValid,jdbcType=BIT}, #{isDeal,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseConfig"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into group_purchase_config
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"itemId != null"
>
item_id,
</if>
<if
test=
"creatorId != null"
>
creator_id,
</if>
<if
test=
"startTime != null"
>
start_time,
</if>
<if
test=
"endTime != null"
>
end_time,
</if>
<if
test=
"price != null"
>
price,
</if>
<if
test=
"supplyPrice != null"
>
supply_price,
</if>
<if
test=
"deposit != null"
>
deposit,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"state != null"
>
`state`,
</if>
<if
test=
"isValid != null"
>
is_valid,
</if>
<if
test=
"isDeal != null"
>
is_deal,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"itemId != null"
>
#{itemId,jdbcType=BIGINT},
</if>
<if
test=
"creatorId != null"
>
#{creatorId,jdbcType=BIGINT},
</if>
<if
test=
"startTime != null"
>
#{startTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"endTime != null"
>
#{endTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"price != null"
>
#{price,jdbcType=BIGINT},
</if>
<if
test=
"supplyPrice != null"
>
#{supplyPrice,jdbcType=BIGINT},
</if>
<if
test=
"deposit != null"
>
#{deposit,jdbcType=BIGINT},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"state != null"
>
#{state,jdbcType=INTEGER},
</if>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=BIT},
</if>
<if
test=
"isDeal != null"
>
#{isDeal,jdbcType=BIT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseConfigExample"
resultType=
"java.lang.Long"
>
select count(*) from group_purchase_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update group_purchase_config
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.itemId != null"
>
item_id = #{record.itemId,jdbcType=BIGINT},
</if>
<if
test=
"record.creatorId != null"
>
creator_id = #{record.creatorId,jdbcType=BIGINT},
</if>
<if
test=
"record.startTime != null"
>
start_time = #{record.startTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.endTime != null"
>
end_time = #{record.endTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.price != null"
>
price = #{record.price,jdbcType=BIGINT},
</if>
<if
test=
"record.supplyPrice != null"
>
supply_price = #{record.supplyPrice,jdbcType=BIGINT},
</if>
<if
test=
"record.deposit != null"
>
deposit = #{record.deposit,jdbcType=BIGINT},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.state != null"
>
`state` = #{record.state,jdbcType=INTEGER},
</if>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=BIT},
</if>
<if
test=
"record.isDeal != null"
>
is_deal = #{record.isDeal,jdbcType=BIT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update group_purchase_config
set id = #{record.id,jdbcType=INTEGER},
item_id = #{record.itemId,jdbcType=BIGINT},
creator_id = #{record.creatorId,jdbcType=BIGINT},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
price = #{record.price,jdbcType=BIGINT},
supply_price = #{record.supplyPrice,jdbcType=BIGINT},
deposit = #{record.deposit,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
`state` = #{record.state,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=BIT},
is_deal = #{record.isDeal,jdbcType=BIT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseConfig"
>
update group_purchase_config
<set>
<if
test=
"itemId != null"
>
item_id = #{itemId,jdbcType=BIGINT},
</if>
<if
test=
"creatorId != null"
>
creator_id = #{creatorId,jdbcType=BIGINT},
</if>
<if
test=
"startTime != null"
>
start_time = #{startTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"endTime != null"
>
end_time = #{endTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"price != null"
>
price = #{price,jdbcType=BIGINT},
</if>
<if
test=
"supplyPrice != null"
>
supply_price = #{supplyPrice,jdbcType=BIGINT},
</if>
<if
test=
"deposit != null"
>
deposit = #{deposit,jdbcType=BIGINT},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"state != null"
>
`state` = #{state,jdbcType=INTEGER},
</if>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=BIT},
</if>
<if
test=
"isDeal != null"
>
is_deal = #{isDeal,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseConfig"
>
update group_purchase_config
set item_id = #{itemId,jdbcType=BIGINT},
creator_id = #{creatorId,jdbcType=BIGINT},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
price = #{price,jdbcType=BIGINT},
supply_price = #{supplyPrice,jdbcType=BIGINT},
deposit = #{deposit,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
`state` = #{state,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=BIT},
is_deal = #{isDeal,jdbcType=BIT}
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseConfigExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from group_purchase_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, item_id, creator_id, start_time, end_time, price, supply_price, deposit, create_time,
update_time, `state`, is_valid, is_deal
</otherwise>
</choose>
from group_purchase_config
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
limit 1
</select>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/GroupPurchaseDiscountMapper.xml
0 → 100644
View file @
7bcff6ba
<?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.wwdz.ch.db.mapper.distribution.GroupPurchaseDiscountMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscount"
>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"item_id"
jdbcType=
"BIGINT"
property=
"itemId"
/>
<result
column=
"require_num"
jdbcType=
"INTEGER"
property=
"requireNum"
/>
<result
column=
"rebate"
jdbcType=
"DECIMAL"
property=
"rebate"
/>
<result
column=
"state"
jdbcType=
"INTEGER"
property=
"state"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</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, item_id, require_num, rebate, `state`, create_time, update_time
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscountExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from group_purchase_discount
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if
test=
"example.distinct"
>
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, item_id, require_num, rebate, `state`, create_time, update_time
</otherwise>
</choose>
from group_purchase_discount
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from group_purchase_discount
where id = #{id,jdbcType=INTEGER}
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, item_id, require_num, rebate, `state`, create_time, update_time
</otherwise>
</choose>
from group_purchase_discount
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from group_purchase_discount
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscountExample"
>
delete from group_purchase_discount
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscount"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into group_purchase_discount (item_id, require_num, rebate,
`state`, create_time, update_time
)
values (#{itemId,jdbcType=BIGINT}, #{requireNum,jdbcType=INTEGER}, #{rebate,jdbcType=DECIMAL},
#{state,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscount"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into group_purchase_discount
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"itemId != null"
>
item_id,
</if>
<if
test=
"requireNum != null"
>
require_num,
</if>
<if
test=
"rebate != null"
>
rebate,
</if>
<if
test=
"state != null"
>
`state`,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"itemId != null"
>
#{itemId,jdbcType=BIGINT},
</if>
<if
test=
"requireNum != null"
>
#{requireNum,jdbcType=INTEGER},
</if>
<if
test=
"rebate != null"
>
#{rebate,jdbcType=DECIMAL},
</if>
<if
test=
"state != null"
>
#{state,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscountExample"
resultType=
"java.lang.Long"
>
select count(*) from group_purchase_discount
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update group_purchase_discount
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.itemId != null"
>
item_id = #{record.itemId,jdbcType=BIGINT},
</if>
<if
test=
"record.requireNum != null"
>
require_num = #{record.requireNum,jdbcType=INTEGER},
</if>
<if
test=
"record.rebate != null"
>
rebate = #{record.rebate,jdbcType=DECIMAL},
</if>
<if
test=
"record.state != null"
>
`state` = #{record.state,jdbcType=INTEGER},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update group_purchase_discount
set id = #{record.id,jdbcType=INTEGER},
item_id = #{record.itemId,jdbcType=BIGINT},
require_num = #{record.requireNum,jdbcType=INTEGER},
rebate = #{record.rebate,jdbcType=DECIMAL},
`state` = #{record.state,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscount"
>
update group_purchase_discount
<set>
<if
test=
"itemId != null"
>
item_id = #{itemId,jdbcType=BIGINT},
</if>
<if
test=
"requireNum != null"
>
require_num = #{requireNum,jdbcType=INTEGER},
</if>
<if
test=
"rebate != null"
>
rebate = #{rebate,jdbcType=DECIMAL},
</if>
<if
test=
"state != null"
>
`state` = #{state,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscount"
>
update group_purchase_discount
set item_id = #{itemId,jdbcType=BIGINT},
require_num = #{requireNum,jdbcType=INTEGER},
rebate = #{rebate,jdbcType=DECIMAL},
`state` = #{state,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseDiscountExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from group_purchase_discount
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, item_id, require_num, rebate, `state`, create_time, update_time
</otherwise>
</choose>
from group_purchase_discount
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
limit 1
</select>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/GroupPurchaseRecordMapper.xml
0 → 100644
View file @
7bcff6ba
<?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.wwdz.ch.db.mapper.distribution.GroupPurchaseRecordMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseRecord"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"deposit_pay_id"
jdbcType=
"VARCHAR"
property=
"depositPayId"
/>
<result
column=
"distribution_order_id"
jdbcType=
"VARCHAR"
property=
"distributionOrderId"
/>
<result
column=
"prepay_id"
jdbcType=
"VARCHAR"
property=
"prepayId"
/>
<result
column=
"transaction_id"
jdbcType=
"VARCHAR"
property=
"transactionId"
/>
<result
column=
"item_id"
jdbcType=
"BIGINT"
property=
"itemId"
/>
<result
column=
"item_num"
jdbcType=
"INTEGER"
property=
"itemNum"
/>
<result
column=
"user_id"
jdbcType=
"BIGINT"
property=
"userId"
/>
<result
column=
"user_openid"
jdbcType=
"VARCHAR"
property=
"userOpenid"
/>
<result
column=
"amount"
jdbcType=
"BIGINT"
property=
"amount"
/>
<result
column=
"pay_time"
jdbcType=
"TIMESTAMP"
property=
"payTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"state"
jdbcType=
"INTEGER"
property=
"state"
/>
</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, deposit_pay_id, distribution_order_id, prepay_id, transaction_id, item_id, item_num,
user_id, user_openid, amount, pay_time, create_time, update_time, `state`
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseRecordExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from group_purchase_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if
test=
"example.distinct"
>
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, deposit_pay_id, distribution_order_id, prepay_id, transaction_id, item_id, item_num,
user_id, user_openid, amount, pay_time, create_time, update_time, `state`
</otherwise>
</choose>
from group_purchase_record
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from group_purchase_record
where id = #{id,jdbcType=BIGINT}
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, deposit_pay_id, distribution_order_id, prepay_id, transaction_id, item_id, item_num,
user_id, user_openid, amount, pay_time, create_time, update_time, `state`
</otherwise>
</choose>
from group_purchase_record
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from group_purchase_record
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseRecordExample"
>
delete from group_purchase_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseRecord"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into group_purchase_record (deposit_pay_id, distribution_order_id,
prepay_id, transaction_id, item_id,
item_num, user_id, user_openid,
amount, pay_time, create_time,
update_time, `state`)
values (#{depositPayId,jdbcType=VARCHAR}, #{distributionOrderId,jdbcType=VARCHAR},
#{prepayId,jdbcType=VARCHAR}, #{transactionId,jdbcType=VARCHAR}, #{itemId,jdbcType=BIGINT},
#{itemNum,jdbcType=INTEGER}, #{userId,jdbcType=BIGINT}, #{userOpenid,jdbcType=VARCHAR},
#{amount,jdbcType=BIGINT}, #{payTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{state,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseRecord"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into group_purchase_record
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"depositPayId != null"
>
deposit_pay_id,
</if>
<if
test=
"distributionOrderId != null"
>
distribution_order_id,
</if>
<if
test=
"prepayId != null"
>
prepay_id,
</if>
<if
test=
"transactionId != null"
>
transaction_id,
</if>
<if
test=
"itemId != null"
>
item_id,
</if>
<if
test=
"itemNum != null"
>
item_num,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"userOpenid != null"
>
user_openid,
</if>
<if
test=
"amount != null"
>
amount,
</if>
<if
test=
"payTime != null"
>
pay_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"state != null"
>
`state`,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"depositPayId != null"
>
#{depositPayId,jdbcType=VARCHAR},
</if>
<if
test=
"distributionOrderId != null"
>
#{distributionOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"prepayId != null"
>
#{prepayId,jdbcType=VARCHAR},
</if>
<if
test=
"transactionId != null"
>
#{transactionId,jdbcType=VARCHAR},
</if>
<if
test=
"itemId != null"
>
#{itemId,jdbcType=BIGINT},
</if>
<if
test=
"itemNum != null"
>
#{itemNum,jdbcType=INTEGER},
</if>
<if
test=
"userId != null"
>
#{userId,jdbcType=BIGINT},
</if>
<if
test=
"userOpenid != null"
>
#{userOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"amount != null"
>
#{amount,jdbcType=BIGINT},
</if>
<if
test=
"payTime != null"
>
#{payTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"state != null"
>
#{state,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseRecordExample"
resultType=
"java.lang.Long"
>
select count(*) from group_purchase_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update group_purchase_record
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.depositPayId != null"
>
deposit_pay_id = #{record.depositPayId,jdbcType=VARCHAR},
</if>
<if
test=
"record.distributionOrderId != null"
>
distribution_order_id = #{record.distributionOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"record.prepayId != null"
>
prepay_id = #{record.prepayId,jdbcType=VARCHAR},
</if>
<if
test=
"record.transactionId != null"
>
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
</if>
<if
test=
"record.itemId != null"
>
item_id = #{record.itemId,jdbcType=BIGINT},
</if>
<if
test=
"record.itemNum != null"
>
item_num = #{record.itemNum,jdbcType=INTEGER},
</if>
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=BIGINT},
</if>
<if
test=
"record.userOpenid != null"
>
user_openid = #{record.userOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"record.amount != null"
>
amount = #{record.amount,jdbcType=BIGINT},
</if>
<if
test=
"record.payTime != null"
>
pay_time = #{record.payTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.state != null"
>
`state` = #{record.state,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update group_purchase_record
set id = #{record.id,jdbcType=BIGINT},
deposit_pay_id = #{record.depositPayId,jdbcType=VARCHAR},
distribution_order_id = #{record.distributionOrderId,jdbcType=VARCHAR},
prepay_id = #{record.prepayId,jdbcType=VARCHAR},
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
item_id = #{record.itemId,jdbcType=BIGINT},
item_num = #{record.itemNum,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=BIGINT},
user_openid = #{record.userOpenid,jdbcType=VARCHAR},
amount = #{record.amount,jdbcType=BIGINT},
pay_time = #{record.payTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
`state` = #{record.state,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseRecord"
>
update group_purchase_record
<set>
<if
test=
"depositPayId != null"
>
deposit_pay_id = #{depositPayId,jdbcType=VARCHAR},
</if>
<if
test=
"distributionOrderId != null"
>
distribution_order_id = #{distributionOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"prepayId != null"
>
prepay_id = #{prepayId,jdbcType=VARCHAR},
</if>
<if
test=
"transactionId != null"
>
transaction_id = #{transactionId,jdbcType=VARCHAR},
</if>
<if
test=
"itemId != null"
>
item_id = #{itemId,jdbcType=BIGINT},
</if>
<if
test=
"itemNum != null"
>
item_num = #{itemNum,jdbcType=INTEGER},
</if>
<if
test=
"userId != null"
>
user_id = #{userId,jdbcType=BIGINT},
</if>
<if
test=
"userOpenid != null"
>
user_openid = #{userOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"amount != null"
>
amount = #{amount,jdbcType=BIGINT},
</if>
<if
test=
"payTime != null"
>
pay_time = #{payTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"state != null"
>
`state` = #{state,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseRecord"
>
update group_purchase_record
set deposit_pay_id = #{depositPayId,jdbcType=VARCHAR},
distribution_order_id = #{distributionOrderId,jdbcType=VARCHAR},
prepay_id = #{prepayId,jdbcType=VARCHAR},
transaction_id = #{transactionId,jdbcType=VARCHAR},
item_id = #{itemId,jdbcType=BIGINT},
item_num = #{itemNum,jdbcType=INTEGER},
user_id = #{userId,jdbcType=BIGINT},
user_openid = #{userOpenid,jdbcType=VARCHAR},
amount = #{amount,jdbcType=BIGINT},
pay_time = #{payTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
`state` = #{state,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseRecordExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from group_purchase_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, deposit_pay_id, distribution_order_id, prepay_id, transaction_id, item_id, item_num,
user_id, user_openid, amount, pay_time, create_time, update_time, `state`
</otherwise>
</choose>
from group_purchase_record
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
limit 1
</select>
<select
id=
"summaryItemNum"
parameterType=
"com.wwdz.ch.db.domain.distribution.GroupPurchaseRecordExample"
resultType=
"java.lang.Long"
>
select IFNULL(sum(item_num), 0) as totalAmount from group_purchase_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/generatorConfig_new.xml
View file @
7bcff6ba
...
...
@@ -63,16 +63,16 @@
<!--生成Model类存放位置-->
<javaModelGenerator
targetPackage=
"com.wwdz.ch.db.domain"
targetProject=
"ch-dao/src/main/java"
>
<javaModelGenerator
targetPackage=
"com.wwdz.ch.db.domain
.distribution
"
targetProject=
"ch-dao/src/main/java"
>
<property
name=
"enableSubPackages"
value=
"true"
/>
<property
name=
"trimStrings"
value=
"true"
/>
</javaModelGenerator>
<sqlMapGenerator
targetPackage=
"com.wwdz.ch.db.mapper"
targetProject=
"ch-dao/src/main/resources"
/>
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.mapper"
<sqlMapGenerator
targetPackage=
"com.wwdz.ch.db.mapper
.distribution
"
targetProject=
"ch-dao/src/main/resources"
/>
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.mapper
.distribution
"
targetProject=
"ch-dao/src/main/java"
/>
<table
tableName=
"
collector_white_list
"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<table
tableName=
"
group_purchase_record
"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<generatedKey
column=
"id"
sqlStatement=
"Mysql"
identity=
"true"
/>
</table>
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/WxPayCallbackController.java
View file @
7bcff6ba
...
...
@@ -8,10 +8,7 @@ import com.wechat.pay.java.service.refund.model.RefundNotification;
import
com.wwdz.ch.core.api.OfficialAccountApi
;
import
com.wwdz.ch.core.api.WxAppletApi
;
import
com.wwdz.ch.core.api.wxpay.WxPayServiceApi
;
import
com.wwdz.ch.core.consts.AuctionEnum
;
import
com.wwdz.ch.core.consts.BillEnum
;
import
com.wwdz.ch.core.consts.DistributionEnum
;
import
com.wwdz.ch.core.consts.RefundOrderEnum
;
import
com.wwdz.ch.core.consts.*
;
import
com.wwdz.ch.core.notify.AliSmsSender
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.util.PriceUtil
;
...
...
@@ -23,11 +20,8 @@ import com.wwdz.ch.db.dto.request.distribution.DistributionOrderRequestDto;
import
com.wwdz.ch.core.entity.DistributionOrderNoticeMsg
;
import
com.wwdz.ch.core.entity.PayNoticeMsg
;
import
com.wwdz.ch.core.service.SendMsgService
;
import
com.wwdz.ch.db.dto.request.distribution.IdentifyOrderRequestDto
;
import
com.wwdz.ch.wx.service.distribution.IdentifyOrderService
;
import
com.wwdz.ch.wx.service.distribution.SupplierItemService
;
import
com.wwdz.ch.wx.service.distribution.UserAccountDetailService
;
import
com.wwdz.ch.wx.service.distribution.UserBillService
;
import
com.wwdz.ch.db.dto.request.distribution.GroupPurchaseRecordRequestDto
;
import
com.wwdz.ch.wx.service.distribution.*
;
import
com.xxdxxs.utils.JsonUtils
;
import
com.xxdxxs.utils.StringUtils
;
import
org.slf4j.Logger
;
...
...
@@ -110,6 +104,12 @@ public class WxPayCallbackController {
@Autowired
UserAccountDetailService
userAccountDetailService
;
@Autowired
DistributionOrderService
distributionOrderService
;
@Autowired
GroupPurchaseRecordDao
groupPurchaseRecordDao
;
@RequestMapping
(
value
=
"/getPayNotify"
)
public
String
payNotify
(
HttpServletRequest
request
)
throws
IOException
{
logger
.
info
(
"------------------ 收到微信支付回调通知 ------------------"
);
...
...
@@ -166,32 +166,46 @@ public class WxPayCallbackController {
Result
<
Transaction
>
queryResult
=
wxPayServiceApi
.
queryOrderBytOutTradeNo
(
distributionOrderRequestDto
);
//支付成功,修改订单状态
if
(
queryResult
.
getSuccess
())
{
//查询系统中订单现在的状态,避免重复更新
DistributionOrder
distributionOrder
=
distributionOrderDao
.
findById
(
distributionOrderId
);
if
(
distributionOrder
.
getState
()
==
DistributionEnum
.
DistributionOrderStateEnum
.
PRE_PAY
.
getCode
())
{
//一口价处理逻辑
if
(
distributionOrder
.
getType
()
==
DistributionEnum
.
DistributionTypeEnum
.
FIXED_PRICE
.
getCode
())
{
Result
updateResult
=
updateOrderStateAndInsertProfit
(
transaction
);
if
(!
updateResult
.
getSuccess
())
{
return
JsonUtils
.
from
(
returnMap
);
}
}
else
if
(
distributionOrder
.
getType
()
==
DistributionEnum
.
DistributionTypeEnum
.
AUCTION
.
getCode
())
{
//竞拍订单处理
Result
updateResult
=
handleAuctionOrder
(
transaction
);
if
(!
updateResult
.
getSuccess
())
{
return
JsonUtils
.
from
(
returnMap
);
}
}
else
if
(
distributionOrder
.
getType
()
==
DistributionEnum
.
DistributionTypeEnum
.
COLLECT
.
getCode
())
{
//藏馆订单
Result
updateResult
=
handleOrderOfCollector
(
transaction
);
if
(!
updateResult
.
getSuccess
())
{
return
JsonUtils
.
from
(
returnMap
);
}
}
else
if
(
distributionOrder
.
getType
()
==
DistributionEnum
.
DistributionTypeEnum
.
DISCOUNT
.
getCode
())
{
//折扣订单
Result
updateResult
=
handleOrderOfDiscount
(
transaction
);
if
(!
updateResult
.
getSuccess
())
{
return
JsonUtils
.
from
(
returnMap
);
//处理团购支付订单定金的逻辑,判断单号的前缀是否是定金交易订单号
if
(
distributionOrderId
.
startsWith
(
CommConsts
.
GROUPPURCHASE_DEPOSIT_PREFIX
))
{
Result
updateResult
=
handleOrderOfDeposit
(
transaction
);
if
(!
updateResult
.
getSuccess
())
{
return
JsonUtils
.
from
(
returnMap
);
}
}
else
{
//查询系统中订单现在的状态,避免重复更新
DistributionOrder
distributionOrder
=
distributionOrderDao
.
findById
(
distributionOrderId
);
if
(
distributionOrder
.
getState
()
==
DistributionEnum
.
DistributionOrderStateEnum
.
PRE_PAY
.
getCode
())
{
//一口价处理逻辑
if
(
distributionOrder
.
getType
()
==
DistributionEnum
.
DistributionTypeEnum
.
FIXED_PRICE
.
getCode
())
{
Result
updateResult
=
updateOrderStateAndInsertProfit
(
transaction
);
if
(!
updateResult
.
getSuccess
())
{
return
JsonUtils
.
from
(
returnMap
);
}
}
else
if
(
distributionOrder
.
getType
()
==
DistributionEnum
.
DistributionTypeEnum
.
AUCTION
.
getCode
())
{
//竞拍订单处理
Result
updateResult
=
handleAuctionOrder
(
transaction
);
if
(!
updateResult
.
getSuccess
())
{
return
JsonUtils
.
from
(
returnMap
);
}
}
else
if
(
distributionOrder
.
getType
()
==
DistributionEnum
.
DistributionTypeEnum
.
COLLECT
.
getCode
())
{
//藏馆订单
Result
updateResult
=
handleOrderOfCollector
(
transaction
);
if
(!
updateResult
.
getSuccess
())
{
return
JsonUtils
.
from
(
returnMap
);
}
}
else
if
(
distributionOrder
.
getType
()
==
DistributionEnum
.
DistributionTypeEnum
.
DISCOUNT
.
getCode
())
{
//折扣订单
Result
updateResult
=
handleOrderOfDiscount
(
transaction
);
if
(!
updateResult
.
getSuccess
())
{
return
JsonUtils
.
from
(
returnMap
);
}
}
else
if
(
distributionOrder
.
getType
()
==
DistributionEnum
.
DistributionTypeEnum
.
GROUP_PURCHASE
.
getCode
())
{
//团购订单
Result
updateResult
=
handleOrderOfGroupPurchase
(
transaction
);
if
(!
updateResult
.
getSuccess
())
{
return
JsonUtils
.
from
(
returnMap
);
}
}
}
}
...
...
@@ -386,6 +400,45 @@ public class WxPayCallbackController {
}
/**
* 处理团购订单定金支付回调
* @return
*/
public
Result
handleOrderOfDeposit
(
Transaction
transaction
)
{
try
{
//商户订单号,分销订单号
String
depositPayId
=
transaction
.
getOutTradeNo
();
//微信支付交易id
String
transactionId
=
transaction
.
getTransactionId
();
//支付成功时间
String
payTime
=
transaction
.
getSuccessTime
();
//支付成功,更新团购定金交易单状态
GroupPurchaseRecord
groupPurchaseRecord
=
new
GroupPurchaseRecord
();
groupPurchaseRecord
.
setDepositPayId
(
depositPayId
);
groupPurchaseRecord
.
setTransactionId
(
transactionId
);
groupPurchaseRecord
.
setPayTime
(
TimeUtil
.
wxTimeConvertToDate
(
payTime
));
groupPurchaseRecord
.
setState
(
GroupPurchaseEnum
.
StateEnum
.
VALID
.
getCode
());
groupPurchaseRecordDao
.
updateByPayId
(
groupPurchaseRecord
);
logger
.
info
(
">>>>>>>>>>>> 团购订单定金支付,微信支付回调通知处理成功,更新定金交易订单状态 <<<<<<<<<<<<"
);
//创建团购订单,状态为预售中
GroupPurchaseRecordRequestDto
groupPurchaseRecordRequestDto
=
new
GroupPurchaseRecordRequestDto
();
groupPurchaseRecordRequestDto
.
setDepositPayId
(
depositPayId
);
Result
result
=
distributionOrderService
.
createGroupPurchaseOrder
(
groupPurchaseRecordRequestDto
);
if
(
result
.
getSuccess
())
{
logger
.
info
(
">>>>>>>>>>>> 团购订单定金支付成功,创建团购订单成功,订单号:{} <<<<<<<<<<<<"
,
result
.
getData
().
toString
());
}
else
{
logger
.
info
(
">>>>>>>>>>>> 团购订单定金支付成功,创建团购订单失败<<<<<<<<<<<<"
);
}
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
">>>>>>>>>>>> 团购订单支付定金回调通知处理失败 error :{}"
,
e
);
}
return
Result
.
failed
();
}
/**
* 更新折扣订单状态
* @return
...
...
@@ -417,6 +470,47 @@ public class WxPayCallbackController {
}
/**
* 处理团购订单的回调
* @param transaction
* @return
*/
public
Result
handleOrderOfGroupPurchase
(
Transaction
transaction
)
{
try
{
//商户订单号,分销订单号
String
distributionOrderId
=
transaction
.
getOutTradeNo
();
//微信支付交易id
String
transactionId
=
transaction
.
getTransactionId
();
//支付成功时间
String
payTime
=
transaction
.
getSuccessTime
();
//支付成功,更新订单状态为待发货
DistributionOrder
distributionOrderDto
=
new
DistributionOrder
();
distributionOrderDto
.
setDistributionOrderId
(
distributionOrderId
);
distributionOrderDto
.
setTransactionId
(
transactionId
);
distributionOrderDto
.
setPayTime
(
TimeUtil
.
wxTimeConvertToDate
(
payTime
));
distributionOrderDto
.
setState
(
DistributionEnum
.
DistributionOrderStateEnum
.
PRE_SEND
.
getCode
());
distributionOrderDao
.
update
(
distributionOrderDto
);
//用户付款成功后,把分销商利润的记录更新为有效,因为未付款前只是创建了预计利润记录,但并未生效
distributorProfitDao
.
updateValidState
(
distributionOrderId
,
true
);
DistributionOrder
distributionOrder
=
distributionOrderDao
.
findById
(
distributionOrderId
);
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
distributionOrder
.
getItemId
());
//更新库存
supplierItemService
.
reduceStock
(
distributionOrder
.
getItemId
(),
distributionOrder
.
getItemNum
());
logger
.
info
(
">>>>>>>>>>>> 团购订单,微信支付回调通知处理成功,更新拍卖订单状态和商品库存 <<<<<<<<<<<<"
);
//新增用户账户的明细,调整月度账单
DistributorProfit
distributorProfit
=
distributorProfitDao
.
findById
(
distributionOrderId
);
userAccountDetailService
.
create
(
distributionOrder
,
distributorProfit
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
">>>>>>>>>>>> 竞拍订单,微信支付回调通知处理失败 error :{}"
,
e
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
}
return
Result
.
failed
();
}
/**
* 获取请求体
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/CollectionShareRecordServiceImpl.java
View file @
7bcff6ba
...
...
@@ -61,10 +61,10 @@ public class CollectionShareRecordServiceImpl implements CollectionShareRecordSe
map
.
put
(
"imageList"
,
imageList
);
map
.
put
(
"count"
,
pageInfo
.
getTotal
());
}
logger
.
info
(
"创建藏
品或藏馆
分享链接返回结果:{}"
,
JsonUtils
.
from
(
map
));
logger
.
info
(
"创建藏
家藏品相关的
分享链接返回结果:{}"
,
JsonUtils
.
from
(
map
));
return
Result
.
success
(
map
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"创建藏
品或藏馆
分享链接失败 error: {}"
,
e
);
logger
.
error
(
"创建藏
家藏品相关的
分享链接失败 error: {}"
,
e
);
}
return
Result
.
failed
();
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
View file @
7bcff6ba
...
...
@@ -19,6 +19,7 @@ import com.wwdz.ch.db.domain.FollowFansRecord;
import
com.wwdz.ch.db.domain.distribution.*
;
import
com.wwdz.ch.db.dto.request.FollowFansRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.DistributionOrderRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.GroupPurchaseRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.SupplierItemRequestDto
;
import
com.wwdz.ch.core.api.WxAppletApi
;
import
com.wwdz.ch.core.entity.AuctionOfferNoticeMsg
;
...
...
@@ -124,6 +125,12 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
@Autowired
CollectorWhiteListDao
collectorWhiteListDao
;
@Autowired
GroupPurchaseConfigDao
groupPurchaseConfigDao
;
@Autowired
GroupPurchaseRecordDao
groupPurchaseRecordDao
;
@Transactional
@Override
public
Result
createDistributionOrder
(
DistributionOrderRequestDto
dto
)
{
...
...
@@ -295,7 +302,6 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
distributorProfit
.
setChannelCost
(
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
channelServiceCost
)));
distributorProfit
.
setIntroduceCost
(
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
introduceCost
)));
distributorProfit
.
setDistributionOrderId
(
distributionOrderId
);
distributorProfit
.
setDistributorId
(
distributionOrder
.
getSellerId
());
distributorProfit
.
setItemId
(
distributionOrder
.
getItemId
());
...
...
@@ -476,6 +482,55 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
return
Result
.
failed
(
"藏品一口价订单下单失败"
);
}
@Override
public
Result
createGroupPurchaseOrder
(
GroupPurchaseRecordRequestDto
dto
)
{
try
{
//查询团购定金
GroupPurchaseRecord
groupPurchaseRecord
=
groupPurchaseRecordDao
.
findByPayId
(
dto
.
getDepositPayId
());
long
itemId
=
groupPurchaseRecord
.
getItemId
();
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
itemId
);
//查询该用户和藏家的介绍人
FollowFansRecordRequestDto
followFansRecordRequestDto
=
new
FollowFansRecordRequestDto
();
followFansRecordRequestDto
.
setFollowerId
(
supplierItem
.
getCreatorId
());
followFansRecordRequestDto
.
setFansId
(
groupPurchaseRecord
.
getUserId
());
FollowFansRecord
followFansRecord
=
followFansRecordDao
.
findOne
(
followFansRecordRequestDto
);
long
introducerId
;
//没有关注记录,则介绍费算作平台的
if
(
followFansRecord
==
null
)
{
introducerId
=
CommConsts
.
SYSTEM_ACCOUNT
;
}
else
{
//把介绍人作为该订单的分享链接字段的值
introducerId
=
followFansRecord
.
getIntroducerId
();
}
//查询团购商品配置
GroupPurchaseConfig
groupPurchaseConfig
=
groupPurchaseConfigDao
.
findByItemId
(
itemId
);
String
distributionOrderId
=
IdUtils
.
getOrderNumber
(
DISTRIBUTION_ORDER_PREFIX
);
DistributionOrder
distributionOrder
=
new
DistributionOrder
();
distributionOrder
.
setItemId
(
itemId
);
distributionOrder
.
setItemNum
(
groupPurchaseRecord
.
getItemNum
());
distributionOrder
.
setShareRecordId
(
String
.
valueOf
(
introducerId
));
distributionOrder
.
setDistributionOrderId
(
distributionOrderId
);
distributionOrder
.
setBuyerId
(
groupPurchaseRecord
.
getUserId
());
distributionOrder
.
setBuyerOpenid
(
groupPurchaseRecord
.
getUserOpenid
());
distributionOrder
.
setShopId
(
supplierItem
.
getCreatorId
());
distributionOrder
.
setSellerId
(
supplierItem
.
getCreatorId
());
distributionOrder
.
setAmount
(
groupPurchaseConfig
.
getPrice
());
distributionOrder
.
setCreateTime
(
new
Date
());
distributionOrder
.
setUpdateTime
(
new
Date
());
distributionOrder
.
setState
(
DistributionEnum
.
DistributionOrderStateEnum
.
PRE_SALE
.
getCode
());
distributionOrder
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
GROUP_PURCHASE
.
getCode
());
distributionOrderDao
.
insert
(
distributionOrder
);
return
Result
.
success
(
distributionOrderId
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"团购订单创建失败 error : {}"
,
e
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
}
return
Result
.
failed
(
"团购订单创建失败"
);
}
@Override
public
Result
auctionPay
(
DistributionOrderRequestDto
dto
)
{
try
{
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/GroupPurchaseServiceImpl.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.wx.impl.distribution
;
import
com.wwdz.ch.core.api.wxpay.WxPayServiceApi
;
import
com.wwdz.ch.core.consts.CommConsts
;
import
com.wwdz.ch.core.consts.DistributionEnum
;
import
com.wwdz.ch.core.consts.GroupPurchaseEnum
;
import
com.wwdz.ch.core.consts.ResultCode
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.util.CacheUtil
;
import
com.wwdz.ch.core.util.IdUtils
;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.core.util.StringUtil
;
import
com.wwdz.ch.db.dao.distribution.*
;
import
com.wwdz.ch.db.domain.distribution.*
;
import
com.wwdz.ch.db.dto.request.FollowFansRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.DistributionOrderRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.GroupPurchaseRecordRequestDto
;
import
com.wwdz.ch.wx.service.distribution.DistributorProfitService
;
import
com.wwdz.ch.wx.service.distribution.GroupPurchaseService
;
import
jdk.internal.org.objectweb.asm.Handle
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.StringUtils
;
import
java.math.BigDecimal
;
import
java.util.*
;
@Service
public
class
GroupPurchaseServiceImpl
implements
GroupPurchaseService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
DistributionOrderServiceImpl
.
class
);
@Autowired
SupplierItemDao
supplierItemDao
;
@Autowired
GroupPurchaseConfigDao
groupPurchaseConfigDao
;
@Autowired
GroupPurchaseDiscountDao
groupPurchaseDiscountDao
;
@Autowired
GroupPurchaseRecordDao
groupPurchaseRecordDao
;
@Autowired
WxPayServiceApi
wxPayServiceApi
;
@Autowired
CacheUtil
cacheUtil
;
@Autowired
DistributorProfitService
distributorProfitService
;
@Autowired
DistributionOrderDao
distributionOrderDao
;
@Autowired
DistributorProfitDao
distributorProfitDao
;
@Override
public
Result
payDeposit
(
GroupPurchaseRecordRequestDto
dto
)
{
try
{
GroupPurchaseRecord
groupPurchaseRecord
=
new
GroupPurchaseRecord
();
//支付团购定金的交易单号
String
depositPayId
=
IdUtils
.
getOrderNumber
(
CommConsts
.
GROUPPURCHASE_DEPOSIT_PREFIX
);
groupPurchaseRecord
.
setDepositPayId
(
depositPayId
);
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
dto
.
getItemId
());
DistributionOrderRequestDto
prePayDto
=
new
DistributionOrderRequestDto
();
prePayDto
.
setDistributionOrderId
(
depositPayId
);
prePayDto
.
setAmount
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getAmount
()).
toString
());
String
openid
=
cacheUtil
.
appletUserInfoCache
.
get
(
dto
.
getUserId
()).
get
().
getWeixinOpenid
();
prePayDto
.
setBuyerOpenid
(
openid
);
prePayDto
.
setItemName
(
supplierItem
.
getName
());
Result
prePayResult
=
wxPayServiceApi
.
createPrepareOrder
(
prePayDto
);
if
(!
prePayResult
.
getSuccess
())
{
logger
.
error
(
">>>>>>>> 团购定金交易号: {}, 预下单失败 <<<<<<<<"
,
depositPayId
);
return
Result
.
failed
(
ResultCode
.
PAY_FAILED
);
}
String
prepayId
=
(
String
)
prePayResult
.
getData
();
groupPurchaseRecord
.
setPrepayId
(
prepayId
);
groupPurchaseRecord
.
setState
(
GroupPurchaseEnum
.
StateEnum
.
INVALID
.
getCode
());
groupPurchaseRecordDao
.
insert
(
groupPurchaseRecord
);
Result
result
=
wxPayServiceApi
.
wxAppPayTuneUp
(
prepayId
);
return
result
;
}
catch
(
Exception
e
)
{
logger
.
error
(
"团购定金预支付失败 error : {}"
,
e
);
}
return
Result
.
failed
(
"团购定金支付失败"
);
}
@Override
public
Result
checkGroupPurchase
(
GroupPurchaseRecordRequestDto
dto
)
{
try
{
//默认团购数量没达到要求,没有折扣
BigDecimal
rebate
=
new
BigDecimal
(
"1"
);
//查询当前团购的商品数量
long
itemNum
=
groupPurchaseRecordDao
.
summaryItemNum
(
dto
);
List
<
GroupPurchaseRecord
>
groupPurchaseRecords
=
groupPurchaseRecordDao
.
countPeople
(
dto
);
long
peopleNum
=
groupPurchaseRecords
.
size
();
List
<
String
>
userAvatarList
=
new
ArrayList
<>();
//查询参加团购用户头像
long
limitNum
=
3
;
if
(
0
<
peopleNum
&&
peopleNum
<
3
)
{
limitNum
=
peopleNum
;
}
for
(
int
i
=
0
;
i
<
limitNum
;
i
++)
{
long
userId
=
groupPurchaseRecords
.
get
(
0
).
getUserId
();
String
avatarUrl
=
cacheUtil
.
appletUserInfoCache
.
get
(
userId
).
get
().
getAvatar
();
userAvatarList
.
add
(
StringUtils
.
isEmpty
(
avatarUrl
)
?
CommConsts
.
DEFAULT_AVATAR_URL
:
avatarUrl
);
}
//查询团购的优惠信息
GroupPurchaseConfig
groupPurchaseConfig
=
groupPurchaseConfigDao
.
findByItemId
(
dto
.
getItemId
());
List
<
GroupPurchaseDiscount
>
groupPurchaseDiscounts
=
groupPurchaseDiscountDao
.
findByItemId
(
dto
.
getItemId
());
//目前只有一个优惠,取第一个
if
(
CollectionUtils
.
isEmpty
(
groupPurchaseDiscounts
))
{
return
Result
.
failed
(
"没有团购配置信息"
);
}
GroupPurchaseDiscount
groupPurchaseDiscount
=
groupPurchaseDiscounts
.
get
(
0
);
int
requireNum
=
groupPurchaseDiscount
.
getRequireNum
();
if
(
itemNum
>=
requireNum
)
{
rebate
=
groupPurchaseDiscount
.
getRebate
();
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"requireNum"
,
requireNum
);
map
.
put
(
"itemNum"
,
itemNum
);
map
.
put
(
"peopleNum"
,
peopleNum
);
map
.
put
(
"deposit"
,
PriceUtil
.
convertPriceFenToYuan
(
groupPurchaseConfig
.
getDeposit
()));
map
.
put
(
"rebate"
,
rebate
);
map
.
put
(
"endTime"
,
groupPurchaseConfig
.
getEndTime
());
map
.
put
(
"salePrice"
,
PriceUtil
.
convertPriceFenToYuan
(
groupPurchaseConfig
.
getPrice
()));
map
.
put
(
"userAvatarList"
,
userAvatarList
);
Date
now
=
new
Date
();
if
(
groupPurchaseConfig
.
getStartTime
().
after
(
now
)
&&
groupPurchaseConfig
.
getEndTime
().
after
(
now
))
{
map
.
put
(
"state"
,
GroupPurchaseEnum
.
ItemStateEnum
.
PROCESSING
);
}
else
if
(
groupPurchaseConfig
.
getEndTime
().
before
(
now
))
{
map
.
put
(
"state"
,
GroupPurchaseEnum
.
ItemStateEnum
.
END
);
}
else
{
map
.
put
(
"state"
,
GroupPurchaseEnum
.
ItemStateEnum
.
NOT_START
);
}
return
Result
.
success
(
map
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"查询团购进度失败 error : {}"
,
e
);
}
return
Result
.
failed
(
"查询团购进度失败"
);
}
@Override
@Transactional
public
Result
calculateProfit
(
GroupPurchaseRecordRequestDto
dto
)
{
try
{
String
distributionOrderId
=
dto
.
getDistributionOrderId
();
DistributionOrder
distributionOrder
=
distributionOrderDao
.
findById
(
distributionOrderId
);
long
itemId
=
distributionOrder
.
getItemId
();
GroupPurchaseConfig
groupPurchaseConfig
=
groupPurchaseConfigDao
.
findByItemId
(
itemId
);
//计算账单
DistributorProfit
distributorProfit
=
new
DistributorProfit
();
//查询介绍佣金比例
FollowFansRecordRequestDto
followFansRecordRequestDto
=
new
FollowFansRecordRequestDto
();
followFansRecordRequestDto
.
setFollowerId
(
distributionOrder
.
getSellerId
());
followFansRecordRequestDto
.
setFansId
(
distributionOrder
.
getBuyerId
());
double
rebate
=
distributorProfitService
.
getIntroduceRebate
(
followFansRecordRequestDto
);
double
introduceCost
=
distributionOrder
.
getAmount
().
doubleValue
()
*
rebate
;
//实际订单到账金额
double
realAmount
=
distributionOrder
.
getAmount
().
doubleValue
()
*
(
1
-
CommConsts
.
WX_COMMISSION_REBATE
);
//拍卖的平台佣金= 订单金额 - 藏家供货价 - 介绍佣金
double
channelServiceCost
=
distributionOrder
.
getAmount
().
doubleValue
()
-
groupPurchaseConfig
.
getSupplyPrice
()
-
introduceCost
;
distributorProfit
.
setChannelCost
(
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
channelServiceCost
)));
distributorProfit
.
setIntroduceCost
(
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
introduceCost
)));
distributorProfit
.
setDistributionOrderId
(
distributionOrderId
);
distributorProfit
.
setDistributorId
(
distributionOrder
.
getSellerId
());
distributorProfit
.
setItemId
(
distributionOrder
.
getItemId
());
distributorProfit
.
setItemNum
(
distributionOrder
.
getItemNum
());
distributorProfit
.
setAmount
(
distributionOrder
.
getAmount
());
distributorProfit
.
setRealAmount
(
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
realAmount
)));
distributorProfit
.
setItemCost
(
groupPurchaseConfig
.
getSupplyPrice
());
distributorProfit
.
setChannelCost
(
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
channelServiceCost
)));
distributorProfit
.
setIntroduceCost
(
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
introduceCost
)));
//团购订单,藏家的利润就是商品设置的供货价
distributorProfit
.
setProfit
(
groupPurchaseConfig
.
getSupplyPrice
());
distributorProfit
.
setCreateTime
(
new
Date
());
distributorProfit
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
GROUP_PURCHASE
.
getCode
());
distributorProfit
.
setIsValid
(
true
);
distributorProfitDao
.
insert
(
distributorProfit
);
}
catch
(
Exception
e
){
logger
.
error
(
"团购订单创建失败 error : {}"
,
e
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
}
return
Result
.
failed
(
"团购订单账单计算失败"
);
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
7bcff6ba
...
...
@@ -24,6 +24,7 @@ import com.wwdz.ch.wx.entity.vo.distribution.AuctionRecordRowVo;
import
com.wwdz.ch.wx.service.FollowFansRecordService
;
import
com.wwdz.ch.wx.service.distribution.CollectionItemsRelationService
;
import
com.wwdz.ch.wx.service.distribution.DistributionOrderService
;
import
com.wwdz.ch.wx.service.distribution.GroupPurchaseService
;
import
com.wwdz.ch.wx.service.distribution.SupplierItemService
;
import
com.wwdz.mall.common.vo.response.CloudServerResponse
;
import
com.wwdz.shop.api.DTO.ShopDTO
;
...
...
@@ -143,6 +144,8 @@ public class SupplierItemServiceImpl implements SupplierItemService {
@Autowired
DisposableSubscribeRecordDao
disposableSubscribeRecordDao
;
@Autowired
GroupPurchaseService
groupPurchaseService
;
@Override
public
Result
findList
(
SupplierItemRequestDto
dto
)
{
...
...
@@ -965,6 +968,60 @@ public class SupplierItemServiceImpl implements SupplierItemService {
}
@Override
public
Result
findGroupPurchaseItemDetail
(
SupplierItemRequestDto
dto
)
{
try
{
Long
itemId
;
String
shareRecordId
=
dto
.
getShareRecordId
();
CollectionShareRecord
collectionShareRecord
=
null
;
long
introducerId
=
CommConsts
.
SYSTEM_ACCOUNT
;
if
(
StringUtils
.
isEmpty
(
shareRecordId
)
&&
dto
.
getId
()
==
null
)
{
return
Result
.
failed
(
"商品信息为空"
);
}
else
if
(
StringUtils
.
hasLength
(
shareRecordId
)
&&
!
shareRecordId
.
equals
(
CommConsts
.
DEFAULT_SHARE_ID
))
{
collectionShareRecord
=
collectionShareRecordDao
.
findById
(
dto
.
getShareRecordId
());
introducerId
=
collectionShareRecord
.
getSharerId
();
itemId
=
collectionShareRecord
.
getShareTargetId
();
if
(
collectionShareRecord
!=
null
&&
collectionShareRecord
.
getItemUserId
().
longValue
()
!=
dto
.
getUserId
().
longValue
())
{
//客态进入别人的藏馆,自动关注
FollowFansRecordRequestDto
followFansRecordRequestDto
=
new
FollowFansRecordRequestDto
();
followFansRecordRequestDto
.
setFollowerId
(
collectionShareRecord
.
getItemUserId
());
followFansRecordRequestDto
.
setFansId
(
dto
.
getUserId
());
followFansRecordRequestDto
.
setIntroducerId
(
introducerId
);
Result
followResult
=
followFansRecordService
.
follow
(
followFansRecordRequestDto
);
if
(
followResult
.
getSuccess
())
{
logger
.
info
(
"查询团购商品详情api-通过分享点击,用户id:{} 关注了 用户id为 {}, 介绍人为{}"
,
dto
.
getUserId
(),
collectionShareRecord
.
getItemUserId
(),
collectionShareRecord
.
getSharerId
());
}
else
{
logger
.
info
(
"查询团购商品详情api-通过分享点击关注用户返回信息 : {}"
+
followResult
.
getErrmsg
());
}
}
}
else
{
itemId
=
dto
.
getId
();
}
if
(
itemId
==
null
)
{
return
Result
.
failed
(
"没有对应的商品id"
);
}
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
itemId
);
SupplierItemVo
supplierItemVo
=
new
SupplierItemVo
();
EntityMapper
.
copyAttribute
(
supplierItem
,
supplierItemVo
);
supplierItemVo
.
setHomePageImage
(
MediaUtil
.
getHomePageImage
(
supplierItem
.
getImages
(),
supplierItem
.
getVideos
()));
GroupPurchaseRecordRequestDto
groupPurchaseRecordRequestDto
=
new
GroupPurchaseRecordRequestDto
();
groupPurchaseRecordRequestDto
.
setItemId
(
itemId
);
Result
<
Map
<
String
,
Object
>>
result
=
groupPurchaseService
.
checkGroupPurchase
(
groupPurchaseRecordRequestDto
);
if
(!
result
.
getSuccess
())
{
return
Result
.
failed
(
"查询商品团购信息失败"
);
}
Map
<
String
,
Object
>
map
=
result
.
getData
();
Map
<
String
,
Object
>
resultData
=
new
HashMap
<>();
resultData
.
put
(
"itemInfo"
,
supplierItemVo
);
resultData
.
put
(
"groupPurchaseInfo"
,
map
);
return
Result
.
success
(
resultData
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"查询团购藏品详情 error : {}"
,
e
);
}
return
Result
.
failed
();
}
@Override
@Transactional
public
Result
delete
(
SupplierItemRequestDto
dto
)
{
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/DistributionOrderService.java
View file @
7bcff6ba
...
...
@@ -2,6 +2,7 @@ package com.wwdz.ch.wx.service.distribution;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.distribution.DistributionOrderRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.GroupPurchaseRecordRequestDto
;
public
interface
DistributionOrderService
{
...
...
@@ -30,6 +31,14 @@ public interface DistributionOrderService {
Result
createCollectionOrder
(
DistributionOrderRequestDto
dto
);
/**
* 创建团购订单
* @param dto
* @return
*/
Result
createGroupPurchaseOrder
(
GroupPurchaseRecordRequestDto
dto
);
/**
* 拍卖订单付款,先调用微信预支付接口,再拿prepay_id获取支付参数返回前端
* @param dto
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/GroupPurchaseService.java
0 → 100644
View file @
7bcff6ba
package
com.wwdz.ch.wx.service.distribution
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.distribution.GroupPurchaseRecordRequestDto
;
import
java.util.Map
;
public
interface
GroupPurchaseService
{
/**
* 支付团购定金
* @param dto
* @return
*/
Result
payDeposit
(
GroupPurchaseRecordRequestDto
dto
);
/**
* 查询团购当前进度
* @param dto
* @return
*/
Result
<
Map
<
String
,
Object
>>
checkGroupPurchase
(
GroupPurchaseRecordRequestDto
dto
);
Result
calculateProfit
(
GroupPurchaseRecordRequestDto
dto
);
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/SupplierItemService.java
View file @
7bcff6ba
...
...
@@ -98,6 +98,15 @@ public interface SupplierItemService {
*/
Result
findCollectionItemDetail
(
SupplierItemRequestDto
dto
);
/**
* 查询团购商品详情
* @param dto
* @return
*/
Result
findGroupPurchaseItemDetail
(
SupplierItemRequestDto
dto
);
/**
* 删除商品
* @param dto
...
...
Write
Preview
Markdown
is supported
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