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
978eab79
Commit
978eab79
authored
Aug 04, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
裁剪记录
parent
19040b44
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1726 additions
and
3 deletions
+1726
-3
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/ItemController.java
...ain/java/com/wwdz/ch/admin/controller/ItemController.java
+11
-3
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/ItemServiceImpl.java
...src/main/java/com/wwdz/ch/admin/impl/ItemServiceImpl.java
+19
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/service/ItemService.java
.../src/main/java/com/wwdz/ch/admin/service/ItemService.java
+9
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/CroppingRecordDao.java
...o/src/main/java/com/wwdz/ch/db/dao/CroppingRecordDao.java
+8
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/impl/CroppingRecordDaoImpl.java
...n/java/com/wwdz/ch/db/dao/impl/CroppingRecordDaoImpl.java
+23
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/CroppingRecord.java
...o/src/main/java/com/wwdz/ch/db/domain/CroppingRecord.java
+266
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/CroppingRecordExample.java
...ain/java/com/wwdz/ch/db/domain/CroppingRecordExample.java
+983
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/CroppingRecordRequestDto.java
.../com/wwdz/ch/db/dto/request/CroppingRecordRequestDto.java
+32
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/CroppingRecordMapper.java
...main/java/com/wwdz/ch/db/mapper/CroppingRecordMapper.java
+69
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/CroppingRecordMapper.xml
.../resources/com/wwdz/ch/db/mapper/CroppingRecordMapper.xml
+306
-0
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/ItemController.java
View file @
978eab79
...
@@ -6,6 +6,7 @@ import com.wwdz.ch.admin.service.ItemService;
...
@@ -6,6 +6,7 @@ import com.wwdz.ch.admin.service.ItemService;
import
com.wwdz.ch.admin.util.AuthSupport
;
import
com.wwdz.ch.admin.util.AuthSupport
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.CoinRequestDto
;
import
com.wwdz.ch.db.dto.request.CoinRequestDto
;
import
com.wwdz.ch.db.dto.request.CroppingRecordRequestDto
;
import
com.xxdxxs.utils.JsonUtils
;
import
com.xxdxxs.utils.JsonUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -29,7 +30,7 @@ public class ItemController {
...
@@ -29,7 +30,7 @@ public class ItemController {
SynCoinJob
synCoinJob
;
SynCoinJob
synCoinJob
;
// @RequiresPermissions("admin:item:findDetail")
// @RequiresPermissions("admin:item:findDetail")
@RequiresPermissionsDesc
(
menu
=
{
"
钱币
列表"
,
"钱币明细"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"
商品
列表"
,
"钱币明细"
},
button
=
"查询"
)
@PostMapping
(
"/findDetail"
)
@PostMapping
(
"/findDetail"
)
public
Result
findDetail
(
@RequestBody
CoinRequestDto
coinRequestDto
)
{
public
Result
findDetail
(
@RequestBody
CoinRequestDto
coinRequestDto
)
{
logger
.
info
(
"【请求开始】操作人:["
+
AuthSupport
.
userName
()+
"] 钱币列表->钱币明细->查询,请求参数:parma:{}"
,
coinRequestDto
);
logger
.
info
(
"【请求开始】操作人:["
+
AuthSupport
.
userName
()+
"] 钱币列表->钱币明细->查询,请求参数:parma:{}"
,
coinRequestDto
);
...
@@ -40,7 +41,7 @@ public class ItemController {
...
@@ -40,7 +41,7 @@ public class ItemController {
// @RequiresPermissions("admin:item:setCoin")
// @RequiresPermissions("admin:item:setCoin")
@RequiresPermissionsDesc
(
menu
=
{
"
钱币
列表"
,
"钱币设置"
},
button
=
"更新"
)
@RequiresPermissionsDesc
(
menu
=
{
"
商品
列表"
,
"钱币设置"
},
button
=
"更新"
)
@PostMapping
(
"/setItem"
)
@PostMapping
(
"/setItem"
)
public
Result
setItem
(
@RequestBody
CoinRequestDto
coinRequestDto
)
{
public
Result
setItem
(
@RequestBody
CoinRequestDto
coinRequestDto
)
{
logger
.
info
(
"【请求开始】操作人:["
+
AuthSupport
.
userName
()+
"] 钱币列表->钱币设置->更新,请求参数:parma:{}"
,
coinRequestDto
);
logger
.
info
(
"【请求开始】操作人:["
+
AuthSupport
.
userName
()+
"] 钱币列表->钱币设置->更新,请求参数:parma:{}"
,
coinRequestDto
);
...
@@ -51,7 +52,14 @@ public class ItemController {
...
@@ -51,7 +52,14 @@ public class ItemController {
@RequiresPermissionsDesc
(
menu
=
{
"商品列表"
,
"图片裁剪记录保存"
},
button
=
"新增"
)
@PostMapping
(
"/saveCroppingRecord"
)
public
Result
saveCroppingRecord
(
@RequestBody
CroppingRecordRequestDto
croppingRecordRequestDto
)
{
logger
.
info
(
"【请求开始】操作人:["
+
AuthSupport
.
userName
()+
"] 商品列表->图片裁剪记录保存->新增,请求参数:parma:{}"
,
croppingRecordRequestDto
);
Result
result
=
itemService
.
saveCroppingRecord
(
croppingRecordRequestDto
);
logger
.
info
(
"【请求结束】商品列表->图片裁剪记录保存->新增"
);
return
result
;
}
// @GetMapping("/syn")
// @GetMapping("/syn")
public
void
syn
()
{
public
void
syn
()
{
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/ItemServiceImpl.java
View file @
978eab79
...
@@ -7,12 +7,15 @@ import com.wwdz.ch.admin.util.AuthSupport;
...
@@ -7,12 +7,15 @@ import com.wwdz.ch.admin.util.AuthSupport;
import
com.wwdz.ch.core.consts.CommonEnum
;
import
com.wwdz.ch.core.consts.CommonEnum
;
import
com.wwdz.ch.core.storage.QiniuStorage
;
import
com.wwdz.ch.core.storage.QiniuStorage
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dao.CroppingRecordDao
;
import
com.wwdz.ch.db.domain.Category
;
import
com.wwdz.ch.db.domain.Category
;
import
com.wwdz.ch.db.domain.CroppingRecord
;
import
com.wwdz.ch.db.domain.Item
;
import
com.wwdz.ch.db.domain.Item
;
import
com.wwdz.ch.db.domain.OperateLog
;
import
com.wwdz.ch.db.domain.OperateLog
;
import
com.wwdz.ch.db.dto.request.CoinRequestDto
;
import
com.wwdz.ch.db.dto.request.CoinRequestDto
;
import
com.wwdz.ch.db.dao.CategoryManager
;
import
com.wwdz.ch.db.dao.CategoryManager
;
import
com.wwdz.ch.db.dao.ItemManager
;
import
com.wwdz.ch.db.dao.ItemManager
;
import
com.wwdz.ch.db.dto.request.CroppingRecordRequestDto
;
import
com.xxdxxs.utils.EntityMapper
;
import
com.xxdxxs.utils.EntityMapper
;
import
com.xxdxxs.utils.JsonUtils
;
import
com.xxdxxs.utils.JsonUtils
;
import
com.xxdxxs.utils.StringUtils
;
import
com.xxdxxs.utils.StringUtils
;
...
@@ -43,6 +46,9 @@ public class ItemServiceImpl implements ItemService {
...
@@ -43,6 +46,9 @@ public class ItemServiceImpl implements ItemService {
@Autowired
@Autowired
CategoryManager
categoryManager
;
CategoryManager
categoryManager
;
@Autowired
CroppingRecordDao
croppingRecordDao
;
@Override
@Override
public
List
<
CoinVo
>
findList
(
CoinRequestDto
coinRequestDto
)
{
public
List
<
CoinVo
>
findList
(
CoinRequestDto
coinRequestDto
)
{
try
{
try
{
...
@@ -154,6 +160,19 @@ public class ItemServiceImpl implements ItemService {
...
@@ -154,6 +160,19 @@ public class ItemServiceImpl implements ItemService {
return
Result
.
success
();
return
Result
.
success
();
}
}
@Override
public
Result
saveCroppingRecord
(
CroppingRecordRequestDto
croppingRecordRequestDto
)
{
try
{
CroppingRecord
croppingRecord
=
new
CroppingRecord
();
EntityMapper
.
copyAttribute
(
croppingRecordRequestDto
,
croppingRecord
);
croppingRecordDao
.
insert
(
croppingRecord
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"保存裁剪记录 error :{}"
,
e
);
return
Result
.
failed
();
}
return
Result
.
success
();
}
public
CoinVo
convertEntity
(
Item
item
)
{
public
CoinVo
convertEntity
(
Item
item
)
{
try
{
try
{
CoinVo
coinVo
=
new
CoinVo
();
CoinVo
coinVo
=
new
CoinVo
();
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/service/ItemService.java
View file @
978eab79
...
@@ -3,6 +3,8 @@ package com.wwdz.ch.admin.service;
...
@@ -3,6 +3,8 @@ package com.wwdz.ch.admin.service;
import
com.wwdz.ch.admin.entity.vo.CoinVo
;
import
com.wwdz.ch.admin.entity.vo.CoinVo
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.CoinRequestDto
;
import
com.wwdz.ch.db.dto.request.CoinRequestDto
;
import
com.wwdz.ch.db.dto.request.CroppingRecordRequestDto
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
java.util.List
;
import
java.util.List
;
...
@@ -13,4 +15,11 @@ public interface ItemService {
...
@@ -13,4 +15,11 @@ public interface ItemService {
Result
findDetails
(
CoinRequestDto
coinRequestDto
);
Result
findDetails
(
CoinRequestDto
coinRequestDto
);
Result
setItem
(
CoinRequestDto
coinRequestDto
);
Result
setItem
(
CoinRequestDto
coinRequestDto
);
/**
* 保存图片裁剪记录
* @param croppingRecordRequestDto
* @return
*/
Result
saveCroppingRecord
(
CroppingRecordRequestDto
croppingRecordRequestDto
);
}
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/CroppingRecordDao.java
0 → 100644
View file @
978eab79
package
com.wwdz.ch.db.dao
;
import
com.wwdz.ch.db.domain.CroppingRecord
;
public
interface
CroppingRecordDao
{
boolean
insert
(
CroppingRecord
croppingRecord
);
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/impl/CroppingRecordDaoImpl.java
0 → 100644
View file @
978eab79
package
com.wwdz.ch.db.dao.impl
;
import
com.wwdz.ch.db.dao.CroppingRecordDao
;
import
com.wwdz.ch.db.domain.CroppingRecord
;
import
com.wwdz.ch.db.mapper.CroppingRecordMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
import
java.util.Date
;
@Repository
public
class
CroppingRecordDaoImpl
implements
CroppingRecordDao
{
@Autowired
CroppingRecordMapper
croppingRecordMapper
;
@Override
public
boolean
insert
(
CroppingRecord
croppingRecord
)
{
croppingRecord
.
setCreateTime
(
new
Date
());
int
num
=
croppingRecordMapper
.
insert
(
croppingRecord
);
return
num
>
0
;
}
}
ch-dao/src/main/java/com/wwdz/ch/db/domain/CroppingRecord.java
0 → 100644
View file @
978eab79
package
com.wwdz.ch.db.domain
;
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 2023/08/04
*/
@Data
public
class
CroppingRecord
implements
Entity
{
private
Integer
id
;
/**
* 商品id
*/
private
Long
itemId
;
/**
* 裁剪坐标
*/
private
String
coordinate
;
/**
* 原始图片地址
*/
private
String
imageUrl
;
/**
* 创建时间
*/
private
Date
createTime
;
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
(
", coordinate="
).
append
(
coordinate
);
sb
.
append
(
", imageUrl="
).
append
(
imageUrl
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
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
;
}
CroppingRecord
other
=
(
CroppingRecord
)
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
.
getCoordinate
()
==
null
?
other
.
getCoordinate
()
==
null
:
this
.
getCoordinate
().
equals
(
other
.
getCoordinate
()))
&&
(
this
.
getImageUrl
()
==
null
?
other
.
getImageUrl
()
==
null
:
this
.
getImageUrl
().
equals
(
other
.
getImageUrl
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()));
}
@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
+
((
getCoordinate
()
==
null
)
?
0
:
getCoordinate
().
hashCode
());
result
=
prime
*
result
+
((
getImageUrl
()
==
null
)
?
0
:
getImageUrl
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table cropping_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
),
coordinate
(
"coordinate"
,
"coordinate"
,
"VARCHAR"
,
false
),
imageUrl
(
"image_url"
,
"imageUrl"
,
"VARCHAR"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table cropping_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 cropping_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 cropping_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 cropping_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 cropping_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 cropping_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 cropping_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 cropping_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 cropping_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 cropping_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 cropping_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 cropping_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 cropping_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 cropping_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 cropping_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/CroppingRecordExample.java
0 → 100644
View file @
978eab79
package
com.wwdz.ch.db.domain
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
CroppingRecordExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
CroppingRecordExample
()
{
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
CroppingRecordExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
CroppingRecordExample
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
CroppingRecordExample
example
=
new
CroppingRecordExample
();
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdEqualToColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdNotEqualToColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanOrEqualToColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanOrEqualToColumn
(
CroppingRecord
.
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
andCoordinateIsNull
()
{
addCriterion
(
"coordinate is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCoordinateIsNotNull
()
{
addCriterion
(
"coordinate is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCoordinateEqualTo
(
String
value
)
{
addCriterion
(
"coordinate ="
,
value
,
"coordinate"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCoordinateEqualToColumn
(
CroppingRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"coordinate = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCoordinateNotEqualTo
(
String
value
)
{
addCriterion
(
"coordinate <>"
,
value
,
"coordinate"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCoordinateNotEqualToColumn
(
CroppingRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"coordinate <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCoordinateGreaterThan
(
String
value
)
{
addCriterion
(
"coordinate >"
,
value
,
"coordinate"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCoordinateGreaterThanColumn
(
CroppingRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"coordinate > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCoordinateGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"coordinate >="
,
value
,
"coordinate"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCoordinateGreaterThanOrEqualToColumn
(
CroppingRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"coordinate >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCoordinateLessThan
(
String
value
)
{
addCriterion
(
"coordinate <"
,
value
,
"coordinate"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCoordinateLessThanColumn
(
CroppingRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"coordinate < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCoordinateLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"coordinate <="
,
value
,
"coordinate"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCoordinateLessThanOrEqualToColumn
(
CroppingRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"coordinate <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCoordinateLike
(
String
value
)
{
addCriterion
(
"coordinate like"
,
value
,
"coordinate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCoordinateNotLike
(
String
value
)
{
addCriterion
(
"coordinate not like"
,
value
,
"coordinate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCoordinateIn
(
List
<
String
>
values
)
{
addCriterion
(
"coordinate in"
,
values
,
"coordinate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCoordinateNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"coordinate not in"
,
values
,
"coordinate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCoordinateBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"coordinate between"
,
value1
,
value2
,
"coordinate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCoordinateNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"coordinate not between"
,
value1
,
value2
,
"coordinate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlIsNull
()
{
addCriterion
(
"image_url is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlIsNotNull
()
{
addCriterion
(
"image_url is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlEqualTo
(
String
value
)
{
addCriterion
(
"image_url ="
,
value
,
"imageUrl"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andImageUrlEqualToColumn
(
CroppingRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"image_url = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlNotEqualTo
(
String
value
)
{
addCriterion
(
"image_url <>"
,
value
,
"imageUrl"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andImageUrlNotEqualToColumn
(
CroppingRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"image_url <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlGreaterThan
(
String
value
)
{
addCriterion
(
"image_url >"
,
value
,
"imageUrl"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andImageUrlGreaterThanColumn
(
CroppingRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"image_url > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"image_url >="
,
value
,
"imageUrl"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andImageUrlGreaterThanOrEqualToColumn
(
CroppingRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"image_url >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlLessThan
(
String
value
)
{
addCriterion
(
"image_url <"
,
value
,
"imageUrl"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andImageUrlLessThanColumn
(
CroppingRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"image_url < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"image_url <="
,
value
,
"imageUrl"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andImageUrlLessThanOrEqualToColumn
(
CroppingRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"image_url <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlLike
(
String
value
)
{
addCriterion
(
"image_url like"
,
value
,
"imageUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlNotLike
(
String
value
)
{
addCriterion
(
"image_url not like"
,
value
,
"imageUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlIn
(
List
<
String
>
values
)
{
addCriterion
(
"image_url in"
,
values
,
"imageUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"image_url not in"
,
values
,
"imageUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"image_url between"
,
value1
,
value2
,
"imageUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageUrlNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"image_url not between"
,
value1
,
value2
,
"imageUrl"
);
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeEqualToColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeNotEqualToColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanOrEqualToColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanColumn
(
CroppingRecord
.
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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanOrEqualToColumn
(
CroppingRecord
.
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
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
CroppingRecordExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
CroppingRecordExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
CroppingRecordExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_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 cropping_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 cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria
add
(
Criteria
add
);
}
}
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/CroppingRecordRequestDto.java
0 → 100644
View file @
978eab79
package
com.wwdz.ch.db.dto.request
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
CroppingRecordRequestDto
extends
BaseRequestDto
implements
Entity
{
private
Integer
id
;
/**
* 商品id
*/
private
Long
itemId
;
/**
* 裁剪坐标
*/
private
String
coordinate
;
/**
* 原始图片地址
*/
private
String
imageUrl
;
/**
* 创建时间
*/
private
Date
createTime
;
}
ch-dao/src/main/java/com/wwdz/ch/db/mapper/CroppingRecordMapper.java
0 → 100644
View file @
978eab79
package
com.wwdz.ch.db.mapper
;
import
com.wwdz.ch.db.domain.CroppingRecord
;
import
com.wwdz.ch.db.domain.CroppingRecordExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
CroppingRecordMapper
{
long
countByExample
(
CroppingRecordExample
example
);
int
deleteByExample
(
CroppingRecordExample
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
CroppingRecord
record
);
int
insertSelective
(
CroppingRecord
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
CroppingRecord
selectOneByExample
(
CroppingRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
CroppingRecord
selectOneByExampleSelective
(
@Param
(
"example"
)
CroppingRecordExample
example
,
@Param
(
"selective"
)
CroppingRecord
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
CroppingRecord
>
selectByExampleSelective
(
@Param
(
"example"
)
CroppingRecordExample
example
,
@Param
(
"selective"
)
CroppingRecord
.
Column
...
selective
);
List
<
CroppingRecord
>
selectByExample
(
CroppingRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cropping_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
CroppingRecord
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"selective"
)
CroppingRecord
.
Column
...
selective
);
CroppingRecord
selectByPrimaryKey
(
Integer
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
CroppingRecord
record
,
@Param
(
"example"
)
CroppingRecordExample
example
);
int
updateByExample
(
@Param
(
"record"
)
CroppingRecord
record
,
@Param
(
"example"
)
CroppingRecordExample
example
);
int
updateByPrimaryKeySelective
(
CroppingRecord
record
);
int
updateByPrimaryKey
(
CroppingRecord
record
);
}
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/CroppingRecordMapper.xml
0 → 100644
View file @
978eab79
<?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.CroppingRecordMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.CroppingRecord"
>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"item_id"
jdbcType=
"BIGINT"
property=
"itemId"
/>
<result
column=
"coordinate"
jdbcType=
"VARCHAR"
property=
"coordinate"
/>
<result
column=
"image_url"
jdbcType=
"VARCHAR"
property=
"imageUrl"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, item_id, coordinate, image_url, create_time
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.CroppingRecordExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from cropping_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, coordinate, image_url, create_time
</otherwise>
</choose>
from cropping_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 cropping_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, coordinate, image_url, create_time
</otherwise>
</choose>
from cropping_record
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from cropping_record
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.CroppingRecordExample"
>
delete from cropping_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.CroppingRecord"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into cropping_record (item_id, coordinate, image_url,
create_time)
values (#{itemId,jdbcType=BIGINT}, #{coordinate,jdbcType=VARCHAR}, #{imageUrl,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.CroppingRecord"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into cropping_record
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"itemId != null"
>
item_id,
</if>
<if
test=
"coordinate != null"
>
coordinate,
</if>
<if
test=
"imageUrl != null"
>
image_url,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"itemId != null"
>
#{itemId,jdbcType=BIGINT},
</if>
<if
test=
"coordinate != null"
>
#{coordinate,jdbcType=VARCHAR},
</if>
<if
test=
"imageUrl != null"
>
#{imageUrl,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.CroppingRecordExample"
resultType=
"java.lang.Long"
>
select count(*) from cropping_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update cropping_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.coordinate != null"
>
coordinate = #{record.coordinate,jdbcType=VARCHAR},
</if>
<if
test=
"record.imageUrl != null"
>
image_url = #{record.imageUrl,jdbcType=VARCHAR},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update cropping_record
set id = #{record.id,jdbcType=INTEGER},
item_id = #{record.itemId,jdbcType=BIGINT},
coordinate = #{record.coordinate,jdbcType=VARCHAR},
image_url = #{record.imageUrl,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.CroppingRecord"
>
update cropping_record
<set>
<if
test=
"itemId != null"
>
item_id = #{itemId,jdbcType=BIGINT},
</if>
<if
test=
"coordinate != null"
>
coordinate = #{coordinate,jdbcType=VARCHAR},
</if>
<if
test=
"imageUrl != null"
>
image_url = #{imageUrl,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.CroppingRecord"
>
update cropping_record
set item_id = #{itemId,jdbcType=BIGINT},
coordinate = #{coordinate,jdbcType=VARCHAR},
image_url = #{imageUrl,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.CroppingRecordExample"
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 cropping_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, coordinate, image_url, create_time
</otherwise>
</choose>
from cropping_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
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