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
7597afb2
Commit
7597afb2
authored
Jul 20, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
钱币设置
parent
8d828fab
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
409 additions
and
840 deletions
+409
-840
ch-admin-api/src/main/java/com/wwdz/ch/admin/config/ShiroConfig.java
...i/src/main/java/com/wwdz/ch/admin/config/ShiroConfig.java
+2
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/BidRecordController.java
...ava/com/wwdz/ch/admin/controller/BidRecordController.java
+21
-13
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/ItemController.java
...ain/java/com/wwdz/ch/admin/controller/ItemController.java
+3
-3
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/BidRecordRequestDto.java
...java/com/wwdz/ch/admin/entity/vo/BidRecordRequestDto.java
+22
-10
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/BidRecordServiceImpl.java
...ain/java/com/wwdz/ch/admin/impl/BidRecordServiceImpl.java
+41
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/ItemServiceImpl.java
...src/main/java/com/wwdz/ch/admin/impl/ItemServiceImpl.java
+1
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/OperateLogServiceImpl.java
...in/java/com/wwdz/ch/admin/impl/OperateLogServiceImpl.java
+0
-1
ch-admin-api/src/main/java/com/wwdz/ch/admin/service/BidRecordService.java
...main/java/com/wwdz/ch/admin/service/BidRecordService.java
+19
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/BidRecordMapper.java
ch-dao/src/main/java/com/wwdz/ch/db/dao/BidRecordMapper.java
+1
-75
ch-dao/src/main/java/com/wwdz/ch/db/dao/OperateLogMapper.java
...ao/src/main/java/com/wwdz/ch/db/dao/OperateLogMapper.java
+1
-1
ch-dao/src/main/java/com/wwdz/ch/db/domain/BidRecord.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/BidRecord.java
+41
-386
ch-dao/src/main/java/com/wwdz/ch/db/domain/BidRecordExample.java
...src/main/java/com/wwdz/ch/db/domain/BidRecordExample.java
+119
-221
ch-dao/src/main/java/com/wwdz/ch/db/manager/BidRecordManager.java
...rc/main/java/com/wwdz/ch/db/manager/BidRecordManager.java
+18
-0
ch-dao/src/main/java/com/wwdz/ch/db/manager/impl/BidRecordManagerImpl.java
...ava/com/wwdz/ch/db/manager/impl/BidRecordManagerImpl.java
+57
-0
ch-dao/src/main/java/com/wwdz/ch/db/manager/impl/ItemManagerImpl.java
...ain/java/com/wwdz/ch/db/manager/impl/ItemManagerImpl.java
+7
-1
ch-dao/src/main/java/com/wwdz/ch/db/manager/impl/OperateLogManagerImpl.java
...va/com/wwdz/ch/db/manager/impl/OperateLogManagerImpl.java
+2
-1
ch-dao/src/main/resources/com/wwdz/ch/db/dao/BidRecordMapper.xml
...src/main/resources/com/wwdz/ch/db/dao/BidRecordMapper.xml
+54
-119
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/UgcCoinController.java
...i/src/main/java/com/wwdz/ch/wx/web/UgcCoinController.java
+0
-9
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/config/ShiroConfig.java
View file @
7597afb2
...
...
@@ -41,6 +41,8 @@ public class ShiroConfig {
filterChainDefinitionMap
.
put
(
"/admin/auth/403"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/actuator/health"
,
"anon"
);
// filterChainDefinitionMap.put("/admin/**", "anon");
filterChainDefinitionMap
.
put
(
"/admin/**"
,
"authc"
);
shiroFilterFactoryBean
.
setLoginUrl
(
"/admin/auth/401"
);
shiroFilterFactoryBean
.
setSuccessUrl
(
"/admin/auth/index"
);
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/BidRecordController.java
View file @
7597afb2
package
com.wwdz.ch.admin.controller
;
import
com.wwdz.ch.admin.entity.vo.BidRecordVo
;
import
com.wwdz.ch.admin.entity.vo.BidRecordRequestDto
;
import
com.wwdz.ch.admin.service.BidRecordService
;
import
com.wwdz.ch.admin.util.AuthSupport
;
import
com.wwdz.ch.core.type.ListResult
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.SimpleResult
;
import
com.wwdz.ch.db.domain.BidRecord
;
import
com.wwdz.ch.db.service.BidRecordService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
import
java.util.stream.Collectors
;
@RestController
@RequestMapping
(
"/admin/bidrecord"
)
@Validated
@Api
public
class
BidRecordController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
BidRecordController
.
class
);
...
...
@@ -31,24 +27,36 @@ public class BidRecordController {
@Autowired
private
BidRecordService
bidRecordService
;
// @RequiresPermissions("admin:category:list")
// @RequiresPermissionsDesc(menu = { "商场管理", "成交记录管理" }, button = "查询")
@GetMapping
(
"/list"
)
@ApiOperation
(
value
=
"成交记录列表"
)
public
ListResult
<
BidRecord
V
o
>
list
(
@ApiParam
(
"分类id"
)
Integer
cid
)
{
public
ListResult
<
BidRecord
RequestDt
o
>
list
(
@ApiParam
(
"分类id"
)
Integer
cid
)
{
logger
.
info
(
"【请求开始】操作人:["
+
AuthSupport
.
userName
()+
"] 商场管理->成交记录->查询,请求参数:cid:{}"
,
cid
);
List
<
BidRecord
>
collectList
=
bidRecordService
.
queryByCid
(
cid
);
List
<
BidRecord
Vo
>
data
=
collectList
.
parallelStream
().
map
(
a
->
new
BidRecordV
o
(
a
)).
collect
(
Collectors
.
toList
());
return
new
ListResult
<
BidRecord
V
o
>(
data
,
data
.
size
());
List
<
BidRecord
RequestDto
>
data
=
collectList
.
parallelStream
().
map
(
a
->
new
BidRecordRequestDt
o
(
a
)).
collect
(
Collectors
.
toList
());
return
new
ListResult
<
BidRecord
RequestDt
o
>(
data
,
data
.
size
());
}
@PostMapping
(
"/add"
)
@ApiOperation
(
value
=
"添加成交记录"
)
public
SimpleResult
<
Boolean
>
add
(
@ApiParam
(
"成交记录数据"
)
@RequestBody
BidRecord
V
o
record
)
{
public
SimpleResult
<
Boolean
>
add
(
@ApiParam
(
"成交记录数据"
)
@RequestBody
BidRecord
RequestDt
o
record
)
{
bidRecordService
.
add
(
record
.
toDo
());
return
new
SimpleResult
<>(
true
);
}
@PostMapping
(
"/findDetail"
)
public
Result
findDetail
(
@RequestBody
BidRecordRequestDto
record
)
{
BidRecord
bidRecord
=
bidRecordService
.
queryById
(
record
.
getId
());
return
Result
.
success
(
bidRecord
);
}
@PostMapping
(
"/update"
)
@ApiOperation
(
value
=
"修改成交记录"
)
public
Result
update
(
@ApiParam
(
"修改成交记录"
)
@RequestBody
BidRecordRequestDto
record
)
{
bidRecordService
.
updateById
(
record
.
toDo
());
return
Result
.
success
();
}
@GetMapping
(
"/delete"
)
@ApiOperation
(
value
=
"删除成交记录"
)
public
SimpleResult
<
Boolean
>
delete
(
@ApiParam
(
"成交记录ID"
)
@NotNull
Long
id
)
{
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/ItemController.java
View file @
7597afb2
...
...
@@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.*;
* 钱币设置
*/
@RestController
@RequestMapping
(
"/admin/
setCoin
"
)
@RequestMapping
(
"/admin/
item
"
)
public
class
ItemController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ItemController
.
class
);
...
...
@@ -25,7 +25,7 @@ public class ItemController {
@Autowired
private
ItemService
itemService
;
@RequiresPermissions
(
"admin:
setCoin
:findDetail"
)
@RequiresPermissions
(
"admin:
item
:findDetail"
)
@RequiresPermissionsDesc
(
menu
=
{
"钱币列表"
,
"钱币明细"
},
button
=
"查询"
)
@PostMapping
(
"/findDetail"
)
public
Result
findDetail
(
@RequestBody
CoinRequestDto
coinRequestDto
)
{
...
...
@@ -36,7 +36,7 @@ public class ItemController {
}
@RequiresPermissions
(
"admin:
setCoin
:setCoin"
)
@RequiresPermissions
(
"admin:
item
:setCoin"
)
@RequiresPermissionsDesc
(
menu
=
{
"钱币列表"
,
"钱币设置"
},
button
=
"更新"
)
@PostMapping
(
"/setCoin"
)
public
Result
setCoin
(
@RequestBody
CoinRequestDto
coinRequestDto
)
{
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/BidRecord
V
o.java
→
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/BidRecord
RequestDt
o.java
View file @
7597afb2
...
...
@@ -2,15 +2,17 @@ package com.wwdz.ch.admin.entity.vo;
import
com.qiniu.util.StringUtils
;
import
com.wwdz.ch.db.domain.BidRecord
;
import
com.xxdxxs.entity.Entity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Arrays
;
import
java.util.List
;
@ApiModel
(
value
=
"BidRecordVo"
,
description
=
"成交记录前端交互VO"
)
public
class
BidRecordVo
implements
Serializable
{
@ApiModel
(
value
=
"BidRecordRequestDto"
,
description
=
"成交记录前端交互VO"
)
@Data
public
class
BidRecordRequestDto
implements
Entity
{
private
static
final
long
serialVersionUID
=
4014894220574552837L
;
...
...
@@ -35,27 +37,37 @@ public class BidRecordVo implements Serializable {
@ApiModelProperty
(
value
=
"成交价格"
,
name
=
"price"
)
private
Long
price
;
/**
* 额外的成交信息
*/
private
String
extra
;
/**
* 成交链接
*/
private
String
link
;
public
BidRecord
toDo
()
{
BidRecord
record
=
new
BidRecord
();
record
.
setBid
t
ime
(
bidtime
);
record
.
setBid
T
ime
(
bidtime
);
record
.
setBuyer
(
buyer
);
record
.
setIsDeleted
(
false
);
record
.
setIsDeleted
(
0
);
record
.
setCid
(
cid
);
record
.
setImages
(
StringUtils
.
join
(
images
,
";"
));
record
.
setPlatform
(
platform
);
record
.
setPrice
(
price
);
record
.
setExtra
(
""
);
record
.
setLink
(
""
);
record
.
setExtra
(
extra
);
record
.
setLink
(
link
);
return
record
;
}
public
BidRecord
V
o
()
{}
public
BidRecord
RequestDt
o
()
{}
public
BidRecord
V
o
(
BidRecord
record
)
{
public
BidRecord
RequestDt
o
(
BidRecord
record
)
{
this
.
id
=
record
.
getId
();
this
.
cid
=
record
.
getCid
();
this
.
images
=
Arrays
.
asList
(
record
.
getImages
().
split
(
";"
));
this
.
bidtime
=
record
.
getBid
t
ime
();
this
.
bidtime
=
record
.
getBid
T
ime
();
this
.
price
=
record
.
getPrice
();
this
.
buyer
=
record
.
getBuyer
();
this
.
platform
=
record
.
getPlatform
();
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/BidRecordServiceImpl.java
0 → 100644
View file @
7597afb2
package
com.wwdz.ch.admin.impl
;
import
com.wwdz.ch.admin.service.BidRecordService
;
import
com.wwdz.ch.db.domain.BidRecord
;
import
com.wwdz.ch.db.manager.BidRecordManager
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
BidRecordServiceImpl
implements
BidRecordService
{
@Autowired
BidRecordManager
bidRecordManager
;
@Override
public
void
add
(
BidRecord
record
)
{
bidRecordManager
.
add
(
record
);
}
@Override
public
int
updateById
(
BidRecord
record
)
{
return
bidRecordManager
.
updateById
(
record
);
}
@Override
public
BidRecord
queryById
(
Long
id
)
{
return
bidRecordManager
.
queryById
(
id
);
}
@Override
public
List
<
BidRecord
>
queryByCid
(
Integer
cid
)
{
return
bidRecordManager
.
queryByCid
(
cid
);
}
@Override
public
void
deleteById
(
Long
id
)
{
bidRecordManager
.
deleteById
(
id
);
}
}
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/ItemServiceImpl.java
View file @
7597afb2
...
...
@@ -50,6 +50,7 @@ public class ItemServiceImpl implements ItemService {
if
(
ObjectUtils
.
isEmpty
(
coinRequestDto
.
getIsRefresh
())
||
coinRequestDto
.
getIsRefresh
()
!=
1
)
{
CoinVo
coinVo
=
new
CoinVo
();
Item
item
=
itemManager
.
findDetails
(
coinRequestDto
.
getId
());
coinVo
=
convertEntity
(
item
);
EntityMapper
.
copyAttribute
(
item
,
coinVo
);
map
.
put
(
"isRefresh"
,
0
);
map
.
put
(
"data"
,
coinVo
);
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/OperateLogServiceImpl.java
View file @
7597afb2
...
...
@@ -9,7 +9,6 @@ import org.springframework.stereotype.Service;
@Service
public
class
OperateLogServiceImpl
implements
OperateLogService
{
@Autowired
OperateLogManager
operateLogManager
;
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/service/BidRecordService.java
0 → 100644
View file @
7597afb2
package
com.wwdz.ch.admin.service
;
import
com.wwdz.ch.db.domain.BidRecord
;
import
java.util.List
;
public
interface
BidRecordService
{
void
add
(
BidRecord
record
);
int
updateById
(
BidRecord
record
);
BidRecord
queryById
(
Long
id
);
List
<
BidRecord
>
queryByCid
(
Integer
cid
);
void
deleteById
(
Long
id
);
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/BidRecordMapper.java
View file @
7597afb2
...
...
@@ -6,46 +6,17 @@ import java.util.List;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
BidRecordMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
long
countByExample
(
BidRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int
deleteByExample
(
BidRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int
insert
(
BidRecord
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int
insertSelective
(
BidRecord
record
);
/**
...
...
@@ -75,12 +46,6 @@ public interface BidRecordMapper {
*/
List
<
BidRecord
>
selectByExampleSelective
(
@Param
(
"example"
)
BidRecordExample
example
,
@Param
(
"selective"
)
BidRecord
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
List
<
BidRecord
>
selectByExample
(
BidRecordExample
example
);
/**
...
...
@@ -92,52 +57,13 @@ public interface BidRecordMapper {
*/
BidRecord
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Long
id
,
@Param
(
"selective"
)
BidRecord
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
BidRecord
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
BidRecord
record
,
@Param
(
"example"
)
BidRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
BidRecord
record
,
@Param
(
"example"
)
BidRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
BidRecord
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
BidRecord
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_category
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int
logicalDeleteByPrimaryKey
(
Long
id
);
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/dao/OperateLogMapper.java
View file @
7597afb2
...
...
@@ -3,9 +3,9 @@ package com.wwdz.ch.db.dao;
import
com.wwdz.ch.db.domain.OperateLog
;
import
com.wwdz.ch.db.domain.OperateLogExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
OperateLogMapper
{
long
countByExample
(
OperateLogExample
example
);
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/BidRecord.java
View file @
7597afb2
package
com.wwdz.ch.db.domain
;
import
java.
time.LocalDateTim
e
;
import
java.
io.Serializabl
e
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
public
class
BidRecord
{
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.id
*
* @mbg.generated
*/
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
* @author shiyu
* @date 2023/07/20
*/
@Data
public
class
BidRecord
implements
Entity
{
private
Long
id
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.extra
*
* @mbg.generated
* 类目关键字,以JSON数组格式
*/
private
String
extra
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.buyer
*
* @mbg.generated
* 购买人
*/
private
String
buyer
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.platform
*
* @mbg.generated
* 成交平台
*/
private
String
platform
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.link
*
* @mbg.generated
* 源链接
*/
private
String
link
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.cid
*
* @mbg.generated
* 分类ID
*/
private
Integer
cid
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.images
*
* @mbg.generated
* 至少一张图片
*/
private
String
images
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.bidTime
*
* @mbg.generated
* 时间戳
*/
private
Integer
bid
t
ime
;
private
Integer
bid
T
ime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.price
*
* @mbg.generated
* 成交价格
*/
private
Long
price
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.created
*
* @mbg.generated
*/
private
LocalDateTime
created
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.updated
*
* @mbg.generated
*/
private
LocalDateTime
updated
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.is_deleted
*
* @mbg.generated
*/
private
Boolean
isDeleted
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.id
*
* @return the value of bid_record.id
*
* @mbg.generated
*/
public
Long
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.id
*
* @param id the value for bid_record.id
*
* @mbg.generated
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.extra
*
* @return the value of bid_record.extra
*
* @mbg.generated
*/
public
String
getExtra
()
{
return
extra
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.extra
*
* @param extra the value for bid_record.extra
*
* @mbg.generated
*/
public
void
setExtra
(
String
extra
)
{
this
.
extra
=
extra
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.buyer
*
* @return the value of bid_record.buyer
*
* @mbg.generated
*/
public
String
getBuyer
()
{
return
buyer
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.buyer
*
* @param buyer the value for bid_record.buyer
*
* @mbg.generated
*/
public
void
setBuyer
(
String
buyer
)
{
this
.
buyer
=
buyer
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.platform
*
* @return the value of bid_record.platform
*
* @mbg.generated
*/
public
String
getPlatform
()
{
return
platform
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.platform
*
* @param platform the value for bid_record.platform
*
* @mbg.generated
*/
public
void
setPlatform
(
String
platform
)
{
this
.
platform
=
platform
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.link
*
* @return the value of bid_record.link
*
* @mbg.generated
*/
public
String
getLink
()
{
return
link
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.link
*
* @param link the value for bid_record.link
*
* @mbg.generated
*/
public
void
setLink
(
String
link
)
{
this
.
link
=
link
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.cid
*
* @return the value of bid_record.cid
*
* @mbg.generated
*/
public
Integer
getCid
()
{
return
cid
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.cid
*
* @param cid the value for bid_record.cid
*
* @mbg.generated
* 创建时间
*/
public
void
setCid
(
Integer
cid
)
{
this
.
cid
=
cid
;
}
private
Date
createTime
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.images
*
* @return the value of bid_record.images
*
* @mbg.generated
* 更新时间
*/
public
String
getImages
()
{
return
images
;
}
private
Date
updateTime
;
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.images
*
* @param images the value for bid_record.images
*
* @mbg.generated
* 逻辑删除
*/
public
void
setImages
(
String
images
)
{
this
.
images
=
images
;
}
private
Integer
isDeleted
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.bidTime
*
* @return the value of bid_record.bidTime
*
* @mbg.generated
*/
public
Integer
getBidtime
()
{
return
bidtime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.bidTime
*
* @param bidtime the value for bid_record.bidTime
*
* @mbg.generated
*/
public
void
setBidtime
(
Integer
bidtime
)
{
this
.
bidtime
=
bidtime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.price
*
* @return the value of bid_record.price
*
* @mbg.generated
*/
public
Long
getPrice
()
{
return
price
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.price
*
* @param price the value for bid_record.price
*
* @mbg.generated
*/
public
void
setPrice
(
Long
price
)
{
this
.
price
=
price
;
}
private
static
final
long
serialVersionUID
=
1L
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.created
*
* @return the value of bid_record.created
*
* @mbg.generated
*/
public
LocalDateTime
getCreated
()
{
return
created
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.created
*
* @param created the value for bid_record.created
*
* @mbg.generated
*/
public
void
setCreated
(
LocalDateTime
created
)
{
this
.
created
=
created
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.updated
*
* @return the value of bid_record.updated
*
* @mbg.generated
*/
public
LocalDateTime
getUpdated
()
{
return
updated
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.updated
*
* @param updated the value for bid_record.updated
*
* @mbg.generated
*/
public
void
setUpdated
(
LocalDateTime
updated
)
{
this
.
updated
=
updated
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.is_deleted
*
* @return the value of bid_record.is_deleted
*
* @mbg.generated
*/
public
Boolean
getIsDeleted
()
{
return
isDeleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.is_deleted
*
* @param isDeleted the value for bid_record.is_deleted
*
* @mbg.generated
*/
public
void
setIsDeleted
(
Boolean
isDeleted
)
{
this
.
isDeleted
=
isDeleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
...
...
@@ -420,21 +86,16 @@ public class BidRecord {
sb
.
append
(
", link="
).
append
(
link
);
sb
.
append
(
", cid="
).
append
(
cid
);
sb
.
append
(
", images="
).
append
(
images
);
sb
.
append
(
", bid
time="
).
append
(
bidt
ime
);
sb
.
append
(
", bid
Time="
).
append
(
bidT
ime
);
sb
.
append
(
", price="
).
append
(
price
);
sb
.
append
(
", create
d="
).
append
(
created
);
sb
.
append
(
", update
d="
).
append
(
updated
);
sb
.
append
(
", create
Time="
).
append
(
createTime
);
sb
.
append
(
", update
Time="
).
append
(
updateTime
);
sb
.
append
(
", isDeleted="
).
append
(
isDeleted
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
...
...
@@ -454,19 +115,13 @@ public class BidRecord {
&&
(
this
.
getLink
()
==
null
?
other
.
getLink
()
==
null
:
this
.
getLink
().
equals
(
other
.
getLink
()))
&&
(
this
.
getCid
()
==
null
?
other
.
getCid
()
==
null
:
this
.
getCid
().
equals
(
other
.
getCid
()))
&&
(
this
.
getImages
()
==
null
?
other
.
getImages
()
==
null
:
this
.
getImages
().
equals
(
other
.
getImages
()))
&&
(
this
.
getBid
time
()
==
null
?
other
.
getBidtime
()
==
null
:
this
.
getBidtime
().
equals
(
other
.
getBidt
ime
()))
&&
(
this
.
getBid
Time
()
==
null
?
other
.
getBidTime
()
==
null
:
this
.
getBidTime
().
equals
(
other
.
getBidT
ime
()))
&&
(
this
.
getPrice
()
==
null
?
other
.
getPrice
()
==
null
:
this
.
getPrice
().
equals
(
other
.
getPrice
()))
&&
(
this
.
getCreate
d
()
==
null
?
other
.
getCreated
()
==
null
:
this
.
getCreated
().
equals
(
other
.
getCreated
()))
&&
(
this
.
getUpdate
d
()
==
null
?
other
.
getUpdated
()
==
null
:
this
.
getUpdated
().
equals
(
other
.
getUpdated
()))
&&
(
this
.
getCreate
Time
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getUpdate
Time
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getIsDeleted
()
==
null
?
other
.
getIsDeleted
()
==
null
:
this
.
getIsDeleted
().
equals
(
other
.
getIsDeleted
()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
...
...
@@ -478,10 +133,10 @@ public class BidRecord {
result
=
prime
*
result
+
((
getLink
()
==
null
)
?
0
:
getLink
().
hashCode
());
result
=
prime
*
result
+
((
getCid
()
==
null
)
?
0
:
getCid
().
hashCode
());
result
=
prime
*
result
+
((
getImages
()
==
null
)
?
0
:
getImages
().
hashCode
());
result
=
prime
*
result
+
((
getBid
time
()
==
null
)
?
0
:
getBidt
ime
().
hashCode
());
result
=
prime
*
result
+
((
getBid
Time
()
==
null
)
?
0
:
getBidT
ime
().
hashCode
());
result
=
prime
*
result
+
((
getPrice
()
==
null
)
?
0
:
getPrice
().
hashCode
());
result
=
prime
*
result
+
((
getCreate
d
()
==
null
)
?
0
:
getCreated
().
hashCode
());
result
=
prime
*
result
+
((
getUpdate
d
()
==
null
)
?
0
:
getUpdated
().
hashCode
());
result
=
prime
*
result
+
((
getCreate
Time
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdate
Time
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getIsDeleted
()
==
null
)
?
0
:
getIsDeleted
().
hashCode
());
return
result
;
}
...
...
@@ -501,11 +156,11 @@ public class BidRecord {
link
(
"link"
,
"link"
,
"VARCHAR"
,
false
),
cid
(
"cid"
,
"cid"
,
"INTEGER"
,
false
),
images
(
"images"
,
"images"
,
"VARCHAR"
,
false
),
bid
time
(
"bidTime"
,
"bidt
ime"
,
"INTEGER"
,
false
),
bid
Time
(
"bid_time"
,
"bidT
ime"
,
"INTEGER"
,
false
),
price
(
"price"
,
"price"
,
"BIGINT"
,
false
),
create
d
(
"created"
,
"created
"
,
"TIMESTAMP"
,
false
),
update
d
(
"updated"
,
"updated
"
,
"TIMESTAMP"
,
false
),
isDeleted
(
"is_deleted"
,
"isDeleted"
,
"
BIT
"
,
false
);
create
Time
(
"create_time"
,
"createTime
"
,
"TIMESTAMP"
,
false
),
update
Time
(
"update_time"
,
"updateTime
"
,
"TIMESTAMP"
,
false
),
isDeleted
(
"is_deleted"
,
"isDeleted"
,
"
INTEGER
"
,
false
);
/**
* This field was generated by MyBatis Generator.
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/BidRecordExample.java
View file @
7597afb2
package
com.wwdz.ch.db.domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
BidRecordExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table bid_record
*
* @mbg.generated
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table bid_record
*
* @mbg.generated
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table bid_record
*
* @mbg.generated
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public
BidRecordExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
...
...
@@ -142,12 +76,6 @@ public class BidRecordExample {
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
...
...
@@ -156,23 +84,11 @@ public class BidRecordExample {
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
...
...
@@ -191,12 +107,6 @@ public class BidRecordExample {
return
example
.
createCriteria
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table bid_record
*
* @mbg.generated
*/
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
...
...
@@ -1212,18 +1122,18 @@ public class BidRecordExample {
return
(
Criteria
)
this
;
}
public
Criteria
andBid
t
imeIsNull
()
{
addCriterion
(
"bid
T
ime is null"
);
public
Criteria
andBid
T
imeIsNull
()
{
addCriterion
(
"bid
_t
ime is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBid
t
imeIsNotNull
()
{
addCriterion
(
"bid
T
ime is not null"
);
public
Criteria
andBid
T
imeIsNotNull
()
{
addCriterion
(
"bid
_t
ime is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBid
t
imeEqualTo
(
Integer
value
)
{
addCriterion
(
"bid
Time ="
,
value
,
"bidt
ime"
);
public
Criteria
andBid
T
imeEqualTo
(
Integer
value
)
{
addCriterion
(
"bid
_time ="
,
value
,
"bidT
ime"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1234,13 +1144,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andBid
t
imeEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"bid
T
ime = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andBid
T
imeEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"bid
_t
ime = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBid
t
imeNotEqualTo
(
Integer
value
)
{
addCriterion
(
"bid
Time <>"
,
value
,
"bidt
ime"
);
public
Criteria
andBid
T
imeNotEqualTo
(
Integer
value
)
{
addCriterion
(
"bid
_time <>"
,
value
,
"bidT
ime"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1251,13 +1161,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andBid
t
imeNotEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"bid
T
ime <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andBid
T
imeNotEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"bid
_t
ime <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBid
t
imeGreaterThan
(
Integer
value
)
{
addCriterion
(
"bid
Time >"
,
value
,
"bidt
ime"
);
public
Criteria
andBid
T
imeGreaterThan
(
Integer
value
)
{
addCriterion
(
"bid
_time >"
,
value
,
"bidT
ime"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1268,13 +1178,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andBid
t
imeGreaterThanColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"bid
T
ime > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andBid
T
imeGreaterThanColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"bid
_t
ime > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBid
t
imeGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"bid
Time >="
,
value
,
"bidt
ime"
);
public
Criteria
andBid
T
imeGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"bid
_time >="
,
value
,
"bidT
ime"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1285,13 +1195,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andBid
t
imeGreaterThanOrEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"bid
T
ime >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andBid
T
imeGreaterThanOrEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"bid
_t
ime >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBid
t
imeLessThan
(
Integer
value
)
{
addCriterion
(
"bid
Time <"
,
value
,
"bidt
ime"
);
public
Criteria
andBid
T
imeLessThan
(
Integer
value
)
{
addCriterion
(
"bid
_time <"
,
value
,
"bidT
ime"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1302,13 +1212,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andBid
t
imeLessThanColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"bid
T
ime < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andBid
T
imeLessThanColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"bid
_t
ime < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBid
t
imeLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"bid
Time <="
,
value
,
"bidt
ime"
);
public
Criteria
andBid
T
imeLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"bid
_time <="
,
value
,
"bidT
ime"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1319,28 +1229,28 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andBid
t
imeLessThanOrEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"bid
T
ime <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andBid
T
imeLessThanOrEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"bid
_t
ime <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBid
t
imeIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"bid
Time in"
,
values
,
"bidt
ime"
);
public
Criteria
andBid
T
imeIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"bid
_time in"
,
values
,
"bidT
ime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBid
t
imeNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"bid
Time not in"
,
values
,
"bidt
ime"
);
public
Criteria
andBid
T
imeNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"bid
_time not in"
,
values
,
"bidT
ime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBid
t
imeBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"bid
Time between"
,
value1
,
value2
,
"bidt
ime"
);
public
Criteria
andBid
T
imeBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"bid
_time between"
,
value1
,
value2
,
"bidT
ime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBid
t
imeNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"bid
Time not between"
,
value1
,
value2
,
"bidt
ime"
);
public
Criteria
andBid
T
imeNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"bid
_time not between"
,
value1
,
value2
,
"bidT
ime"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1476,18 +1386,18 @@ public class BidRecordExample {
return
(
Criteria
)
this
;
}
public
Criteria
andCreate
d
IsNull
()
{
addCriterion
(
"create
d
is null"
);
public
Criteria
andCreate
Time
IsNull
()
{
addCriterion
(
"create
_time
is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreate
d
IsNotNull
()
{
addCriterion
(
"create
d
is not null"
);
public
Criteria
andCreate
Time
IsNotNull
()
{
addCriterion
(
"create
_time
is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreate
dEqualTo
(
LocalDateTim
e
value
)
{
addCriterion
(
"create
d ="
,
value
,
"created
"
);
public
Criteria
andCreate
TimeEqualTo
(
Dat
e
value
)
{
addCriterion
(
"create
_time ="
,
value
,
"createTime
"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1498,13 +1408,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreate
d
EqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create
d
= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andCreate
Time
EqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create
_time
= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreate
dNotEqualTo
(
LocalDateTim
e
value
)
{
addCriterion
(
"create
d <>"
,
value
,
"created
"
);
public
Criteria
andCreate
TimeNotEqualTo
(
Dat
e
value
)
{
addCriterion
(
"create
_time <>"
,
value
,
"createTime
"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1515,13 +1425,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreate
d
NotEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create
d
<> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andCreate
Time
NotEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create
_time
<> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreate
dGreaterThan
(
LocalDateTim
e
value
)
{
addCriterion
(
"create
d >"
,
value
,
"created
"
);
public
Criteria
andCreate
TimeGreaterThan
(
Dat
e
value
)
{
addCriterion
(
"create
_time >"
,
value
,
"createTime
"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1532,13 +1442,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreate
d
GreaterThanColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create
d
> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andCreate
Time
GreaterThanColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create
_time
> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreate
dGreaterThanOrEqualTo
(
LocalDateTim
e
value
)
{
addCriterion
(
"create
d >="
,
value
,
"created
"
);
public
Criteria
andCreate
TimeGreaterThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"create
_time >="
,
value
,
"createTime
"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1549,13 +1459,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreate
d
GreaterThanOrEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create
d
>= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andCreate
Time
GreaterThanOrEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create
_time
>= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreate
dLessThan
(
LocalDateTim
e
value
)
{
addCriterion
(
"create
d <"
,
value
,
"created
"
);
public
Criteria
andCreate
TimeLessThan
(
Dat
e
value
)
{
addCriterion
(
"create
_time <"
,
value
,
"createTime
"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1566,13 +1476,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreate
d
LessThanColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create
d
< "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andCreate
Time
LessThanColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create
_time
< "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreate
dLessThanOrEqualTo
(
LocalDateTim
e
value
)
{
addCriterion
(
"create
d <="
,
value
,
"created
"
);
public
Criteria
andCreate
TimeLessThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"create
_time <="
,
value
,
"createTime
"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1583,43 +1493,43 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreate
d
LessThanOrEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create
d
<= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andCreate
Time
LessThanOrEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create
_time
<= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreate
dIn
(
List
<
LocalDateTim
e
>
values
)
{
addCriterion
(
"create
d in"
,
values
,
"created
"
);
public
Criteria
andCreate
TimeIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"create
_time in"
,
values
,
"createTime
"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreate
dNotIn
(
List
<
LocalDateTim
e
>
values
)
{
addCriterion
(
"create
d not in"
,
values
,
"created
"
);
public
Criteria
andCreate
TimeNotIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"create
_time not in"
,
values
,
"createTime
"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreate
dBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
addCriterion
(
"create
d between"
,
value1
,
value2
,
"created
"
);
public
Criteria
andCreate
TimeBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"create
_time between"
,
value1
,
value2
,
"createTime
"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreate
dNotBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
addCriterion
(
"create
d not between"
,
value1
,
value2
,
"created
"
);
public
Criteria
andCreate
TimeNotBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"create
_time not between"
,
value1
,
value2
,
"createTime
"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdate
d
IsNull
()
{
addCriterion
(
"update
d
is null"
);
public
Criteria
andUpdate
Time
IsNull
()
{
addCriterion
(
"update
_time
is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdate
d
IsNotNull
()
{
addCriterion
(
"update
d
is not null"
);
public
Criteria
andUpdate
Time
IsNotNull
()
{
addCriterion
(
"update
_time
is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdate
dEqualTo
(
LocalDateTim
e
value
)
{
addCriterion
(
"update
d ="
,
value
,
"updated
"
);
public
Criteria
andUpdate
TimeEqualTo
(
Dat
e
value
)
{
addCriterion
(
"update
_time ="
,
value
,
"updateTime
"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1630,13 +1540,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdate
d
EqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update
d
= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andUpdate
Time
EqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update
_time
= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdate
dNotEqualTo
(
LocalDateTim
e
value
)
{
addCriterion
(
"update
d <>"
,
value
,
"updated
"
);
public
Criteria
andUpdate
TimeNotEqualTo
(
Dat
e
value
)
{
addCriterion
(
"update
_time <>"
,
value
,
"updateTime
"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1647,13 +1557,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdate
d
NotEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update
d
<> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andUpdate
Time
NotEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update
_time
<> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdate
dGreaterThan
(
LocalDateTim
e
value
)
{
addCriterion
(
"update
d >"
,
value
,
"updated
"
);
public
Criteria
andUpdate
TimeGreaterThan
(
Dat
e
value
)
{
addCriterion
(
"update
_time >"
,
value
,
"updateTime
"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1664,13 +1574,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdate
d
GreaterThanColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update
d
> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andUpdate
Time
GreaterThanColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update
_time
> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdate
dGreaterThanOrEqualTo
(
LocalDateTim
e
value
)
{
addCriterion
(
"update
d >="
,
value
,
"updated
"
);
public
Criteria
andUpdate
TimeGreaterThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"update
_time >="
,
value
,
"updateTime
"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1681,13 +1591,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdate
d
GreaterThanOrEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update
d
>= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andUpdate
Time
GreaterThanOrEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update
_time
>= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdate
dLessThan
(
LocalDateTim
e
value
)
{
addCriterion
(
"update
d <"
,
value
,
"updated
"
);
public
Criteria
andUpdate
TimeLessThan
(
Dat
e
value
)
{
addCriterion
(
"update
_time <"
,
value
,
"updateTime
"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1698,13 +1608,13 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdate
d
LessThanColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update
d
< "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andUpdate
Time
LessThanColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update
_time
< "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdate
dLessThanOrEqualTo
(
LocalDateTim
e
value
)
{
addCriterion
(
"update
d <="
,
value
,
"updated
"
);
public
Criteria
andUpdate
TimeLessThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"update
_time <="
,
value
,
"updateTime
"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1715,28 +1625,28 @@ public class BidRecordExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdate
d
LessThanOrEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update
d
<= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
andUpdate
Time
LessThanOrEqualToColumn
(
BidRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update
_time
<= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdate
dIn
(
List
<
LocalDateTim
e
>
values
)
{
addCriterion
(
"update
d in"
,
values
,
"updated
"
);
public
Criteria
andUpdate
TimeIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"update
_time in"
,
values
,
"updateTime
"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdate
dNotIn
(
List
<
LocalDateTim
e
>
values
)
{
addCriterion
(
"update
d not in"
,
values
,
"updated
"
);
public
Criteria
andUpdate
TimeNotIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"update
_time not in"
,
values
,
"updateTime
"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdate
dBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
addCriterion
(
"update
d between"
,
value1
,
value2
,
"updated
"
);
public
Criteria
andUpdate
TimeBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"update
_time between"
,
value1
,
value2
,
"updateTime
"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdate
dNotBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
addCriterion
(
"update
d not between"
,
value1
,
value2
,
"updated
"
);
public
Criteria
andUpdate
TimeNotBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"update
_time not between"
,
value1
,
value2
,
"updateTime
"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1750,7 +1660,7 @@ public class BidRecordExample {
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedEqualTo
(
Boolean
value
)
{
public
Criteria
andIsDeletedEqualTo
(
Integer
value
)
{
addCriterion
(
"is_deleted ="
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1767,7 +1677,7 @@ public class BidRecordExample {
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedNotEqualTo
(
Boolean
value
)
{
public
Criteria
andIsDeletedNotEqualTo
(
Integer
value
)
{
addCriterion
(
"is_deleted <>"
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1784,7 +1694,7 @@ public class BidRecordExample {
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedGreaterThan
(
Boolean
value
)
{
public
Criteria
andIsDeletedGreaterThan
(
Integer
value
)
{
addCriterion
(
"is_deleted >"
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1801,7 +1711,7 @@ public class BidRecordExample {
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedGreaterThanOrEqualTo
(
Boolean
value
)
{
public
Criteria
andIsDeletedGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"is_deleted >="
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1818,7 +1728,7 @@ public class BidRecordExample {
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedLessThan
(
Boolean
value
)
{
public
Criteria
andIsDeletedLessThan
(
Integer
value
)
{
addCriterion
(
"is_deleted <"
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1835,7 +1745,7 @@ public class BidRecordExample {
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedLessThanOrEqualTo
(
Boolean
value
)
{
public
Criteria
andIsDeletedLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"is_deleted <="
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1852,33 +1762,27 @@ public class BidRecordExample {
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedIn
(
List
<
Boolean
>
values
)
{
public
Criteria
andIsDeletedIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"is_deleted in"
,
values
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedNotIn
(
List
<
Boolean
>
values
)
{
public
Criteria
andIsDeletedNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"is_deleted not in"
,
values
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedBetween
(
Boolean
value1
,
Boolean
value2
)
{
public
Criteria
andIsDeletedBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"is_deleted between"
,
value1
,
value2
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
public
Criteria
andIsDeletedNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"is_deleted not between"
,
value1
,
value2
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table bid_record
*
* @mbg.generated do_not_delete_during_merge
*/
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
...
...
@@ -1945,12 +1849,6 @@ public class BidRecordExample {
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table bid_record
*
* @mbg.generated
*/
public
static
class
Criterion
{
private
String
condition
;
...
...
ch-dao/src/main/java/com/wwdz/ch/db/manager/BidRecordManager.java
0 → 100644
View file @
7597afb2
package
com.wwdz.ch.db.manager
;
import
com.wwdz.ch.db.domain.BidRecord
;
import
java.util.List
;
public
interface
BidRecordManager
{
void
add
(
BidRecord
record
);
int
updateById
(
BidRecord
record
);
BidRecord
queryById
(
Long
id
);
List
<
BidRecord
>
queryByCid
(
Integer
cid
);
void
deleteById
(
Long
id
);
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/
service/BidRecordService
.java
→
ch-dao/src/main/java/com/wwdz/ch/db/
manager/impl/BidRecordManagerImpl
.java
View file @
7597afb2
package
com.wwdz.ch.db.
service
;
package
com.wwdz.ch.db.
manager.impl
;
import
com.wwdz.ch.db.dao.BidRecordMapper
;
import
com.wwdz.ch.db.domain.BidRecord
;
import
com.wwdz.ch.db.domain.BidRecordExample
;
import
com.wwdz.ch.db.domain.Category
;
import
com.wwdz.ch.db.domain.FavoritesExample
;
import
com.wwdz.ch.db.manager.BidRecordManager
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
import
java.util.List
;
@Service
public
class
BidRecord
Service
{
public
class
BidRecord
ManagerImpl
implements
BidRecordManager
{
@Resource
private
BidRecordMapper
bidRecordMapper
;
public
void
add
(
BidRecord
record
)
{
record
.
setCreated
(
LocalDateTime
.
now
());
record
.
setUpdated
(
LocalDateTime
.
now
());
Date
now
=
new
Date
();
record
.
setCreateTime
(
now
);
record
.
setUpdateTime
(
now
);
bidRecordMapper
.
insertSelective
(
record
);
}
public
int
updateById
(
BidRecord
record
)
{
record
.
setUpdate
d
(
LocalDateTime
.
now
());
record
.
setUpdate
Time
(
new
Date
());
return
bidRecordMapper
.
updateByPrimaryKeySelective
(
record
);
}
public
List
<
BidRecord
>
queryByCid
(
Integer
cid
)
{
BidRecordExample
example
=
new
BidRecordExample
();
example
.
createCriteria
().
andCidEqualTo
(
cid
).
andIsDeletedEqualTo
(
false
);
example
.
setOrderByClause
(
"
created
desc"
);
example
.
createCriteria
().
andCidEqualTo
(
cid
).
andIsDeletedEqualTo
(
0
);
example
.
setOrderByClause
(
"
update_time
desc"
);
return
bidRecordMapper
.
selectByExample
(
example
);
}
public
BidRecord
queryById
(
Long
id
)
{
BidRecordExample
example
=
new
BidRecordExample
();
BidRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andIdEqualTo
(
id
);
return
bidRecordMapper
.
selectOneByExample
(
example
);
}
public
void
deleteById
(
Long
id
)
{
bidRecordMapper
.
logicalDeleteByPrimaryKey
(
id
);
BidRecordExample
example
=
new
BidRecordExample
();
example
.
createCriteria
().
andIdEqualTo
(
id
);
BidRecord
record
=
new
BidRecord
();
record
.
setId
(
id
);
record
.
setIsDeleted
(
1
);
bidRecordMapper
.
updateByExampleSelective
(
record
,
example
);
}
}
ch-dao/src/main/java/com/wwdz/ch/db/manager/impl/ItemManagerImpl.java
View file @
7597afb2
...
...
@@ -8,6 +8,8 @@ import com.wwdz.ch.db.manager.ItemManager;
import
com.xxdxxs.db.component.JdbcHelper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.util.CollectionUtils
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -32,7 +34,11 @@ public class ItemManagerImpl implements ItemManager {
ItemExample
example
=
new
ItemExample
();
ItemExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andIdEqualTo
(
id
);
return
itemMapper
.
selectOneByExample
(
example
);
List
<
Item
>
items
=
itemMapper
.
selectByExampleWithBLOBs
(
example
);
if
(!
CollectionUtils
.
isEmpty
(
items
))
{
return
items
.
get
(
0
);
}
return
new
Item
();
}
@Override
...
...
ch-dao/src/main/java/com/wwdz/ch/db/manager/impl/OperateLogManagerImpl.java
View file @
7597afb2
...
...
@@ -4,12 +4,13 @@ import com.wwdz.ch.db.dao.OperateLogMapper;
import
com.wwdz.ch.db.domain.OperateLog
;
import
com.wwdz.ch.db.manager.OperateLogManager
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
@Repository
public
class
OperateLogManagerImpl
implements
OperateLogManager
{
@
Mapper
@
Autowired
OperateLogMapper
operateLogMapper
;
@Override
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/dao/BidRecordMapper.xml
View file @
7597afb2
...
...
@@ -2,10 +2,6 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.wwdz.ch.db.dao.BidRecordMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.BidRecord"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"extra"
jdbcType=
"VARCHAR"
property=
"extra"
/>
<result
column=
"buyer"
jdbcType=
"VARCHAR"
property=
"buyer"
/>
...
...
@@ -13,17 +9,13 @@
<result
column=
"link"
jdbcType=
"VARCHAR"
property=
"link"
/>
<result
column=
"cid"
jdbcType=
"INTEGER"
property=
"cid"
/>
<result
column=
"images"
jdbcType=
"VARCHAR"
property=
"images"
/>
<result
column=
"bid
Time"
jdbcType=
"INTEGER"
property=
"bidt
ime"
/>
<result
column=
"bid
_time"
jdbcType=
"INTEGER"
property=
"bidT
ime"
/>
<result
column=
"price"
jdbcType=
"BIGINT"
property=
"price"
/>
<result
column=
"create
d"
jdbcType=
"TIMESTAMP"
property=
"created
"
/>
<result
column=
"update
d"
jdbcType=
"TIMESTAMP"
property=
"updated
"
/>
<result
column=
"is_deleted"
jdbcType=
"
BIT
"
property=
"isDeleted"
/>
<result
column=
"create
_time"
jdbcType=
"TIMESTAMP"
property=
"createTime
"
/>
<result
column=
"update
_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime
"
/>
<result
column=
"is_deleted"
jdbcType=
"
INTEGER
"
property=
"isDeleted"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
...
...
@@ -53,10 +45,6 @@
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
...
...
@@ -86,22 +74,15 @@
</where>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, extra, buyer, platform, link, cid, images, bidTime, price, created, updated,
id, extra, buyer, platform, link, cid, images, bid_time, price, create_time, update_time,
is_deleted
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.BidRecordExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from bid_record
<if
test=
"_parameter != null"
>
...
...
@@ -118,17 +99,18 @@
@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"
>
<when
test=
"selective != null and selective.length
>
0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, extra, buyer, platform, link, cid, images, bid
Time, price, created, updated
,
id, extra, buyer, platform, link, cid, images, bid
_time, price, create_time, update_time
,
is_deleted
</otherwise>
</choose>
...
...
@@ -141,10 +123,6 @@
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from bid_record
...
...
@@ -158,13 +136,13 @@
-->
select
<choose>
<when
test=
"selective != null and selective.length
>
0"
>
<when
test=
"selective != null and selective.length
>
0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, extra, buyer, platform, link, cid, images, bid
Time, price, created, updated
,
id, extra, buyer, platform, link, cid, images, bid
_time, price, create_time, update_time
,
is_deleted
</otherwise>
</choose>
...
...
@@ -172,45 +150,29 @@
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from bid_record
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.BidRecordExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from bid_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.BidRecord"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into bid_record (extra, buyer, platform,
link, cid, images,
bid
Time, price, created
,
update
d
, is_deleted)
bid
_time, price, create_time
,
update
_time
, is_deleted)
values (#{extra,jdbcType=VARCHAR}, #{buyer,jdbcType=VARCHAR}, #{platform,jdbcType=VARCHAR},
#{link,jdbcType=VARCHAR}, #{cid,jdbcType=INTEGER}, #{images,jdbcType=VARCHAR},
#{bid
time,jdbcType=INTEGER}, #{price,jdbcType=BIGINT}, #{created
,jdbcType=TIMESTAMP},
#{update
d,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=BIT
})
#{bid
Time,jdbcType=INTEGER}, #{price,jdbcType=BIGINT}, #{createTime
,jdbcType=TIMESTAMP},
#{update
Time,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=INTEGER
})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.BidRecord"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
...
...
@@ -234,17 +196,17 @@
<if
test=
"images != null"
>
images,
</if>
<if
test=
"bid
t
ime != null"
>
bid
T
ime,
<if
test=
"bid
T
ime != null"
>
bid
_t
ime,
</if>
<if
test=
"price != null"
>
price,
</if>
<if
test=
"create
d
!= null"
>
create
d
,
<if
test=
"create
Time
!= null"
>
create
_time
,
</if>
<if
test=
"update
d
!= null"
>
update
d
,
<if
test=
"update
Time
!= null"
>
update
_time
,
</if>
<if
test=
"isDeleted != null"
>
is_deleted,
...
...
@@ -269,38 +231,30 @@
<if
test=
"images != null"
>
#{images,jdbcType=VARCHAR},
</if>
<if
test=
"bid
t
ime != null"
>
#{bid
t
ime,jdbcType=INTEGER},
<if
test=
"bid
T
ime != null"
>
#{bid
T
ime,jdbcType=INTEGER},
</if>
<if
test=
"price != null"
>
#{price,jdbcType=BIGINT},
</if>
<if
test=
"create
d
!= null"
>
#{create
d
,jdbcType=TIMESTAMP},
<if
test=
"create
Time
!= null"
>
#{create
Time
,jdbcType=TIMESTAMP},
</if>
<if
test=
"update
d
!= null"
>
#{update
d
,jdbcType=TIMESTAMP},
<if
test=
"update
Time
!= null"
>
#{update
Time
,jdbcType=TIMESTAMP},
</if>
<if
test=
"isDeleted != null"
>
#{isDeleted,jdbcType=
BIT
},
#{isDeleted,jdbcType=
INTEGER
},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.BidRecordExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from bid_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update bid_record
<set>
<if
test=
"record.id != null"
>
...
...
@@ -324,20 +278,20 @@
<if
test=
"record.images != null"
>
images = #{record.images,jdbcType=VARCHAR},
</if>
<if
test=
"record.bid
t
ime != null"
>
bid
Time = #{record.bidt
ime,jdbcType=INTEGER},
<if
test=
"record.bid
T
ime != null"
>
bid
_time = #{record.bidT
ime,jdbcType=INTEGER},
</if>
<if
test=
"record.price != null"
>
price = #{record.price,jdbcType=BIGINT},
</if>
<if
test=
"record.create
d
!= null"
>
create
d = #{record.created
,jdbcType=TIMESTAMP},
<if
test=
"record.create
Time
!= null"
>
create
_time = #{record.createTime
,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.update
d
!= null"
>
update
d = #{record.updated
,jdbcType=TIMESTAMP},
<if
test=
"record.update
Time
!= null"
>
update
_time = #{record.updateTime
,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.isDeleted != null"
>
is_deleted = #{record.isDeleted,jdbcType=
BIT
},
is_deleted = #{record.isDeleted,jdbcType=
INTEGER
},
</if>
</set>
<if
test=
"_parameter != null"
>
...
...
@@ -345,10 +299,6 @@
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update bid_record
set id = #{record.id,jdbcType=BIGINT},
extra = #{record.extra,jdbcType=VARCHAR},
...
...
@@ -357,20 +307,16 @@
link = #{record.link,jdbcType=VARCHAR},
cid = #{record.cid,jdbcType=INTEGER},
images = #{record.images,jdbcType=VARCHAR},
bid
Time = #{record.bidt
ime,jdbcType=INTEGER},
bid
_time = #{record.bidT
ime,jdbcType=INTEGER},
price = #{record.price,jdbcType=BIGINT},
create
d = #{record.created
,jdbcType=TIMESTAMP},
update
d = #{record.updated
,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=
BIT
}
create
_time = #{record.createTime
,jdbcType=TIMESTAMP},
update
_time = #{record.updateTime
,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=
INTEGER
}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.BidRecord"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update bid_record
<set>
<if
test=
"extra != null"
>
...
...
@@ -391,29 +337,25 @@
<if
test=
"images != null"
>
images = #{images,jdbcType=VARCHAR},
</if>
<if
test=
"bid
t
ime != null"
>
bid
Time = #{bidt
ime,jdbcType=INTEGER},
<if
test=
"bid
T
ime != null"
>
bid
_time = #{bidT
ime,jdbcType=INTEGER},
</if>
<if
test=
"price != null"
>
price = #{price,jdbcType=BIGINT},
</if>
<if
test=
"create
d
!= null"
>
create
d = #{created
,jdbcType=TIMESTAMP},
<if
test=
"create
Time
!= null"
>
create
_time = #{createTime
,jdbcType=TIMESTAMP},
</if>
<if
test=
"update
d
!= null"
>
update
d = #{updated
,jdbcType=TIMESTAMP},
<if
test=
"update
Time
!= null"
>
update
_time = #{updateTime
,jdbcType=TIMESTAMP},
</if>
<if
test=
"isDeleted != null"
>
is_deleted = #{isDeleted,jdbcType=
BIT
},
is_deleted = #{isDeleted,jdbcType=
INTEGER
},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.BidRecord"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update bid_record
set extra = #{extra,jdbcType=VARCHAR},
buyer = #{buyer,jdbcType=VARCHAR},
...
...
@@ -421,11 +363,11 @@
link = #{link,jdbcType=VARCHAR},
cid = #{cid,jdbcType=INTEGER},
images = #{images,jdbcType=VARCHAR},
bid
Time = #{bidt
ime,jdbcType=INTEGER},
bid
_time = #{bidT
ime,jdbcType=INTEGER},
price = #{price,jdbcType=BIGINT},
create
d = #{created
,jdbcType=TIMESTAMP},
update
d = #{updated
,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=
BIT
}
create
_time = #{createTime
,jdbcType=TIMESTAMP},
update
_time = #{updateTime
,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=
INTEGER
}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.BidRecordExample"
resultMap=
"BaseResultMap"
>
...
...
@@ -435,6 +377,7 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from bid_record
<if
test=
"_parameter != null"
>
...
...
@@ -445,15 +388,6 @@
</if>
limit 1
</select>
<update
id=
"logicalDeleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update bid_record set is_deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"selectOneByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
...
...
@@ -461,14 +395,15 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when
test=
"selective != null and selective.length
>
0"
>
<when
test=
"selective != null and selective.length
>
0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, extra, buyer, platform, link, cid, images, bid
Time, price, created, updated
,
id, extra, buyer, platform, link, cid, images, bid
_time, price, create_time, update_time
,
is_deleted
</otherwise>
</choose>
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/UgcCoinController.java
View file @
7597afb2
package
com.wwdz.ch.wx.web
;
import
com.alibaba.druid.support.json.JSONUtils
;
import
com.mysql.jdbc.StringUtils
;
import
com.wwdz.ch.core.type.ListResult
;
import
com.wwdz.ch.core.type.SimpleResult
;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.core.util.ResponseUtil
;
import
com.wwdz.ch.db.domain.*
;
import
com.wwdz.ch.db.service.BidRecordService
;
import
com.wwdz.ch.db.service.UgcCoinService
;
import
com.wwdz.ch.wx.annotation.LoginUser
;
import
com.wwdz.ch.wx.dao.UgcCoinVo
;
...
...
@@ -21,11 +16,7 @@ import org.springframework.validation.annotation.Validated;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.constraints.NotNull
;
import
java.time.LocalDateTime
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
@RestController
...
...
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