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
87d39627
Commit
87d39627
authored
Jul 27, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
83a9dc44
508916b0
Changes
27
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
1259 additions
and
1659 deletions
+1259
-1659
ch-dao/src/main/java/com/wwdz/ch/db/dao/ItemManager.java
ch-dao/src/main/java/com/wwdz/ch/db/dao/ItemManager.java
+2
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/UserDao.java
ch-dao/src/main/java/com/wwdz/ch/db/dao/UserDao.java
+17
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/impl/ItemManagerImpl.java
...rc/main/java/com/wwdz/ch/db/dao/impl/ItemManagerImpl.java
+5
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/impl/UserDaoImpl.java
...ao/src/main/java/com/wwdz/ch/db/dao/impl/UserDaoImpl.java
+61
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/Footprint.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/Footprint.java
+43
-222
ch-dao/src/main/java/com/wwdz/ch/db/domain/FootprintExample.java
...src/main/java/com/wwdz/ch/db/domain/FootprintExample.java
+103
-205
ch-dao/src/main/java/com/wwdz/ch/db/domain/User.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/User.java
+59
-540
ch-dao/src/main/java/com/wwdz/ch/db/domain/UserExample.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/UserExample.java
+332
-266
ch-dao/src/main/java/com/wwdz/ch/db/mapper/FootprintMapper.java
.../src/main/java/com/wwdz/ch/db/mapper/FootprintMapper.java
+9
-76
ch-dao/src/main/java/com/wwdz/ch/db/mapper/UserMapper.java
ch-dao/src/main/java/com/wwdz/ch/db/mapper/UserMapper.java
+9
-76
ch-dao/src/main/java/com/wwdz/ch/db/service/DtsFootprintService.java
...main/java/com/wwdz/ch/db/service/DtsFootprintService.java
+5
-6
ch-dao/src/main/java/com/wwdz/ch/db/service/DtsUserService.java
.../src/main/java/com/wwdz/ch/db/service/DtsUserService.java
+12
-14
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/FootprintMapper.xml
.../main/resources/com/wwdz/ch/db/mapper/FootprintMapper.xml
+21
-81
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/UserMapper.xml
...o/src/main/resources/com/wwdz/ch/db/mapper/UserMapper.xml
+33
-78
ch-wx-api/src/main/java/com/wwdz/ch/wx/dao/UserInfo.java
ch-wx-api/src/main/java/com/wwdz/ch/wx/dao/UserInfo.java
+10
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/request/UserRequestDto.java
...in/java/com/wwdz/ch/wx/entity/request/UserRequestDto.java
+17
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/CategoryImpl.java
...x-api/src/main/java/com/wwdz/ch/wx/impl/CategoryImpl.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/FavoritesServiceImpl.java
...c/main/java/com/wwdz/ch/wx/impl/FavoritesServiceImpl.java
+23
-23
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
...pi/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
+55
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
...pi/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
+299
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/ItemService.java
...api/src/main/java/com/wwdz/ch/wx/service/ItemService.java
+6
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/UserService.java
...api/src/main/java/com/wwdz/ch/wx/service/UserService.java
+21
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/util/StringUtil.java
ch-wx-api/src/main/java/com/wwdz/ch/wx/util/StringUtil.java
+16
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxAuthController.java
...pi/src/main/java/com/wwdz/ch/wx/web/WxAuthController.java
+30
-33
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxFootprintController.java
...c/main/java/com/wwdz/ch/wx/web/WxFootprintController.java
+14
-20
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxGoodsController.java
...i/src/main/java/com/wwdz/ch/wx/web/WxGoodsController.java
+18
-17
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxItemController.java
...pi/src/main/java/com/wwdz/ch/wx/web/WxItemController.java
+38
-0
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/dao/ItemManager.java
View file @
87d39627
...
...
@@ -27,4 +27,6 @@ public interface ItemManager {
long
countByCid
(
Integer
cid
);
int
insert
(
Item
item
);
int
update
(
Item
item
);
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/UserDao.java
0 → 100644
View file @
87d39627
package
com.wwdz.ch.db.dao
;
import
com.wwdz.ch.db.domain.User
;
public
interface
UserDao
{
User
queryByOid
(
String
openId
);
User
queryByMobile
(
String
mobile
);
User
queryById
(
Long
id
);
int
insert
(
User
user
);
int
updateById
(
User
user
);
boolean
isExistedByMobile
(
String
beforeMobile
,
String
afterMobile
);
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/impl/ItemManagerImpl.java
View file @
87d39627
...
...
@@ -119,4 +119,9 @@ public class ItemManagerImpl implements ItemManager {
public
int
insert
(
Item
item
)
{
return
itemMapper
.
insert
(
item
);
}
@Override
public
int
update
(
Item
item
)
{
return
itemMapper
.
updateByPrimaryKeySelective
(
item
);
}
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/impl/UserDaoImpl.java
0 → 100644
View file @
87d39627
package
com.wwdz.ch.db.dao.impl
;
import
com.wwdz.ch.db.dao.UserDao
;
import
com.wwdz.ch.db.domain.User
;
import
com.wwdz.ch.db.domain.UserExample
;
import
com.wwdz.ch.db.mapper.UserMapper
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
import
java.util.Date
;
@Repository
public
class
UserDaoImpl
implements
UserDao
{
@Autowired
private
UserMapper
userMapper
;
@Override
public
User
queryByOid
(
String
openId
)
{
UserExample
example
=
new
UserExample
();
example
.
or
().
andWeixinOpenidEqualTo
(
openId
).
andDeletedEqualTo
(
false
);
return
userMapper
.
selectOneByExample
(
example
);
}
@Override
public
User
queryByMobile
(
String
mobile
)
{
UserExample
example
=
new
UserExample
();
example
.
or
().
andMobileEqualTo
(
mobile
).
andDeletedEqualTo
(
false
);
return
userMapper
.
selectOneByExample
(
example
);
}
@Override
public
User
queryById
(
Long
id
)
{
UserExample
example
=
new
UserExample
();
example
.
or
().
andIdEqualTo
(
id
).
andDeletedEqualTo
(
false
);
return
userMapper
.
selectOneByExample
(
example
);
}
@Override
public
int
insert
(
User
user
)
{
return
userMapper
.
insert
(
user
);
}
@Override
public
int
updateById
(
User
user
)
{
user
.
setUpdateTime
(
new
Date
());
return
userMapper
.
updateByPrimaryKeySelective
(
user
);
}
@Override
public
boolean
isExistedByMobile
(
String
beforeMobile
,
String
afterMobile
)
{
UserExample
example
=
new
UserExample
();
UserExample
.
Criteria
criteria
=
example
.
createCriteria
();
if
(
StringUtils
.
isNotBlank
(
beforeMobile
))
{
criteria
.
andMobileNotEqualTo
(
beforeMobile
);
}
criteria
.
andMobileEqualTo
(
afterMobile
);
criteria
.
andDeletedEqualTo
(
false
);
return
userMapper
.
countByExample
(
example
)
>
0
;
}
}
ch-dao/src/main/java/com/wwdz/ch/db/domain/Footprint.java
View file @
87d39627
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
;
import
lombok.Data
;
public
class
Footprint
{
/**
* @author shiyu
* @date 2023/07/26
*/
@Data
public
class
Footprint
implements
Serializable
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
footprint
* This field corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -16,217 +23,42 @@ public class Footprint {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
footprint
* This field corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
final
Boolean
IS_DELETED
=
true
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_footprint.id
*
* @mbg.generated
*/
private
Long
id
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_footprint.user_id
*
* @mbg.generated
* 用户表的用户ID
*/
private
Long
userId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_footprint.coins_id
*
* @mbg.generated
* 浏览商品ID
*/
private
Long
coins
Id
;
private
Long
item
Id
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_footprint.add_time
*
* @mbg.generated
* 创建时间
*/
private
LocalDateTim
e
addTime
;
private
Dat
e
addTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_footprint.update_time
*
* @mbg.generated
* 更新时间
*/
private
LocalDateTim
e
updateTime
;
private
Dat
e
updateTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_footprint.deleted
*
* @mbg.generated
* 逻辑删除
*/
private
Boolean
deleted
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_footprint.id
*
* @return the value of dts_footprint.id
*
* @mbg.generated
*/
public
Long
getId
()
{
return
id
;
}
private
static
final
long
serialVersionUID
=
1L
;
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_footprint.id
*
* @param id the value for dts_footprint.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 dts_footprint.user_id
*
* @return the value of dts_footprint.user_id
*
* @mbg.generated
*/
public
Long
getUserId
()
{
return
userId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_footprint.user_id
*
* @param userId the value for dts_footprint.user_id
*
* @mbg.generated
*/
public
void
setUserId
(
Long
userId
)
{
this
.
userId
=
userId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_footprint.coins_id
*
* @return the value of dts_footprint.coins_id
*
* @mbg.generated
*/
public
Long
getCoinsId
()
{
return
coinsId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_footprint.coins_id
*
* @param coinsId the value for dts_footprint.coins_id
*
* @mbg.generated
*/
public
void
setCoinsId
(
Long
coinsId
)
{
this
.
coinsId
=
coinsId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_footprint.add_time
*
* @return the value of dts_footprint.add_time
*
* @mbg.generated
*/
public
LocalDateTime
getAddTime
()
{
return
addTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_footprint.add_time
*
* @param addTime the value for dts_footprint.add_time
*
* @mbg.generated
*/
public
void
setAddTime
(
LocalDateTime
addTime
)
{
this
.
addTime
=
addTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_footprint.update_time
*
* @return the value of dts_footprint.update_time
*
* @mbg.generated
*/
public
LocalDateTime
getUpdateTime
()
{
return
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_footprint.update_time
*
* @param updateTime the value for dts_footprint.update_time
*
* @mbg.generated
*/
public
void
setUpdateTime
(
LocalDateTime
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_footprint.deleted
*
* @return the value of dts_footprint.deleted
*
* @mbg.generated
*/
public
Boolean
getDeleted
()
{
return
deleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_footprint.deleted
*
* @param deleted the value for dts_footprint.deleted
*
* @mbg.generated
*/
public
void
setDeleted
(
Boolean
deleted
)
{
this
.
deleted
=
deleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
...
...
@@ -235,20 +67,15 @@ public class Footprint {
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", userId="
).
append
(
userId
);
sb
.
append
(
",
coinsId="
).
append
(
coins
Id
);
sb
.
append
(
",
itemId="
).
append
(
item
Id
);
sb
.
append
(
", addTime="
).
append
(
addTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", deleted="
).
append
(
deleted
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
...
...
@@ -263,25 +90,19 @@ public class Footprint {
Footprint
other
=
(
Footprint
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getUserId
()
==
null
?
other
.
getUserId
()
==
null
:
this
.
getUserId
().
equals
(
other
.
getUserId
()))
&&
(
this
.
get
CoinsId
()
==
null
?
other
.
getCoinsId
()
==
null
:
this
.
getCoinsId
().
equals
(
other
.
getCoins
Id
()))
&&
(
this
.
get
ItemId
()
==
null
?
other
.
getItemId
()
==
null
:
this
.
getItemId
().
equals
(
other
.
getItem
Id
()))
&&
(
this
.
getAddTime
()
==
null
?
other
.
getAddTime
()
==
null
:
this
.
getAddTime
().
equals
(
other
.
getAddTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getDeleted
()
==
null
?
other
.
getDeleted
()
==
null
:
this
.
getDeleted
().
equals
(
other
.
getDeleted
()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getUserId
()
==
null
)
?
0
:
getUserId
().
hashCode
());
result
=
prime
*
result
+
((
get
CoinsId
()
==
null
)
?
0
:
getCoins
Id
().
hashCode
());
result
=
prime
*
result
+
((
get
ItemId
()
==
null
)
?
0
:
getItem
Id
().
hashCode
());
result
=
prime
*
result
+
((
getAddTime
()
==
null
)
?
0
:
getAddTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getDeleted
()
==
null
)
?
0
:
getDeleted
().
hashCode
());
...
...
@@ -290,7 +111,7 @@ public class Footprint {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -301,7 +122,7 @@ public class Footprint {
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table
dts_
footprint
* This enum corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -309,14 +130,14 @@ public class Footprint {
public
enum
Column
{
id
(
"id"
,
"id"
,
"BIGINT"
,
false
),
userId
(
"user_id"
,
"userId"
,
"BIGINT"
,
false
),
coinsId
(
"coins_id"
,
"coins
Id"
,
"BIGINT"
,
false
),
itemId
(
"item_id"
,
"item
Id"
,
"BIGINT"
,
false
),
addTime
(
"add_time"
,
"addTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
deleted
(
"deleted"
,
"deleted"
,
"BIT"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
footprint
* This field corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -325,7 +146,7 @@ public class Footprint {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
footprint
* This field corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -334,7 +155,7 @@ public class Footprint {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
footprint
* This field corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -343,7 +164,7 @@ public class Footprint {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
footprint
* This field corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -352,7 +173,7 @@ public class Footprint {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
footprint
* This field corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -361,7 +182,7 @@ public class Footprint {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
footprint
* This field corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -370,7 +191,7 @@ public class Footprint {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -381,7 +202,7 @@ public class Footprint {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -392,7 +213,7 @@ public class Footprint {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -403,7 +224,7 @@ public class Footprint {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -414,7 +235,7 @@ public class Footprint {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -428,7 +249,7 @@ public class Footprint {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -439,7 +260,7 @@ public class Footprint {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -450,7 +271,7 @@ public class Footprint {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -465,7 +286,7 @@ public class Footprint {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/FootprintExample.java
View file @
87d39627
package
com.wwdz.ch.db.domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
FootprintExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_footprint
*
* @mbg.generated
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_footprint
*
* @mbg.generated
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_footprint
*
* @mbg.generated
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
public
FootprintExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
...
...
@@ -113,7 +47,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -125,7 +59,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -142,12 +76,6 @@ public class FootprintExample {
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
...
...
@@ -156,23 +84,11 @@ public class FootprintExample {
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @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 dts_footprint
*
* @mbg.generated
*/
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
...
...
@@ -181,7 +97,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -191,12 +107,6 @@ public class FootprintExample {
return
example
.
createCriteria
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table dts_footprint
*
* @mbg.generated
*/
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
...
...
@@ -255,7 +165,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -272,7 +182,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -289,7 +199,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -306,7 +216,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -323,7 +233,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -340,7 +250,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -387,7 +297,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -404,7 +314,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -421,7 +331,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -438,7 +348,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -455,7 +365,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -472,7 +382,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -502,135 +412,135 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
and
Coins
IdIsNull
()
{
addCriterion
(
"
coins
_id is null"
);
public
Criteria
and
Item
IdIsNull
()
{
addCriterion
(
"
item
_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
and
Coins
IdIsNotNull
()
{
addCriterion
(
"
coins
_id is not null"
);
public
Criteria
and
Item
IdIsNotNull
()
{
addCriterion
(
"
item
_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
and
Coins
IdEqualTo
(
Long
value
)
{
addCriterion
(
"
coins_id ="
,
value
,
"coins
Id"
);
public
Criteria
and
Item
IdEqualTo
(
Long
value
)
{
addCriterion
(
"
item_id ="
,
value
,
"item
Id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
and
Coins
IdEqualToColumn
(
Footprint
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"
coins
_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
and
Item
IdEqualToColumn
(
Footprint
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"
item
_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
and
Coins
IdNotEqualTo
(
Long
value
)
{
addCriterion
(
"
coins_id <>"
,
value
,
"coins
Id"
);
public
Criteria
and
Item
IdNotEqualTo
(
Long
value
)
{
addCriterion
(
"
item_id <>"
,
value
,
"item
Id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
and
Coins
IdNotEqualToColumn
(
Footprint
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"
coins
_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
and
Item
IdNotEqualToColumn
(
Footprint
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"
item
_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
and
Coins
IdGreaterThan
(
Long
value
)
{
addCriterion
(
"
coins_id >"
,
value
,
"coins
Id"
);
public
Criteria
and
Item
IdGreaterThan
(
Long
value
)
{
addCriterion
(
"
item_id >"
,
value
,
"item
Id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
and
Coins
IdGreaterThanColumn
(
Footprint
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"
coins
_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
and
Item
IdGreaterThanColumn
(
Footprint
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"
item
_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
and
Coins
IdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"
coins_id >="
,
value
,
"coins
Id"
);
public
Criteria
and
Item
IdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"
item_id >="
,
value
,
"item
Id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
and
Coins
IdGreaterThanOrEqualToColumn
(
Footprint
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"
coins
_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
and
Item
IdGreaterThanOrEqualToColumn
(
Footprint
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"
item
_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
and
Coins
IdLessThan
(
Long
value
)
{
addCriterion
(
"
coins_id <"
,
value
,
"coins
Id"
);
public
Criteria
and
Item
IdLessThan
(
Long
value
)
{
addCriterion
(
"
item_id <"
,
value
,
"item
Id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
and
Coins
IdLessThanColumn
(
Footprint
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"
coins
_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
and
Item
IdLessThanColumn
(
Footprint
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"
item
_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
and
Coins
IdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"
coins_id <="
,
value
,
"coins
Id"
);
public
Criteria
and
Item
IdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"
item_id <="
,
value
,
"item
Id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
and
Coins
IdLessThanOrEqualToColumn
(
Footprint
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"
coins
_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
public
Criteria
and
Item
IdLessThanOrEqualToColumn
(
Footprint
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"
item
_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
and
Coins
IdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"
coins_id in"
,
values
,
"coins
Id"
);
public
Criteria
and
Item
IdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"
item_id in"
,
values
,
"item
Id"
);
return
(
Criteria
)
this
;
}
public
Criteria
and
Coins
IdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"
coins_id not in"
,
values
,
"coins
Id"
);
public
Criteria
and
Item
IdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"
item_id not in"
,
values
,
"item
Id"
);
return
(
Criteria
)
this
;
}
public
Criteria
and
Coins
IdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"
coins_id between"
,
value1
,
value2
,
"coins
Id"
);
public
Criteria
and
Item
IdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"
item_id between"
,
value1
,
value2
,
"item
Id"
);
return
(
Criteria
)
this
;
}
public
Criteria
and
Coins
IdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"
coins_id not between"
,
value1
,
value2
,
"coins
Id"
);
public
Criteria
and
Item
IdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"
item_id not between"
,
value1
,
value2
,
"item
Id"
);
return
(
Criteria
)
this
;
}
...
...
@@ -644,14 +554,14 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andAddTimeEqualTo
(
Dat
e
value
)
{
addCriterion
(
"add_time ="
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -661,14 +571,14 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andAddTimeNotEqualTo
(
Dat
e
value
)
{
addCriterion
(
"add_time <>"
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -678,14 +588,14 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeGreaterThan
(
LocalDateTim
e
value
)
{
public
Criteria
andAddTimeGreaterThan
(
Dat
e
value
)
{
addCriterion
(
"add_time >"
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -695,14 +605,14 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeGreaterThanOrEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andAddTimeGreaterThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"add_time >="
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -712,14 +622,14 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeLessThan
(
LocalDateTim
e
value
)
{
public
Criteria
andAddTimeLessThan
(
Dat
e
value
)
{
addCriterion
(
"add_time <"
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -729,14 +639,14 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeLessThanOrEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andAddTimeLessThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"add_time <="
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -746,22 +656,22 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeIn
(
List
<
LocalDateTim
e
>
values
)
{
public
Criteria
andAddTimeIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"add_time in"
,
values
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotIn
(
List
<
LocalDateTim
e
>
values
)
{
public
Criteria
andAddTimeNotIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"add_time not in"
,
values
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
public
Criteria
andAddTimeBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"add_time between"
,
value1
,
value2
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
public
Criteria
andAddTimeNotBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"add_time not between"
,
value1
,
value2
,
"addTime"
);
return
(
Criteria
)
this
;
}
...
...
@@ -776,14 +686,14 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andUpdateTimeEqualTo
(
Dat
e
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -793,14 +703,14 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andUpdateTimeNotEqualTo
(
Dat
e
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -810,14 +720,14 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
LocalDateTim
e
value
)
{
public
Criteria
andUpdateTimeGreaterThan
(
Dat
e
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -827,14 +737,14 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -844,14 +754,14 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
LocalDateTim
e
value
)
{
public
Criteria
andUpdateTimeLessThan
(
Dat
e
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -861,14 +771,14 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -878,22 +788,22 @@ public class FootprintExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
LocalDateTim
e
>
values
)
{
public
Criteria
andUpdateTimeIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
LocalDateTim
e
>
values
)
{
public
Criteria
andUpdateTimeNotIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
public
Criteria
andUpdateTimeBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
public
Criteria
andUpdateTimeNotBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
...
...
@@ -915,7 +825,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -932,7 +842,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -949,7 +859,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -966,7 +876,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -983,7 +893,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1000,7 +910,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1031,16 +941,10 @@ public class FootprintExample {
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table dts_footprint
*
* @mbg.generated do_not_delete_during_merge
*/
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
footprint
* This field corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1049,7 +953,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1061,7 +965,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1072,7 +976,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1086,7 +990,7 @@ public class FootprintExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1097,7 +1001,7 @@ public class FootprintExample {
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table
dts_
footprint
* This interface corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1105,7 +1009,7 @@ public class FootprintExample {
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1114,12 +1018,6 @@ public class FootprintExample {
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table dts_footprint
*
* @mbg.generated
*/
public
static
class
Criterion
{
private
String
condition
;
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/User.java
View file @
87d39627
package
com.wwdz.ch.db.domain
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
public
class
User
{
/**
* @author shiyu
* @date 2023/07/26
*/
@Data
public
class
User
implements
Serializable
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
user
* This field corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -17,580 +24,99 @@ public class User {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
user
* This field corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
final
Boolean
IS_DELETED
=
true
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.id
*
* @mbg.generated
*/
private
Long
id
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.username
*
* @mbg.generated
* 用户名称
*/
private
String
username
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.password
*
* @mbg.generated
* 用户密码
*/
private
String
password
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.gender
*
* @mbg.generated
* 性别:0 未知, 1男, 1 女
*/
private
Byte
gender
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.birthday
*
* @mbg.generated
* 生日
*/
private
Local
Date
birthday
;
private
Date
birthday
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.last_login_time
*
* @mbg.generated
* 最近一次登录时间
*/
private
LocalDateTim
e
lastLoginTime
;
private
Dat
e
lastLoginTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.last_login_ip
*
* @mbg.generated
* 最近一次登录IP地址
*/
private
String
lastLoginIp
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.user_level
*
* @mbg.generated
* 用户层级 0 普通用户,1 VIP用户,2 区域代理用户
*/
private
Byte
userLevel
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.nickname
*
* @mbg.generated
* 用户昵称或网络名称
*/
private
String
nickname
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.mobile
*
* @mbg.generated
* 用户手机号码
*/
private
String
mobile
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.avatar
*
* @mbg.generated
* 用户头像图片
*/
private
String
avatar
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.weixin_openid
*
* @mbg.generated
* 微信登录openid
*/
private
String
weixinOpenid
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.status
*
* @mbg.generated
*/
private
Byte
status
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.add_time
*
* @mbg.generated
*/
private
LocalDateTime
addTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.update_time
*
* @mbg.generated
*/
private
LocalDateTime
updateTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.deleted
*
* @mbg.generated
*/
private
Boolean
deleted
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_user.share_user_id
*
* @mbg.generated
*/
private
Long
shareUserId
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.id
*
* @return the value of dts_user.id
*
* @mbg.generated
*/
public
Long
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.id
*
* @param id the value for dts_user.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 dts_user.username
*
* @return the value of dts_user.username
*
* @mbg.generated
*/
public
String
getUsername
()
{
return
username
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.username
*
* @param username the value for dts_user.username
*
* @mbg.generated
* 微信号
*/
public
void
setUsername
(
String
username
)
{
this
.
username
=
username
;
}
private
String
wechatId
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.password
*
* @return the value of dts_user.password
*
* @mbg.generated
* 0 可用, 1 禁用, 2 注销
*/
public
String
getPassword
()
{
return
password
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.password
*
* @param password the value for dts_user.password
*
* @mbg.generated
*/
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.gender
*
* @return the value of dts_user.gender
*
* @mbg.generated
*/
public
Byte
getGender
()
{
return
gender
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.gender
*
* @param gender the value for dts_user.gender
*
* @mbg.generated
*/
public
void
setGender
(
Byte
gender
)
{
this
.
gender
=
gender
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.birthday
*
* @return the value of dts_user.birthday
*
* @mbg.generated
*/
public
LocalDate
getBirthday
()
{
return
birthday
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.birthday
*
* @param birthday the value for dts_user.birthday
*
* @mbg.generated
*/
public
void
setBirthday
(
LocalDate
birthday
)
{
this
.
birthday
=
birthday
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.last_login_time
*
* @return the value of dts_user.last_login_time
*
* @mbg.generated
*/
public
LocalDateTime
getLastLoginTime
()
{
return
lastLoginTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.last_login_time
*
* @param lastLoginTime the value for dts_user.last_login_time
*
* @mbg.generated
*/
public
void
setLastLoginTime
(
LocalDateTime
lastLoginTime
)
{
this
.
lastLoginTime
=
lastLoginTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.last_login_ip
*
* @return the value of dts_user.last_login_ip
*
* @mbg.generated
*/
public
String
getLastLoginIp
()
{
return
lastLoginIp
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.last_login_ip
*
* @param lastLoginIp the value for dts_user.last_login_ip
*
* @mbg.generated
*/
public
void
setLastLoginIp
(
String
lastLoginIp
)
{
this
.
lastLoginIp
=
lastLoginIp
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.user_level
*
* @return the value of dts_user.user_level
*
* @mbg.generated
*/
public
Byte
getUserLevel
()
{
return
userLevel
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.user_level
*
* @param userLevel the value for dts_user.user_level
*
* @mbg.generated
*/
public
void
setUserLevel
(
Byte
userLevel
)
{
this
.
userLevel
=
userLevel
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.nickname
*
* @return the value of dts_user.nickname
*
* @mbg.generated
*/
public
String
getNickname
()
{
return
nickname
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.nickname
*
* @param nickname the value for dts_user.nickname
*
* @mbg.generated
*/
public
void
setNickname
(
String
nickname
)
{
this
.
nickname
=
nickname
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.mobile
*
* @return the value of dts_user.mobile
*
* @mbg.generated
*/
public
String
getMobile
()
{
return
mobile
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.mobile
*
* @param mobile the value for dts_user.mobile
*
* @mbg.generated
*/
public
void
setMobile
(
String
mobile
)
{
this
.
mobile
=
mobile
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.avatar
*
* @return the value of dts_user.avatar
*
* @mbg.generated
*/
public
String
getAvatar
()
{
return
avatar
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.avatar
*
* @param avatar the value for dts_user.avatar
*
* @mbg.generated
*/
public
void
setAvatar
(
String
avatar
)
{
this
.
avatar
=
avatar
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.weixin_openid
*
* @return the value of dts_user.weixin_openid
*
* @mbg.generated
*/
public
String
getWeixinOpenid
()
{
return
weixinOpenid
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.weixin_openid
*
* @param weixinOpenid the value for dts_user.weixin_openid
*
* @mbg.generated
*/
public
void
setWeixinOpenid
(
String
weixinOpenid
)
{
this
.
weixinOpenid
=
weixinOpenid
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.status
*
* @return the value of dts_user.status
*
* @mbg.generated
*/
public
Byte
getStatus
()
{
return
status
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.status
*
* @param status the value for dts_user.status
*
* @mbg.generated
*/
public
void
setStatus
(
Byte
status
)
{
this
.
status
=
status
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.add_time
*
* @return the value of dts_user.add_time
*
* @mbg.generated
*/
public
LocalDateTime
getAddTime
()
{
return
addTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.add_time
*
* @param addTime the value for dts_user.add_time
*
* @mbg.generated
*/
public
void
setAddTime
(
LocalDateTime
addTime
)
{
this
.
addTime
=
addTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.update_time
*
* @return the value of dts_user.update_time
*
* @mbg.generated
*/
public
LocalDateTime
getUpdateTime
()
{
return
updateTime
;
}
private
Byte
status
;
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.update_time
*
* @param updateTime the value for dts_user.update_time
*
* @mbg.generated
* 创建时间
*/
public
void
setUpdateTime
(
LocalDateTime
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
private
Date
addTime
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.deleted
*
* @return the value of dts_user.deleted
*
* @mbg.generated
* 更新时间
*/
public
Boolean
getDeleted
()
{
return
deleted
;
}
private
Date
updateTime
;
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.deleted
*
* @param deleted the value for dts_user.deleted
*
* @mbg.generated
* 逻辑删除
*/
public
void
setDeleted
(
Boolean
deleted
)
{
this
.
deleted
=
deleted
;
}
private
Boolean
deleted
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_user.share_user_id
*
* @return the value of dts_user.share_user_id
*
* @mbg.generated
*/
public
Long
getShareUserId
()
{
return
shareUserId
;
}
private
Long
shareUserId
;
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_user.share_user_id
*
* @param shareUserId the value for dts_user.share_user_id
*
* @mbg.generated
*/
public
void
setShareUserId
(
Long
shareUserId
)
{
this
.
shareUserId
=
shareUserId
;
}
private
static
final
long
serialVersionUID
=
1L
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
...
...
@@ -609,21 +135,17 @@ public class User {
sb
.
append
(
", mobile="
).
append
(
mobile
);
sb
.
append
(
", avatar="
).
append
(
avatar
);
sb
.
append
(
", weixinOpenid="
).
append
(
weixinOpenid
);
sb
.
append
(
", wechatId="
).
append
(
wechatId
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", addTime="
).
append
(
addTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", deleted="
).
append
(
deleted
);
sb
.
append
(
", shareUserId="
).
append
(
shareUserId
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
...
...
@@ -648,6 +170,7 @@ public class User {
&&
(
this
.
getMobile
()
==
null
?
other
.
getMobile
()
==
null
:
this
.
getMobile
().
equals
(
other
.
getMobile
()))
&&
(
this
.
getAvatar
()
==
null
?
other
.
getAvatar
()
==
null
:
this
.
getAvatar
().
equals
(
other
.
getAvatar
()))
&&
(
this
.
getWeixinOpenid
()
==
null
?
other
.
getWeixinOpenid
()
==
null
:
this
.
getWeixinOpenid
().
equals
(
other
.
getWeixinOpenid
()))
&&
(
this
.
getWechatId
()
==
null
?
other
.
getWechatId
()
==
null
:
this
.
getWechatId
().
equals
(
other
.
getWechatId
()))
&&
(
this
.
getStatus
()
==
null
?
other
.
getStatus
()
==
null
:
this
.
getStatus
().
equals
(
other
.
getStatus
()))
&&
(
this
.
getAddTime
()
==
null
?
other
.
getAddTime
()
==
null
:
this
.
getAddTime
().
equals
(
other
.
getAddTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
...
...
@@ -655,12 +178,6 @@ public class User {
&&
(
this
.
getShareUserId
()
==
null
?
other
.
getShareUserId
()
==
null
:
this
.
getShareUserId
().
equals
(
other
.
getShareUserId
()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
...
...
@@ -677,6 +194,7 @@ public class User {
result
=
prime
*
result
+
((
getMobile
()
==
null
)
?
0
:
getMobile
().
hashCode
());
result
=
prime
*
result
+
((
getAvatar
()
==
null
)
?
0
:
getAvatar
().
hashCode
());
result
=
prime
*
result
+
((
getWeixinOpenid
()
==
null
)
?
0
:
getWeixinOpenid
().
hashCode
());
result
=
prime
*
result
+
((
getWechatId
()
==
null
)
?
0
:
getWechatId
().
hashCode
());
result
=
prime
*
result
+
((
getStatus
()
==
null
)
?
0
:
getStatus
().
hashCode
());
result
=
prime
*
result
+
((
getAddTime
()
==
null
)
?
0
:
getAddTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
...
...
@@ -687,7 +205,7 @@ public class User {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -698,7 +216,7 @@ public class User {
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table
dts_
user
* This enum corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -716,6 +234,7 @@ public class User {
mobile
(
"mobile"
,
"mobile"
,
"VARCHAR"
,
false
),
avatar
(
"avatar"
,
"avatar"
,
"VARCHAR"
,
false
),
weixinOpenid
(
"weixin_openid"
,
"weixinOpenid"
,
"VARCHAR"
,
false
),
wechatId
(
"wechat_id"
,
"wechatId"
,
"VARCHAR"
,
false
),
status
(
"status"
,
"status"
,
"TINYINT"
,
true
),
addTime
(
"add_time"
,
"addTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
...
...
@@ -724,7 +243,7 @@ public class User {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
user
* This field corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -733,7 +252,7 @@ public class User {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
user
* This field corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -742,7 +261,7 @@ public class User {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
user
* This field corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -751,7 +270,7 @@ public class User {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
user
* This field corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -760,7 +279,7 @@ public class User {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
user
* This field corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -769,7 +288,7 @@ public class User {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
user
* This field corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -778,7 +297,7 @@ public class User {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -789,7 +308,7 @@ public class User {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -800,7 +319,7 @@ public class User {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -811,7 +330,7 @@ public class User {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -822,7 +341,7 @@ public class User {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -836,7 +355,7 @@ public class User {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -847,7 +366,7 @@ public class User {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -858,7 +377,7 @@ public class User {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -873,7 +392,7 @@ public class User {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/UserExample.java
View file @
87d39627
package
com.wwdz.ch.db.domain
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Iterator
;
import
java.util.List
;
public
class
UserExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_user
*
* @mbg.generated
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_user
*
* @mbg.generated
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_user
*
* @mbg.generated
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
public
UserExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
...
...
@@ -114,7 +48,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -126,7 +60,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -143,12 +77,6 @@ public class UserExample {
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
...
...
@@ -157,23 +85,11 @@ public class UserExample {
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @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 dts_user
*
* @mbg.generated
*/
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
...
...
@@ -182,7 +98,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -192,12 +108,6 @@ public class UserExample {
return
example
.
createCriteria
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table dts_user
*
* @mbg.generated
*/
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
...
...
@@ -239,6 +149,32 @@ public class UserExample {
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
protected
void
addCriterionForJDBCDate
(
String
condition
,
Date
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
addCriterion
(
condition
,
new
java
.
sql
.
Date
(
value
.
getTime
()),
property
);
}
protected
void
addCriterionForJDBCDate
(
String
condition
,
List
<
Date
>
values
,
String
property
)
{
if
(
values
==
null
||
values
.
size
()
==
0
)
{
throw
new
RuntimeException
(
"Value list for "
+
property
+
" cannot be null or empty"
);
}
List
<
java
.
sql
.
Date
>
dateList
=
new
ArrayList
<
java
.
sql
.
Date
>();
Iterator
<
Date
>
iter
=
values
.
iterator
();
while
(
iter
.
hasNext
())
{
dateList
.
add
(
new
java
.
sql
.
Date
(
iter
.
next
().
getTime
()));
}
addCriterion
(
condition
,
dateList
,
property
);
}
protected
void
addCriterionForJDBCDate
(
String
condition
,
Date
value1
,
Date
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
addCriterion
(
condition
,
new
java
.
sql
.
Date
(
value1
.
getTime
()),
new
java
.
sql
.
Date
(
value2
.
getTime
()),
property
);
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
...
...
@@ -256,7 +192,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -273,7 +209,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -290,7 +226,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -307,7 +243,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -324,7 +260,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -341,7 +277,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -388,7 +324,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -405,7 +341,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -422,7 +358,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -439,7 +375,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -456,7 +392,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -473,7 +409,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -530,7 +466,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -547,7 +483,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -564,7 +500,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -581,7 +517,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -598,7 +534,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -615,7 +551,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -672,7 +608,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -689,7 +625,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -706,7 +642,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -723,7 +659,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -740,7 +676,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -757,7 +693,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -797,14 +733,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andBirthdayEqualTo
(
Local
Date
value
)
{
addCriterion
(
"birthday ="
,
value
,
"birthday"
);
public
Criteria
andBirthdayEqualTo
(
Date
value
)
{
addCriterion
ForJDBCDate
(
"birthday ="
,
value
,
"birthday"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -814,14 +750,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andBirthdayNotEqualTo
(
Local
Date
value
)
{
addCriterion
(
"birthday <>"
,
value
,
"birthday"
);
public
Criteria
andBirthdayNotEqualTo
(
Date
value
)
{
addCriterion
ForJDBCDate
(
"birthday <>"
,
value
,
"birthday"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -831,14 +767,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andBirthdayGreaterThan
(
Local
Date
value
)
{
addCriterion
(
"birthday >"
,
value
,
"birthday"
);
public
Criteria
andBirthdayGreaterThan
(
Date
value
)
{
addCriterion
ForJDBCDate
(
"birthday >"
,
value
,
"birthday"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -848,14 +784,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andBirthdayGreaterThanOrEqualTo
(
Local
Date
value
)
{
addCriterion
(
"birthday >="
,
value
,
"birthday"
);
public
Criteria
andBirthdayGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
ForJDBCDate
(
"birthday >="
,
value
,
"birthday"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -865,14 +801,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andBirthdayLessThan
(
Local
Date
value
)
{
addCriterion
(
"birthday <"
,
value
,
"birthday"
);
public
Criteria
andBirthdayLessThan
(
Date
value
)
{
addCriterion
ForJDBCDate
(
"birthday <"
,
value
,
"birthday"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -882,14 +818,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andBirthdayLessThanOrEqualTo
(
Local
Date
value
)
{
addCriterion
(
"birthday <="
,
value
,
"birthday"
);
public
Criteria
andBirthdayLessThanOrEqualTo
(
Date
value
)
{
addCriterion
ForJDBCDate
(
"birthday <="
,
value
,
"birthday"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -899,23 +835,23 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andBirthdayIn
(
List
<
Local
Date
>
values
)
{
addCriterion
(
"birthday in"
,
values
,
"birthday"
);
public
Criteria
andBirthdayIn
(
List
<
Date
>
values
)
{
addCriterion
ForJDBCDate
(
"birthday in"
,
values
,
"birthday"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBirthdayNotIn
(
List
<
Local
Date
>
values
)
{
addCriterion
(
"birthday not in"
,
values
,
"birthday"
);
public
Criteria
andBirthdayNotIn
(
List
<
Date
>
values
)
{
addCriterion
ForJDBCDate
(
"birthday not in"
,
values
,
"birthday"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBirthdayBetween
(
LocalDate
value1
,
Local
Date
value2
)
{
addCriterion
(
"birthday between"
,
value1
,
value2
,
"birthday"
);
public
Criteria
andBirthdayBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
ForJDBCDate
(
"birthday between"
,
value1
,
value2
,
"birthday"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBirthdayNotBetween
(
LocalDate
value1
,
Local
Date
value2
)
{
addCriterion
(
"birthday not between"
,
value1
,
value2
,
"birthday"
);
public
Criteria
andBirthdayNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
ForJDBCDate
(
"birthday not between"
,
value1
,
value2
,
"birthday"
);
return
(
Criteria
)
this
;
}
...
...
@@ -929,14 +865,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andLastLoginTimeEqualTo
(
Dat
e
value
)
{
addCriterion
(
"last_login_time ="
,
value
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -946,14 +882,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeNotEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andLastLoginTimeNotEqualTo
(
Dat
e
value
)
{
addCriterion
(
"last_login_time <>"
,
value
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -963,14 +899,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeGreaterThan
(
LocalDateTim
e
value
)
{
public
Criteria
andLastLoginTimeGreaterThan
(
Dat
e
value
)
{
addCriterion
(
"last_login_time >"
,
value
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -980,14 +916,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeGreaterThanOrEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andLastLoginTimeGreaterThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"last_login_time >="
,
value
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -997,14 +933,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeLessThan
(
LocalDateTim
e
value
)
{
public
Criteria
andLastLoginTimeLessThan
(
Dat
e
value
)
{
addCriterion
(
"last_login_time <"
,
value
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1014,14 +950,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeLessThanOrEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andLastLoginTimeLessThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"last_login_time <="
,
value
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1031,22 +967,22 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeIn
(
List
<
LocalDateTim
e
>
values
)
{
public
Criteria
andLastLoginTimeIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"last_login_time in"
,
values
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeNotIn
(
List
<
LocalDateTim
e
>
values
)
{
public
Criteria
andLastLoginTimeNotIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"last_login_time not in"
,
values
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
public
Criteria
andLastLoginTimeBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"last_login_time between"
,
value1
,
value2
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeNotBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
public
Criteria
andLastLoginTimeNotBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"last_login_time not between"
,
value1
,
value2
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
...
...
@@ -1068,7 +1004,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1085,7 +1021,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1102,7 +1038,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1119,7 +1055,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1136,7 +1072,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1153,7 +1089,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1210,7 +1146,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1227,7 +1163,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1244,7 +1180,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1261,7 +1197,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1278,7 +1214,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1295,7 +1231,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1342,7 +1278,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1359,7 +1295,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1376,7 +1312,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1393,7 +1329,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1410,7 +1346,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1427,7 +1363,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1484,7 +1420,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1501,7 +1437,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1518,7 +1454,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1535,7 +1471,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1552,7 +1488,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1569,7 +1505,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1626,7 +1562,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1643,7 +1579,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1660,7 +1596,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1677,7 +1613,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1694,7 +1630,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1711,7 +1647,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1768,7 +1704,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1785,7 +1721,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1802,7 +1738,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1819,7 +1755,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1836,7 +1772,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1853,7 +1789,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1893,6 +1829,148 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdIsNull
()
{
addCriterion
(
"wechat_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdIsNotNull
()
{
addCriterion
(
"wechat_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdEqualTo
(
String
value
)
{
addCriterion
(
"wechat_id ="
,
value
,
"wechatId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andWechatIdEqualToColumn
(
User
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"wechat_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdNotEqualTo
(
String
value
)
{
addCriterion
(
"wechat_id <>"
,
value
,
"wechatId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andWechatIdNotEqualToColumn
(
User
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"wechat_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdGreaterThan
(
String
value
)
{
addCriterion
(
"wechat_id >"
,
value
,
"wechatId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andWechatIdGreaterThanColumn
(
User
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"wechat_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"wechat_id >="
,
value
,
"wechatId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andWechatIdGreaterThanOrEqualToColumn
(
User
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"wechat_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdLessThan
(
String
value
)
{
addCriterion
(
"wechat_id <"
,
value
,
"wechatId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andWechatIdLessThanColumn
(
User
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"wechat_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"wechat_id <="
,
value
,
"wechatId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andWechatIdLessThanOrEqualToColumn
(
User
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"wechat_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdLike
(
String
value
)
{
addCriterion
(
"wechat_id like"
,
value
,
"wechatId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdNotLike
(
String
value
)
{
addCriterion
(
"wechat_id not like"
,
value
,
"wechatId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"wechat_id in"
,
values
,
"wechatId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"wechat_id not in"
,
values
,
"wechatId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"wechat_id between"
,
value1
,
value2
,
"wechatId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWechatIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"wechat_id not between"
,
value1
,
value2
,
"wechatId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusIsNull
()
{
addCriterion
(
"`status` is null"
);
return
(
Criteria
)
this
;
...
...
@@ -1910,7 +1988,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1927,7 +2005,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1944,7 +2022,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1961,7 +2039,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1978,7 +2056,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -1995,7 +2073,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2035,14 +2113,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andAddTimeEqualTo
(
Dat
e
value
)
{
addCriterion
(
"add_time ="
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2052,14 +2130,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andAddTimeNotEqualTo
(
Dat
e
value
)
{
addCriterion
(
"add_time <>"
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2069,14 +2147,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeGreaterThan
(
LocalDateTim
e
value
)
{
public
Criteria
andAddTimeGreaterThan
(
Dat
e
value
)
{
addCriterion
(
"add_time >"
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2086,14 +2164,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeGreaterThanOrEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andAddTimeGreaterThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"add_time >="
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2103,14 +2181,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeLessThan
(
LocalDateTim
e
value
)
{
public
Criteria
andAddTimeLessThan
(
Dat
e
value
)
{
addCriterion
(
"add_time <"
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2120,14 +2198,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeLessThanOrEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andAddTimeLessThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"add_time <="
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2137,22 +2215,22 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeIn
(
List
<
LocalDateTim
e
>
values
)
{
public
Criteria
andAddTimeIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"add_time in"
,
values
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotIn
(
List
<
LocalDateTim
e
>
values
)
{
public
Criteria
andAddTimeNotIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"add_time not in"
,
values
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
public
Criteria
andAddTimeBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"add_time between"
,
value1
,
value2
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
public
Criteria
andAddTimeNotBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"add_time not between"
,
value1
,
value2
,
"addTime"
);
return
(
Criteria
)
this
;
}
...
...
@@ -2167,14 +2245,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andUpdateTimeEqualTo
(
Dat
e
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2184,14 +2262,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andUpdateTimeNotEqualTo
(
Dat
e
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2201,14 +2279,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
LocalDateTim
e
value
)
{
public
Criteria
andUpdateTimeGreaterThan
(
Dat
e
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2218,14 +2296,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2235,14 +2313,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
LocalDateTim
e
value
)
{
public
Criteria
andUpdateTimeLessThan
(
Dat
e
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2252,14 +2330,14 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
LocalDateTim
e
value
)
{
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Dat
e
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2269,22 +2347,22 @@ public class UserExample {
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
LocalDateTim
e
>
values
)
{
public
Criteria
andUpdateTimeIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
LocalDateTim
e
>
values
)
{
public
Criteria
andUpdateTimeNotIn
(
List
<
Dat
e
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
public
Criteria
andUpdateTimeBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
LocalDateTime
value1
,
LocalDateTim
e
value2
)
{
public
Criteria
andUpdateTimeNotBetween
(
Date
value1
,
Dat
e
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
...
...
@@ -2306,7 +2384,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2323,7 +2401,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2340,7 +2418,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2357,7 +2435,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2374,7 +2452,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2391,7 +2469,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2438,7 +2516,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2455,7 +2533,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2472,7 +2550,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2489,7 +2567,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2506,7 +2584,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2523,7 +2601,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2554,16 +2632,10 @@ public class UserExample {
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table dts_user
*
* @mbg.generated do_not_delete_during_merge
*/
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table
dts_
user
* This field corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2572,7 +2644,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2584,7 +2656,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2595,7 +2667,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2609,7 +2681,7 @@ public class UserExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2620,7 +2692,7 @@ public class UserExample {
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table
dts_
user
* This interface corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2628,7 +2700,7 @@ public class UserExample {
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -2637,12 +2709,6 @@ public class UserExample {
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table dts_user
*
* @mbg.generated
*/
public
static
class
Criterion
{
private
String
condition
;
...
...
ch-dao/src/main/java/com/wwdz/ch/db/mapper/FootprintMapper.java
View file @
87d39627
...
...
@@ -2,55 +2,24 @@ package com.wwdz.ch.db.mapper;
import
com.wwdz.ch.db.domain.Footprint
;
import
com.wwdz.ch.db.domain.FootprintExample
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
FootprintMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
long
countByExample
(
FootprintExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
int
deleteByExample
(
FootprintExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
int
insert
(
Footprint
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
int
insertSelective
(
Footprint
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -59,7 +28,7 @@ public interface FootprintMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -68,82 +37,46 @@ public interface FootprintMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
Footprint
>
selectByExampleSelective
(
@Param
(
"example"
)
FootprintExample
example
,
@Param
(
"selective"
)
Footprint
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
List
<
Footprint
>
selectByExample
(
FootprintExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Footprint
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Long
id
,
@Param
(
"selective"
)
Footprint
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
Footprint
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Footprint
selectByPrimaryKeyWithLogicalDelete
(
@Param
(
"id"
)
Long
id
,
@Param
(
"andLogicalDeleted"
)
boolean
andLogicalDeleted
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
Footprint
record
,
@Param
(
"example"
)
FootprintExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
Footprint
record
,
@Param
(
"example"
)
FootprintExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
Footprint
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_footprint
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
Footprint
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -152,7 +85,7 @@ public interface FootprintMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
footprint
* This method corresponds to the database table footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
ch-dao/src/main/java/com/wwdz/ch/db/mapper/UserMapper.java
View file @
87d39627
...
...
@@ -2,55 +2,24 @@ package com.wwdz.ch.db.mapper;
import
com.wwdz.ch.db.domain.User
;
import
com.wwdz.ch.db.domain.UserExample
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
UserMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
long
countByExample
(
UserExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
int
deleteByExample
(
UserExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
int
insert
(
User
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
int
insertSelective
(
User
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -59,7 +28,7 @@ public interface UserMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -68,82 +37,46 @@ public interface UserMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
User
>
selectByExampleSelective
(
@Param
(
"example"
)
UserExample
example
,
@Param
(
"selective"
)
User
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
List
<
User
>
selectByExample
(
UserExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
User
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Long
id
,
@Param
(
"selective"
)
User
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
User
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
User
selectByPrimaryKeyWithLogicalDelete
(
@Param
(
"id"
)
Long
id
,
@Param
(
"andLogicalDeleted"
)
boolean
andLogicalDeleted
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
User
record
,
@Param
(
"example"
)
UserExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
User
record
,
@Param
(
"example"
)
UserExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
User
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_user
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
User
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -152,7 +85,7 @@ public interface UserMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
user
* This method corresponds to the database table user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
ch-dao/src/main/java/com/wwdz/ch/db/service/DtsFootprintService.java
View file @
87d39627
package
com.wwdz.ch.db.service
;
import
com.github.pagehelper.PageHelper
;
import
com.wwdz.ch.db.mapper.FootprintMapper
;
import
com.wwdz.ch.db.domain.Footprint
;
import
com.wwdz.ch.db.domain.FootprintExample
;
import
com.wwdz.ch.db.mapper.FootprintMapper
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
javax.annotation.Resource
;
import
java.
time.LocalDateTim
e
;
import
java.
util.Dat
e
;
import
java.util.List
;
@Service
...
...
@@ -34,8 +33,8 @@ public class DtsFootprintService {
}
public
void
add
(
Footprint
footprint
)
{
footprint
.
setAddTime
(
LocalDateTime
.
now
());
footprint
.
setUpdateTime
(
LocalDateTime
.
now
());
footprint
.
setAddTime
(
new
Date
());
footprint
.
setUpdateTime
(
new
Date
());
footprintMapper
.
insertSelective
(
footprint
);
}
...
...
@@ -48,7 +47,7 @@ public class DtsFootprintService {
criteria
.
andUserIdEqualTo
(
Long
.
valueOf
(
userId
));
}
if
(!
StringUtils
.
isEmpty
(
coinsId
))
{
criteria
.
and
Coins
IdEqualTo
(
Long
.
valueOf
(
coinsId
));
criteria
.
and
Item
IdEqualTo
(
Long
.
valueOf
(
coinsId
));
}
criteria
.
andDeletedEqualTo
(
false
);
...
...
ch-dao/src/main/java/com/wwdz/ch/db/service/DtsUserService.java
View file @
87d39627
package
com.wwdz.ch.db.service
;
import
java.time.LocalDateTime
;
import
java.util.List
;
import
javax.annotation.Resource
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
com.github.pagehelper.PageHelper
;
import
com.wwdz.ch.db.bean.DayStatis
;
import
com.wwdz.ch.db.mapper.UserAccountObsoleteMapper
;
import
com.wwdz.ch.db.mapper.UserMapper
;
import
com.wwdz.ch.db.mapper.ex.StatMapper
;
import
com.wwdz.ch.db.domain.User
;
import
com.wwdz.ch.db.domain.UserExample
;
import
com.wwdz.ch.db.domain.UserVo
;
import
com.wwdz.ch.db.mapper.UserAccountObsoleteMapper
;
import
com.wwdz.ch.db.mapper.UserMapper
;
import
com.wwdz.ch.db.mapper.ex.StatMapper
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
javax.annotation.Resource
;
import
java.util.Date
;
import
java.util.List
;
@Service
public
class
DtsUserService
{
...
...
@@ -48,13 +46,13 @@ public class DtsUserService {
}
public
void
add
(
User
user
)
{
user
.
setAddTime
(
LocalDateTime
.
now
());
user
.
setUpdateTime
(
LocalDateTime
.
now
());
user
.
setAddTime
(
new
Date
());
user
.
setUpdateTime
(
new
Date
());
userMapper
.
insertSelective
(
user
);
}
public
int
updateById
(
User
user
)
{
user
.
setUpdateTime
(
LocalDateTime
.
now
());
user
.
setUpdateTime
(
new
Date
());
return
userMapper
.
updateByPrimaryKeySelective
(
user
);
}
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/FootprintMapper.xml
View file @
87d39627
...
...
@@ -2,22 +2,14 @@
<!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.FootprintMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.Footprint"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"user_id"
jdbcType=
"BIGINT"
property=
"userId"
/>
<result
column=
"
coins_id"
jdbcType=
"BIGINT"
property=
"coins
Id"
/>
<result
column=
"
item_id"
jdbcType=
"BIGINT"
property=
"item
Id"
/>
<result
column=
"add_time"
jdbcType=
"TIMESTAMP"
property=
"addTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"deleted"
jdbcType=
"BIT"
property=
"deleted"
/>
</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"
>
...
...
@@ -47,10 +39,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"
>
...
...
@@ -80,21 +68,14 @@
</where>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, user_id, coins_id, add_time, update_time, deleted
id, user_id, item_id, add_time, update_time, deleted
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.FootprintExample"
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 footprint
<if
test=
"_parameter != null"
>
...
...
@@ -111,6 +92,7 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if
test=
"example.distinct"
>
distinct
</if>
...
...
@@ -121,7 +103,7 @@
</foreach>
</when>
<otherwise>
id, user_id,
coins
_id, add_time, update_time, deleted
id, user_id,
item
_id, add_time, update_time, deleted
</otherwise>
</choose>
from footprint
...
...
@@ -133,10 +115,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 footprint
...
...
@@ -148,10 +126,6 @@
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from footprint
...
...
@@ -180,48 +154,32 @@
</foreach>
</when>
<otherwise>
id, user_id,
coins
_id, add_time, update_time, deleted
id, user_id,
item
_id, add_time, update_time, deleted
</otherwise>
</choose>
from footprint
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 footprint
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.FootprintExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from footprint
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.Footprint"
>
<!--
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 footprint (user_id,
coins
_id, add_time,
insert into footprint (user_id,
item
_id, add_time,
update_time, deleted)
values (#{userId,jdbcType=BIGINT}, #{
coins
Id,jdbcType=BIGINT}, #{addTime,jdbcType=TIMESTAMP},
values (#{userId,jdbcType=BIGINT}, #{
item
Id,jdbcType=BIGINT}, #{addTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.Footprint"
>
<!--
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>
...
...
@@ -230,8 +188,8 @@
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"
coins
Id != null"
>
coins
_id,
<if
test=
"
item
Id != null"
>
item
_id,
</if>
<if
test=
"addTime != null"
>
add_time,
...
...
@@ -247,8 +205,8 @@
<if
test=
"userId != null"
>
#{userId,jdbcType=BIGINT},
</if>
<if
test=
"
coins
Id != null"
>
#{
coins
Id,jdbcType=BIGINT},
<if
test=
"
item
Id != null"
>
#{
item
Id,jdbcType=BIGINT},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
...
...
@@ -262,20 +220,12 @@
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.FootprintExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from footprint
<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 footprint
<set>
<if
test=
"record.id != null"
>
...
...
@@ -284,8 +234,8 @@
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=BIGINT},
</if>
<if
test=
"record.
coins
Id != null"
>
coins_id = #{record.coins
Id,jdbcType=BIGINT},
<if
test=
"record.
item
Id != null"
>
item_id = #{record.item
Id,jdbcType=BIGINT},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
...
...
@@ -302,14 +252,10 @@
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update footprint
set id = #{record.id,jdbcType=BIGINT},
user_id = #{record.userId,jdbcType=BIGINT},
coins_id = #{record.coins
Id,jdbcType=BIGINT},
item_id = #{record.item
Id,jdbcType=BIGINT},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT}
...
...
@@ -318,17 +264,13 @@
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.Footprint"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update footprint
<set>
<if
test=
"userId != null"
>
user_id = #{userId,jdbcType=BIGINT},
</if>
<if
test=
"
coins
Id != null"
>
coins_id = #{coins
Id,jdbcType=BIGINT},
<if
test=
"
item
Id != null"
>
item_id = #{item
Id,jdbcType=BIGINT},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
...
...
@@ -343,13 +285,9 @@
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.Footprint"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update footprint
set user_id = #{userId,jdbcType=BIGINT},
coins_id = #{coins
Id,jdbcType=BIGINT},
item_id = #{item
Id,jdbcType=BIGINT},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT}
...
...
@@ -362,6 +300,7 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from footprint
<if
test=
"_parameter != null"
>
...
...
@@ -379,6 +318,7 @@
@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=
","
>
...
...
@@ -386,7 +326,7 @@
</foreach>
</when>
<otherwise>
id, user_id,
coins
_id, add_time, update_time, deleted
id, user_id,
item
_id, add_time, update_time, deleted
</otherwise>
</choose>
from footprint
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/UserMapper.xml
View file @
87d39627
...
...
@@ -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.mapper.UserMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.User"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"username"
jdbcType=
"VARCHAR"
property=
"username"
/>
<result
column=
"password"
jdbcType=
"VARCHAR"
property=
"password"
/>
...
...
@@ -18,6 +14,7 @@
<result
column=
"mobile"
jdbcType=
"VARCHAR"
property=
"mobile"
/>
<result
column=
"avatar"
jdbcType=
"VARCHAR"
property=
"avatar"
/>
<result
column=
"weixin_openid"
jdbcType=
"VARCHAR"
property=
"weixinOpenid"
/>
<result
column=
"wechat_id"
jdbcType=
"VARCHAR"
property=
"wechatId"
/>
<result
column=
"status"
jdbcType=
"TINYINT"
property=
"status"
/>
<result
column=
"add_time"
jdbcType=
"TIMESTAMP"
property=
"addTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
...
...
@@ -25,10 +22,6 @@
<result
column=
"share_user_id"
jdbcType=
"BIGINT"
property=
"shareUserId"
/>
</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"
>
...
...
@@ -58,10 +51,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"
>
...
...
@@ -91,23 +80,16 @@
</where>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level,
nickname, mobile, avatar, weixin_openid,
`status`, add_time, update_time, deleted
,
share_user_id
nickname, mobile, avatar, weixin_openid,
wechat_id, `status`, add_time, update_time
,
deleted,
share_user_id
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.UserExample"
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 user
<if
test=
"_parameter != null"
>
...
...
@@ -124,6 +106,7 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if
test=
"example.distinct"
>
distinct
</if>
...
...
@@ -135,8 +118,8 @@
</when>
<otherwise>
id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level,
nickname, mobile, avatar, weixin_openid,
`status`, add_time, update_time, deleted
,
share_user_id
nickname, mobile, avatar, weixin_openid,
wechat_id, `status`, add_time, update_time
,
deleted,
share_user_id
</otherwise>
</choose>
from user
...
...
@@ -148,10 +131,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 user
...
...
@@ -163,10 +142,6 @@
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from user
...
...
@@ -196,57 +171,41 @@
</when>
<otherwise>
id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level,
nickname, mobile, avatar, weixin_openid,
`status`, add_time, update_time, deleted
,
share_user_id
nickname, mobile, avatar, weixin_openid,
wechat_id, `status`, add_time, update_time
,
deleted,
share_user_id
</otherwise>
</choose>
from user
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 user
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.UserExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from user
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.User"
>
<!--
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 user (username, `password`, gender,
birthday, last_login_time, last_login_ip,
user_level, nickname, mobile,
avatar, weixin_openid,
`status`
,
add_time, update_time, deleted
,
share_user_id)
avatar, weixin_openid,
wechat_id
,
`status`, add_time, update_time
,
deleted,
share_user_id)
values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT},
#{birthday,jdbcType=DATE}, #{lastLoginTime,jdbcType=TIMESTAMP}, #{lastLoginIp,jdbcType=VARCHAR},
#{userLevel,jdbcType=TINYINT}, #{nickname,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR},
#{avatar,jdbcType=VARCHAR}, #{weixinOpenid,jdbcType=VARCHAR}, #{
status,jdbcType=TINYINT
},
#{
addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT
},
#{shareUserId,jdbcType=BIGINT})
#{avatar,jdbcType=VARCHAR}, #{weixinOpenid,jdbcType=VARCHAR}, #{
wechatId,jdbcType=VARCHAR
},
#{
status,jdbcType=TINYINT}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP
},
#{
deleted,jdbcType=BIT}, #{
shareUserId,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.User"
>
<!--
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>
...
...
@@ -285,6 +244,9 @@
<if
test=
"weixinOpenid != null"
>
weixin_openid,
</if>
<if
test=
"wechatId != null"
>
wechat_id,
</if>
<if
test=
"status != null"
>
`status`,
</if>
...
...
@@ -335,6 +297,9 @@
<if
test=
"weixinOpenid != null"
>
#{weixinOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"wechatId != null"
>
#{wechatId,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=TINYINT},
</if>
...
...
@@ -353,20 +318,12 @@
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.UserExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from user
<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 user
<set>
<if
test=
"record.id != null"
>
...
...
@@ -405,6 +362,9 @@
<if
test=
"record.weixinOpenid != null"
>
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"record.wechatId != null"
>
wechat_id = #{record.wechatId,jdbcType=VARCHAR},
</if>
<if
test=
"record.status != null"
>
`status` = #{record.status,jdbcType=TINYINT},
</if>
...
...
@@ -426,10 +386,6 @@
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update user
set id = #{record.id,jdbcType=BIGINT},
username = #{record.username,jdbcType=VARCHAR},
...
...
@@ -443,6 +399,7 @@
mobile = #{record.mobile,jdbcType=VARCHAR},
avatar = #{record.avatar,jdbcType=VARCHAR},
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
wechat_id = #{record.wechatId,jdbcType=VARCHAR},
`status` = #{record.status,jdbcType=TINYINT},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
...
...
@@ -453,10 +410,6 @@
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.User"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update user
<set>
<if
test=
"username != null"
>
...
...
@@ -492,6 +445,9 @@
<if
test=
"weixinOpenid != null"
>
weixin_openid = #{weixinOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"wechatId != null"
>
wechat_id = #{wechatId,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
`status` = #{status,jdbcType=TINYINT},
</if>
...
...
@@ -511,10 +467,6 @@
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.User"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update user
set username = #{username,jdbcType=VARCHAR},
`password` = #{password,jdbcType=VARCHAR},
...
...
@@ -527,6 +479,7 @@
mobile = #{mobile,jdbcType=VARCHAR},
avatar = #{avatar,jdbcType=VARCHAR},
weixin_openid = #{weixinOpenid,jdbcType=VARCHAR},
wechat_id = #{wechatId,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
...
...
@@ -541,6 +494,7 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from user
<if
test=
"_parameter != null"
>
...
...
@@ -558,6 +512,7 @@
@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=
","
>
...
...
@@ -566,8 +521,8 @@
</when>
<otherwise>
id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level,
nickname, mobile, avatar, weixin_openid,
`status`, add_time, update_time, deleted
,
share_user_id
nickname, mobile, avatar, weixin_openid,
wechat_id, `status`, add_time, update_time
,
deleted,
share_user_id
</otherwise>
</choose>
from user
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/dao/UserInfo.java
View file @
87d39627
...
...
@@ -26,6 +26,8 @@ public class UserInfo implements Serializable {
private
Byte
status
;
//状态
private
String
registerDate
;
//注册日期
// 微信号
private
String
wechatId
;
public
String
getCountry
()
{
return
country
;
...
...
@@ -99,6 +101,14 @@ public class UserInfo implements Serializable {
this
.
phone
=
phone
;
}
public
String
getWechatId
()
{
return
wechatId
;
}
public
void
setWechatId
(
String
wechatId
)
{
this
.
wechatId
=
phone
;
}
public
Byte
getUserLevel
()
{
return
userLevel
;
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/request/UserRequestDto.java
0 → 100644
View file @
87d39627
package
com.wwdz.ch.wx.entity.request
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
@Data
public
class
UserRequestDto
implements
Entity
{
private
Long
userId
;
private
String
mobile
;
private
String
code
;
private
String
avatarUrl
;
private
Long
shareUserId
;
private
String
nickname
;
private
String
wechatId
;
private
String
beforeMobile
;
private
String
afterMobile
;
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/
service/
impl/CategoryImpl.java
→
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/CategoryImpl.java
View file @
87d39627
package
com.wwdz.ch.wx.
service.
impl
;
package
com.wwdz.ch.wx.impl
;
import
com.wwdz.ch.wx.service.CategoryService
;
import
org.springframework.stereotype.Service
;
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/
service/
impl/FavoritesServiceImpl.java
→
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/FavoritesServiceImpl.java
View file @
87d39627
package
com.wwdz.ch.wx.
service.
impl
;
package
com.wwdz.ch.wx.impl
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dao.UserItemsRelationDao
;
...
...
@@ -31,11 +31,11 @@ public class FavoritesServiceImpl implements FavoritesService {
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
FavoritesServiceImpl
.
class
);
@Autowired
private
FavoritesDao
favorites
Manager
;
private
FavoritesDao
favorites
Dao
;
@Autowired
private
FavoritesItemsRelationDao
favoritesItemsRelation
Manager
;
private
FavoritesItemsRelationDao
favoritesItemsRelation
Dao
;
@Autowired
private
UserItemsRelationDao
userItemsRelation
Manager
;
private
UserItemsRelationDao
userItemsRelation
Dao
;
@Autowired
private
ItemManager
itemManager
;
...
...
@@ -53,7 +53,7 @@ public class FavoritesServiceImpl implements FavoritesService {
favorites
.
setUpdateTime
(
date
);
favorites
.
setDeleted
(
false
);
favorites
.
setSort
(
1
);
favorites
Manager
.
insert
(
favorites
);
favorites
Dao
.
insert
(
favorites
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"新建默认收藏册失败,原因:"
+
e
.
getMessage
(),
e
);
...
...
@@ -65,7 +65,7 @@ public class FavoritesServiceImpl implements FavoritesService {
@Override
public
Result
page
(
FavoritesRequestDto
dto
)
{
try
{
return
Result
.
success
(
favorites
Manager
.
pageByUserId
(
dto
.
getUserId
(),
dto
.
getPage
(),
dto
.
getSize
()));
return
Result
.
success
(
favorites
Dao
.
pageByUserId
(
dto
.
getUserId
(),
dto
.
getPage
(),
dto
.
getSize
()));
}
catch
(
Exception
e
)
{
logger
.
error
(
"查询收藏册列表失败,原因:"
+
e
.
getMessage
(),
e
);
return
Result
.
failed
(-
1
,
"查询收藏册列表失败"
);
...
...
@@ -75,7 +75,7 @@ public class FavoritesServiceImpl implements FavoritesService {
@Override
public
Result
list
(
FavoritesRequestDto
dto
)
{
try
{
return
Result
.
success
(
favorites
Manager
.
listByUserId
(
dto
.
getUserId
()));
return
Result
.
success
(
favorites
Dao
.
listByUserId
(
dto
.
getUserId
()));
}
catch
(
Exception
e
)
{
logger
.
error
(
"获取收藏册列表失败,原因:"
+
e
.
getMessage
(),
e
);
return
Result
.
failed
(-
1
,
"获取收藏册列表失败"
);
...
...
@@ -87,7 +87,7 @@ public class FavoritesServiceImpl implements FavoritesService {
public
Result
add
(
FavoritesRequestDto
dto
)
{
try
{
// 判断收藏册标题是否已存在
if
(
favorites
Manager
.
isExisted
(
null
,
dto
.
getUserId
(),
dto
.
getTitle
()))
{
if
(
favorites
Dao
.
isExisted
(
null
,
dto
.
getUserId
(),
dto
.
getTitle
()))
{
return
Result
.
failed
(-
1
,
"收藏册的标题不能重复"
);
}
...
...
@@ -101,7 +101,7 @@ public class FavoritesServiceImpl implements FavoritesService {
favorites
.
setUpdateTime
(
date
);
favorites
.
setDeleted
(
false
);
favorites
.
setSort
(
0
);
favorites
Manager
.
insert
(
favorites
);
favorites
Dao
.
insert
(
favorites
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"新增收藏册失败,原因:"
+
e
.
getMessage
(),
e
);
...
...
@@ -114,12 +114,12 @@ public class FavoritesServiceImpl implements FavoritesService {
@Override
public
Result
update
(
FavoritesRequestDto
dto
)
{
try
{
Favorites
favorites
=
favorites
Manager
.
info
(
dto
.
getId
());
Favorites
favorites
=
favorites
Dao
.
info
(
dto
.
getId
());
if
(
Objects
.
isNull
(
favorites
))
{
return
Result
.
failed
(
"数据异常,记录不存在"
);
}
// 判断收藏册标题是否已存在
if
(
favorites
Manager
.
isExisted
(
dto
.
getId
(),
dto
.
getUserId
(),
dto
.
getTitle
()))
{
if
(
favorites
Dao
.
isExisted
(
dto
.
getId
(),
dto
.
getUserId
(),
dto
.
getTitle
()))
{
return
Result
.
failed
(
"收藏册的标题不能重复"
);
}
...
...
@@ -127,7 +127,7 @@ public class FavoritesServiceImpl implements FavoritesService {
favorites
.
setDescription
(
dto
.
getDescription
());
favorites
.
setImages
(
dto
.
getImages
());
favorites
.
setUpdateTime
(
new
Date
());
favorites
Manager
.
update
(
favorites
);
favorites
Dao
.
update
(
favorites
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"新增收藏册失败,原因:"
+
e
.
getMessage
(),
e
);
...
...
@@ -139,7 +139,7 @@ public class FavoritesServiceImpl implements FavoritesService {
@Override
public
Result
info
(
FavoritesRequestDto
dto
)
{
try
{
Favorites
favorites
=
favorites
Manager
.
info
(
dto
.
getId
());
Favorites
favorites
=
favorites
Dao
.
info
(
dto
.
getId
());
if
(
Objects
.
isNull
(
favorites
))
{
return
Result
.
failed
(
"数据异常,记录不存在"
);
}
...
...
@@ -154,13 +154,13 @@ public class FavoritesServiceImpl implements FavoritesService {
@Override
public
Result
delete
(
FavoritesRequestDto
dto
)
{
try
{
List
<
FavoritesItemsRelation
>
favoritesItemsList
=
favoritesItemsRelation
Manager
.
listByFavoritesId
(
dto
.
getId
(),
null
);
List
<
FavoritesItemsRelation
>
favoritesItemsList
=
favoritesItemsRelation
Dao
.
listByFavoritesId
(
dto
.
getId
(),
null
);
if
(
CollectionUtils
.
isNotEmpty
(
favoritesItemsList
))
{
return
Result
.
failed
(
"收藏册内有藏品,请先移除藏品"
);
}
// 删除收藏册
favorites
Manager
.
delete
(
dto
.
getId
(),
null
);
favorites
Dao
.
delete
(
dto
.
getId
(),
null
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"删除收藏册失败,原因:"
+
e
.
getMessage
(),
e
);
...
...
@@ -174,11 +174,11 @@ public class FavoritesServiceImpl implements FavoritesService {
public
Result
batchDelete
(
FavoritesRequestDto
dto
)
{
try
{
// 批量删除收藏册下用户创建的钱币
List
<
FavoritesItemsRelation
>
list
=
favoritesItemsRelation
Manager
.
listByFavoritesId
(
null
,
dto
.
getIds
());
List
<
FavoritesItemsRelation
>
list
=
favoritesItemsRelation
Dao
.
listByFavoritesId
(
null
,
dto
.
getIds
());
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
List
<
Long
>
favoritesItemsIds
=
list
.
stream
()
.
map
(
FavoritesItemsRelation:
:
getItemId
).
collect
(
Collectors
.
toList
());
List
<
UserItemsRelation
>
usersItemsList
=
userItemsRelation
Manager
.
listByUserIds
(
dto
.
getUserId
(),
null
);
List
<
UserItemsRelation
>
usersItemsList
=
userItemsRelation
Dao
.
listByUserIds
(
dto
.
getUserId
(),
null
);
if
(
CollectionUtils
.
isNotEmpty
(
usersItemsList
))
{
List
<
Long
>
usersItemsIds
=
usersItemsList
.
stream
()
.
map
(
UserItemsRelation:
:
getItemId
).
collect
(
Collectors
.
toList
());
...
...
@@ -191,10 +191,10 @@ public class FavoritesServiceImpl implements FavoritesService {
}
// 删除收藏册和钱币的关联
favoritesItemsRelation
Manager
.
deleteByFavoritesId
(
null
,
dto
.
getIds
());
favoritesItemsRelation
Dao
.
deleteByFavoritesId
(
null
,
dto
.
getIds
());
// 删除收藏册
favorites
Manager
.
delete
(
null
,
dto
.
getIds
());
favorites
Dao
.
delete
(
null
,
dto
.
getIds
());
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"批量删除收藏册失败,原因:"
+
e
.
getMessage
(),
e
);
...
...
@@ -208,7 +208,7 @@ public class FavoritesServiceImpl implements FavoritesService {
public
Result
removeItem
(
ItemRequestDto
dto
)
{
try
{
// 批量删除收藏册下用户创建的钱币
List
<
UserItemsRelation
>
usersItemsList
=
userItemsRelation
Manager
.
listByUserIds
(
dto
.
getUserId
(),
null
);
List
<
UserItemsRelation
>
usersItemsList
=
userItemsRelation
Dao
.
listByUserIds
(
dto
.
getUserId
(),
null
);
if
(
CollectionUtils
.
isNotEmpty
(
usersItemsList
))
{
List
<
Long
>
usersItemsIds
=
usersItemsList
.
stream
()
.
map
(
UserItemsRelation:
:
getItemId
).
collect
(
Collectors
.
toList
());
...
...
@@ -220,7 +220,7 @@ public class FavoritesServiceImpl implements FavoritesService {
}
// 删除收藏册和钱币的关联
favoritesItemsRelation
Manager
.
deleteByChosen
(
dto
.
getFavoritesId
(),
dto
.
getItemIds
());
favoritesItemsRelation
Dao
.
deleteByChosen
(
dto
.
getFavoritesId
(),
dto
.
getItemIds
());
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
info
(
"收藏册取消收藏失败,原因:"
+
e
.
getMessage
(),
e
);
...
...
@@ -234,7 +234,7 @@ public class FavoritesServiceImpl implements FavoritesService {
public
Result
moveItem
(
ItemRequestDto
dto
)
{
try
{
// 删除原收藏册和藏品关联记录
favoritesItemsRelation
Manager
.
deleteByChosen
(
dto
.
getBeforeFavoritesId
(),
dto
.
getItemIds
());
favoritesItemsRelation
Dao
.
deleteByChosen
(
dto
.
getBeforeFavoritesId
(),
dto
.
getItemIds
());
// 新增新收藏册和藏品关联记录
Date
now
=
new
Date
();
...
...
@@ -247,7 +247,7 @@ public class FavoritesServiceImpl implements FavoritesService {
list
.
add
(
record
);
}
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
favoritesItemsRelation
Manager
.
batchInsert
(
list
);
favoritesItemsRelation
Dao
.
batchInsert
(
list
);
}
return
Result
.
success
();
}
catch
(
Exception
e
)
{
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/
service/
impl/ItemServiceImpl.java
→
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
View file @
87d39627
package
com.wwdz.ch.wx.
service.
impl
;
package
com.wwdz.ch.wx.impl
;
import
com.wwdz.ch.core.consts.CommonEnum
;
import
com.wwdz.ch.core.type.Result
;
...
...
@@ -20,7 +20,9 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Objects
;
@Service
...
...
@@ -35,6 +37,17 @@ public class ItemServiceImpl implements ItemService {
@Autowired
private
CategoryManager
categoryManager
;
@Override
public
Result
page
(
ItemRequestDto
dto
)
{
return
null
;
}
@Override
public
Result
list
(
ItemRequestDto
dto
)
{
return
null
;
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
Result
add
(
ItemRequestDto
dto
)
{
...
...
@@ -115,8 +128,49 @@ public class ItemServiceImpl implements ItemService {
if
(
null
==
item
.
getId
())
{
return
Result
.
failed
(
"数据异常,该藏品不存在"
);
}
item
.
setName
(
dto
.
getName
());
item
.
setCid
(
dto
.
getCid
());
item
.
setImages
(
dto
.
getImages
());
item
.
setPrice
(
Long
.
parseLong
(
dto
.
getPrice
())
*
100
);
item
.
setDetail
(
dto
.
getDetail
());
Date
now
=
new
Date
();
item
.
setUpdateTime
(
now
);
item
.
setSourceType
(
CommonEnum
.
SourceTypeEnum
.
USER_UPLOAD
.
getCode
());
item
.
setIsDeleted
(
false
);
itemManager
.
update
(
item
);
// 删除藏品和原收藏册关联
List
<
Long
>
itemIds
=
new
ArrayList
<>();
itemIds
.
add
(
item
.
getId
());
favoritesItemsRelationManager
.
deleteByChosen
(
dto
.
getBeforeFavoritesId
(),
itemIds
);
// 新增藏品和新收藏册关联
FavoritesItemsRelation
favoritesItemsRelation
=
new
FavoritesItemsRelation
();
favoritesItemsRelation
.
setUserId
(
dto
.
getUserId
());
favoritesItemsRelation
.
setFavoritesId
(
dto
.
getAfterFavoritesId
());
favoritesItemsRelation
.
setItemId
(
item
.
getId
());
favoritesItemsRelationManager
.
insert
(
favoritesItemsRelation
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"修改藏品失败,原因:"
+
e
.
getMessage
(),
e
);
return
Result
.
failed
(
"修改藏品失败"
);
}
}
@Override
public
Result
update
(
ItemRequestDto
dto
)
{
try
{
Item
item
=
itemManager
.
findDetails
(
dto
.
getId
());
if
(
null
==
item
.
getId
())
{
return
Result
.
failed
(
"数据异常,该藏品不存在"
);
}
// 新增藏品和收藏册关联
FavoritesItemsRelation
favoritesItemsRelation
=
new
FavoritesItemsRelation
();
favoritesItemsRelation
.
setUserId
(
dto
.
getUserId
());
favoritesItemsRelation
.
setFavoritesId
(
dto
.
getFavoritesId
());
favoritesItemsRelation
.
setItemId
(
item
.
getId
());
favoritesItemsRelationManager
.
insert
(
favoritesItemsRelation
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"收藏藏品失败,原因:"
+
e
.
getMessage
(),
e
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
0 → 100644
View file @
87d39627
package
com.wwdz.ch.wx.impl
;
import
cn.binarywang.wx.miniapp.api.WxMaService
;
import
cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult
;
import
com.alibaba.fastjson.JSONObject
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.UserTypeEnum
;
import
com.wwdz.ch.db.dao.UserDao
;
import
com.wwdz.ch.db.domain.User
;
import
com.wwdz.ch.wx.dao.UserInfo
;
import
com.wwdz.ch.wx.dao.UserToken
;
import
com.wwdz.ch.wx.dao.WxLoginInfo
;
import
com.wwdz.ch.wx.entity.request.UserRequestDto
;
import
com.wwdz.ch.wx.service.CaptchaCodeManager
;
import
com.wwdz.ch.wx.service.UserService
;
import
com.wwdz.ch.wx.service.UserTokenManager
;
import
com.wwdz.ch.wx.util.IpUtil
;
import
com.wwdz.ch.wx.util.StringUtil
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
javax.servlet.http.HttpServletRequest
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Objects
;
@Service
public
class
UserServiceImpl
implements
UserService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
UserServiceImpl
.
class
);
@Autowired
private
UserDao
userDao
;
@Autowired
private
WxMaService
wxMaService
;
@Autowired
private
UserTokenManager
userTokenManager
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
Result
loginByWx
(
WxLoginInfo
wxLoginInfo
,
HttpServletRequest
request
)
{
try
{
String
code
=
wxLoginInfo
.
getCode
();
UserInfo
userInfo
=
wxLoginInfo
.
getUserInfo
();
if
(
StringUtils
.
isBlank
(
code
)
||
Objects
.
isNull
(
userInfo
))
{
return
Result
.
failed
(
401
,
"参数不对"
);
}
Long
shareUserId
=
wxLoginInfo
.
getShareUserId
();
String
sessionKey
=
null
;
String
openId
=
null
;
try
{
WxMaJscode2SessionResult
result
=
wxMaService
.
getUserService
().
getSessionInfo
(
code
);
sessionKey
=
result
.
getSessionKey
();
openId
=
result
.
getOpenid
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"微信登录,调用官方接口失败:{}"
,
code
,
e
);
return
Result
.
failed
(
"微信登录失败,获取openid失败"
);
}
if
(
sessionKey
==
null
||
openId
==
null
)
{
logger
.
error
(
"微信登录,调用官方接口失败:{}"
,
code
);
return
Result
.
failed
(
"微信登录失败,获取openid失败"
);
}
User
user
=
userDao
.
queryByOid
(
openId
);
if
(
user
==
null
)
{
user
=
new
User
();
user
.
setUsername
(
openId
);
user
.
setPassword
(
openId
);
user
.
setWeixinOpenid
(
openId
);
user
.
setAvatar
(
userInfo
.
getAvatarUrl
());
user
.
setNickname
(
"微信用户"
+
StringUtil
.
generateRandomString
(
10
));
user
.
setGender
((
byte
)
0
);
user
.
setUserLevel
((
byte
)
0
);
user
.
setStatus
((
byte
)
0
);
user
.
setLastLoginTime
(
new
Date
());
user
.
setLastLoginIp
(
IpUtil
.
client
(
request
));
user
.
setShareUserId
(
shareUserId
);
userDao
.
insert
(
user
);
}
else
{
user
.
setLastLoginTime
(
new
Date
());
user
.
setLastLoginIp
(
IpUtil
.
client
(
request
));
if
(
userDao
.
updateById
(
user
)
==
0
)
{
return
Result
.
failed
(
505
,
"更新用户数据失败"
);
}
}
// token
UserToken
userToken
=
null
;
try
{
userToken
=
userTokenManager
.
generateToken
(
user
.
getId
());
}
catch
(
Exception
e
)
{
logger
.
error
(
"微信登录失败,生成token失败:{}"
,
user
.
getId
(),
e
);
return
Result
.
failed
(
"微信登录失败,生成token失败"
);
}
userToken
.
setSessionKey
(
sessionKey
);
Map
<
Object
,
Object
>
result
=
new
HashMap
<
Object
,
Object
>();
result
.
put
(
"token"
,
userToken
.
getToken
());
result
.
put
(
"tokenExpire"
,
userToken
.
getExpireTime
().
toString
());
userInfo
.
setUserId
(
user
.
getId
());
userInfo
.
setWechatId
(
user
.
getWechatId
());
if
(!
StringUtils
.
isEmpty
(
user
.
getMobile
()))
{
// 手机号存在则设置
userInfo
.
setPhone
(
user
.
getMobile
());
}
try
{
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
registerDate
=
simpleDateFormat
.
format
(
user
.
getAddTime
()
!=
null
?
user
.
getAddTime
()
:
new
Date
());
userInfo
.
setRegisterDate
(
registerDate
);
userInfo
.
setStatus
(
user
.
getStatus
());
userInfo
.
setUserLevel
(
user
.
getUserLevel
());
// 用户层级
userInfo
.
setUserLevelDesc
(
UserTypeEnum
.
getInstance
(
user
.
getUserLevel
()).
getDesc
());
// 用户层级描述
}
catch
(
Exception
e
)
{
logger
.
error
(
"微信登录:设置用户指定信息出错:"
+
e
.
getMessage
(),
e
);
}
result
.
put
(
"userInfo"
,
userInfo
);
logger
.
info
(
"【请求结束】微信登录,响应结果:{}"
,
JSONObject
.
toJSONString
(
result
));
return
Result
.
success
(
result
);
}
catch
(
Exception
e
){
logger
.
error
(
"微信登录失败"
,
e
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
return
Result
.
failed
(
"微信登录失败"
);
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
Result
loginByMobile
(
UserRequestDto
dto
,
HttpServletRequest
request
)
{
try
{
String
mobileCode
=
CaptchaCodeManager
.
getCachedCaptcha
(
dto
.
getMobile
());
if
(!
StringUtils
.
equals
(
dto
.
getCode
(),
mobileCode
))
{
return
Result
.
failed
(
"验证码不正确"
);
}
User
user
=
userDao
.
queryByMobile
(
dto
.
getMobile
());
if
(
Objects
.
isNull
(
user
))
{
String
openId
=
""
;
try
{
WxMaJscode2SessionResult
result
=
wxMaService
.
getUserService
().
getSessionInfo
(
dto
.
getCode
());
openId
=
result
.
getOpenid
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"微信登录,调用官方接口失败:{}"
,
dto
.
getCode
(),
e
);
return
Result
.
failed
(
"手机号登录失败,获取openid失败"
);
}
if
(
StringUtils
.
isBlank
(
openId
))
{
return
Result
.
failed
(
"手机号登录失败,获取openid失败"
);
}
user
=
new
User
();
user
.
setUsername
(
openId
);
user
.
setPassword
(
openId
);
user
.
setWeixinOpenid
(
openId
);
user
.
setAvatar
(
dto
.
getAvatarUrl
());
user
.
setNickname
(
"微信用户"
+
StringUtil
.
generateRandomString
(
10
));
user
.
setGender
((
byte
)
0
);
user
.
setUserLevel
((
byte
)
0
);
user
.
setStatus
((
byte
)
0
);
user
.
setLastLoginTime
(
new
Date
());
user
.
setLastLoginIp
(
IpUtil
.
client
(
request
));
user
.
setShareUserId
(
dto
.
getShareUserId
());
userDao
.
insert
(
user
);
}
else
{
user
.
setLastLoginTime
(
new
Date
());
user
.
setLastLoginIp
(
IpUtil
.
client
(
request
));
if
(
userDao
.
updateById
(
user
)
==
0
)
{
return
Result
.
failed
(
505
,
"更新用户数据失败"
);
}
}
// token
UserToken
userToken
=
null
;
try
{
userToken
=
userTokenManager
.
generateToken
(
user
.
getId
());
}
catch
(
Exception
e
)
{
logger
.
error
(
"手机号登录失败,生成token失败:{}"
,
user
.
getId
(),
e
);
return
Result
.
failed
(
"手机号登录失败,生成token失败"
);
}
Map
<
Object
,
Object
>
result
=
new
HashMap
<
Object
,
Object
>();
result
.
put
(
"token"
,
userToken
.
getToken
());
result
.
put
(
"tokenExpire"
,
userToken
.
getExpireTime
().
toString
());
UserInfo
userInfo
=
new
UserInfo
();
userInfo
.
setUserId
(
user
.
getId
());
userInfo
.
setPhone
(
user
.
getMobile
());
userInfo
.
setAvatarUrl
(
user
.
getAvatar
());
userInfo
.
setGender
(
user
.
getGender
());
userInfo
.
setNickName
(
user
.
getNickname
());
userInfo
.
setWechatId
(
user
.
getWechatId
());
try
{
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
registerDate
=
simpleDateFormat
.
format
(
user
.
getAddTime
()
!=
null
?
user
.
getAddTime
()
:
new
Date
());
userInfo
.
setRegisterDate
(
registerDate
);
userInfo
.
setStatus
(
user
.
getStatus
());
userInfo
.
setUserLevel
(
user
.
getUserLevel
());
// 用户层级
userInfo
.
setUserLevelDesc
(
UserTypeEnum
.
getInstance
(
user
.
getUserLevel
()).
getDesc
());
// 用户层级描述
}
catch
(
Exception
e
)
{
logger
.
error
(
"手机号登录:设置用户指定信息出错:"
+
e
.
getMessage
(),
e
);
}
result
.
put
(
"userInfo"
,
userInfo
);
logger
.
info
(
"【请求结束】手机号登录,响应结果:{}"
,
JSONObject
.
toJSONString
(
result
));
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"手机号登录失败"
,
e
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
return
Result
.
failed
(
"手机号登录失败"
);
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
Result
updateNickname
(
UserRequestDto
dto
)
{
try
{
User
user
=
userDao
.
queryById
(
dto
.
getUserId
());
if
(
Objects
.
isNull
(
user
))
{
return
Result
.
failed
(
"数据异常,用户不存在"
);
}
user
.
setNickname
(
dto
.
getNickname
());
userDao
.
updateById
(
user
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"用户修改昵称失败"
,
e
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
return
Result
.
failed
(
"修改昵称失败"
);
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
Result
updateAvatar
(
UserRequestDto
dto
)
{
try
{
User
user
=
userDao
.
queryById
(
dto
.
getUserId
());
if
(
Objects
.
isNull
(
user
))
{
return
Result
.
failed
(
"数据异常,用户不存在"
);
}
user
.
setAvatar
(
dto
.
getAvatarUrl
());
userDao
.
updateById
(
user
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"用户修改头像失败"
,
e
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
return
Result
.
failed
(
"修改头像失败"
);
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
Result
bindWechatId
(
UserRequestDto
dto
)
{
try
{
User
user
=
userDao
.
queryById
(
dto
.
getUserId
());
if
(
Objects
.
isNull
(
user
))
{
return
Result
.
failed
(
"数据异常,用户不存在"
);
}
user
.
setWechatId
(
dto
.
getWechatId
());
userDao
.
updateById
(
user
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"用户绑定微信号失败"
,
e
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
return
Result
.
failed
(
"绑定微信号失败"
);
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
Result
updateMobile
(
UserRequestDto
dto
)
{
try
{
User
user
=
userDao
.
queryById
(
dto
.
getUserId
());
if
(
Objects
.
isNull
(
user
))
{
return
Result
.
failed
(
"数据异常,用户不存在"
);
}
if
(!
StringUtils
.
equals
(
user
.
getMobile
(),
dto
.
getBeforeMobile
()))
{
return
Result
.
failed
(
"原手机号码不正确"
);
}
String
mobileCode
=
CaptchaCodeManager
.
getCachedCaptcha
(
dto
.
getAfterMobile
());
if
(!
StringUtils
.
equals
(
dto
.
getCode
(),
mobileCode
))
{
return
Result
.
failed
(
"验证码不正确"
);
}
if
(
userDao
.
isExistedByMobile
(
dto
.
getBeforeMobile
(),
dto
.
getAfterMobile
()))
{
return
Result
.
failed
(
"新手机号已被绑定"
);
}
user
.
setMobile
(
dto
.
getAfterMobile
());
userDao
.
updateById
(
user
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"用户修改手机号失败"
,
e
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
return
Result
.
failed
(
"修改手机号失败"
);
}
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/ItemService.java
View file @
87d39627
...
...
@@ -4,9 +4,15 @@ import com.wwdz.ch.core.type.Result;
import
com.wwdz.ch.wx.entity.request.ItemRequestDto
;
public
interface
ItemService
{
Result
page
(
ItemRequestDto
dto
);
Result
list
(
ItemRequestDto
dto
);
Result
add
(
ItemRequestDto
dto
);
Result
info
(
ItemRequestDto
dto
);
Result
collect
(
ItemRequestDto
dto
);
Result
update
(
ItemRequestDto
dto
);
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/UserService.java
0 → 100644
View file @
87d39627
package
com.wwdz.ch.wx.service
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.wx.dao.WxLoginInfo
;
import
com.wwdz.ch.wx.entity.request.UserRequestDto
;
import
javax.servlet.http.HttpServletRequest
;
public
interface
UserService
{
Result
loginByWx
(
WxLoginInfo
wxLoginInfo
,
HttpServletRequest
request
);
Result
loginByMobile
(
UserRequestDto
dto
,
HttpServletRequest
request
);
Result
updateNickname
(
UserRequestDto
dto
);
Result
updateAvatar
(
UserRequestDto
dto
);
Result
bindWechatId
(
UserRequestDto
dto
);
Result
updateMobile
(
UserRequestDto
dto
);
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/util/StringUtil.java
0 → 100644
View file @
87d39627
package
com.wwdz.ch.wx.util
;
import
java.util.Random
;
public
class
StringUtil
{
private
static
final
String
ALLOWED_CHARACTERS
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
;
public
static
String
generateRandomString
(
int
length
)
{
Random
random
=
new
Random
();
StringBuilder
sb
=
new
StringBuilder
(
length
);
for
(
int
i
=
0
;
i
<
length
;
i
++)
{
sb
.
append
(
ALLOWED_CHARACTERS
.
charAt
(
random
.
nextInt
(
ALLOWED_CHARACTERS
.
length
())));
}
return
sb
.
toString
();
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxAuthController.java
View file @
87d39627
package
com.wwdz.ch.wx.web
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
import
com.wwdz.ch.wx.annotation.LoginUser
;
import
com.wwdz.ch.wx.dao.UserInfo
;
import
com.wwdz.ch.wx.service.UserTokenManager
;
import
com.wwdz.ch.wx.util.IpUtil
;
import
com.wwdz.ch.wx.util.WxResponseCode
;
import
com.wwdz.ch.wx.util.WxResponseUtil
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.StringUtils
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
cn.binarywang.wx.miniapp.api.WxMaService
;
import
cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult
;
import
cn.binarywang.wx.miniapp.bean.WxMaPhoneNumberInfo
;
import
com.alibaba.fastjson.JSONObject
;
import
com.wwdz.ch.core.captcha.CaptchaCodeManager
;
import
com.wwdz.ch.core.consts.CommConsts
;
...
...
@@ -39,12 +17,31 @@ import com.wwdz.ch.core.util.ResponseUtil;
import
com.wwdz.ch.core.util.bcrypt.BCryptPasswordEncoder
;
import
com.wwdz.ch.db.domain.User
;
import
com.wwdz.ch.db.service.DtsUserService
;
import
com.wwdz.ch.wx.annotation.LoginUser
;
import
com.wwdz.ch.wx.dao.UserInfo
;
import
com.wwdz.ch.wx.dao.UserToken
;
import
com.wwdz.ch.wx.dao.WxLoginInfo
;
import
com.wwdz.ch.wx.service.UserTokenManager
;
import
com.wwdz.ch.wx.util.IpUtil
;
import
com.wwdz.ch.wx.util.WxResponseCode
;
import
com.wwdz.ch.wx.util.WxResponseUtil
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.StringUtils
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
cn.binarywang.wx.miniapp.api.WxMaService
;
import
cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult
;
import
cn.binarywang.wx.miniapp.bean.WxMaPhoneNumberInfo
;
import
javax.servlet.http.HttpServletRequest
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* 鉴权服务
...
...
@@ -188,14 +185,14 @@ public class WxAuthController {
user
.
setGender
(
userInfo
.
getGender
());
user
.
setUserLevel
((
byte
)
0
);
user
.
setStatus
((
byte
)
0
);
user
.
setLastLoginTime
(
LocalDateTime
.
now
());
user
.
setLastLoginTime
(
new
Date
());
user
.
setLastLoginIp
(
IpUtil
.
client
(
request
));
user
.
setShareUserId
(
shareUserId
);
userService
.
add
(
user
);
}
else
{
user
.
setLastLoginTime
(
LocalDateTime
.
now
());
user
.
setLastLoginTime
(
new
Date
());
user
.
setLastLoginIp
(
IpUtil
.
client
(
request
));
if
(
userService
.
updateById
(
user
)
==
0
)
{
return
ResponseUtil
.
updatedDataFailed
();
...
...
@@ -221,8 +218,8 @@ public class WxAuthController {
userInfo
.
setPhone
(
user
.
getMobile
());
}
try
{
S
tring
registerDate
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
)
.
format
(
user
.
getAddTime
()
!=
null
?
user
.
getAddTime
()
:
LocalDateTime
.
now
());
S
impleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
registerDate
=
simpleDateFormat
.
format
(
user
.
getAddTime
()
!=
null
?
user
.
getAddTime
()
:
new
Date
());
userInfo
.
setRegisterDate
(
registerDate
);
userInfo
.
setStatus
(
user
.
getStatus
());
userInfo
.
setUserLevel
(
user
.
getUserLevel
());
// 用户层级
...
...
@@ -360,7 +357,7 @@ public class WxAuthController {
user
.
setGender
((
byte
)
0
);
user
.
setUserLevel
((
byte
)
0
);
user
.
setStatus
((
byte
)
0
);
user
.
setLastLoginTime
(
LocalDateTime
.
now
());
user
.
setLastLoginTime
(
new
Date
());
user
.
setLastLoginIp
(
IpUtil
.
client
(
request
));
userService
.
add
(
user
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxFootprintController.java
View file @
87d39627
package
com.wwdz.ch.wx.web
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
com.wwdz.ch.db.domain.Item
;
import
com.wwdz.ch.wx.annotation.LoginUser
;
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.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.pagehelper.PageInfo
;
import
com.wwdz.ch.core.util.JacksonUtil
;
import
com.wwdz.ch.core.util.ResponseUtil
;
import
com.wwdz.ch.db.domain.Footprint
;
import
com.wwdz.ch.db.domain.Item
;
import
com.wwdz.ch.db.service.DtsFootprintService
;
import
com.wwdz.ch.db.service.ItemService
;
import
com.wwdz.ch.wx.annotation.LoginUser
;
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
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* 用户访问足迹服务
...
...
@@ -107,10 +101,10 @@ public class WxFootprintController {
for
(
Footprint
footprint
:
footprintList
)
{
Map
<
String
,
Object
>
c
=
new
HashMap
<
String
,
Object
>();
c
.
put
(
"id"
,
footprint
.
getId
());
c
.
put
(
"coinsId"
,
footprint
.
get
Coins
Id
());
c
.
put
(
"coinsId"
,
footprint
.
get
Item
Id
());
c
.
put
(
"addTime"
,
footprint
.
getAddTime
());
Item
item
=
itemService
.
findById
(
footprint
.
get
Coins
Id
().
longValue
());
Item
item
=
itemService
.
findById
(
footprint
.
get
Item
Id
().
longValue
());
c
.
put
(
"name"
,
item
.
getName
());
c
.
put
(
"retailPrice"
,
item
.
getPrice
());
c
.
put
(
"image"
,
item
.
getImages
().
split
(
";"
)[
0
]);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxGoodsController.java
View file @
87d39627
package
com.wwdz.ch.wx.web
;
import
java.io.Serializable
;
import
java.util.*
;
import
java.util.concurrent.ArrayBlockingQueue
;
import
java.util.concurrent.RejectedExecutionHandler
;
import
java.util.concurrent.ThreadPoolExecutor
;
import
java.util.concurrent.TimeUnit
;
import
javax.validation.constraints.NotNull
;
import
com.alibaba.druid.support.json.JSONUtils
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.pagehelper.PageInfo
;
import
com.mysql.jdbc.StringUtils
;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.core.util.ResponseUtil
;
import
com.wwdz.ch.core.util.ZincUtil
;
import
com.wwdz.ch.db.domain.*
;
import
com.wwdz.ch.core.validator.Order
;
import
com.wwdz.ch.core.validator.Sort
;
import
com.wwdz.ch.db.dao.impl.CategoryManagerImpl
;
import
com.wwdz.ch.db.domain.Category
;
import
com.wwdz.ch.db.domain.Footprint
;
import
com.wwdz.ch.db.domain.Item
;
import
com.wwdz.ch.db.domain.SearchHistory
;
import
com.wwdz.ch.db.service.*
;
import
com.wwdz.ch.wx.annotation.LoginUser
;
import
org.apache.commons.collections.CollectionUtils
;
...
...
@@ -26,12 +26,13 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.pagehelper.PageInfo
;
import
com.mysql.jdbc.StringUtils
;
import
com.wwdz.ch.core.util.ResponseUtil
;
import
com.wwdz.ch.core.validator.Order
;
import
com.wwdz.ch.core.validator.Sort
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.util.*
;
import
java.util.concurrent.ArrayBlockingQueue
;
import
java.util.concurrent.RejectedExecutionHandler
;
import
java.util.concurrent.ThreadPoolExecutor
;
import
java.util.concurrent.TimeUnit
;
/**
* 商品服务
...
...
@@ -111,7 +112,7 @@ public class WxGoodsController {
executorService
.
execute
(()
->
{
Footprint
footprint
=
new
Footprint
();
footprint
.
setUserId
(
userId
);
footprint
.
set
Coins
Id
(
id
);
footprint
.
set
Item
Id
(
id
);
footprintService
.
add
(
footprint
);
short
num
=
1
;
productService
.
addBrowse
(
id
.
intValue
(),
num
);
// 新增商品点击量
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxItemController.java
View file @
87d39627
package
com.wwdz.ch.wx.web
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.wx.entity.request.ItemRequestDto
;
import
com.wwdz.ch.wx.service.ItemService
;
import
io.swagger.annotations.ApiOperation
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -10,5 +17,36 @@ import org.springframework.web.bind.annotation.RestController;
public
class
WxItemController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
WxItemController
.
class
);
@Autowired
private
ItemService
itemService
;
@ApiOperation
(
value
=
"分页查询"
)
@PostMapping
(
"/page"
)
public
Result
page
(
@RequestBody
ItemRequestDto
dto
)
{
return
itemService
.
page
(
dto
);
}
@ApiOperation
(
value
=
"列表查询"
)
@PostMapping
(
"/list"
)
public
Result
list
(
@RequestBody
ItemRequestDto
dto
)
{
return
itemService
.
list
(
dto
);
}
@ApiOperation
(
value
=
"新增"
)
@PostMapping
(
"/add"
)
public
Result
add
(
@RequestBody
ItemRequestDto
dto
)
{
return
itemService
.
add
(
dto
);
}
@ApiOperation
(
value
=
"修改"
)
@PostMapping
(
"/update"
)
public
Result
update
(
@RequestBody
ItemRequestDto
dto
)
{
return
itemService
.
update
(
dto
);
}
@ApiOperation
(
value
=
"详情"
)
@PostMapping
(
"/info"
)
public
Result
info
(
@RequestBody
ItemRequestDto
dto
)
{
return
itemService
.
info
(
dto
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment