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
6b20d566
Commit
6b20d566
authored
Mar 01, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
竞拍出价列表
parent
f66382b5
Changes
49
Hide whitespace changes
Inline
Side-by-side
Showing
49 changed files
with
6277 additions
and
44 deletions
+6277
-44
ch-admin-api/src/main/java/com/wwdz/ch/admin/config/ShiroConfig.java
...i/src/main/java/com/wwdz/ch/admin/config/ShiroConfig.java
+1
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/SysSupplierItemController.java
...m/wwdz/ch/admin/controller/SysSupplierItemController.java
+43
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
...va/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
+154
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/service/SysSupplierItemService.java
...ava/com/wwdz/ch/admin/service/SysSupplierItemService.java
+34
-0
ch-core/src/main/java/com/wwdz/ch/core/consts/DistributionEnum.java
...c/main/java/com/wwdz/ch/core/consts/DistributionEnum.java
+75
-0
ch-core/src/main/java/com/wwdz/ch/core/entity/SupplierItemVo.java
...src/main/java/com/wwdz/ch/core/entity/SupplierItemVo.java
+1
-1
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/AuctionConfigDao.java
...ava/com/wwdz/ch/db/dao/distribution/AuctionConfigDao.java
+39
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/AuctionRecordDao.java
...ava/com/wwdz/ch/db/dao/distribution/AuctionRecordDao.java
+55
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/SupplierItemDao.java
...java/com/wwdz/ch/db/dao/distribution/SupplierItemDao.java
+2
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/AuctionConfig.java
...ava/com/wwdz/ch/db/domain/distribution/AuctionConfig.java
+311
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/AuctionConfigExample.java
.../wwdz/ch/db/domain/distribution/AuctionConfigExample.java
+1623
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/AuctionRecord.java
...ava/com/wwdz/ch/db/domain/distribution/AuctionRecord.java
+291
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/AuctionRecordExample.java
.../wwdz/ch/db/domain/distribution/AuctionRecordExample.java
+1369
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/DistributionOrder.java
...com/wwdz/ch/db/domain/distribution/DistributionOrder.java
+12
-3
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/DistributionOrderExample.java
...z/ch/db/domain/distribution/DistributionOrderExample.java
+132
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/DistributorShareRecord.java
...wdz/ch/db/domain/distribution/DistributorShareRecord.java
+12
-3
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/DistributorShareRecordExample.java
...db/domain/distribution/DistributorShareRecordExample.java
+132
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/SupplierItem.java
...java/com/wwdz/ch/db/domain/distribution/SupplierItem.java
+10
-1
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/SupplierItemExample.java
...m/wwdz/ch/db/domain/distribution/SupplierItemExample.java
+132
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/AuctionConfigRequestDto.java
.../db/dto/request/distribution/AuctionConfigRequestDto.java
+60
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/AuctionRecordRequestDto.java
.../db/dto/request/distribution/AuctionRecordRequestDto.java
+49
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/SupplierItemRequestDto.java
...h/db/dto/request/distribution/SupplierItemRequestDto.java
+64
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
...om/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
+52
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AuctionRecordDaoImpl.java
...om/wwdz/ch/db/impl/distribution/AuctionRecordDaoImpl.java
+78
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/SupplierItemDaoImpl.java
...com/wwdz/ch/db/impl/distribution/SupplierItemDaoImpl.java
+6
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/AuctionConfigMapper.java
...m/wwdz/ch/db/mapper/distribution/AuctionConfigMapper.java
+69
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/AuctionRecordMapper.java
...m/wwdz/ch/db/mapper/distribution/AuctionRecordMapper.java
+69
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/AuctionConfigMapper.xml
...om/wwdz/ch/db/mapper/distribution/AuctionConfigMapper.xml
+389
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/AuctionRecordMapper.xml
...om/wwdz/ch/db/mapper/distribution/AuctionRecordMapper.xml
+356
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/DistributionOrderMapper.xml
...wdz/ch/db/mapper/distribution/DistributionOrderMapper.xml
+25
-9
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/DistributorShareRecordMapper.xml
...h/db/mapper/distribution/DistributorShareRecordMapper.xml
+27
-9
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/SupplierItemMapper.xml
...com/wwdz/ch/db/mapper/distribution/SupplierItemMapper.xml
+30
-13
ch-dao/src/main/resources/generatorConfig_new.xml
ch-dao/src/main/resources/generatorConfig_new.xml
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
.../main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/vo/distribution/AuctionDetailVo.java
...om/wwdz/ch/wx/entity/vo/distribution/AuctionDetailVo.java
+97
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/vo/distribution/AuctionRecordVo.java
...om/wwdz/ch/wx/entity/vo/distribution/AuctionRecordVo.java
+46
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/AuctionRecordServiceImpl.java
...wdz/ch/wx/impl/distribution/AuctionRecordServiceImpl.java
+75
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
...ch/wx/impl/distribution/DistributionOrderServiceImpl.java
+84
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributorShareRecordServiceImpl.java
.../impl/distribution/DistributorShareRecordServiceImpl.java
+37
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+89
-3
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/AuctionConfigService.java
...wwdz/ch/wx/service/distribution/AuctionConfigService.java
+15
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/AuctionRecordService.java
...wwdz/ch/wx/service/distribution/AuctionRecordService.java
+21
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/DistributionOrderService.java
.../ch/wx/service/distribution/DistributionOrderService.java
+8
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/DistributorShareRecordService.java
...x/service/distribution/DistributorShareRecordService.java
+8
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/SupplierItemService.java
.../wwdz/ch/wx/service/distribution/SupplierItemService.java
+9
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/AuctionRecordController.java
.../wwdz/ch/wx/web/distribution/AuctionRecordController.java
+40
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/DistributionOrderController.java
...z/ch/wx/web/distribution/DistributionOrderController.java
+15
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/DistributorShareRecordController.java
...wx/web/distribution/DistributorShareRecordController.java
+16
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/SupplierItemController.java
...m/wwdz/ch/wx/web/distribution/SupplierItemController.java
+13
-0
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/config/ShiroConfig.java
View file @
6b20d566
...
@@ -119,6 +119,7 @@ public class ShiroConfig {
...
@@ -119,6 +119,7 @@ public class ShiroConfig {
filterChainDefinitionMap
.
put
(
"/admin/sysIMRecord/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/admin/sysIMRecord/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/admin/consignSaleManage/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/admin/consignSaleManage/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/admin/returnOrderManage/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/admin/returnOrderManage/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/admin/supplierItem/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/admin/invitationCode/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/admin/invitationCode/**"
,
"anon"
);
// filterChainDefinitionMap.put("/admin/**", "anon");
// filterChainDefinitionMap.put("/admin/**", "anon");
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/SysSupplierItemController.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.admin.controller
;
import
com.alibaba.fastjson.JSON
;
import
com.wwdz.ch.admin.service.SysIMService
;
import
com.wwdz.ch.admin.service.SysSupplierItemService
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.distribution.SupplierItemRequestDto
;
import
com.xxdxxs.service.FormHandler
;
import
com.xxdxxs.validation.Validator
;
import
io.swagger.annotations.ApiOperation
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"/admin/supplierItem"
)
public
class
SysSupplierItemController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
SysSupplierItemController
.
class
);
@Autowired
SysSupplierItemService
supplierItemService
;
@ApiOperation
(
value
=
"新增商品"
)
@PostMapping
(
"/create"
)
public
Result
create
(
@RequestBody
SupplierItemRequestDto
dto
)
{
logger
.
info
(
"新增商品,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
Validator
validator
=
new
Validator
(
FormHandler
.
ofEntity
(
dto
));
validator
.
set
(
"name"
,
"商品名称"
).
must
().
string
()
.
set
(
"distributionPrice"
,
"商品供货价"
).
must
().
string
()
.
set
(
"type"
,
"商品类型"
).
must
().
number
()
.
end
();
if
(!
validator
.
isValid
())
{
return
Result
.
failed
(
validator
.
getErrorInfo
());
}
return
supplierItemService
.
create
(
dto
);
}
}
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.admin.impl
;
import
com.github.pagehelper.PageInfo
;
import
com.wwdz.ch.admin.service.SysSupplierItemService
;
import
com.wwdz.ch.core.consts.DistributionEnum
;
import
com.wwdz.ch.core.entity.SupplierItemVo
;
import
com.wwdz.ch.core.type.PageSearchResult
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.util.MediaUtil
;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.db.dao.SwitchDao
;
import
com.wwdz.ch.db.dao.distribution.*
;
import
com.wwdz.ch.db.domain.distribution.*
;
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.redisson.api.RedissonClient
;
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.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
@Service
public
class
SysSupplierItemServiceImpl
implements
SysSupplierItemService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
SysSupplierItemServiceImpl
.
class
);
@Autowired
SupplierItemDao
supplierItemDao
;
@Autowired
DistributorShareRecordDao
distributorShareRecordDao
;
@Autowired
DistributionOrderDao
distributionOrderDao
;
@Autowired
RedissonClient
redissonClient
;
@Autowired
DistributorBindDao
distributorBindDao
;
@Autowired
UserRecentBrowseDao
userRecentBrowseDao
;
@Autowired
private
SwitchDao
switchDao
;
@Autowired
AuctionConfigDao
auctionConfigDao
;
@Override
@Transactional
public
Result
create
(
SupplierItemRequestDto
dto
)
{
try
{
Date
now
=
new
Date
();
//商品表中新增数据
SupplierItem
supplierItem
=
new
SupplierItem
();
EntityMapper
.
copyAttribute
(
dto
,
supplierItem
);
supplierItem
.
setDistributionPrice
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getDistributionPrice
()));
if
(
StringUtils
.
hasLength
(
dto
.
getSupplyPrice
()))
{
supplierItem
.
setSupplyPrice
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getSupplyPrice
()));
}
supplierItem
.
setSort
(
1
);
supplierItem
.
setCreateTime
(
now
);
supplierItem
.
setUpdateTime
(
now
);
supplierItem
.
setIsOnSale
(
true
);
supplierItem
.
setIsDeleted
(
false
);
long
itemId
=
supplierItemDao
.
insert
(
supplierItem
);
//竞拍商品,维护竞拍配置
if
(
dto
.
getType
()
==
DistributionEnum
.
DistributionTypeEnum
.
AUCTION
.
getCode
())
{
AuctionConfig
auctionConfig
=
new
AuctionConfig
();
auctionConfig
.
setItemId
(
itemId
);
auctionConfig
.
setIsValid
(
true
);
auctionConfig
.
setStartTime
(
DateUtils
.
parseString
(
dto
.
getAuctionStartTime
()));
auctionConfig
.
setEndTime
(
DateUtils
.
parseString
(
dto
.
getAuctionEndTime
()));
auctionConfig
.
setRealEndTime
(
DateUtils
.
parseString
(
dto
.
getAuctionEndTime
()));
auctionConfig
.
setStartPrice
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getStartPrice
()));
auctionConfig
.
setAddExtent
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getAddExtent
()));
auctionConfig
.
setCreateTime
(
now
);
auctionConfig
.
setUpdateTime
(
now
);
auctionConfigDao
.
insert
(
auctionConfig
);
}
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"新增商品失败 error : {}"
,
e
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
}
return
Result
.
failed
();
}
@Override
public
Result
findList
(
SupplierItemRequestDto
dto
)
{
try
{
List
<
SupplierItemVo
>
supplierItemVos
=
new
ArrayList
<>();
List
<
SupplierItem
>
supplierItemList
=
supplierItemDao
.
findList
(
dto
);
PageInfo
<
SupplierItem
>
pageInfo
=
new
PageInfo
(
supplierItemList
);
supplierItemList
.
forEach
(
supplierItem
->
{
SupplierItemVo
supplierItemVo
=
new
SupplierItemVo
();
EntityMapper
.
copyAttribute
(
supplierItem
,
supplierItemVo
);
supplierItemVo
.
setSupplyPrice
(
PriceUtil
.
convertPriceFenToYuan
(
supplierItem
.
getSupplyPrice
()));
supplierItemVo
.
setDistributionPrice
(
PriceUtil
.
convertPriceFenToYuan
(
supplierItem
.
getDistributionPrice
()));
supplierItemVo
.
setHomePageImage
(
MediaUtil
.
getHomePageImage
(
supplierItem
.
getImages
(),
supplierItem
.
getVideos
()));
supplierItemVos
.
add
(
supplierItemVo
);
});
return
Result
.
success
(
PageSearchResult
.
of
(
pageInfo
,
supplierItemVos
));
}
catch
(
Exception
e
)
{
logger
.
error
(
"商品列表查询失败 error : {}"
,
e
);
}
return
Result
.
failed
();
}
@Override
public
Result
findDetail
(
SupplierItemRequestDto
dto
)
{
try
{
SupplierItemVo
supplierItemVo
=
new
SupplierItemVo
();
long
itemId
=
dto
.
getId
();
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
itemId
);
EntityMapper
.
copyAttribute
(
supplierItem
,
supplierItemVo
);
supplierItemVo
.
setItemId
(
supplierItem
.
getId
());
supplierItemVo
.
setSupplyPrice
(
PriceUtil
.
convertPriceFenToYuan
(
supplierItem
.
getSupplyPrice
()));
supplierItemVo
.
setDistributionPrice
(
PriceUtil
.
convertPriceFenToYuan
(
supplierItem
.
getDistributionPrice
()));
supplierItemVo
.
setHomePageImage
(
MediaUtil
.
getHomePageImage
(
supplierItem
.
getImages
(),
supplierItem
.
getVideos
()));
return
Result
.
success
(
supplierItemVo
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"商品详情查询失败 error : {}"
,
e
);
}
return
Result
.
failed
();
}
public
Result
updateDistributionPrice
(
SupplierItemRequestDto
dto
)
{
try
{
SupplierItem
supplierItem
=
new
SupplierItem
();
supplierItem
.
setId
(
dto
.
getId
());
supplierItem
.
setDistributionPrice
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getDistributionPrice
()));
supplierItemDao
.
update
(
supplierItem
);
//把该商品所关联的所有分享链接都改为无效
distributorShareRecordDao
.
updateDisEnabled
(
dto
.
getId
());
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"商品修改供货价,设置分享链接无效 error : {}"
,
e
);
}
return
Result
.
failed
();
}
}
ch-admin-api/src/main/java/com/wwdz/ch/admin/service/SysSupplierItemService.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.admin.service
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.distribution.SupplierItemRequestDto
;
public
interface
SysSupplierItemService
{
/**
* 新增商品
* @param dto
* @return
*/
Result
create
(
SupplierItemRequestDto
dto
);
/**
* 查询供应商商品列表
* @param dto
* @return
*/
Result
findList
(
SupplierItemRequestDto
dto
);
/**
* 查询供应商商品详情
* @param dto
* @return
*/
Result
findDetail
(
SupplierItemRequestDto
dto
);
}
ch-core/src/main/java/com/wwdz/ch/core/consts/DistributionEnum.java
View file @
6b20d566
...
@@ -82,4 +82,79 @@ public class DistributionEnum {
...
@@ -82,4 +82,79 @@ public class DistributionEnum {
}
}
/**
* 分销类型
*/
public
enum
DistributionTypeEnum
{
FIXED_PRICE
(
1
,
"一口价"
),
AUCTION
(
2
,
"竞拍"
),
;
private
int
code
;
private
String
des
;
DistributionTypeEnum
(
int
code
,
String
des
)
{
this
.
code
=
code
;
this
.
des
=
des
;
}
public
static
String
getNameByCode
(
int
code
)
{
for
(
DistributionTypeEnum
distributionTypeEnum
:
DistributionTypeEnum
.
values
())
{
if
(
code
==
distributionTypeEnum
.
getCode
())
{
return
distributionTypeEnum
.
getDes
();
}
}
return
null
;
}
public
int
getCode
()
{
return
code
;
}
public
String
getDes
()
{
return
des
;
}
}
/**
* 竞拍状态
*/
public
enum
AuctionStateEnum
{
NOT_START
(
1
,
"未开拍"
),
IN_AUCTION
(
2
,
"拍卖中"
),
END
(
3
,
"已截拍"
)
;
private
int
code
;
private
String
des
;
AuctionStateEnum
(
int
code
,
String
des
)
{
this
.
code
=
code
;
this
.
des
=
des
;
}
public
static
String
getNameByCode
(
int
code
)
{
for
(
AuctionStateEnum
auctionStateEnum
:
AuctionStateEnum
.
values
())
{
if
(
code
==
auctionStateEnum
.
getCode
())
{
return
auctionStateEnum
.
getDes
();
}
}
return
null
;
}
public
int
getCode
()
{
return
code
;
}
public
String
getDes
()
{
return
des
;
}
}
}
}
ch-
wx-api/src/main/java/com/wwdz/ch/wx/entity/vo/distribution
/SupplierItemVo.java
→
ch-
core/src/main/java/com/wwdz/ch/core/entity
/SupplierItemVo.java
View file @
6b20d566
package
com.wwdz.ch.
wx.entity.vo.distribution
;
package
com.wwdz.ch.
core.entity
;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.xxdxxs.entity.Entity
;
import
com.xxdxxs.entity.Entity
;
...
...
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/AuctionConfigDao.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.db.dao.distribution
;
import
com.wwdz.ch.db.domain.distribution.AuctionConfig
;
import
java.util.Date
;
public
interface
AuctionConfigDao
{
/**
* 插入新记录
*
* @param auctionConfig
* @return
*/
int
insert
(
AuctionConfig
auctionConfig
);
/**
* 根据商品id查询拍卖设置
* @param itemId
* @return
*/
AuctionConfig
findByItemId
(
long
itemId
);
/**
* 更新截拍时间
* @param itemId
* @param realEndTime
* @return
*/
int
updateRealEndTime
(
long
itemId
,
Date
realEndTime
);
/**
* 拍卖结束
* @param itemId
* @return
*/
int
setEnd
(
long
itemId
);
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/AuctionRecordDao.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.db.dao.distribution
;
import
com.wwdz.ch.db.domain.distribution.AuctionRecord
;
import
com.wwdz.ch.db.dto.request.distribution.AuctionRecordRequestDto
;
import
java.util.List
;
public
interface
AuctionRecordDao
{
/**
* 插入新记录
*
* @param auctionRecord
* @return
*/
int
insert
(
AuctionRecord
auctionRecord
);
/**
* 更新记录
* 价格被反超时,设置islead字段为false
* @param itemId
* @return
*/
int
updateNotLead
(
long
itemId
);
/**
* 查询出价记录
* @param dto
* @return
*/
List
<
AuctionRecord
>
find
(
AuctionRecordRequestDto
dto
);
/**
* 查询出价记录
* @param dto
* @return
*/
List
<
AuctionRecord
>
findByPage
(
AuctionRecordRequestDto
dto
);
/**
* 查询最新的一条出价记录
* @param itemId
* @return
*/
AuctionRecord
findLastedRecord
(
long
itemId
);
/**
* 统计出价次数
* @param dto
* @return
*/
long
count
(
AuctionRecordRequestDto
dto
);
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/SupplierItemDao.java
View file @
6b20d566
...
@@ -11,6 +11,8 @@ import java.util.List;
...
@@ -11,6 +11,8 @@ import java.util.List;
public
interface
SupplierItemDao
{
public
interface
SupplierItemDao
{
long
insert
(
SupplierItem
supplierItem
);
/**
/**
* 查询商品列表
* 查询商品列表
* @param supplierItemRequestDto
* @param supplierItemRequestDto
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/AuctionConfig.java
0 → 100644
View file @
6b20d566
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/02/29
*/
@Data
public
class
AuctionConfig
implements
Entity
{
private
Integer
id
;
/**
* 商品id
*/
private
Long
itemId
;
/**
* 竞拍开始时间
*/
private
Date
startTime
;
/**
* 竞拍结束时间
*/
private
Date
endTime
;
/**
* 起拍价
*/
private
Long
startPrice
;
/**
* 加价幅度
*/
private
Long
addExtent
;
/**
* 实际竞拍结束时间
*/
private
Date
realEndTime
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 是否有效
*/
private
Boolean
isValid
;
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
(
", startTime="
).
append
(
startTime
);
sb
.
append
(
", endTime="
).
append
(
endTime
);
sb
.
append
(
", startPrice="
).
append
(
startPrice
);
sb
.
append
(
", addExtent="
).
append
(
addExtent
);
sb
.
append
(
", realEndTime="
).
append
(
realEndTime
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", isValid="
).
append
(
isValid
);
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
;
}
AuctionConfig
other
=
(
AuctionConfig
)
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
.
getStartTime
()
==
null
?
other
.
getStartTime
()
==
null
:
this
.
getStartTime
().
equals
(
other
.
getStartTime
()))
&&
(
this
.
getEndTime
()
==
null
?
other
.
getEndTime
()
==
null
:
this
.
getEndTime
().
equals
(
other
.
getEndTime
()))
&&
(
this
.
getStartPrice
()
==
null
?
other
.
getStartPrice
()
==
null
:
this
.
getStartPrice
().
equals
(
other
.
getStartPrice
()))
&&
(
this
.
getAddExtent
()
==
null
?
other
.
getAddExtent
()
==
null
:
this
.
getAddExtent
().
equals
(
other
.
getAddExtent
()))
&&
(
this
.
getRealEndTime
()
==
null
?
other
.
getRealEndTime
()
==
null
:
this
.
getRealEndTime
().
equals
(
other
.
getRealEndTime
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getIsValid
()
==
null
?
other
.
getIsValid
()
==
null
:
this
.
getIsValid
().
equals
(
other
.
getIsValid
()));
}
@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
+
((
getStartTime
()
==
null
)
?
0
:
getStartTime
().
hashCode
());
result
=
prime
*
result
+
((
getEndTime
()
==
null
)
?
0
:
getEndTime
().
hashCode
());
result
=
prime
*
result
+
((
getStartPrice
()
==
null
)
?
0
:
getStartPrice
().
hashCode
());
result
=
prime
*
result
+
((
getAddExtent
()
==
null
)
?
0
:
getAddExtent
().
hashCode
());
result
=
prime
*
result
+
((
getRealEndTime
()
==
null
)
?
0
:
getRealEndTime
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getIsValid
()
==
null
)
?
0
:
getIsValid
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table auction_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
),
startTime
(
"start_time"
,
"startTime"
,
"TIMESTAMP"
,
false
),
endTime
(
"end_time"
,
"endTime"
,
"TIMESTAMP"
,
false
),
startPrice
(
"start_price"
,
"startPrice"
,
"BIGINT"
,
false
),
addExtent
(
"add_extent"
,
"addExtent"
,
"BIGINT"
,
false
),
realEndTime
(
"real_end_time"
,
"realEndTime"
,
"TIMESTAMP"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
isValid
(
"is_valid"
,
"isValid"
,
"BIT"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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/AuctionConfigExample.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.db.domain.distribution
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
AuctionConfigExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
AuctionConfigExample
()
{
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
AuctionConfigExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
AuctionConfigExample
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
AuctionConfigExample
example
=
new
AuctionConfigExample
();
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdNotEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanOrEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanOrEqualToColumn
(
AuctionConfig
.
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
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartTimeEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartTimeNotEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartTimeGreaterThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartTimeGreaterThanOrEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartTimeLessThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartTimeLessThanOrEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndTimeEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndTimeNotEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndTimeGreaterThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndTimeGreaterThanOrEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndTimeLessThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndTimeLessThanOrEqualToColumn
(
AuctionConfig
.
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
andStartPriceIsNull
()
{
addCriterion
(
"start_price is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartPriceIsNotNull
()
{
addCriterion
(
"start_price is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartPriceEqualTo
(
Long
value
)
{
addCriterion
(
"start_price ="
,
value
,
"startPrice"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartPriceEqualToColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_price = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartPriceNotEqualTo
(
Long
value
)
{
addCriterion
(
"start_price <>"
,
value
,
"startPrice"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartPriceNotEqualToColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_price <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartPriceGreaterThan
(
Long
value
)
{
addCriterion
(
"start_price >"
,
value
,
"startPrice"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartPriceGreaterThanColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_price > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartPriceGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"start_price >="
,
value
,
"startPrice"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartPriceGreaterThanOrEqualToColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_price >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartPriceLessThan
(
Long
value
)
{
addCriterion
(
"start_price <"
,
value
,
"startPrice"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartPriceLessThanColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_price < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartPriceLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"start_price <="
,
value
,
"startPrice"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartPriceLessThanOrEqualToColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_price <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartPriceIn
(
List
<
Long
>
values
)
{
addCriterion
(
"start_price in"
,
values
,
"startPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartPriceNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"start_price not in"
,
values
,
"startPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartPriceBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"start_price between"
,
value1
,
value2
,
"startPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartPriceNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"start_price not between"
,
value1
,
value2
,
"startPrice"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddExtentIsNull
()
{
addCriterion
(
"add_extent is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddExtentIsNotNull
()
{
addCriterion
(
"add_extent is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddExtentEqualTo
(
Long
value
)
{
addCriterion
(
"add_extent ="
,
value
,
"addExtent"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddExtentEqualToColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_extent = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddExtentNotEqualTo
(
Long
value
)
{
addCriterion
(
"add_extent <>"
,
value
,
"addExtent"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddExtentNotEqualToColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_extent <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddExtentGreaterThan
(
Long
value
)
{
addCriterion
(
"add_extent >"
,
value
,
"addExtent"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddExtentGreaterThanColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_extent > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddExtentGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"add_extent >="
,
value
,
"addExtent"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddExtentGreaterThanOrEqualToColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_extent >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddExtentLessThan
(
Long
value
)
{
addCriterion
(
"add_extent <"
,
value
,
"addExtent"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddExtentLessThanColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_extent < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddExtentLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"add_extent <="
,
value
,
"addExtent"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddExtentLessThanOrEqualToColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_extent <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddExtentIn
(
List
<
Long
>
values
)
{
addCriterion
(
"add_extent in"
,
values
,
"addExtent"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddExtentNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"add_extent not in"
,
values
,
"addExtent"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddExtentBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"add_extent between"
,
value1
,
value2
,
"addExtent"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddExtentNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"add_extent not between"
,
value1
,
value2
,
"addExtent"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealEndTimeIsNull
()
{
addCriterion
(
"real_end_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealEndTimeIsNotNull
()
{
addCriterion
(
"real_end_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealEndTimeEqualTo
(
Date
value
)
{
addCriterion
(
"real_end_time ="
,
value
,
"realEndTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRealEndTimeEqualToColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"real_end_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRealEndTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"real_end_time <>"
,
value
,
"realEndTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRealEndTimeNotEqualToColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"real_end_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRealEndTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"real_end_time >"
,
value
,
"realEndTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRealEndTimeGreaterThanColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"real_end_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRealEndTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"real_end_time >="
,
value
,
"realEndTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRealEndTimeGreaterThanOrEqualToColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"real_end_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRealEndTimeLessThan
(
Date
value
)
{
addCriterion
(
"real_end_time <"
,
value
,
"realEndTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRealEndTimeLessThanColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"real_end_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRealEndTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"real_end_time <="
,
value
,
"realEndTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andRealEndTimeLessThanOrEqualToColumn
(
AuctionConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"real_end_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andRealEndTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"real_end_time in"
,
values
,
"realEndTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealEndTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"real_end_time not in"
,
values
,
"realEndTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealEndTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"real_end_time between"
,
value1
,
value2
,
"realEndTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealEndTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"real_end_time not between"
,
value1
,
value2
,
"realEndTime"
);
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeNotEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanOrEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanOrEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeNotEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanOrEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanOrEqualToColumn
(
AuctionConfig
.
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
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidNotEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidGreaterThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidGreaterThanOrEqualToColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidLessThanColumn
(
AuctionConfig
.
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 auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidLessThanOrEqualToColumn
(
AuctionConfig
.
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
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
AuctionConfigExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
AuctionConfigExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
AuctionConfigExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_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 auction_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 auction_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/AuctionRecord.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.db.domain.distribution
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
* @author shiyu
* @date 2024/02/29
*/
@Data
public
class
AuctionRecord
implements
Entity
{
private
Integer
id
;
/**
* 商品id
*/
private
Long
itemId
;
/**
* 用户id
*/
private
Long
userId
;
/**
* 出价
*/
private
Long
price
;
/**
* 出价时间
*/
private
Date
createTime
;
/**
* 分享id
*/
private
String
shareRecordId
;
/**
* 分享商id
*/
private
Long
distributorId
;
/**
* 价格是否领先
*/
private
Boolean
isLead
;
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
(
", userId="
).
append
(
userId
);
sb
.
append
(
", price="
).
append
(
price
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", shareRecordId="
).
append
(
shareRecordId
);
sb
.
append
(
", distributorId="
).
append
(
distributorId
);
sb
.
append
(
", isLead="
).
append
(
isLead
);
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
;
}
AuctionRecord
other
=
(
AuctionRecord
)
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
.
getUserId
()
==
null
?
other
.
getUserId
()
==
null
:
this
.
getUserId
().
equals
(
other
.
getUserId
()))
&&
(
this
.
getPrice
()
==
null
?
other
.
getPrice
()
==
null
:
this
.
getPrice
().
equals
(
other
.
getPrice
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getShareRecordId
()
==
null
?
other
.
getShareRecordId
()
==
null
:
this
.
getShareRecordId
().
equals
(
other
.
getShareRecordId
()))
&&
(
this
.
getDistributorId
()
==
null
?
other
.
getDistributorId
()
==
null
:
this
.
getDistributorId
().
equals
(
other
.
getDistributorId
()))
&&
(
this
.
getIsLead
()
==
null
?
other
.
getIsLead
()
==
null
:
this
.
getIsLead
().
equals
(
other
.
getIsLead
()));
}
@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
+
((
getUserId
()
==
null
)
?
0
:
getUserId
().
hashCode
());
result
=
prime
*
result
+
((
getPrice
()
==
null
)
?
0
:
getPrice
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getShareRecordId
()
==
null
)
?
0
:
getShareRecordId
().
hashCode
());
result
=
prime
*
result
+
((
getDistributorId
()
==
null
)
?
0
:
getDistributorId
().
hashCode
());
result
=
prime
*
result
+
((
getIsLead
()
==
null
)
?
0
:
getIsLead
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"INTEGER"
,
false
),
itemId
(
"item_id"
,
"itemId"
,
"BIGINT"
,
false
),
userId
(
"user_id"
,
"userId"
,
"BIGINT"
,
false
),
price
(
"price"
,
"price"
,
"BIGINT"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
shareRecordId
(
"share_record_id"
,
"shareRecordId"
,
"VARCHAR"
,
false
),
distributorId
(
"distributor_id"
,
"distributorId"
,
"BIGINT"
,
false
),
isLead
(
"is_lead"
,
"isLead"
,
"BIT"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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 auction_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/AuctionRecordExample.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.db.domain.distribution
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
AuctionRecordExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
AuctionRecordExample
()
{
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
AuctionRecordExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
AuctionRecordExample
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
AuctionRecordExample
example
=
new
AuctionRecordExample
();
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdNotEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanOrEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanOrEqualToColumn
(
AuctionRecord
.
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
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdNotEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdGreaterThanColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdGreaterThanOrEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdLessThanColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdLessThanOrEqualToColumn
(
AuctionRecord
.
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
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPriceEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPriceNotEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPriceGreaterThanColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPriceGreaterThanOrEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPriceLessThanColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPriceLessThanOrEqualToColumn
(
AuctionRecord
.
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
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeNotEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanOrEqualToColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanColumn
(
AuctionRecord
.
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 auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanOrEqualToColumn
(
AuctionRecord
.
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
andShareRecordIdIsNull
()
{
addCriterion
(
"share_record_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShareRecordIdIsNotNull
()
{
addCriterion
(
"share_record_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShareRecordIdEqualTo
(
String
value
)
{
addCriterion
(
"share_record_id ="
,
value
,
"shareRecordId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andShareRecordIdEqualToColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"share_record_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andShareRecordIdNotEqualTo
(
String
value
)
{
addCriterion
(
"share_record_id <>"
,
value
,
"shareRecordId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andShareRecordIdNotEqualToColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"share_record_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andShareRecordIdGreaterThan
(
String
value
)
{
addCriterion
(
"share_record_id >"
,
value
,
"shareRecordId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andShareRecordIdGreaterThanColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"share_record_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andShareRecordIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"share_record_id >="
,
value
,
"shareRecordId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andShareRecordIdGreaterThanOrEqualToColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"share_record_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andShareRecordIdLessThan
(
String
value
)
{
addCriterion
(
"share_record_id <"
,
value
,
"shareRecordId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andShareRecordIdLessThanColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"share_record_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andShareRecordIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"share_record_id <="
,
value
,
"shareRecordId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andShareRecordIdLessThanOrEqualToColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"share_record_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andShareRecordIdLike
(
String
value
)
{
addCriterion
(
"share_record_id like"
,
value
,
"shareRecordId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShareRecordIdNotLike
(
String
value
)
{
addCriterion
(
"share_record_id not like"
,
value
,
"shareRecordId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShareRecordIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"share_record_id in"
,
values
,
"shareRecordId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShareRecordIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"share_record_id not in"
,
values
,
"shareRecordId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShareRecordIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"share_record_id between"
,
value1
,
value2
,
"shareRecordId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShareRecordIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"share_record_id not between"
,
value1
,
value2
,
"shareRecordId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributorIdIsNull
()
{
addCriterion
(
"distributor_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributorIdIsNotNull
()
{
addCriterion
(
"distributor_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributorIdEqualTo
(
Long
value
)
{
addCriterion
(
"distributor_id ="
,
value
,
"distributorId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDistributorIdEqualToColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"distributor_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDistributorIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"distributor_id <>"
,
value
,
"distributorId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDistributorIdNotEqualToColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"distributor_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDistributorIdGreaterThan
(
Long
value
)
{
addCriterion
(
"distributor_id >"
,
value
,
"distributorId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDistributorIdGreaterThanColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"distributor_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDistributorIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"distributor_id >="
,
value
,
"distributorId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDistributorIdGreaterThanOrEqualToColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"distributor_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDistributorIdLessThan
(
Long
value
)
{
addCriterion
(
"distributor_id <"
,
value
,
"distributorId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDistributorIdLessThanColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"distributor_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDistributorIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"distributor_id <="
,
value
,
"distributorId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDistributorIdLessThanOrEqualToColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"distributor_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDistributorIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"distributor_id in"
,
values
,
"distributorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributorIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"distributor_id not in"
,
values
,
"distributorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributorIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"distributor_id between"
,
value1
,
value2
,
"distributorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDistributorIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"distributor_id not between"
,
value1
,
value2
,
"distributorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeadIsNull
()
{
addCriterion
(
"is_lead is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeadIsNotNull
()
{
addCriterion
(
"is_lead is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeadEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_lead ="
,
value
,
"isLead"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsLeadEqualToColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_lead = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeadNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_lead <>"
,
value
,
"isLead"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsLeadNotEqualToColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_lead <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeadGreaterThan
(
Boolean
value
)
{
addCriterion
(
"is_lead >"
,
value
,
"isLead"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsLeadGreaterThanColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_lead > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeadGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_lead >="
,
value
,
"isLead"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsLeadGreaterThanOrEqualToColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_lead >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeadLessThan
(
Boolean
value
)
{
addCriterion
(
"is_lead <"
,
value
,
"isLead"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsLeadLessThanColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_lead < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeadLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_lead <="
,
value
,
"isLead"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsLeadLessThanOrEqualToColumn
(
AuctionRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_lead <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeadIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_lead in"
,
values
,
"isLead"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeadNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_lead not in"
,
values
,
"isLead"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeadBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_lead between"
,
value1
,
value2
,
"isLead"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeadNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_lead not between"
,
value1
,
value2
,
"isLead"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
AuctionRecordExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
AuctionRecordExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
AuctionRecordExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_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 auction_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 auction_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/domain/distribution/DistributionOrder.java
View file @
6b20d566
...
@@ -10,7 +10,7 @@ import lombok.Data;
...
@@ -10,7 +10,7 @@ import lombok.Data;
/**
/**
* @author shiyu
* @author shiyu
* @date 2024/0
1/31
* @date 2024/0
2/29
*/
*/
@Data
@Data
public
class
DistributionOrder
implements
Entity
{
public
class
DistributionOrder
implements
Entity
{
...
@@ -131,6 +131,11 @@ public class DistributionOrder implements Entity {
...
@@ -131,6 +131,11 @@ public class DistributionOrder implements Entity {
*/
*/
private
Integer
state
;
private
Integer
state
;
/**
* 订单类型1一口价2竞拍
*/
private
Integer
type
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
@Override
...
@@ -163,6 +168,7 @@ public class DistributionOrder implements Entity {
...
@@ -163,6 +168,7 @@ public class DistributionOrder implements Entity {
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", shareRecordId="
).
append
(
shareRecordId
);
sb
.
append
(
", shareRecordId="
).
append
(
shareRecordId
);
sb
.
append
(
", state="
).
append
(
state
);
sb
.
append
(
", state="
).
append
(
state
);
sb
.
append
(
", type="
).
append
(
type
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
return
sb
.
toString
();
...
@@ -203,7 +209,8 @@ public class DistributionOrder implements Entity {
...
@@ -203,7 +209,8 @@ public class DistributionOrder implements Entity {
&&
(
this
.
getFinishTime
()
==
null
?
other
.
getFinishTime
()
==
null
:
this
.
getFinishTime
().
equals
(
other
.
getFinishTime
()))
&&
(
this
.
getFinishTime
()
==
null
?
other
.
getFinishTime
()
==
null
:
this
.
getFinishTime
().
equals
(
other
.
getFinishTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getShareRecordId
()
==
null
?
other
.
getShareRecordId
()
==
null
:
this
.
getShareRecordId
().
equals
(
other
.
getShareRecordId
()))
&&
(
this
.
getShareRecordId
()
==
null
?
other
.
getShareRecordId
()
==
null
:
this
.
getShareRecordId
().
equals
(
other
.
getShareRecordId
()))
&&
(
this
.
getState
()
==
null
?
other
.
getState
()
==
null
:
this
.
getState
().
equals
(
other
.
getState
()));
&&
(
this
.
getState
()
==
null
?
other
.
getState
()
==
null
:
this
.
getState
().
equals
(
other
.
getState
()))
&&
(
this
.
getType
()
==
null
?
other
.
getType
()
==
null
:
this
.
getType
().
equals
(
other
.
getType
()));
}
}
@Override
@Override
...
@@ -234,6 +241,7 @@ public class DistributionOrder implements Entity {
...
@@ -234,6 +241,7 @@ public class DistributionOrder implements Entity {
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getShareRecordId
()
==
null
)
?
0
:
getShareRecordId
().
hashCode
());
result
=
prime
*
result
+
((
getShareRecordId
()
==
null
)
?
0
:
getShareRecordId
().
hashCode
());
result
=
prime
*
result
+
((
getState
()
==
null
)
?
0
:
getState
().
hashCode
());
result
=
prime
*
result
+
((
getState
()
==
null
)
?
0
:
getState
().
hashCode
());
result
=
prime
*
result
+
((
getType
()
==
null
)
?
0
:
getType
().
hashCode
());
return
result
;
return
result
;
}
}
...
@@ -268,7 +276,8 @@ public class DistributionOrder implements Entity {
...
@@ -268,7 +276,8 @@ public class DistributionOrder implements Entity {
finishTime
(
"finish_time"
,
"finishTime"
,
"TIMESTAMP"
,
false
),
finishTime
(
"finish_time"
,
"finishTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
shareRecordId
(
"share_record_id"
,
"shareRecordId"
,
"VARCHAR"
,
false
),
shareRecordId
(
"share_record_id"
,
"shareRecordId"
,
"VARCHAR"
,
false
),
state
(
"state"
,
"state"
,
"INTEGER"
,
true
);
state
(
"state"
,
"state"
,
"INTEGER"
,
true
),
type
(
"type"
,
"type"
,
"INTEGER"
,
true
);
/**
/**
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/DistributionOrderExample.java
View file @
6b20d566
...
@@ -3415,6 +3415,138 @@ public class DistributionOrderExample {
...
@@ -3415,6 +3415,138 @@ public class DistributionOrderExample {
addCriterion
(
"`state` not between"
,
value1
,
value2
,
"state"
);
addCriterion
(
"`state` not between"
,
value1
,
value2
,
"state"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTypeIsNull
()
{
addCriterion
(
"`type` is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIsNotNull
()
{
addCriterion
(
"`type` is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` ="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeEqualToColumn
(
DistributionOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` <>"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeNotEqualToColumn
(
DistributionOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThan
(
Integer
value
)
{
addCriterion
(
"`type` >"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeGreaterThanColumn
(
DistributionOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` >="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeGreaterThanOrEqualToColumn
(
DistributionOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThan
(
Integer
value
)
{
addCriterion
(
"`type` <"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeLessThanColumn
(
DistributionOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` <="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeLessThanOrEqualToColumn
(
DistributionOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`type` in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`type` not in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`type` between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`type` not between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
public
static
class
Criteria
extends
GeneratedCriteria
{
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/DistributorShareRecord.java
View file @
6b20d566
...
@@ -10,7 +10,7 @@ import lombok.Data;
...
@@ -10,7 +10,7 @@ import lombok.Data;
/**
/**
* @author shiyu
* @author shiyu
* @date 2024/0
1/25
* @date 2024/0
2/29
*/
*/
@Data
@Data
public
class
DistributorShareRecord
implements
Entity
{
public
class
DistributorShareRecord
implements
Entity
{
...
@@ -51,6 +51,11 @@ public class DistributorShareRecord implements Entity {
...
@@ -51,6 +51,11 @@ public class DistributorShareRecord implements Entity {
*/
*/
private
Boolean
enabled
;
private
Boolean
enabled
;
/**
* 分享类型1一口价2竞拍
*/
private
Integer
type
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
@Override
...
@@ -67,6 +72,7 @@ public class DistributorShareRecord implements Entity {
...
@@ -67,6 +72,7 @@ public class DistributorShareRecord implements Entity {
sb
.
append
(
", shopId="
).
append
(
shopId
);
sb
.
append
(
", shopId="
).
append
(
shopId
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", enabled="
).
append
(
enabled
);
sb
.
append
(
", enabled="
).
append
(
enabled
);
sb
.
append
(
", type="
).
append
(
type
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
return
sb
.
toString
();
...
@@ -91,7 +97,8 @@ public class DistributorShareRecord implements Entity {
...
@@ -91,7 +97,8 @@ public class DistributorShareRecord implements Entity {
&&
(
this
.
getDistributorId
()
==
null
?
other
.
getDistributorId
()
==
null
:
this
.
getDistributorId
().
equals
(
other
.
getDistributorId
()))
&&
(
this
.
getDistributorId
()
==
null
?
other
.
getDistributorId
()
==
null
:
this
.
getDistributorId
().
equals
(
other
.
getDistributorId
()))
&&
(
this
.
getShopId
()
==
null
?
other
.
getShopId
()
==
null
:
this
.
getShopId
().
equals
(
other
.
getShopId
()))
&&
(
this
.
getShopId
()
==
null
?
other
.
getShopId
()
==
null
:
this
.
getShopId
().
equals
(
other
.
getShopId
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getEnabled
()
==
null
?
other
.
getEnabled
()
==
null
:
this
.
getEnabled
().
equals
(
other
.
getEnabled
()));
&&
(
this
.
getEnabled
()
==
null
?
other
.
getEnabled
()
==
null
:
this
.
getEnabled
().
equals
(
other
.
getEnabled
()))
&&
(
this
.
getType
()
==
null
?
other
.
getType
()
==
null
:
this
.
getType
().
equals
(
other
.
getType
()));
}
}
@Override
@Override
...
@@ -106,6 +113,7 @@ public class DistributorShareRecord implements Entity {
...
@@ -106,6 +113,7 @@ public class DistributorShareRecord implements Entity {
result
=
prime
*
result
+
((
getShopId
()
==
null
)
?
0
:
getShopId
().
hashCode
());
result
=
prime
*
result
+
((
getShopId
()
==
null
)
?
0
:
getShopId
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getEnabled
()
==
null
)
?
0
:
getEnabled
().
hashCode
());
result
=
prime
*
result
+
((
getEnabled
()
==
null
)
?
0
:
getEnabled
().
hashCode
());
result
=
prime
*
result
+
((
getType
()
==
null
)
?
0
:
getType
().
hashCode
());
return
result
;
return
result
;
}
}
...
@@ -124,7 +132,8 @@ public class DistributorShareRecord implements Entity {
...
@@ -124,7 +132,8 @@ public class DistributorShareRecord implements Entity {
distributorId
(
"distributor_id"
,
"distributorId"
,
"BIGINT"
,
false
),
distributorId
(
"distributor_id"
,
"distributorId"
,
"BIGINT"
,
false
),
shopId
(
"shop_id"
,
"shopId"
,
"BIGINT"
,
false
),
shopId
(
"shop_id"
,
"shopId"
,
"BIGINT"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
enabled
(
"enabled"
,
"enabled"
,
"BIT"
,
false
);
enabled
(
"enabled"
,
"enabled"
,
"BIT"
,
false
),
type
(
"type"
,
"type"
,
"INTEGER"
,
true
);
/**
/**
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/DistributorShareRecordExample.java
View file @
6b20d566
...
@@ -1213,6 +1213,138 @@ public class DistributorShareRecordExample {
...
@@ -1213,6 +1213,138 @@ public class DistributorShareRecordExample {
addCriterion
(
"enabled not between"
,
value1
,
value2
,
"enabled"
);
addCriterion
(
"enabled not between"
,
value1
,
value2
,
"enabled"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTypeIsNull
()
{
addCriterion
(
"`type` is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIsNotNull
()
{
addCriterion
(
"`type` is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` ="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_share_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeEqualToColumn
(
DistributorShareRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` <>"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_share_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeNotEqualToColumn
(
DistributorShareRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThan
(
Integer
value
)
{
addCriterion
(
"`type` >"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_share_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeGreaterThanColumn
(
DistributorShareRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` >="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_share_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeGreaterThanOrEqualToColumn
(
DistributorShareRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThan
(
Integer
value
)
{
addCriterion
(
"`type` <"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_share_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeLessThanColumn
(
DistributorShareRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` <="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_share_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeLessThanOrEqualToColumn
(
DistributorShareRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`type` in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`type` not in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`type` between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`type` not between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
public
static
class
Criteria
extends
GeneratedCriteria
{
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/SupplierItem.java
View file @
6b20d566
...
@@ -10,7 +10,7 @@ import lombok.Data;
...
@@ -10,7 +10,7 @@ import lombok.Data;
/**
/**
* @author shiyu
* @author shiyu
* @date 2024/02/
1
9
* @date 2024/02/
2
9
*/
*/
@Data
@Data
public
class
SupplierItem
implements
Entity
{
public
class
SupplierItem
implements
Entity
{
...
@@ -76,6 +76,11 @@ public class SupplierItem implements Entity {
...
@@ -76,6 +76,11 @@ public class SupplierItem implements Entity {
*/
*/
private
Integer
buyLimitNum
;
private
Integer
buyLimitNum
;
/**
* 商品类型1一口价2竞拍
*/
private
Integer
type
;
/**
/**
* 商品图片,分号分隔
* 商品图片,分号分隔
*/
*/
...
@@ -112,6 +117,7 @@ public class SupplierItem implements Entity {
...
@@ -112,6 +117,7 @@ public class SupplierItem implements Entity {
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", isDeleted="
).
append
(
isDeleted
);
sb
.
append
(
", isDeleted="
).
append
(
isDeleted
);
sb
.
append
(
", buyLimitNum="
).
append
(
buyLimitNum
);
sb
.
append
(
", buyLimitNum="
).
append
(
buyLimitNum
);
sb
.
append
(
", type="
).
append
(
type
);
sb
.
append
(
", images="
).
append
(
images
);
sb
.
append
(
", images="
).
append
(
images
);
sb
.
append
(
", videos="
).
append
(
videos
);
sb
.
append
(
", videos="
).
append
(
videos
);
sb
.
append
(
", description="
).
append
(
description
);
sb
.
append
(
", description="
).
append
(
description
);
...
@@ -145,6 +151,7 @@ public class SupplierItem implements Entity {
...
@@ -145,6 +151,7 @@ public class SupplierItem implements Entity {
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getIsDeleted
()
==
null
?
other
.
getIsDeleted
()
==
null
:
this
.
getIsDeleted
().
equals
(
other
.
getIsDeleted
()))
&&
(
this
.
getIsDeleted
()
==
null
?
other
.
getIsDeleted
()
==
null
:
this
.
getIsDeleted
().
equals
(
other
.
getIsDeleted
()))
&&
(
this
.
getBuyLimitNum
()
==
null
?
other
.
getBuyLimitNum
()
==
null
:
this
.
getBuyLimitNum
().
equals
(
other
.
getBuyLimitNum
()))
&&
(
this
.
getBuyLimitNum
()
==
null
?
other
.
getBuyLimitNum
()
==
null
:
this
.
getBuyLimitNum
().
equals
(
other
.
getBuyLimitNum
()))
&&
(
this
.
getType
()
==
null
?
other
.
getType
()
==
null
:
this
.
getType
().
equals
(
other
.
getType
()))
&&
(
this
.
getImages
()
==
null
?
other
.
getImages
()
==
null
:
this
.
getImages
().
equals
(
other
.
getImages
()))
&&
(
this
.
getImages
()
==
null
?
other
.
getImages
()
==
null
:
this
.
getImages
().
equals
(
other
.
getImages
()))
&&
(
this
.
getVideos
()
==
null
?
other
.
getVideos
()
==
null
:
this
.
getVideos
().
equals
(
other
.
getVideos
()))
&&
(
this
.
getVideos
()
==
null
?
other
.
getVideos
()
==
null
:
this
.
getVideos
().
equals
(
other
.
getVideos
()))
&&
(
this
.
getDescription
()
==
null
?
other
.
getDescription
()
==
null
:
this
.
getDescription
().
equals
(
other
.
getDescription
()));
&&
(
this
.
getDescription
()
==
null
?
other
.
getDescription
()
==
null
:
this
.
getDescription
().
equals
(
other
.
getDescription
()));
...
@@ -167,6 +174,7 @@ public class SupplierItem implements Entity {
...
@@ -167,6 +174,7 @@ public class SupplierItem implements Entity {
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getIsDeleted
()
==
null
)
?
0
:
getIsDeleted
().
hashCode
());
result
=
prime
*
result
+
((
getIsDeleted
()
==
null
)
?
0
:
getIsDeleted
().
hashCode
());
result
=
prime
*
result
+
((
getBuyLimitNum
()
==
null
)
?
0
:
getBuyLimitNum
().
hashCode
());
result
=
prime
*
result
+
((
getBuyLimitNum
()
==
null
)
?
0
:
getBuyLimitNum
().
hashCode
());
result
=
prime
*
result
+
((
getType
()
==
null
)
?
0
:
getType
().
hashCode
());
result
=
prime
*
result
+
((
getImages
()
==
null
)
?
0
:
getImages
().
hashCode
());
result
=
prime
*
result
+
((
getImages
()
==
null
)
?
0
:
getImages
().
hashCode
());
result
=
prime
*
result
+
((
getVideos
()
==
null
)
?
0
:
getVideos
().
hashCode
());
result
=
prime
*
result
+
((
getVideos
()
==
null
)
?
0
:
getVideos
().
hashCode
());
result
=
prime
*
result
+
((
getDescription
()
==
null
)
?
0
:
getDescription
().
hashCode
());
result
=
prime
*
result
+
((
getDescription
()
==
null
)
?
0
:
getDescription
().
hashCode
());
...
@@ -194,6 +202,7 @@ public class SupplierItem implements Entity {
...
@@ -194,6 +202,7 @@ public class SupplierItem implements Entity {
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
isDeleted
(
"is_deleted"
,
"isDeleted"
,
"BIT"
,
false
),
isDeleted
(
"is_deleted"
,
"isDeleted"
,
"BIT"
,
false
),
buyLimitNum
(
"buy_limit_num"
,
"buyLimitNum"
,
"INTEGER"
,
false
),
buyLimitNum
(
"buy_limit_num"
,
"buyLimitNum"
,
"INTEGER"
,
false
),
type
(
"type"
,
"type"
,
"INTEGER"
,
true
),
images
(
"images"
,
"images"
,
"LONGVARCHAR"
,
false
),
images
(
"images"
,
"images"
,
"LONGVARCHAR"
,
false
),
videos
(
"videos"
,
"videos"
,
"LONGVARCHAR"
,
false
),
videos
(
"videos"
,
"videos"
,
"LONGVARCHAR"
,
false
),
description
(
"description"
,
"description"
,
"LONGVARCHAR"
,
false
);
description
(
"description"
,
"description"
,
"LONGVARCHAR"
,
false
);
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/SupplierItemExample.java
View file @
6b20d566
...
@@ -1883,6 +1883,138 @@ public class SupplierItemExample {
...
@@ -1883,6 +1883,138 @@ public class SupplierItemExample {
addCriterion
(
"buy_limit_num not between"
,
value1
,
value2
,
"buyLimitNum"
);
addCriterion
(
"buy_limit_num not between"
,
value1
,
value2
,
"buyLimitNum"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTypeIsNull
()
{
addCriterion
(
"`type` is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIsNotNull
()
{
addCriterion
(
"`type` is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` ="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table supplier_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeEqualToColumn
(
SupplierItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` <>"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table supplier_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeNotEqualToColumn
(
SupplierItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThan
(
Integer
value
)
{
addCriterion
(
"`type` >"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table supplier_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeGreaterThanColumn
(
SupplierItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` >="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table supplier_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeGreaterThanOrEqualToColumn
(
SupplierItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThan
(
Integer
value
)
{
addCriterion
(
"`type` <"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table supplier_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeLessThanColumn
(
SupplierItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` <="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table supplier_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeLessThanOrEqualToColumn
(
SupplierItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`type` in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`type` not in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`type` between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`type` not between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
public
static
class
Criteria
extends
GeneratedCriteria
{
...
...
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/AuctionConfigRequestDto.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.db.dto.request.distribution
;
import
com.wwdz.ch.db.dto.request.BaseRequestDto
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
AuctionConfigRequestDto
extends
BaseRequestDto
implements
Entity
{
private
Integer
id
;
/**
* 商品id
*/
private
Long
itemId
;
/**
* 竞拍开始时间
*/
private
Date
startTime
;
/**
* 竞拍结束时间
*/
private
Date
endTime
;
/**
* 起拍价
*/
private
Long
startPrice
;
/**
* 加价幅度
*/
private
Long
addExtent
;
/**
* 实际竞拍结束时间
*/
private
Date
realEndTime
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 是否有效
*/
private
Boolean
isValid
;
}
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/AuctionRecordRequestDto.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.db.dto.request.distribution
;
import
com.wwdz.ch.db.dto.request.BaseRequestDto
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
AuctionRecordRequestDto
extends
BaseRequestDto
implements
Entity
{
private
Integer
id
;
/**
* 商品id
*/
private
Long
itemId
;
/**
* 用户id
*/
private
Long
userId
;
/**
* 出价
*/
private
Long
price
;
/**
* 出价时间
*/
private
Date
createTime
;
/**
* 分享id
*/
private
String
shareRecordId
;
/**
* 分享商id
*/
private
Long
distributorId
;
/**
* 价格是否领先
*/
private
Boolean
isLead
;
}
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/SupplierItemRequestDto.java
View file @
6b20d566
...
@@ -4,6 +4,7 @@ import com.wwdz.ch.db.dto.request.BaseRequestDto;
...
@@ -4,6 +4,7 @@ import com.wwdz.ch.db.dto.request.BaseRequestDto;
import
com.xxdxxs.entity.Entity
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -34,11 +35,42 @@ public class SupplierItemRequestDto extends BaseRequestDto implements Entity {
...
@@ -34,11 +35,42 @@ public class SupplierItemRequestDto extends BaseRequestDto implements Entity {
*/
*/
private
Integer
stock
;
private
Integer
stock
;
/**
* 进货价格
*前端传过来的单位是元,后台要处理为分
*/
private
String
supplyPrice
;
/**
/**
* 商品名称
* 商品名称
*/
*/
private
String
name
;
private
String
name
;
/**
* 置顶图片
*/
private
String
topImage
;
/**
* 商品图片,分号分隔
*/
private
String
images
;
/**
* 商品视频,分号分隔
*/
private
String
videos
;
/**
* 限购数量
*/
private
Integer
buyLimitNum
;
/**
* 商品详细介绍,是富文本格式
*/
private
String
description
;
/**
/**
* 分销价格,前端传过来的单位是元,后台要处理为分
* 分销价格,前端传过来的单位是元,后台要处理为分
*/
*/
...
@@ -75,4 +107,36 @@ public class SupplierItemRequestDto extends BaseRequestDto implements Entity {
...
@@ -75,4 +107,36 @@ public class SupplierItemRequestDto extends BaseRequestDto implements Entity {
* 是否是店家
* 是否是店家
*/
*/
private
Boolean
isShop
;
private
Boolean
isShop
;
/**
* 商品类型1一口价2竞拍
*/
private
Integer
type
;
/**
* 竞拍开始时间
*/
private
String
auctionStartTime
;
/**
* 竞拍结束时间
*/
private
String
auctionEndTime
;
/**
* 起拍价
* 单位元 需要转为分
*/
private
String
startPrice
;
/**
* 加价幅度
* 单位元 需要转为分
*/
private
String
addExtent
;
/**
* 实际竞拍结束时间
*/
private
Date
realEndTime
;
}
}
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.db.impl.distribution
;
import
com.wwdz.ch.db.dao.distribution.AuctionConfigDao
;
import
com.wwdz.ch.db.domain.distribution.AuctionConfig
;
import
com.wwdz.ch.db.domain.distribution.AuctionConfigExample
;
import
com.wwdz.ch.db.mapper.distribution.AuctionConfigMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
import
java.util.Date
;
@Repository
public
class
AuctionConfigDaoImpl
implements
AuctionConfigDao
{
@Autowired
AuctionConfigMapper
auctionConfigMapper
;
@Override
public
int
insert
(
AuctionConfig
auctionConfig
)
{
return
auctionConfigMapper
.
insert
(
auctionConfig
);
}
@Override
public
AuctionConfig
findByItemId
(
long
itemId
)
{
AuctionConfigExample
example
=
new
AuctionConfigExample
();
AuctionConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andItemIdEqualTo
(
itemId
);
return
auctionConfigMapper
.
selectOneByExample
(
example
);
}
@Override
public
int
updateRealEndTime
(
long
itemId
,
Date
realEndTime
)
{
AuctionConfigExample
example
=
new
AuctionConfigExample
();
AuctionConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andItemIdEqualTo
(
itemId
);
AuctionConfig
auctionConfig
=
new
AuctionConfig
();
auctionConfig
.
setUpdateTime
(
new
Date
());
auctionConfig
.
setRealEndTime
(
realEndTime
);
return
auctionConfigMapper
.
updateByExampleSelective
(
auctionConfig
,
example
);
}
@Override
public
int
setEnd
(
long
itemId
)
{
AuctionConfigExample
example
=
new
AuctionConfigExample
();
AuctionConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andItemIdEqualTo
(
itemId
);
AuctionConfig
auctionConfig
=
new
AuctionConfig
();
auctionConfig
.
setUpdateTime
(
new
Date
());
auctionConfig
.
setIsValid
(
false
);
return
auctionConfigMapper
.
updateByExampleSelective
(
auctionConfig
,
example
);
}
}
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AuctionRecordDaoImpl.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.db.impl.distribution
;
import
com.github.pagehelper.PageHelper
;
import
com.wwdz.ch.db.dao.distribution.AuctionRecordDao
;
import
com.wwdz.ch.db.domain.distribution.AuctionRecord
;
import
com.wwdz.ch.db.domain.distribution.AuctionRecordExample
;
import
com.wwdz.ch.db.dto.request.distribution.AuctionRecordRequestDto
;
import
com.wwdz.ch.db.mapper.distribution.AuctionRecordMapper
;
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
AuctionRecordDaoImpl
implements
AuctionRecordDao
{
@Autowired
AuctionRecordMapper
auctionRecordMapper
;
@Override
public
int
insert
(
AuctionRecord
auctionRecord
)
{
return
auctionRecordMapper
.
insert
(
auctionRecord
);
}
@Override
public
int
updateNotLead
(
long
itemId
)
{
AuctionRecordExample
example
=
new
AuctionRecordExample
();
AuctionRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andItemIdEqualTo
(
itemId
);
AuctionRecord
auctionRecord
=
new
AuctionRecord
();
auctionRecord
.
setIsLead
(
false
);
return
auctionRecordMapper
.
updateByExampleSelective
(
auctionRecord
,
example
);
}
@Override
public
List
<
AuctionRecord
>
find
(
AuctionRecordRequestDto
dto
)
{
AuctionRecordExample
example
=
new
AuctionRecordExample
();
AuctionRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
JdbcHelper
.
ifPresent
(
dto
.
getItemId
(),
criteria:
:
andItemIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getUserId
(),
criteria:
:
andUserIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getIsLead
(),
criteria:
:
andIsLeadEqualTo
);
return
auctionRecordMapper
.
selectByExample
(
example
);
}
@Override
public
List
<
AuctionRecord
>
findByPage
(
AuctionRecordRequestDto
dto
)
{
AuctionRecordExample
example
=
new
AuctionRecordExample
();
AuctionRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
JdbcHelper
.
ifPresent
(
dto
.
getItemId
(),
criteria:
:
andItemIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getUserId
(),
criteria:
:
andUserIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getIsLead
(),
criteria:
:
andIsLeadEqualTo
);
example
.
setOrderByClause
(
"create_time desc"
);
PageHelper
.
startPage
(
dto
.
getPage
(),
dto
.
getLimit
());
return
auctionRecordMapper
.
selectByExample
(
example
);
}
@Override
public
AuctionRecord
findLastedRecord
(
long
itemId
)
{
AuctionRecordExample
example
=
new
AuctionRecordExample
();
AuctionRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andItemIdEqualTo
(
itemId
);
criteria
.
andIsLeadEqualTo
(
true
);
return
auctionRecordMapper
.
selectOneByExample
(
example
);
}
@Override
public
long
count
(
AuctionRecordRequestDto
dto
)
{
AuctionRecordExample
example
=
new
AuctionRecordExample
();
AuctionRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
JdbcHelper
.
ifPresent
(
dto
.
getItemId
(),
criteria:
:
andItemIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getUserId
(),
criteria:
:
andUserIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getIsLead
(),
criteria:
:
andIsLeadEqualTo
);
return
auctionRecordMapper
.
countByExample
(
example
);
}
}
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/SupplierItemDaoImpl.java
View file @
6b20d566
...
@@ -21,6 +21,12 @@ public class SupplierItemDaoImpl implements SupplierItemDao {
...
@@ -21,6 +21,12 @@ public class SupplierItemDaoImpl implements SupplierItemDao {
@Autowired
@Autowired
SupplierItemMapper
supplierItemMapper
;
SupplierItemMapper
supplierItemMapper
;
@Override
public
long
insert
(
SupplierItem
supplierItem
)
{
supplierItemMapper
.
insert
(
supplierItem
);
return
supplierItem
.
getId
();
}
@Override
@Override
public
List
<
SupplierItem
>
findList
(
SupplierItemRequestDto
dto
)
{
public
List
<
SupplierItem
>
findList
(
SupplierItemRequestDto
dto
)
{
SupplierItemExample
supplierItemExample
=
new
SupplierItemExample
();
SupplierItemExample
supplierItemExample
=
new
SupplierItemExample
();
...
...
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/AuctionConfigMapper.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.db.mapper.distribution
;
import
com.wwdz.ch.db.domain.distribution.AuctionConfig
;
import
com.wwdz.ch.db.domain.distribution.AuctionConfigExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
AuctionConfigMapper
{
long
countByExample
(
AuctionConfigExample
example
);
int
deleteByExample
(
AuctionConfigExample
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
AuctionConfig
record
);
int
insertSelective
(
AuctionConfig
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AuctionConfig
selectOneByExample
(
AuctionConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AuctionConfig
selectOneByExampleSelective
(
@Param
(
"example"
)
AuctionConfigExample
example
,
@Param
(
"selective"
)
AuctionConfig
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
AuctionConfig
>
selectByExampleSelective
(
@Param
(
"example"
)
AuctionConfigExample
example
,
@Param
(
"selective"
)
AuctionConfig
.
Column
...
selective
);
List
<
AuctionConfig
>
selectByExample
(
AuctionConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AuctionConfig
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"selective"
)
AuctionConfig
.
Column
...
selective
);
AuctionConfig
selectByPrimaryKey
(
Integer
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
AuctionConfig
record
,
@Param
(
"example"
)
AuctionConfigExample
example
);
int
updateByExample
(
@Param
(
"record"
)
AuctionConfig
record
,
@Param
(
"example"
)
AuctionConfigExample
example
);
int
updateByPrimaryKeySelective
(
AuctionConfig
record
);
int
updateByPrimaryKey
(
AuctionConfig
record
);
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/AuctionRecordMapper.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.db.mapper.distribution
;
import
com.wwdz.ch.db.domain.distribution.AuctionRecord
;
import
com.wwdz.ch.db.domain.distribution.AuctionRecordExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
AuctionRecordMapper
{
long
countByExample
(
AuctionRecordExample
example
);
int
deleteByExample
(
AuctionRecordExample
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
AuctionRecord
record
);
int
insertSelective
(
AuctionRecord
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AuctionRecord
selectOneByExample
(
AuctionRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AuctionRecord
selectOneByExampleSelective
(
@Param
(
"example"
)
AuctionRecordExample
example
,
@Param
(
"selective"
)
AuctionRecord
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
AuctionRecord
>
selectByExampleSelective
(
@Param
(
"example"
)
AuctionRecordExample
example
,
@Param
(
"selective"
)
AuctionRecord
.
Column
...
selective
);
List
<
AuctionRecord
>
selectByExample
(
AuctionRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table auction_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AuctionRecord
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"selective"
)
AuctionRecord
.
Column
...
selective
);
AuctionRecord
selectByPrimaryKey
(
Integer
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
AuctionRecord
record
,
@Param
(
"example"
)
AuctionRecordExample
example
);
int
updateByExample
(
@Param
(
"record"
)
AuctionRecord
record
,
@Param
(
"example"
)
AuctionRecordExample
example
);
int
updateByPrimaryKeySelective
(
AuctionRecord
record
);
int
updateByPrimaryKey
(
AuctionRecord
record
);
}
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/AuctionConfigMapper.xml
0 → 100644
View file @
6b20d566
<?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.AuctionConfigMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.distribution.AuctionConfig"
>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"item_id"
jdbcType=
"BIGINT"
property=
"itemId"
/>
<result
column=
"start_time"
jdbcType=
"TIMESTAMP"
property=
"startTime"
/>
<result
column=
"end_time"
jdbcType=
"TIMESTAMP"
property=
"endTime"
/>
<result
column=
"start_price"
jdbcType=
"BIGINT"
property=
"startPrice"
/>
<result
column=
"add_extent"
jdbcType=
"BIGINT"
property=
"addExtent"
/>
<result
column=
"real_end_time"
jdbcType=
"TIMESTAMP"
property=
"realEndTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"is_valid"
jdbcType=
"BIT"
property=
"isValid"
/>
</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, start_time, end_time, start_price, add_extent, real_end_time, create_time,
update_time, is_valid
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionConfigExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from auction_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, start_time, end_time, start_price, add_extent, real_end_time, create_time,
update_time, is_valid
</otherwise>
</choose>
from auction_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 auction_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, start_time, end_time, start_price, add_extent, real_end_time, create_time,
update_time, is_valid
</otherwise>
</choose>
from auction_config
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from auction_config
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionConfigExample"
>
delete from auction_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionConfig"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into auction_config (item_id, start_time, end_time,
start_price, add_extent, real_end_time,
create_time, update_time, is_valid
)
values (#{itemId,jdbcType=BIGINT}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{startPrice,jdbcType=BIGINT}, #{addExtent,jdbcType=BIGINT}, #{realEndTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{isValid,jdbcType=BIT}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionConfig"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into auction_config
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"itemId != null"
>
item_id,
</if>
<if
test=
"startTime != null"
>
start_time,
</if>
<if
test=
"endTime != null"
>
end_time,
</if>
<if
test=
"startPrice != null"
>
start_price,
</if>
<if
test=
"addExtent != null"
>
add_extent,
</if>
<if
test=
"realEndTime != null"
>
real_end_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"isValid != null"
>
is_valid,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"itemId != null"
>
#{itemId,jdbcType=BIGINT},
</if>
<if
test=
"startTime != null"
>
#{startTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"endTime != null"
>
#{endTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"startPrice != null"
>
#{startPrice,jdbcType=BIGINT},
</if>
<if
test=
"addExtent != null"
>
#{addExtent,jdbcType=BIGINT},
</if>
<if
test=
"realEndTime != null"
>
#{realEndTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=BIT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionConfigExample"
resultType=
"java.lang.Long"
>
select count(*) from auction_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update auction_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.startTime != null"
>
start_time = #{record.startTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.endTime != null"
>
end_time = #{record.endTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.startPrice != null"
>
start_price = #{record.startPrice,jdbcType=BIGINT},
</if>
<if
test=
"record.addExtent != null"
>
add_extent = #{record.addExtent,jdbcType=BIGINT},
</if>
<if
test=
"record.realEndTime != null"
>
real_end_time = #{record.realEndTime,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.isValid != null"
>
is_valid = #{record.isValid,jdbcType=BIT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update auction_config
set id = #{record.id,jdbcType=INTEGER},
item_id = #{record.itemId,jdbcType=BIGINT},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
start_price = #{record.startPrice,jdbcType=BIGINT},
add_extent = #{record.addExtent,jdbcType=BIGINT},
real_end_time = #{record.realEndTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_valid = #{record.isValid,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.AuctionConfig"
>
update auction_config
<set>
<if
test=
"itemId != null"
>
item_id = #{itemId,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=
"startPrice != null"
>
start_price = #{startPrice,jdbcType=BIGINT},
</if>
<if
test=
"addExtent != null"
>
add_extent = #{addExtent,jdbcType=BIGINT},
</if>
<if
test=
"realEndTime != null"
>
real_end_time = #{realEndTime,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=
"isValid != null"
>
is_valid = #{isValid,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionConfig"
>
update auction_config
set item_id = #{itemId,jdbcType=BIGINT},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
start_price = #{startPrice,jdbcType=BIGINT},
add_extent = #{addExtent,jdbcType=BIGINT},
real_end_time = #{realEndTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_valid = #{isValid,jdbcType=BIT}
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionConfigExample"
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 auction_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, start_time, end_time, start_price, add_extent, real_end_time, create_time,
update_time, is_valid
</otherwise>
</choose>
from auction_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/AuctionRecordMapper.xml
0 → 100644
View file @
6b20d566
<?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.AuctionRecordMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.distribution.AuctionRecord"
>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"item_id"
jdbcType=
"BIGINT"
property=
"itemId"
/>
<result
column=
"user_id"
jdbcType=
"BIGINT"
property=
"userId"
/>
<result
column=
"price"
jdbcType=
"BIGINT"
property=
"price"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"share_record_id"
jdbcType=
"VARCHAR"
property=
"shareRecordId"
/>
<result
column=
"distributor_id"
jdbcType=
"BIGINT"
property=
"distributorId"
/>
<result
column=
"is_lead"
jdbcType=
"BIT"
property=
"isLead"
/>
</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, user_id, price, create_time, share_record_id, distributor_id, is_lead
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionRecordExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from auction_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, item_id, user_id, price, create_time, share_record_id, distributor_id, is_lead
</otherwise>
</choose>
from auction_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.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from auction_record
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, user_id, price, create_time, share_record_id, distributor_id, is_lead
</otherwise>
</choose>
from auction_record
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from auction_record
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionRecordExample"
>
delete from auction_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionRecord"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into auction_record (item_id, user_id, price,
create_time, share_record_id, distributor_id,
is_lead)
values (#{itemId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{price,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP}, #{shareRecordId,jdbcType=VARCHAR}, #{distributorId,jdbcType=BIGINT},
#{isLead,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionRecord"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into auction_record
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"itemId != null"
>
item_id,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"price != null"
>
price,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"shareRecordId != null"
>
share_record_id,
</if>
<if
test=
"distributorId != null"
>
distributor_id,
</if>
<if
test=
"isLead != null"
>
is_lead,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"itemId != null"
>
#{itemId,jdbcType=BIGINT},
</if>
<if
test=
"userId != null"
>
#{userId,jdbcType=BIGINT},
</if>
<if
test=
"price != null"
>
#{price,jdbcType=BIGINT},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"shareRecordId != null"
>
#{shareRecordId,jdbcType=VARCHAR},
</if>
<if
test=
"distributorId != null"
>
#{distributorId,jdbcType=BIGINT},
</if>
<if
test=
"isLead != null"
>
#{isLead,jdbcType=BIT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionRecordExample"
resultType=
"java.lang.Long"
>
select count(*) from auction_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update auction_record
<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.userId != null"
>
user_id = #{record.userId,jdbcType=BIGINT},
</if>
<if
test=
"record.price != null"
>
price = #{record.price,jdbcType=BIGINT},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.shareRecordId != null"
>
share_record_id = #{record.shareRecordId,jdbcType=VARCHAR},
</if>
<if
test=
"record.distributorId != null"
>
distributor_id = #{record.distributorId,jdbcType=BIGINT},
</if>
<if
test=
"record.isLead != null"
>
is_lead = #{record.isLead,jdbcType=BIT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update auction_record
set id = #{record.id,jdbcType=INTEGER},
item_id = #{record.itemId,jdbcType=BIGINT},
user_id = #{record.userId,jdbcType=BIGINT},
price = #{record.price,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
share_record_id = #{record.shareRecordId,jdbcType=VARCHAR},
distributor_id = #{record.distributorId,jdbcType=BIGINT},
is_lead = #{record.isLead,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.AuctionRecord"
>
update auction_record
<set>
<if
test=
"itemId != null"
>
item_id = #{itemId,jdbcType=BIGINT},
</if>
<if
test=
"userId != null"
>
user_id = #{userId,jdbcType=BIGINT},
</if>
<if
test=
"price != null"
>
price = #{price,jdbcType=BIGINT},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"shareRecordId != null"
>
share_record_id = #{shareRecordId,jdbcType=VARCHAR},
</if>
<if
test=
"distributorId != null"
>
distributor_id = #{distributorId,jdbcType=BIGINT},
</if>
<if
test=
"isLead != null"
>
is_lead = #{isLead,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionRecord"
>
update auction_record
set item_id = #{itemId,jdbcType=BIGINT},
user_id = #{userId,jdbcType=BIGINT},
price = #{price,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
share_record_id = #{shareRecordId,jdbcType=VARCHAR},
distributor_id = #{distributorId,jdbcType=BIGINT},
is_lead = #{isLead,jdbcType=BIT}
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.AuctionRecordExample"
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 auction_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, item_id, user_id, price, create_time, share_record_id, distributor_id, is_lead
</otherwise>
</choose>
from auction_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>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/DistributionOrderMapper.xml
View file @
6b20d566
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"share_record_id"
jdbcType=
"VARCHAR"
property=
"shareRecordId"
/>
<result
column=
"share_record_id"
jdbcType=
"VARCHAR"
property=
"shareRecordId"
/>
<result
column=
"state"
jdbcType=
"INTEGER"
property=
"state"
/>
<result
column=
"state"
jdbcType=
"INTEGER"
property=
"state"
/>
<result
column=
"type"
jdbcType=
"INTEGER"
property=
"type"
/>
</resultMap>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<sql
id=
"Example_Where_Clause"
>
<where>
<where>
...
@@ -89,7 +90,7 @@
...
@@ -89,7 +90,7 @@
id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id,
id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id,
buyer_openid, shop_id, seller_id, amount, address_id, receiver_name, receiver_phone,
buyer_openid, shop_id, seller_id, amount, address_id, receiver_name, receiver_phone,
receiver_address, logistics_code, waybill, create_time, pay_time, delivery_time,
receiver_address, logistics_code, waybill, create_time, pay_time, delivery_time,
finish_time, update_time, share_record_id, `state`
finish_time, update_time, share_record_id, `state`
, `type`
</sql>
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributionOrderExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributionOrderExample"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -127,7 +128,7 @@
...
@@ -127,7 +128,7 @@
id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id,
id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id,
buyer_openid, shop_id, seller_id, amount, address_id, receiver_name, receiver_phone,
buyer_openid, shop_id, seller_id, amount, address_id, receiver_name, receiver_phone,
receiver_address, logistics_code, waybill, create_time, pay_time, delivery_time,
receiver_address, logistics_code, waybill, create_time, pay_time, delivery_time,
finish_time, update_time, share_record_id, `state`
finish_time, update_time, share_record_id, `state`
, `type`
</otherwise>
</otherwise>
</choose>
</choose>
from distribution_order
from distribution_order
...
@@ -161,7 +162,7 @@
...
@@ -161,7 +162,7 @@
id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id,
id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id,
buyer_openid, shop_id, seller_id, amount, address_id, receiver_name, receiver_phone,
buyer_openid, shop_id, seller_id, amount, address_id, receiver_name, receiver_phone,
receiver_address, logistics_code, waybill, create_time, pay_time, delivery_time,
receiver_address, logistics_code, waybill, create_time, pay_time, delivery_time,
finish_time, update_time, share_record_id, `state`
finish_time, update_time, share_record_id, `state`
, `type`
</otherwise>
</otherwise>
</choose>
</choose>
from distribution_order
from distribution_order
...
@@ -188,7 +189,8 @@
...
@@ -188,7 +189,8 @@
receiver_phone, receiver_address, logistics_code,
receiver_phone, receiver_address, logistics_code,
waybill, create_time, pay_time,
waybill, create_time, pay_time,
delivery_time, finish_time, update_time,
delivery_time, finish_time, update_time,
share_record_id, `state`)
share_record_id, `state`, `type`
)
values (#{distributionOrderId,jdbcType=VARCHAR}, #{prepayId,jdbcType=VARCHAR}, #{transactionId,jdbcType=VARCHAR},
values (#{distributionOrderId,jdbcType=VARCHAR}, #{prepayId,jdbcType=VARCHAR}, #{transactionId,jdbcType=VARCHAR},
#{itemId,jdbcType=BIGINT}, #{itemNum,jdbcType=INTEGER}, #{buyerId,jdbcType=BIGINT},
#{itemId,jdbcType=BIGINT}, #{itemNum,jdbcType=INTEGER}, #{buyerId,jdbcType=BIGINT},
#{buyerOpenid,jdbcType=VARCHAR}, #{shopId,jdbcType=BIGINT}, #{sellerId,jdbcType=BIGINT},
#{buyerOpenid,jdbcType=VARCHAR}, #{shopId,jdbcType=BIGINT}, #{sellerId,jdbcType=BIGINT},
...
@@ -196,7 +198,8 @@
...
@@ -196,7 +198,8 @@
#{receiverPhone,jdbcType=VARCHAR}, #{receiverAddress,jdbcType=VARCHAR}, #{logisticsCode,jdbcType=VARCHAR},
#{receiverPhone,jdbcType=VARCHAR}, #{receiverAddress,jdbcType=VARCHAR}, #{logisticsCode,jdbcType=VARCHAR},
#{waybill,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP},
#{waybill,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP},
#{deliveryTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deliveryTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{shareRecordId,jdbcType=VARCHAR}, #{state,jdbcType=INTEGER})
#{shareRecordId,jdbcType=VARCHAR}, #{state,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributionOrder"
>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributionOrder"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
...
@@ -273,6 +276,9 @@
...
@@ -273,6 +276,9 @@
<if
test=
"state != null"
>
<if
test=
"state != null"
>
`state`,
`state`,
</if>
</if>
<if
test=
"type != null"
>
`type`,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"distributionOrderId != null"
>
<if
test=
"distributionOrderId != null"
>
...
@@ -344,6 +350,9 @@
...
@@ -344,6 +350,9 @@
<if
test=
"state != null"
>
<if
test=
"state != null"
>
#{state,jdbcType=INTEGER},
#{state,jdbcType=INTEGER},
</if>
</if>
<if
test=
"type != null"
>
#{type,jdbcType=INTEGER},
</if>
</trim>
</trim>
</insert>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributionOrderExample"
resultType=
"java.lang.Long"
>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributionOrderExample"
resultType=
"java.lang.Long"
>
...
@@ -427,6 +436,9 @@
...
@@ -427,6 +436,9 @@
<if
test=
"record.state != null"
>
<if
test=
"record.state != null"
>
`state` = #{record.state,jdbcType=INTEGER},
`state` = #{record.state,jdbcType=INTEGER},
</if>
</if>
<if
test=
"record.type != null"
>
`type` = #{record.type,jdbcType=INTEGER},
</if>
</set>
</set>
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -457,7 +469,8 @@
...
@@ -457,7 +469,8 @@
finish_time = #{record.finishTime,jdbcType=TIMESTAMP},
finish_time = #{record.finishTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
share_record_id = #{record.shareRecordId,jdbcType=VARCHAR},
share_record_id = #{record.shareRecordId,jdbcType=VARCHAR},
`state` = #{record.state,jdbcType=INTEGER}
`state` = #{record.state,jdbcType=INTEGER},
`type` = #{record.type,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</if>
...
@@ -534,6 +547,9 @@
...
@@ -534,6 +547,9 @@
<if
test=
"state != null"
>
<if
test=
"state != null"
>
`state` = #{state,jdbcType=INTEGER},
`state` = #{state,jdbcType=INTEGER},
</if>
</if>
<if
test=
"type != null"
>
`type` = #{type,jdbcType=INTEGER},
</if>
</set>
</set>
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
...
@@ -561,7 +577,8 @@
...
@@ -561,7 +577,8 @@
finish_time = #{finishTime,jdbcType=TIMESTAMP},
finish_time = #{finishTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
share_record_id = #{shareRecordId,jdbcType=VARCHAR},
share_record_id = #{shareRecordId,jdbcType=VARCHAR},
`state` = #{state,jdbcType=INTEGER}
`state` = #{state,jdbcType=INTEGER},
`type` = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributionOrderExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributionOrderExample"
resultMap=
"BaseResultMap"
>
...
@@ -600,7 +617,7 @@
...
@@ -600,7 +617,7 @@
id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id,
id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id,
buyer_openid, shop_id, seller_id, amount, address_id, receiver_name, receiver_phone,
buyer_openid, shop_id, seller_id, amount, address_id, receiver_name, receiver_phone,
receiver_address, logistics_code, waybill, create_time, pay_time, delivery_time,
receiver_address, logistics_code, waybill, create_time, pay_time, delivery_time,
finish_time, update_time, share_record_id, `state`
finish_time, update_time, share_record_id, `state`
, `type`
</otherwise>
</otherwise>
</choose>
</choose>
from distribution_order
from distribution_order
...
@@ -613,7 +630,6 @@
...
@@ -613,7 +630,6 @@
limit 1
limit 1
</select>
</select>
<select
id=
"countGroupByStateForDistributor"
parameterType=
"java.lang.Long"
resultType=
"com.wwdz.ch.db.bean.DistributionOrderNum"
>
<select
id=
"countGroupByStateForDistributor"
parameterType=
"java.lang.Long"
resultType=
"com.wwdz.ch.db.bean.DistributionOrderNum"
>
select state, count(distribution_order_id) as num from distribution_order where seller_id = #{sellerId} group by state
select state, count(distribution_order_id) as num from distribution_order where seller_id = #{sellerId} group by state
</select>
</select>
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/DistributorShareRecordMapper.xml
View file @
6b20d566
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<result
column=
"shop_id"
jdbcType=
"BIGINT"
property=
"shopId"
/>
<result
column=
"shop_id"
jdbcType=
"BIGINT"
property=
"shopId"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"enabled"
jdbcType=
"BIT"
property=
"enabled"
/>
<result
column=
"enabled"
jdbcType=
"BIT"
property=
"enabled"
/>
<result
column=
"type"
jdbcType=
"INTEGER"
property=
"type"
/>
</resultMap>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<sql
id=
"Example_Where_Clause"
>
<where>
<where>
...
@@ -70,7 +71,7 @@
...
@@ -70,7 +71,7 @@
</where>
</where>
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, share_id, item_id, price, distributor_id, shop_id, create_time, enabled
id, share_id, item_id, price, distributor_id, shop_id, create_time, enabled
, `type`
</sql>
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributorShareRecordExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributorShareRecordExample"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -105,7 +106,8 @@
...
@@ -105,7 +106,8 @@
</foreach>
</foreach>
</when>
</when>
<otherwise>
<otherwise>
id, share_id, item_id, price, distributor_id, shop_id, create_time, enabled
id, share_id, item_id, price, distributor_id, shop_id, create_time, enabled, `type`
</otherwise>
</otherwise>
</choose>
</choose>
from distributor_share_record
from distributor_share_record
...
@@ -136,7 +138,8 @@
...
@@ -136,7 +138,8 @@
</foreach>
</foreach>
</when>
</when>
<otherwise>
<otherwise>
id, share_id, item_id, price, distributor_id, shop_id, create_time, enabled
id, share_id, item_id, price, distributor_id, shop_id, create_time, enabled, `type`
</otherwise>
</otherwise>
</choose>
</choose>
from distributor_share_record
from distributor_share_record
...
@@ -158,10 +161,10 @@
...
@@ -158,10 +161,10 @@
</selectKey>
</selectKey>
insert into distributor_share_record (share_id, item_id, price,
insert into distributor_share_record (share_id, item_id, price,
distributor_id, shop_id, create_time,
distributor_id, shop_id, create_time,
enabled)
enabled
, `type`
)
values (#{shareId,jdbcType=VARCHAR}, #{itemId,jdbcType=BIGINT}, #{price,jdbcType=BIGINT},
values (#{shareId,jdbcType=VARCHAR}, #{itemId,jdbcType=BIGINT}, #{price,jdbcType=BIGINT},
#{distributorId,jdbcType=BIGINT}, #{shopId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{distributorId,jdbcType=BIGINT}, #{shopId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{enabled,jdbcType=BIT})
#{enabled,jdbcType=BIT}
, #{type,jdbcType=INTEGER}
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributorShareRecord"
>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributorShareRecord"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
...
@@ -190,6 +193,9 @@
...
@@ -190,6 +193,9 @@
<if
test=
"enabled != null"
>
<if
test=
"enabled != null"
>
enabled,
enabled,
</if>
</if>
<if
test=
"type != null"
>
`type`,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"shareId != null"
>
<if
test=
"shareId != null"
>
...
@@ -213,6 +219,9 @@
...
@@ -213,6 +219,9 @@
<if
test=
"enabled != null"
>
<if
test=
"enabled != null"
>
#{enabled,jdbcType=BIT},
#{enabled,jdbcType=BIT},
</if>
</if>
<if
test=
"type != null"
>
#{type,jdbcType=INTEGER},
</if>
</trim>
</trim>
</insert>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributorShareRecordExample"
resultType=
"java.lang.Long"
>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributorShareRecordExample"
resultType=
"java.lang.Long"
>
...
@@ -248,6 +257,9 @@
...
@@ -248,6 +257,9 @@
<if
test=
"record.enabled != null"
>
<if
test=
"record.enabled != null"
>
enabled = #{record.enabled,jdbcType=BIT},
enabled = #{record.enabled,jdbcType=BIT},
</if>
</if>
<if
test=
"record.type != null"
>
`type` = #{record.type,jdbcType=INTEGER},
</if>
</set>
</set>
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -262,7 +274,8 @@
...
@@ -262,7 +274,8 @@
distributor_id = #{record.distributorId,jdbcType=BIGINT},
distributor_id = #{record.distributorId,jdbcType=BIGINT},
shop_id = #{record.shopId,jdbcType=BIGINT},
shop_id = #{record.shopId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
enabled = #{record.enabled,jdbcType=BIT}
enabled = #{record.enabled,jdbcType=BIT},
`type` = #{record.type,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</if>
...
@@ -291,6 +304,9 @@
...
@@ -291,6 +304,9 @@
<if
test=
"enabled != null"
>
<if
test=
"enabled != null"
>
enabled = #{enabled,jdbcType=BIT},
enabled = #{enabled,jdbcType=BIT},
</if>
</if>
<if
test=
"type != null"
>
`type` = #{type,jdbcType=INTEGER},
</if>
</set>
</set>
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
...
@@ -302,7 +318,8 @@
...
@@ -302,7 +318,8 @@
distributor_id = #{distributorId,jdbcType=BIGINT},
distributor_id = #{distributorId,jdbcType=BIGINT},
shop_id = #{shopId,jdbcType=BIGINT},
shop_id = #{shopId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
enabled = #{enabled,jdbcType=BIT}
enabled = #{enabled,jdbcType=BIT},
`type` = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributorShareRecordExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.DistributorShareRecordExample"
resultMap=
"BaseResultMap"
>
...
@@ -338,7 +355,8 @@
...
@@ -338,7 +355,8 @@
</foreach>
</foreach>
</when>
</when>
<otherwise>
<otherwise>
id, share_id, item_id, price, distributor_id, shop_id, create_time, enabled
id, share_id, item_id, price, distributor_id, shop_id, create_time, enabled, `type`
</otherwise>
</otherwise>
</choose>
</choose>
from distributor_share_record
from distributor_share_record
...
@@ -351,7 +369,7 @@
...
@@ -351,7 +369,7 @@
limit 1
limit 1
</select>
</select>
<select
id=
"findMaxPriceRecord"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<select
id=
"findMaxPriceRecord"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
SELECT d.*
SELECT d.*
FROM distributor_share_record d
FROM distributor_share_record d
JOIN
JOIN
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/SupplierItemMapper.xml
View file @
6b20d566
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"is_deleted"
jdbcType=
"BIT"
property=
"isDeleted"
/>
<result
column=
"is_deleted"
jdbcType=
"BIT"
property=
"isDeleted"
/>
<result
column=
"buy_limit_num"
jdbcType=
"INTEGER"
property=
"buyLimitNum"
/>
<result
column=
"buy_limit_num"
jdbcType=
"INTEGER"
property=
"buyLimitNum"
/>
<result
column=
"type"
jdbcType=
"INTEGER"
property=
"type"
/>
</resultMap>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.wwdz.ch.db.domain.distribution.SupplierItem"
>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.wwdz.ch.db.domain.distribution.SupplierItem"
>
<result
column=
"images"
jdbcType=
"LONGVARCHAR"
property=
"images"
/>
<result
column=
"images"
jdbcType=
"LONGVARCHAR"
property=
"images"
/>
...
@@ -81,7 +82,7 @@
...
@@ -81,7 +82,7 @@
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, `name`, supplier_id, is_on_sale, sort, top_image, distribution_price, supply_price,
id, `name`, supplier_id, is_on_sale, sort, top_image, distribution_price, supply_price,
stock, create_time, update_time, is_deleted, buy_limit_num
stock, create_time, update_time, is_deleted, buy_limit_num
, `type`
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
images, videos, description
images, videos, description
...
@@ -137,8 +138,8 @@
...
@@ -137,8 +138,8 @@
</when>
</when>
<otherwise>
<otherwise>
id, `name`, supplier_id, is_on_sale, sort, top_image, distribution_price, supply_price,
id, `name`, supplier_id, is_on_sale, sort, top_image, distribution_price, supply_price,
stock, create_time, update_time, is_deleted, buy_limit_num,
images, videos, description
stock, create_time, update_time, is_deleted, buy_limit_num,
`type`, images, videos,
description
</otherwise>
</otherwise>
</choose>
</choose>
from supplier_item
from supplier_item
...
@@ -172,8 +173,8 @@
...
@@ -172,8 +173,8 @@
</when>
</when>
<otherwise>
<otherwise>
id, `name`, supplier_id, is_on_sale, sort, top_image, distribution_price, supply_price,
id, `name`, supplier_id, is_on_sale, sort, top_image, distribution_price, supply_price,
stock, create_time, update_time, is_deleted, buy_limit_num,
images, videos, description
stock, create_time, update_time, is_deleted, buy_limit_num,
`type`, images, videos,
description
</otherwise>
</otherwise>
</choose>
</choose>
from supplier_item
from supplier_item
...
@@ -197,14 +198,14 @@
...
@@ -197,14 +198,14 @@
sort, top_image, distribution_price,
sort, top_image, distribution_price,
supply_price, stock, create_time,
supply_price, stock, create_time,
update_time, is_deleted, buy_limit_num,
update_time, is_deleted, buy_limit_num,
images, videos, description
`type`, images, videos,
)
description
)
values (#{name,jdbcType=VARCHAR}, #{supplierId,jdbcType=BIGINT}, #{isOnSale,jdbcType=BIT},
values (#{name,jdbcType=VARCHAR}, #{supplierId,jdbcType=BIGINT}, #{isOnSale,jdbcType=BIT},
#{sort,jdbcType=INTEGER}, #{topImage,jdbcType=VARCHAR}, #{distributionPrice,jdbcType=BIGINT},
#{sort,jdbcType=INTEGER}, #{topImage,jdbcType=VARCHAR}, #{distributionPrice,jdbcType=BIGINT},
#{supplyPrice,jdbcType=BIGINT}, #{stock,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{supplyPrice,jdbcType=BIGINT}, #{stock,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=BIT}, #{buyLimitNum,jdbcType=INTEGER},
#{updateTime,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=BIT}, #{buyLimitNum,jdbcType=INTEGER},
#{
images,jdbcType=LONGVARCHAR}, #{videos,jdbcType=LONGVARCHAR}, #{description,jdbcType=LONGVARCHAR}
#{
type,jdbcType=INTEGER}, #{images,jdbcType=LONGVARCHAR}, #{videos,jdbcType=LONGVARCHAR},
)
#{description,jdbcType=LONGVARCHAR}
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.SupplierItem"
>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.SupplierItem"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
...
@@ -248,6 +249,9 @@
...
@@ -248,6 +249,9 @@
<if
test=
"buyLimitNum != null"
>
<if
test=
"buyLimitNum != null"
>
buy_limit_num,
buy_limit_num,
</if>
</if>
<if
test=
"type != null"
>
`type`,
</if>
<if
test=
"images != null"
>
<if
test=
"images != null"
>
images,
images,
</if>
</if>
...
@@ -295,6 +299,9 @@
...
@@ -295,6 +299,9 @@
<if
test=
"buyLimitNum != null"
>
<if
test=
"buyLimitNum != null"
>
#{buyLimitNum,jdbcType=INTEGER},
#{buyLimitNum,jdbcType=INTEGER},
</if>
</if>
<if
test=
"type != null"
>
#{type,jdbcType=INTEGER},
</if>
<if
test=
"images != null"
>
<if
test=
"images != null"
>
#{images,jdbcType=LONGVARCHAR},
#{images,jdbcType=LONGVARCHAR},
</if>
</if>
...
@@ -354,6 +361,9 @@
...
@@ -354,6 +361,9 @@
<if
test=
"record.buyLimitNum != null"
>
<if
test=
"record.buyLimitNum != null"
>
buy_limit_num = #{record.buyLimitNum,jdbcType=INTEGER},
buy_limit_num = #{record.buyLimitNum,jdbcType=INTEGER},
</if>
</if>
<if
test=
"record.type != null"
>
`type` = #{record.type,jdbcType=INTEGER},
</if>
<if
test=
"record.images != null"
>
<if
test=
"record.images != null"
>
images = #{record.images,jdbcType=LONGVARCHAR},
images = #{record.images,jdbcType=LONGVARCHAR},
</if>
</if>
...
@@ -383,6 +393,7 @@
...
@@ -383,6 +393,7 @@
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT},
is_deleted = #{record.isDeleted,jdbcType=BIT},
buy_limit_num = #{record.buyLimitNum,jdbcType=INTEGER},
buy_limit_num = #{record.buyLimitNum,jdbcType=INTEGER},
`type` = #{record.type,jdbcType=INTEGER},
images = #{record.images,jdbcType=LONGVARCHAR},
images = #{record.images,jdbcType=LONGVARCHAR},
videos = #{record.videos,jdbcType=LONGVARCHAR},
videos = #{record.videos,jdbcType=LONGVARCHAR},
description = #{record.description,jdbcType=LONGVARCHAR}
description = #{record.description,jdbcType=LONGVARCHAR}
...
@@ -404,7 +415,8 @@
...
@@ -404,7 +415,8 @@
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT},
is_deleted = #{record.isDeleted,jdbcType=BIT},
buy_limit_num = #{record.buyLimitNum,jdbcType=INTEGER}
buy_limit_num = #{record.buyLimitNum,jdbcType=INTEGER},
`type` = #{record.type,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</if>
...
@@ -448,6 +460,9 @@
...
@@ -448,6 +460,9 @@
<if
test=
"buyLimitNum != null"
>
<if
test=
"buyLimitNum != null"
>
buy_limit_num = #{buyLimitNum,jdbcType=INTEGER},
buy_limit_num = #{buyLimitNum,jdbcType=INTEGER},
</if>
</if>
<if
test=
"type != null"
>
`type` = #{type,jdbcType=INTEGER},
</if>
<if
test=
"images != null"
>
<if
test=
"images != null"
>
images = #{images,jdbcType=LONGVARCHAR},
images = #{images,jdbcType=LONGVARCHAR},
</if>
</if>
...
@@ -474,6 +489,7 @@
...
@@ -474,6 +489,7 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT},
is_deleted = #{isDeleted,jdbcType=BIT},
buy_limit_num = #{buyLimitNum,jdbcType=INTEGER},
buy_limit_num = #{buyLimitNum,jdbcType=INTEGER},
`type` = #{type,jdbcType=INTEGER},
images = #{images,jdbcType=LONGVARCHAR},
images = #{images,jdbcType=LONGVARCHAR},
videos = #{videos,jdbcType=LONGVARCHAR},
videos = #{videos,jdbcType=LONGVARCHAR},
description = #{description,jdbcType=LONGVARCHAR}
description = #{description,jdbcType=LONGVARCHAR}
...
@@ -492,7 +508,8 @@
...
@@ -492,7 +508,8 @@
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT},
is_deleted = #{isDeleted,jdbcType=BIT},
buy_limit_num = #{buyLimitNum,jdbcType=INTEGER}
buy_limit_num = #{buyLimitNum,jdbcType=INTEGER},
`type` = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.SupplierItemExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.SupplierItemExample"
resultMap=
"BaseResultMap"
>
...
@@ -549,8 +566,8 @@
...
@@ -549,8 +566,8 @@
</when>
</when>
<otherwise>
<otherwise>
id, `name`, supplier_id, is_on_sale, sort, top_image, distribution_price, supply_price,
id, `name`, supplier_id, is_on_sale, sort, top_image, distribution_price, supply_price,
stock, create_time, update_time, is_deleted, buy_limit_num,
images, videos, description
stock, create_time, update_time, is_deleted, buy_limit_num,
`type`, images, videos,
description
</otherwise>
</otherwise>
</choose>
</choose>
from supplier_item
from supplier_item
...
...
ch-dao/src/main/resources/generatorConfig_new.xml
View file @
6b20d566
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.mapper.distribution"
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.mapper.distribution"
targetProject=
"ch-dao/src/main/java"
/>
targetProject=
"ch-dao/src/main/java"
/>
<table
tableName=
"
refund
_order"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<table
tableName=
"
distribution
_order"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<generatedKey
column=
"id"
sqlStatement=
"Mysql"
identity=
"true"
/>
<generatedKey
column=
"id"
sqlStatement=
"Mysql"
identity=
"true"
/>
</table>
</table>
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
View file @
6b20d566
...
@@ -44,7 +44,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
...
@@ -44,7 +44,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
"/wx/consignSale/**"
,
"/wx/item/**"
,
"/wx/consignSale/**"
,
"/wx/item/**"
,
"/wx/returnOrder/**"
,
"/wx/distributionOrder/confirmSigned"
,
"/wx/distributionOrder/delivery"
,
"/wx/distributionOrder/cancel"
,
"/wx/returnOrder/**"
,
"/wx/distributionOrder/confirmSigned"
,
"/wx/distributionOrder/delivery"
,
"/wx/distributionOrder/cancel"
,
"/wx/supplierItem/findItemsOfCurrentDistributor"
,
"/wx/distributionOrder/refund"
"/wx/supplierItem/findItemsOfCurrentDistributor"
,
"/wx/distributionOrder/refund"
// , "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage
/**"
,
"/wx/supplierItem/**"
,
"/wx/shareRecord/**"
,
"/wx/distributionOrder/**"
,
"/wx/selfPage/**"
,
"/wx/auctionRecord
/**"
/* "/wx/officialAccount/**",
/* "/wx/officialAccount/**",
"/wx/item/**",
"/wx/item/**",
"/wx/aiAssistant/**",
"/wx/aiAssistant/**",
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/vo/distribution/AuctionDetailVo.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.wx.entity.vo.distribution
;
import
com.wwdz.ch.db.domain.distribution.AuctionRecord
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
@Data
public
class
AuctionDetailVo
implements
Entity
{
/**
* 商品id
*/
private
Long
itemId
;
/**
* 商品名称
*/
private
String
name
;
/**
* 用于列表展示的图片对象
*/
private
Map
<
String
,
Object
>
homePageImage
;
/**
* 当前售价
*/
private
String
currentPrice
;
/**
* 起拍价
*/
private
String
startPrice
;
/**
* 商品图片,分号分隔
*/
private
String
images
;
/**
* 商品视频,分号分隔
*/
private
String
videos
;
/**
* 竞拍开始时间
*/
private
Date
startTime
;
/**
* 竞拍结束时间
*/
private
Date
endTime
;
/**
* 加价幅度
*/
private
String
addExtent
;
/**
* 加价幅度展示
*/
private
String
addExtentStr
;
/**
* 实际竞拍结束时间
*/
private
Date
realEndTime
;
/**
* 出价记录
*/
private
List
<
AuctionRecord
>
auctionRecordList
;
private
Integer
state
;
/**
* 状态
*/
private
String
stateName
;
/**
* 拍卖规则
*/
private
String
rule
;
/**
* 商品描述详情
*/
private
String
description
;
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/vo/distribution/AuctionRecordVo.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.wx.entity.vo.distribution
;
import
com.wwdz.ch.db.domain.distribution.AuctionRecord
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.List
;
@Data
public
class
AuctionRecordVo
implements
Entity
{
/**
* 当前售价
*/
private
String
currentPrice
;
/**
* 起拍价
*/
private
String
startPrice
;
/**
* 实际竞拍结束时间
*/
private
Date
realEndTime
;
/**
* 竞拍开始时间
*/
private
Date
startTime
;
/**
* 出价记录
*/
private
List
<
AuctionRecord
>
auctionRecordList
;
private
Integer
state
;
/**
* 状态
*/
private
String
stateName
;
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/AuctionRecordServiceImpl.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.wx.impl.distribution
;
import
com.wwdz.ch.core.consts.DistributionEnum
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.db.dao.distribution.AuctionConfigDao
;
import
com.wwdz.ch.db.dao.distribution.AuctionRecordDao
;
import
com.wwdz.ch.db.domain.distribution.AuctionConfig
;
import
com.wwdz.ch.db.domain.distribution.AuctionRecord
;
import
com.wwdz.ch.db.dto.request.distribution.AuctionRecordRequestDto
;
import
com.wwdz.ch.wx.entity.vo.distribution.AuctionRecordVo
;
import
com.wwdz.ch.wx.service.distribution.AuctionRecordService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
java.util.Date
;
import
java.util.List
;
@Service
public
class
AuctionRecordServiceImpl
implements
AuctionRecordService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AuctionRecordServiceImpl
.
class
);
@Autowired
AuctionConfigDao
auctionConfigDao
;
@Autowired
AuctionRecordDao
auctionRecordDao
;
@Override
public
Result
createAuctionRecord
(
AuctionRecordRequestDto
dto
)
{
return
null
;
}
@Override
public
Result
findList
(
AuctionRecordRequestDto
dto
)
{
try
{
AuctionRecordVo
auctionRecordVo
=
new
AuctionRecordVo
();
List
<
AuctionRecord
>
auctionRecordList
=
auctionRecordDao
.
findByPage
(
dto
);
//查询商品竞拍信息
AuctionConfig
auctionConfig
=
auctionConfigDao
.
findByItemId
(
dto
.
getItemId
());
//当前价
if
(
CollectionUtils
.
isEmpty
(
auctionRecordList
))
{
auctionRecordVo
.
setCurrentPrice
(
PriceUtil
.
convertPriceFenToYuan
(
auctionConfig
.
getStartPrice
()));
}
else
{
AuctionRecord
lastedRecord
=
auctionRecordDao
.
findLastedRecord
(
dto
.
getItemId
());
auctionRecordVo
.
setCurrentPrice
(
PriceUtil
.
convertPriceFenToYuan
(
lastedRecord
.
getPrice
()));
}
auctionRecordVo
.
setAuctionRecordList
(
auctionRecordList
);
auctionRecordVo
.
setStartPrice
(
PriceUtil
.
convertPriceFenToYuan
(
auctionConfig
.
getStartPrice
()));
Date
startTime
=
auctionConfig
.
getStartTime
();
Date
realEndTime
=
auctionConfig
.
getRealEndTime
();
auctionRecordVo
.
setStartTime
(
startTime
);
auctionRecordVo
.
setRealEndTime
(
realEndTime
);
Date
now
=
new
Date
();
if
(
now
.
before
(
startTime
))
{
auctionRecordVo
.
setState
(
DistributionEnum
.
AuctionStateEnum
.
NOT_START
.
getCode
());
auctionRecordVo
.
setStateName
(
DistributionEnum
.
AuctionStateEnum
.
NOT_START
.
getDes
());
}
else
if
(
now
.
after
(
realEndTime
))
{
auctionRecordVo
.
setState
(
DistributionEnum
.
AuctionStateEnum
.
END
.
getCode
());
auctionRecordVo
.
setStateName
(
DistributionEnum
.
AuctionStateEnum
.
END
.
getDes
());
}
else
{
auctionRecordVo
.
setState
(
DistributionEnum
.
AuctionStateEnum
.
IN_AUCTION
.
getCode
());
auctionRecordVo
.
setStateName
(
DistributionEnum
.
AuctionStateEnum
.
IN_AUCTION
.
getDes
());
}
return
Result
.
success
(
auctionRecordVo
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"退款申请失败 error : {}"
,
e
);
}
return
Result
.
failed
();
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
View file @
6b20d566
...
@@ -166,6 +166,90 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
...
@@ -166,6 +166,90 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
return
Result
.
failed
(
"分销订单下单失败"
);
return
Result
.
failed
(
"分销订单下单失败"
);
}
}
@Override
public
Result
buySample
(
DistributionOrderRequestDto
dto
)
{
try
{
String
shareRecordId
=
dto
.
getShareRecordId
();
DistributorShareRecord
distributorShareRecord
=
null
;
long
itemId
=
0
;
if
(
com
.
xxdxxs
.
utils
.
StringUtils
.
isEmpty
(
shareRecordId
)
&&
dto
.
getItemId
()
==
null
)
{
return
Result
.
failed
(
"商品信息为空"
);
}
else
if
(
com
.
xxdxxs
.
utils
.
StringUtils
.
hasLength
(
shareRecordId
))
{
distributorShareRecord
=
distributorShareRecordDao
.
findById
(
shareRecordId
);
if
(
distributorShareRecord
==
null
||
!
distributorShareRecord
.
getEnabled
())
{
return
Result
.
failed
(
"该商品已下架"
);
}
else
{
itemId
=
distributorShareRecord
.
getItemId
();
}
}
else
{
itemId
=
dto
.
getItemId
();
}
//查询商品信息,检查商品库存
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
distributorShareRecord
.
getItemId
());
int
stock
=
supplierItem
.
getStock
();
if
(
stock
<=
0
)
{
return
Result
.
failed
(
"商品库存不足"
);
}
String
distributionOrderId
=
IdUtils
.
getOrderNumber
(
DISTRIBUTION_ORDER_PREFIX
);
DistributionOrderRequestDto
prePayDto
=
new
DistributionOrderRequestDto
();
prePayDto
.
setDistributionOrderId
(
distributionOrderId
);
prePayDto
.
setAmount
(
String
.
valueOf
(
distributorShareRecord
.
getPrice
()
*
dto
.
getItemNum
()));
prePayDto
.
setBuyerOpenid
(
dto
.
getBuyerOpenid
());
prePayDto
.
setItemName
(
supplierItem
.
getName
());
Result
prePayResult
=
wxPayServiceApi
.
createPrepareOrder
(
prePayDto
);
if
(!
prePayResult
.
getSuccess
())
{
return
Result
.
failed
(
"预下单失败"
);
}
String
prepayId
=
(
String
)
prePayResult
.
getData
();
DistributionOrder
distributionOrder
=
new
DistributionOrder
();
distributionOrder
.
setItemId
(
itemId
);
distributionOrder
.
setItemNum
(
1
);
distributionOrder
.
setShareRecordId
(
StringUtils
.
isEmpty
(
distributorShareRecord
.
getShareId
())?
(
"DA"
+
SYSTEM_ACCOUNT
)
:
distributorShareRecord
.
getShareId
());
distributionOrder
.
setDistributionOrderId
(
distributionOrderId
);
distributionOrder
.
setPrepayId
(
prepayId
);
distributionOrder
.
setBuyerId
(
dto
.
getBuyerId
());
distributionOrder
.
setBuyerOpenid
(
dto
.
getBuyerOpenid
());
distributionOrder
.
setShopId
(
SYSTEM_ACCOUNT
);
distributionOrder
.
setSellerId
(
SYSTEM_ACCOUNT
);
distributionOrder
.
setAmount
(
supplierItem
.
getDistributionPrice
());
distributionOrder
.
setAddressId
(
dto
.
getAddressId
());
distributionOrder
.
setReceiverAddress
(
dto
.
getReceiverAddress
());
distributionOrder
.
setReceiverName
(
dto
.
getReceiverName
());
distributionOrder
.
setReceiverPhone
(
dto
.
getReceiverPhone
());
distributionOrder
.
setCreateTime
(
new
Date
());
distributionOrder
.
setUpdateTime
(
new
Date
());
distributionOrder
.
setState
(
DistributionEnum
.
DistributionOrderStateEnum
.
PRE_PAY
.
getCode
());
distributionOrderDao
.
insert
(
distributionOrder
);
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"distributionOrderId"
,
distributionOrderId
);
map
.
put
(
"prepayId"
,
prepayId
);
//计算系统账号的利润,分销商购买的价格 减去 进货成本价
DistributorProfit
distributorProfit
=
new
DistributorProfit
();
//供货成本价
Long
distributionTotalPrice
=
supplierItem
.
getDistributionPrice
()
*
distributionOrder
.
getItemNum
();
Double
profit
=
distributionOrder
.
getAmount
().
doubleValue
()
-
supplierItem
.
getSupplyPrice
().
doubleValue
();
distributorProfit
.
setDistributionOrderId
(
distributionOrderId
);
distributorProfit
.
setDistributorId
(
distributionOrder
.
getSellerId
());
distributorProfit
.
setItemId
(
distributionOrder
.
getItemId
());
distributorProfit
.
setItemNum
(
distributionOrder
.
getItemNum
());
distributorProfit
.
setAmount
(
distributionOrder
.
getAmount
());
distributorProfit
.
setItemCost
(
distributionTotalPrice
);
distributorProfit
.
setProfit
((
long
)
Math
.
floor
(
profit
));
distributorProfit
.
setCreateTime
(
new
Date
());
distributorProfit
.
setIsValid
(
false
);
distributorProfitDao
.
insert
(
distributorProfit
);
return
Result
.
success
(
map
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"分销商购买失败 error : {}"
,
e
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
}
return
Result
.
failed
(
"分销商购买失败"
);
}
@Override
@Override
public
Result
checkPayState
(
DistributionOrderRequestDto
dto
)
{
public
Result
checkPayState
(
DistributionOrderRequestDto
dto
)
{
try
{
try
{
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributorShareRecordServiceImpl.java
View file @
6b20d566
package
com.wwdz.ch.wx.impl.distribution
;
package
com.wwdz.ch.wx.impl.distribution
;
import
com.wwdz.ch.core.consts.DistributionEnum
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.util.IdUtils
;
import
com.wwdz.ch.core.util.IdUtils
;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.core.util.UUID
;
import
com.wwdz.ch.core.util.UUID
;
import
com.wwdz.ch.db.dao.distribution.AuctionConfigDao
;
import
com.wwdz.ch.db.dao.distribution.DistributorShareRecordDao
;
import
com.wwdz.ch.db.dao.distribution.DistributorShareRecordDao
;
import
com.wwdz.ch.db.dao.distribution.SupplierItemDao
;
import
com.wwdz.ch.db.dao.distribution.SupplierItemDao
;
import
com.wwdz.ch.db.domain.distribution.AuctionConfig
;
import
com.wwdz.ch.db.domain.distribution.DistributorShareRecord
;
import
com.wwdz.ch.db.domain.distribution.DistributorShareRecord
;
import
com.wwdz.ch.db.domain.distribution.SupplierItem
;
import
com.wwdz.ch.db.domain.distribution.SupplierItem
;
import
com.wwdz.ch.db.dto.request.distribution.DistributorShareRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.DistributorShareRecordRequestDto
;
...
@@ -30,6 +33,9 @@ public class DistributorShareRecordServiceImpl implements DistributorShareRecord
...
@@ -30,6 +33,9 @@ public class DistributorShareRecordServiceImpl implements DistributorShareRecord
@Autowired
@Autowired
SupplierItemDao
supplierItemDao
;
SupplierItemDao
supplierItemDao
;
@Autowired
AuctionConfigDao
auctionConfigDao
;
@Override
@Override
public
Result
createShareRecord
(
DistributorShareRecordRequestDto
dto
)
{
public
Result
createShareRecord
(
DistributorShareRecordRequestDto
dto
)
{
...
@@ -48,6 +54,7 @@ public class DistributorShareRecordServiceImpl implements DistributorShareRecord
...
@@ -48,6 +54,7 @@ public class DistributorShareRecordServiceImpl implements DistributorShareRecord
distributorShareRecord
.
setShopId
(
dto
.
getShopId
());
distributorShareRecord
.
setShopId
(
dto
.
getShopId
());
distributorShareRecord
.
setCreateTime
(
new
Date
());
distributorShareRecord
.
setCreateTime
(
new
Date
());
distributorShareRecord
.
setEnabled
(
true
);
distributorShareRecord
.
setEnabled
(
true
);
distributorShareRecord
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
FIXED_PRICE
.
getCode
());
distributorShareRecordDao
.
insert
(
distributorShareRecord
);
distributorShareRecordDao
.
insert
(
distributorShareRecord
);
return
Result
.
success
(
new
HashMap
<
String
,
String
>(){{
put
(
"shareId"
,
shareRecordId
);}});
return
Result
.
success
(
new
HashMap
<
String
,
String
>(){{
put
(
"shareId"
,
shareRecordId
);}});
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -55,4 +62,34 @@ public class DistributorShareRecordServiceImpl implements DistributorShareRecord
...
@@ -55,4 +62,34 @@ public class DistributorShareRecordServiceImpl implements DistributorShareRecord
}
}
return
Result
.
failed
();
return
Result
.
failed
();
}
}
@Override
public
Result
createAuctionShareRecord
(
DistributorShareRecordRequestDto
dto
)
{
try
{
long
itemId
=
dto
.
getItemId
();
//查询商品竞拍信息
Date
now
=
new
Date
();
AuctionConfig
auctionConfig
=
auctionConfigDao
.
findByItemId
(
itemId
);
if
(
now
.
after
(
auctionConfig
.
getRealEndTime
()))
{
return
Result
.
failed
(
"该商品已截拍"
);
}
DistributorShareRecord
distributorShareRecord
=
new
DistributorShareRecord
();
String
shareRecordId
=
UUID
.
fastUUID
().
toString
(
true
);
distributorShareRecord
.
setShareId
(
shareRecordId
);
distributorShareRecord
.
setItemId
(
dto
.
getItemId
());
//商品的起拍价
distributorShareRecord
.
setPrice
(
auctionConfig
.
getStartPrice
());
distributorShareRecord
.
setDistributorId
(
dto
.
getDistributorId
());
distributorShareRecord
.
setShopId
(
dto
.
getShopId
());
distributorShareRecord
.
setCreateTime
(
new
Date
());
distributorShareRecord
.
setEnabled
(
true
);
distributorShareRecord
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
AUCTION
.
getCode
());
distributorShareRecordDao
.
insert
(
distributorShareRecord
);
return
Result
.
success
(
new
HashMap
<
String
,
String
>(){{
put
(
"shareId"
,
shareRecordId
);}});
}
catch
(
Exception
e
)
{
logger
.
error
(
"创建竞拍品分销分享链接失败 error: {}"
,
e
);
}
return
Result
.
failed
();
}
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
6b20d566
package
com.wwdz.ch.wx.impl.distribution
;
package
com.wwdz.ch.wx.impl.distribution
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.wwdz.ch.core.consts.DistributionEnum
;
import
com.wwdz.ch.core.consts.ResultCode
;
import
com.wwdz.ch.core.consts.ResultCode
;
import
com.wwdz.ch.core.type.PageSearchResult
;
import
com.wwdz.ch.core.type.PageSearchResult
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.Result
;
...
@@ -8,13 +9,15 @@ import com.wwdz.ch.core.util.MediaUtil;
...
@@ -8,13 +9,15 @@ import com.wwdz.ch.core.util.MediaUtil;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.db.dao.SwitchDao
;
import
com.wwdz.ch.db.dao.SwitchDao
;
import
com.wwdz.ch.db.dao.distribution.*
;
import
com.wwdz.ch.db.dao.distribution.*
;
import
com.wwdz.ch.db.domain.AiAssistant
;
import
com.wwdz.ch.db.domain.Switch
;
import
com.wwdz.ch.db.domain.Switch
;
import
com.wwdz.ch.db.domain.distribution.*
;
import
com.wwdz.ch.db.domain.distribution.*
;
import
com.wwdz.ch.db.dto.request.distribution.AuctionRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.DistributorShareRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.DistributorShareRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.SupplierItemRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.SupplierItemRequestDto
;
import
com.wwdz.ch.wx.entity.vo.distribution.SupplierItemVo
;
import
com.wwdz.ch.core.entity.SupplierItemVo
;
import
com.wwdz.ch.wx.entity.vo.distribution.AuctionDetailVo
;
import
com.wwdz.ch.wx.service.distribution.SupplierItemService
;
import
com.wwdz.ch.wx.service.distribution.SupplierItemService
;
import
com.xxdxxs.utils.DateUtils
;
import
com.xxdxxs.utils.EntityMapper
;
import
com.xxdxxs.utils.EntityMapper
;
import
com.xxdxxs.utils.StringUtils
;
import
com.xxdxxs.utils.StringUtils
;
import
org.redisson.api.RLock
;
import
org.redisson.api.RLock
;
...
@@ -23,6 +26,9 @@ import org.slf4j.Logger;
...
@@ -23,6 +26,9 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
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.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
java.util.*
;
import
java.util.*
;
...
@@ -33,7 +39,7 @@ import java.util.stream.Collectors;
...
@@ -33,7 +39,7 @@ import java.util.stream.Collectors;
@Service
@Service
public
class
SupplierItemServiceImpl
implements
SupplierItemService
{
public
class
SupplierItemServiceImpl
implements
SupplierItemService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
DistributorShareRecord
ServiceImpl
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
SupplierItem
ServiceImpl
.
class
);
@Autowired
@Autowired
SupplierItemDao
supplierItemDao
;
SupplierItemDao
supplierItemDao
;
...
@@ -56,6 +62,13 @@ public class SupplierItemServiceImpl implements SupplierItemService {
...
@@ -56,6 +62,13 @@ public class SupplierItemServiceImpl implements SupplierItemService {
@Autowired
@Autowired
private
SwitchDao
switchDao
;
private
SwitchDao
switchDao
;
@Autowired
AuctionConfigDao
auctionConfigDao
;
@Autowired
AuctionRecordDao
auctionRecordDao
;
@Override
@Override
public
Result
findList
(
SupplierItemRequestDto
dto
)
{
public
Result
findList
(
SupplierItemRequestDto
dto
)
{
try
{
try
{
...
@@ -257,4 +270,77 @@ public class SupplierItemServiceImpl implements SupplierItemService {
...
@@ -257,4 +270,77 @@ public class SupplierItemServiceImpl implements SupplierItemService {
}
}
return
Result
.
failed
();
return
Result
.
failed
();
}
}
@Override
public
Result
findAuctionDetail
(
SupplierItemRequestDto
dto
)
{
try
{
AuctionDetailVo
auctionDetailVo
=
new
AuctionDetailVo
();
long
itemId
=
0
;
String
shareRecordId
=
dto
.
getShareRecordId
();
DistributorShareRecord
distributorShareRecord
=
null
;
if
(
StringUtils
.
isEmpty
(
shareRecordId
)
&&
dto
.
getId
()
==
null
)
{
return
Result
.
failed
(
"商品信息为空"
);
}
else
if
(
StringUtils
.
hasLength
(
shareRecordId
))
{
distributorShareRecord
=
distributorShareRecordDao
.
findById
(
shareRecordId
);
if
(
distributorShareRecord
==
null
||
!
distributorShareRecord
.
getEnabled
())
{
return
Result
.
failed
(
"该商品已下架"
);
}
else
{
itemId
=
distributorShareRecord
.
getItemId
();
}
}
else
{
itemId
=
dto
.
getId
();
}
//查询商品竞拍信息
AuctionConfig
auctionConfig
=
auctionConfigDao
.
findByItemId
(
itemId
);
//查询商品竞拍记录
AuctionRecordRequestDto
auctionRecordRequestDto
=
new
AuctionRecordRequestDto
();
auctionRecordRequestDto
.
setItemId
(
itemId
);
auctionRecordRequestDto
.
setPage
(
dto
.
getPage
());
auctionRecordRequestDto
.
setLimit
(
dto
.
getLimit
());
List
<
AuctionRecord
>
auctionRecordList
=
auctionRecordDao
.
findByPage
(
auctionRecordRequestDto
);
//当前价
if
(
CollectionUtils
.
isEmpty
(
auctionRecordList
))
{
auctionDetailVo
.
setCurrentPrice
(
PriceUtil
.
convertPriceFenToYuan
(
auctionConfig
.
getStartPrice
()));
}
else
{
AuctionRecord
lastedRecord
=
auctionRecordDao
.
findLastedRecord
(
itemId
);
auctionDetailVo
.
setCurrentPrice
(
PriceUtil
.
convertPriceFenToYuan
(
lastedRecord
.
getPrice
()));
}
auctionDetailVo
.
setAuctionRecordList
(
auctionRecordList
);
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
itemId
);
auctionDetailVo
.
setItemId
(
supplierItem
.
getId
());
auctionDetailVo
.
setName
(
supplierItem
.
getName
());
auctionDetailVo
.
setHomePageImage
(
MediaUtil
.
getHomePageImage
(
supplierItem
.
getImages
(),
supplierItem
.
getVideos
()));
//起拍价
auctionDetailVo
.
setStartPrice
(
PriceUtil
.
convertPriceFenToYuan
(
auctionConfig
.
getStartPrice
()));
String
addExtent
=
PriceUtil
.
convertPriceFenToYuan
(
auctionConfig
.
getAddExtent
());
auctionDetailVo
.
setAddExtent
(
addExtent
);
auctionDetailVo
.
setAddExtentStr
(
"¥"
+
addExtent
+
"/次"
);
Date
startTime
=
auctionConfig
.
getStartTime
();
Date
realEndTime
=
auctionConfig
.
getRealEndTime
();
auctionDetailVo
.
setStartTime
(
startTime
);
auctionDetailVo
.
setEndTime
(
auctionConfig
.
getEndTime
());
auctionDetailVo
.
setRealEndTime
(
realEndTime
);
Date
now
=
new
Date
();
if
(
now
.
before
(
startTime
))
{
auctionDetailVo
.
setState
(
DistributionEnum
.
AuctionStateEnum
.
NOT_START
.
getCode
());
auctionDetailVo
.
setStateName
(
DistributionEnum
.
AuctionStateEnum
.
NOT_START
.
getDes
());
}
else
if
(
now
.
after
(
realEndTime
))
{
auctionDetailVo
.
setState
(
DistributionEnum
.
AuctionStateEnum
.
END
.
getCode
());
auctionDetailVo
.
setStateName
(
DistributionEnum
.
AuctionStateEnum
.
END
.
getDes
());
}
else
{
auctionDetailVo
.
setState
(
DistributionEnum
.
AuctionStateEnum
.
IN_AUCTION
.
getCode
());
auctionDetailVo
.
setStateName
(
DistributionEnum
.
AuctionStateEnum
.
IN_AUCTION
.
getDes
());
}
auctionDetailVo
.
setRule
(
"中拍买家对应的分销商可获得最终成拍价的3%的金额作为佣金奖励,"
+
"其余参与分销的分销商平分最终成拍价的3%的金额。若多个分销商分销给同一个买家,"
+
"奖励则归属于第一个分享给买家的分销商。"
+
"(举例:某拍品最终成拍价是1000元,有4个分销商参与分销,则中拍买家的分销商分得30元佣金,其余3个分销商没人分得10元佣金)"
);
auctionDetailVo
.
setDescription
(
supplierItem
.
getDescription
());
return
Result
.
success
(
auctionDetailVo
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"查询拍卖商品详情 error : {}"
,
e
);
}
return
Result
.
failed
();
}
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/AuctionConfigService.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.wx.service.distribution
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.distribution.AuctionConfigRequestDto
;
public
interface
AuctionConfigService
{
/**
* 新增竞拍配置
* @param dto
* @return
*/
Result
createAuctionConfig
(
AuctionConfigRequestDto
dto
);
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/AuctionRecordService.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.wx.service.distribution
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.distribution.AuctionRecordRequestDto
;
public
interface
AuctionRecordService
{
/**
* 新增出价记录
* @param dto
* @return
*/
Result
createAuctionRecord
(
AuctionRecordRequestDto
dto
);
/**
* 查询出价记录
* @param dto
* @return
*/
Result
findList
(
AuctionRecordRequestDto
dto
);
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/DistributionOrderService.java
View file @
6b20d566
...
@@ -13,6 +13,14 @@ public interface DistributionOrderService {
...
@@ -13,6 +13,14 @@ public interface DistributionOrderService {
Result
createDistributionOrder
(
DistributionOrderRequestDto
dto
);
Result
createDistributionOrder
(
DistributionOrderRequestDto
dto
);
/**
* 分销商购买样品
* @param dto
* @return
*/
Result
buySample
(
DistributionOrderRequestDto
dto
);
/**
/**
* 检查订单是否支付成功
* 检查订单是否支付成功
* @param dto
* @param dto
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/DistributorShareRecordService.java
View file @
6b20d566
...
@@ -11,4 +11,12 @@ public interface DistributorShareRecordService {
...
@@ -11,4 +11,12 @@ public interface DistributorShareRecordService {
* @return
* @return
*/
*/
Result
createShareRecord
(
DistributorShareRecordRequestDto
dto
);
Result
createShareRecord
(
DistributorShareRecordRequestDto
dto
);
/**
* 创建竞拍品分销分享记录
* @param dto
* @return
*/
Result
createAuctionShareRecord
(
DistributorShareRecordRequestDto
dto
);
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/SupplierItemService.java
View file @
6b20d566
...
@@ -5,6 +5,7 @@ import com.wwdz.ch.db.dto.request.distribution.SupplierItemRequestDto;
...
@@ -5,6 +5,7 @@ import com.wwdz.ch.db.dto.request.distribution.SupplierItemRequestDto;
public
interface
SupplierItemService
{
public
interface
SupplierItemService
{
/**
/**
* 查询供应商商品列表
* 查询供应商商品列表
* @param dto
* @param dto
...
@@ -44,4 +45,12 @@ public interface SupplierItemService {
...
@@ -44,4 +45,12 @@ public interface SupplierItemService {
Result
updateDistributionPrice
(
SupplierItemRequestDto
dto
);
Result
updateDistributionPrice
(
SupplierItemRequestDto
dto
);
/**
* 拍卖商品详情页
* @param dto
* @return
*/
Result
findAuctionDetail
(
SupplierItemRequestDto
dto
);
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/AuctionRecordController.java
0 → 100644
View file @
6b20d566
package
com.wwdz.ch.wx.web.distribution
;
import
com.alibaba.fastjson.JSON
;
import
com.wwdz.ch.core.consts.ResultCode
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.distribution.AuctionRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.SupplierItemRequestDto
;
import
com.wwdz.ch.wx.service.distribution.AuctionRecordService
;
import
io.swagger.annotations.ApiOperation
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"/wx/auctionRecord"
)
public
class
AuctionRecordController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
SupplierItemController
.
class
);
@Autowired
AuctionRecordService
auctionRecordService
;
@ApiOperation
(
value
=
"查询出价记录"
)
@PostMapping
(
"/findList"
)
public
Result
findList
(
@RequestBody
AuctionRecordRequestDto
dto
)
{
logger
.
info
(
"查询出价记录,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
if
(
dto
.
getItemId
()
==
null
)
{
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
}
return
auctionRecordService
.
findList
(
dto
);
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/DistributionOrderController.java
View file @
6b20d566
...
@@ -47,6 +47,21 @@ public class DistributionOrderController {
...
@@ -47,6 +47,21 @@ public class DistributionOrderController {
}
}
@ApiOperation
(
value
=
"分销商购买样品,尚未付款"
)
@PostMapping
(
"/buySample"
)
public
Result
buySample
(
@RequestBody
DistributionOrderRequestDto
dto
)
{
logger
.
info
(
"分销商购买样品,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
Validator
validator
=
new
Validator
(
FormHandler
.
ofEntity
(
dto
));
validator
.
set
(
"buyerId"
,
"买方id"
).
must
().
number
()
.
set
(
"buyerOpenid"
,
"买方微信openid"
).
must
().
string
()
.
end
();
if
(!
validator
.
isValid
())
{
return
Result
.
failed
(
validator
.
getErrorInfo
());
}
return
distributionOrderService
.
buySample
(
dto
);
}
@ApiOperation
(
value
=
"前端获取支付所需参数"
)
@ApiOperation
(
value
=
"前端获取支付所需参数"
)
@PostMapping
(
"/getPayParam"
)
@PostMapping
(
"/getPayParam"
)
public
Result
getPayParam
(
@RequestBody
DistributionOrderRequestDto
dto
)
{
public
Result
getPayParam
(
@RequestBody
DistributionOrderRequestDto
dto
)
{
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/DistributorShareRecordController.java
View file @
6b20d566
...
@@ -45,4 +45,20 @@ public class DistributorShareRecordController {
...
@@ -45,4 +45,20 @@ public class DistributorShareRecordController {
return
distributorShareRecordService
.
createShareRecord
(
dto
);
return
distributorShareRecordService
.
createShareRecord
(
dto
);
}
}
@ApiOperation
(
value
=
"创建竞拍品分享记录"
)
@PostMapping
(
"/createAuctionShareRecord"
)
public
Result
createAuctionShareRecord
(
@RequestBody
DistributorShareRecordRequestDto
dto
)
{
logger
.
info
(
"创建竞拍品分享记录,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
Validator
validator
=
new
Validator
(
FormHandler
.
ofEntity
(
dto
));
validator
.
set
(
"itemId"
,
"商品id"
).
must
().
number
()
.
set
(
"distributorId"
,
"分销商id"
).
must
().
number
()
.
set
(
"shopId"
,
"分销商店铺id"
).
must
().
number
()
.
end
();
if
(!
validator
.
isValid
())
{
return
Result
.
failed
(
validator
.
getErrorInfo
());
}
return
distributorShareRecordService
.
createAuctionShareRecord
(
dto
);
}
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/SupplierItemController.java
View file @
6b20d566
...
@@ -7,6 +7,7 @@ import com.wwdz.ch.db.dto.request.distribution.SupplierItemRequestDto;
...
@@ -7,6 +7,7 @@ import com.wwdz.ch.db.dto.request.distribution.SupplierItemRequestDto;
import
com.wwdz.ch.wx.entity.request.MessageRequestDto
;
import
com.wwdz.ch.wx.entity.request.MessageRequestDto
;
import
com.wwdz.ch.wx.service.distribution.SupplierItemService
;
import
com.wwdz.ch.wx.service.distribution.SupplierItemService
;
import
com.xxdxxs.service.FormHandler
;
import
com.xxdxxs.service.FormHandler
;
import
com.xxdxxs.utils.StringUtils
;
import
com.xxdxxs.validation.Validator
;
import
com.xxdxxs.validation.Validator
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
...
@@ -26,6 +27,7 @@ public class SupplierItemController {
...
@@ -26,6 +27,7 @@ public class SupplierItemController {
@Autowired
@Autowired
SupplierItemService
supplierItemService
;
SupplierItemService
supplierItemService
;
@ApiOperation
(
value
=
"查询供货商品列表"
)
@ApiOperation
(
value
=
"查询供货商品列表"
)
@PostMapping
(
"/findList"
)
@PostMapping
(
"/findList"
)
public
Result
findList
(
@RequestBody
SupplierItemRequestDto
dto
)
{
public
Result
findList
(
@RequestBody
SupplierItemRequestDto
dto
)
{
...
@@ -67,4 +69,15 @@ public class SupplierItemController {
...
@@ -67,4 +69,15 @@ public class SupplierItemController {
}
}
return
supplierItemService
.
updateDistributionPrice
(
dto
);
return
supplierItemService
.
updateDistributionPrice
(
dto
);
}
}
@ApiOperation
(
value
=
"查询竞拍商品详情"
)
@PostMapping
(
"/findAuctionDetail"
)
public
Result
findAuctionDetail
(
@RequestBody
SupplierItemRequestDto
dto
)
{
logger
.
info
(
"查询竞拍商品详情,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
if
(
StringUtils
.
isEmpty
(
dto
.
getShareRecordId
())
&&
dto
.
getId
()
==
null
)
{
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
}
return
supplierItemService
.
findAuctionDetail
(
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