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
922cf26f
Commit
922cf26f
authored
Feb 10, 2025
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排行榜
parent
61fe456c
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
2413 additions
and
30 deletions
+2413
-30
ch-dao/src/main/java/com/wwdz/ch/db/bean/QdUserSignInRecord.java
...src/main/java/com/wwdz/ch/db/bean/QdUserSignInRecord.java
+2
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/qiandao/QdSignInRankingDao.java
...n/java/com/wwdz/ch/db/dao/qiandao/QdSignInRankingDao.java
+31
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/qiandao/QdUserSignInTaskDao.java
.../java/com/wwdz/ch/db/dao/qiandao/QdUserSignInTaskDao.java
+3
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/qiandao/QdSignInRanking.java
...n/java/com/wwdz/ch/db/domain/qiandao/QdSignInRanking.java
+293
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/qiandao/QdSignInRankingExample.java
...com/wwdz/ch/db/domain/qiandao/QdSignInRankingExample.java
+1359
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/qiandao/QdUserSignIn.java
...main/java/com/wwdz/ch/db/domain/qiandao/QdUserSignIn.java
+10
-1
ch-dao/src/main/java/com/wwdz/ch/db/domain/qiandao/QdUserSignInExample.java
...va/com/wwdz/ch/db/domain/qiandao/QdUserSignInExample.java
+132
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/qiandao/QdUserSignInRequestDto.java
...wdz/ch/db/dto/request/qiandao/QdUserSignInRequestDto.java
+7
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/qiandao/QdSignInRankingDaoImpl.java
...a/com/wwdz/ch/db/impl/qiandao/QdSignInRankingDaoImpl.java
+52
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/qiandao/QdUserSignInTaskDaoImpl.java
.../com/wwdz/ch/db/impl/qiandao/QdUserSignInTaskDaoImpl.java
+10
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/qiandao/QdSignInRankingMapper.java
.../com/wwdz/ch/db/mapper/qiandao/QdSignInRankingMapper.java
+72
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/qiandao/QdUserSignInMapper.java
...ava/com/wwdz/ch/db/mapper/qiandao/QdUserSignInMapper.java
+0
-1
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/qiandao/QdSignInRankingMapper.xml
...s/com/wwdz/ch/db/mapper/qiandao/QdSignInRankingMapper.xml
+368
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/qiandao/QdUserSignInMapper.xml
...rces/com/wwdz/ch/db/mapper/qiandao/QdUserSignInMapper.xml
+34
-20
ch-dao/src/main/resources/generatorConfig_new.xml
ch-dao/src/main/resources/generatorConfig_new.xml
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/qiandao/QdUserSignInServiceImpl.java
.../com/wwdz/ch/wx/impl/qiandao/QdUserSignInServiceImpl.java
+21
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/qiandao/QdUserSignInTaskServiceImpl.java
.../wwdz/ch/wx/impl/qiandao/QdUserSignInTaskServiceImpl.java
+18
-6
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/bean/QdUserSignInRecord.java
View file @
922cf26f
...
@@ -9,4 +9,6 @@ public class QdUserSignInRecord implements Entity {
...
@@ -9,4 +9,6 @@ public class QdUserSignInRecord implements Entity {
private
Long
totalDays
;
private
Long
totalDays
;
private
Long
ranking
;
}
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/qiandao/QdSignInRankingDao.java
0 → 100644
View file @
922cf26f
package
com.wwdz.ch.db.dao.qiandao
;
import
com.wwdz.ch.db.bean.QdUserSignInRecord
;
import
com.wwdz.ch.db.domain.qiandao.QdSignInRanking
;
import
com.wwdz.ch.db.domain.qiandao.QdUserSignIn
;
public
interface
QdSignInRankingDao
{
Long
insert
(
QdSignInRanking
qdSignInRanking
);
QdSignInRanking
findByIndex
(
long
userId
,
Long
taskId
);
void
update
(
QdSignInRanking
qdSignInRanking
);
/**
* 是否存在
* @param userId
* @param taskId
* @return
*/
boolean
isExisted
(
long
userId
,
Long
taskId
);
/**
* 查询排名
* @param userId
* @param taskId
* @return
*/
QdUserSignInRecord
findRanking
(
long
userId
,
Long
taskId
);
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/qiandao/QdUserSignInTaskDao.java
View file @
922cf26f
...
@@ -11,6 +11,9 @@ public interface QdUserSignInTaskDao {
...
@@ -11,6 +11,9 @@ public interface QdUserSignInTaskDao {
boolean
update
(
QdUserSignInTask
qdUserSignInTask
);
boolean
update
(
QdUserSignInTask
qdUserSignInTask
);
QdUserSignInTask
findByIndex
(
long
userId
,
long
taskId
);
List
<
QdUserSignInTask
>
findByPage
(
QdUserSignInTaskRequestDto
dto
);
List
<
QdUserSignInTask
>
findByPage
(
QdUserSignInTaskRequestDto
dto
);
/**
/**
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/qiandao/QdSignInRanking.java
0 → 100644
View file @
922cf26f
package
com.wwdz.ch.db.domain.qiandao
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
* @author shiyu
* @date 2025/02/10
*/
@Data
public
class
QdSignInRanking
implements
Entity
{
private
Long
id
;
/**
* 用户id
*/
private
Long
userId
;
/**
* 任务id
*/
private
Long
taskId
;
/**
* 参加任务的时间
*/
private
Date
addTaskTime
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 总签到天数
*/
private
Integer
totalSignInDays
;
/**
* 是否有效
*/
private
Boolean
isValid
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", userId="
).
append
(
userId
);
sb
.
append
(
", taskId="
).
append
(
taskId
);
sb
.
append
(
", addTaskTime="
).
append
(
addTaskTime
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", totalSignInDays="
).
append
(
totalSignInDays
);
sb
.
append
(
", isValid="
).
append
(
isValid
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
QdSignInRanking
other
=
(
QdSignInRanking
)
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
.
getTaskId
()
==
null
?
other
.
getTaskId
()
==
null
:
this
.
getTaskId
().
equals
(
other
.
getTaskId
()))
&&
(
this
.
getAddTaskTime
()
==
null
?
other
.
getAddTaskTime
()
==
null
:
this
.
getAddTaskTime
().
equals
(
other
.
getAddTaskTime
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getTotalSignInDays
()
==
null
?
other
.
getTotalSignInDays
()
==
null
:
this
.
getTotalSignInDays
().
equals
(
other
.
getTotalSignInDays
()))
&&
(
this
.
getIsValid
()
==
null
?
other
.
getIsValid
()
==
null
:
this
.
getIsValid
().
equals
(
other
.
getIsValid
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getUserId
()
==
null
)
?
0
:
getUserId
().
hashCode
());
result
=
prime
*
result
+
((
getTaskId
()
==
null
)
?
0
:
getTaskId
().
hashCode
());
result
=
prime
*
result
+
((
getAddTaskTime
()
==
null
)
?
0
:
getAddTaskTime
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getTotalSignInDays
()
==
null
)
?
0
:
getTotalSignInDays
().
hashCode
());
result
=
prime
*
result
+
((
getIsValid
()
==
null
)
?
0
:
getIsValid
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"BIGINT"
,
false
),
userId
(
"user_id"
,
"userId"
,
"BIGINT"
,
false
),
taskId
(
"task_id"
,
"taskId"
,
"BIGINT"
,
false
),
addTaskTime
(
"add_task_time"
,
"addTaskTime"
,
"TIMESTAMP"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
totalSignInDays
(
"total_sign_in_days"
,
"totalSignInDays"
,
"INTEGER"
,
false
),
isValid
(
"is_valid"
,
"isValid"
,
"BIT"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
BEGINNING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
ENDING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
column
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
boolean
isColumnNameDelimited
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
javaProperty
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
jdbcType
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
value
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getValue
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJavaProperty
()
{
return
this
.
javaProperty
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJdbcType
()
{
return
this
.
jdbcType
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column
(
String
column
,
String
javaProperty
,
String
jdbcType
,
boolean
isColumnNameDelimited
)
{
this
.
column
=
column
;
this
.
javaProperty
=
javaProperty
;
this
.
jdbcType
=
jdbcType
;
this
.
isColumnNameDelimited
=
isColumnNameDelimited
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
desc
()
{
return
this
.
getEscapedColumnName
()
+
" DESC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
asc
()
{
return
this
.
getEscapedColumnName
()
+
" ASC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Column
[]
excludes
(
Column
...
excludes
)
{
ArrayList
<
Column
>
columns
=
new
ArrayList
<>(
Arrays
.
asList
(
Column
.
values
()));
if
(
excludes
!=
null
&&
excludes
.
length
>
0
)
{
columns
.
removeAll
(
new
ArrayList
<>(
Arrays
.
asList
(
excludes
)));
}
return
columns
.
toArray
(
new
Column
[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getEscapedColumnName
()
{
if
(
this
.
isColumnNameDelimited
)
{
return
new
StringBuilder
().
append
(
BEGINNING_DELIMITER
).
append
(
this
.
column
).
append
(
ENDING_DELIMITER
).
toString
();
}
else
{
return
this
.
column
;
}
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/qiandao/QdSignInRankingExample.java
0 → 100644
View file @
922cf26f
package
com.wwdz.ch.db.domain.qiandao
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
QdSignInRankingExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
QdSignInRankingExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
public
String
getOrderByClause
()
{
return
orderByClause
;
}
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
public
boolean
isDistinct
()
{
return
distinct
;
}
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
QdSignInRankingExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
QdSignInRankingExample
orderBy
(
String
...
orderByClauses
)
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
orderByClauses
.
length
;
i
++)
{
sb
.
append
(
orderByClauses
[
i
]);
if
(
i
<
orderByClauses
.
length
-
1
)
{
sb
.
append
(
" , "
);
}
}
this
.
setOrderByClause
(
sb
.
toString
());
return
this
;
}
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
QdSignInRankingExample
example
=
new
QdSignInRankingExample
();
return
example
.
createCriteria
();
}
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Long
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Long
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Long
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIsNull
()
{
addCriterion
(
"user_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIsNotNull
()
{
addCriterion
(
"user_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdEqualTo
(
Long
value
)
{
addCriterion
(
"user_id ="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"user_id <>"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdNotEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdGreaterThan
(
Long
value
)
{
addCriterion
(
"user_id >"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdGreaterThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"user_id >="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdGreaterThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdLessThan
(
Long
value
)
{
addCriterion
(
"user_id <"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdLessThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"user_id <="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdLessThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"user_id in"
,
values
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"user_id not in"
,
values
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"user_id between"
,
value1
,
value2
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"user_id not between"
,
value1
,
value2
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTaskIdIsNull
()
{
addCriterion
(
"task_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTaskIdIsNotNull
()
{
addCriterion
(
"task_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTaskIdEqualTo
(
Long
value
)
{
addCriterion
(
"task_id ="
,
value
,
"taskId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTaskIdEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"task_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTaskIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"task_id <>"
,
value
,
"taskId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTaskIdNotEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"task_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTaskIdGreaterThan
(
Long
value
)
{
addCriterion
(
"task_id >"
,
value
,
"taskId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTaskIdGreaterThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"task_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTaskIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"task_id >="
,
value
,
"taskId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTaskIdGreaterThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"task_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTaskIdLessThan
(
Long
value
)
{
addCriterion
(
"task_id <"
,
value
,
"taskId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTaskIdLessThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"task_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTaskIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"task_id <="
,
value
,
"taskId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTaskIdLessThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"task_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTaskIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"task_id in"
,
values
,
"taskId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTaskIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"task_id not in"
,
values
,
"taskId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTaskIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"task_id between"
,
value1
,
value2
,
"taskId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTaskIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"task_id not between"
,
value1
,
value2
,
"taskId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeIsNull
()
{
addCriterion
(
"add_task_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeIsNotNull
()
{
addCriterion
(
"add_task_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeEqualTo
(
Date
value
)
{
addCriterion
(
"add_task_time ="
,
value
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTaskTimeEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_task_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"add_task_time <>"
,
value
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTaskTimeNotEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_task_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"add_task_time >"
,
value
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTaskTimeGreaterThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_task_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"add_task_time >="
,
value
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTaskTimeGreaterThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_task_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeLessThan
(
Date
value
)
{
addCriterion
(
"add_task_time <"
,
value
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTaskTimeLessThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_task_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"add_task_time <="
,
value
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTaskTimeLessThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_task_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"add_task_time in"
,
values
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"add_task_time not in"
,
values
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"add_task_time between"
,
value1
,
value2
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"add_task_time not between"
,
value1
,
value2
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNull
()
{
addCriterion
(
"create_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNotNull
()
{
addCriterion
(
"create_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"create_time ="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <>"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeNotEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"create_time >"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time >="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThan
(
Date
value
)
{
addCriterion
(
"create_time <"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_time in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_time not in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_time between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_time not between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNull
()
{
addCriterion
(
"update_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNotNull
()
{
addCriterion
(
"update_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeNotEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
Date
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTotalSignInDaysIsNull
()
{
addCriterion
(
"total_sign_in_days is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTotalSignInDaysIsNotNull
()
{
addCriterion
(
"total_sign_in_days is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTotalSignInDaysEqualTo
(
Integer
value
)
{
addCriterion
(
"total_sign_in_days ="
,
value
,
"totalSignInDays"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTotalSignInDaysEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"total_sign_in_days = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTotalSignInDaysNotEqualTo
(
Integer
value
)
{
addCriterion
(
"total_sign_in_days <>"
,
value
,
"totalSignInDays"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTotalSignInDaysNotEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"total_sign_in_days <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTotalSignInDaysGreaterThan
(
Integer
value
)
{
addCriterion
(
"total_sign_in_days >"
,
value
,
"totalSignInDays"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTotalSignInDaysGreaterThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"total_sign_in_days > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTotalSignInDaysGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"total_sign_in_days >="
,
value
,
"totalSignInDays"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTotalSignInDaysGreaterThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"total_sign_in_days >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTotalSignInDaysLessThan
(
Integer
value
)
{
addCriterion
(
"total_sign_in_days <"
,
value
,
"totalSignInDays"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTotalSignInDaysLessThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"total_sign_in_days < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTotalSignInDaysLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"total_sign_in_days <="
,
value
,
"totalSignInDays"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTotalSignInDaysLessThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"total_sign_in_days <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTotalSignInDaysIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"total_sign_in_days in"
,
values
,
"totalSignInDays"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTotalSignInDaysNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"total_sign_in_days not in"
,
values
,
"totalSignInDays"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTotalSignInDaysBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"total_sign_in_days between"
,
value1
,
value2
,
"totalSignInDays"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTotalSignInDaysNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"total_sign_in_days not between"
,
value1
,
value2
,
"totalSignInDays"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNull
()
{
addCriterion
(
"is_valid is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNotNull
()
{
addCriterion
(
"is_valid is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid ="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid <>"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidNotEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidGreaterThan
(
Boolean
value
)
{
addCriterion
(
"is_valid >"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidGreaterThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid >="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidGreaterThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidLessThan
(
Boolean
value
)
{
addCriterion
(
"is_valid <"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidLessThanColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid <="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidLessThanOrEqualToColumn
(
QdSignInRanking
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_valid in"
,
values
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_valid not in"
,
values
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_valid between"
,
value1
,
value2
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_valid not between"
,
value1
,
value2
,
"isValid"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
QdSignInRankingExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
QdSignInRankingExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
QdSignInRankingExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
}
return
this
;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria
add
(
Criteria
add
);
}
}
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/qiandao/QdUserSignIn.java
View file @
922cf26f
...
@@ -10,7 +10,7 @@ import lombok.Data;
...
@@ -10,7 +10,7 @@ import lombok.Data;
/**
/**
* @author shiyu
* @author shiyu
* @date 202
4/12/18
* @date 202
5/02/10
*/
*/
@Data
@Data
public
class
QdUserSignIn
implements
Entity
{
public
class
QdUserSignIn
implements
Entity
{
...
@@ -44,6 +44,11 @@ public class QdUserSignIn implements Entity {
...
@@ -44,6 +44,11 @@ public class QdUserSignIn implements Entity {
*/
*/
private
String
signInDate
;
private
String
signInDate
;
/**
* 参加任务时间
*/
private
Date
addTaskTime
;
/**
/**
* 连续天数
* 连续天数
*/
*/
...
@@ -83,6 +88,7 @@ public class QdUserSignIn implements Entity {
...
@@ -83,6 +88,7 @@ public class QdUserSignIn implements Entity {
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", signInDate="
).
append
(
signInDate
);
sb
.
append
(
", signInDate="
).
append
(
signInDate
);
sb
.
append
(
", addTaskTime="
).
append
(
addTaskTime
);
sb
.
append
(
", consecutiveDays="
).
append
(
consecutiveDays
);
sb
.
append
(
", consecutiveDays="
).
append
(
consecutiveDays
);
sb
.
append
(
", isReward="
).
append
(
isReward
);
sb
.
append
(
", isReward="
).
append
(
isReward
);
sb
.
append
(
", rewardLevel="
).
append
(
rewardLevel
);
sb
.
append
(
", rewardLevel="
).
append
(
rewardLevel
);
...
@@ -111,6 +117,7 @@ public class QdUserSignIn implements Entity {
...
@@ -111,6 +117,7 @@ public class QdUserSignIn implements Entity {
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getSignInDate
()
==
null
?
other
.
getSignInDate
()
==
null
:
this
.
getSignInDate
().
equals
(
other
.
getSignInDate
()))
&&
(
this
.
getSignInDate
()
==
null
?
other
.
getSignInDate
()
==
null
:
this
.
getSignInDate
().
equals
(
other
.
getSignInDate
()))
&&
(
this
.
getAddTaskTime
()
==
null
?
other
.
getAddTaskTime
()
==
null
:
this
.
getAddTaskTime
().
equals
(
other
.
getAddTaskTime
()))
&&
(
this
.
getConsecutiveDays
()
==
null
?
other
.
getConsecutiveDays
()
==
null
:
this
.
getConsecutiveDays
().
equals
(
other
.
getConsecutiveDays
()))
&&
(
this
.
getConsecutiveDays
()
==
null
?
other
.
getConsecutiveDays
()
==
null
:
this
.
getConsecutiveDays
().
equals
(
other
.
getConsecutiveDays
()))
&&
(
this
.
getIsReward
()
==
null
?
other
.
getIsReward
()
==
null
:
this
.
getIsReward
().
equals
(
other
.
getIsReward
()))
&&
(
this
.
getIsReward
()
==
null
?
other
.
getIsReward
()
==
null
:
this
.
getIsReward
().
equals
(
other
.
getIsReward
()))
&&
(
this
.
getRewardLevel
()
==
null
?
other
.
getRewardLevel
()
==
null
:
this
.
getRewardLevel
().
equals
(
other
.
getRewardLevel
()))
&&
(
this
.
getRewardLevel
()
==
null
?
other
.
getRewardLevel
()
==
null
:
this
.
getRewardLevel
().
equals
(
other
.
getRewardLevel
()))
...
@@ -128,6 +135,7 @@ public class QdUserSignIn implements Entity {
...
@@ -128,6 +135,7 @@ public class QdUserSignIn implements Entity {
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getSignInDate
()
==
null
)
?
0
:
getSignInDate
().
hashCode
());
result
=
prime
*
result
+
((
getSignInDate
()
==
null
)
?
0
:
getSignInDate
().
hashCode
());
result
=
prime
*
result
+
((
getAddTaskTime
()
==
null
)
?
0
:
getAddTaskTime
().
hashCode
());
result
=
prime
*
result
+
((
getConsecutiveDays
()
==
null
)
?
0
:
getConsecutiveDays
().
hashCode
());
result
=
prime
*
result
+
((
getConsecutiveDays
()
==
null
)
?
0
:
getConsecutiveDays
().
hashCode
());
result
=
prime
*
result
+
((
getIsReward
()
==
null
)
?
0
:
getIsReward
().
hashCode
());
result
=
prime
*
result
+
((
getIsReward
()
==
null
)
?
0
:
getIsReward
().
hashCode
());
result
=
prime
*
result
+
((
getRewardLevel
()
==
null
)
?
0
:
getRewardLevel
().
hashCode
());
result
=
prime
*
result
+
((
getRewardLevel
()
==
null
)
?
0
:
getRewardLevel
().
hashCode
());
...
@@ -150,6 +158,7 @@ public class QdUserSignIn implements Entity {
...
@@ -150,6 +158,7 @@ public class QdUserSignIn implements Entity {
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
signInDate
(
"sign_in_date"
,
"signInDate"
,
"VARCHAR"
,
false
),
signInDate
(
"sign_in_date"
,
"signInDate"
,
"VARCHAR"
,
false
),
addTaskTime
(
"add_task_time"
,
"addTaskTime"
,
"TIMESTAMP"
,
false
),
consecutiveDays
(
"consecutive_days"
,
"consecutiveDays"
,
"INTEGER"
,
false
),
consecutiveDays
(
"consecutive_days"
,
"consecutiveDays"
,
"INTEGER"
,
false
),
isReward
(
"is_reward"
,
"isReward"
,
"BIT"
,
false
),
isReward
(
"is_reward"
,
"isReward"
,
"BIT"
,
false
),
rewardLevel
(
"reward_level"
,
"rewardLevel"
,
"INTEGER"
,
false
),
rewardLevel
(
"reward_level"
,
"rewardLevel"
,
"INTEGER"
,
false
),
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/qiandao/QdUserSignInExample.java
View file @
922cf26f
...
@@ -950,6 +950,138 @@ public class QdUserSignInExample {
...
@@ -950,6 +950,138 @@ public class QdUserSignInExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andAddTaskTimeIsNull
()
{
addCriterion
(
"add_task_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeIsNotNull
()
{
addCriterion
(
"add_task_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeEqualTo
(
Date
value
)
{
addCriterion
(
"add_task_time ="
,
value
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_user_sign_in
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTaskTimeEqualToColumn
(
QdUserSignIn
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_task_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"add_task_time <>"
,
value
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_user_sign_in
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTaskTimeNotEqualToColumn
(
QdUserSignIn
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_task_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"add_task_time >"
,
value
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_user_sign_in
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTaskTimeGreaterThanColumn
(
QdUserSignIn
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_task_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"add_task_time >="
,
value
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_user_sign_in
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTaskTimeGreaterThanOrEqualToColumn
(
QdUserSignIn
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_task_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeLessThan
(
Date
value
)
{
addCriterion
(
"add_task_time <"
,
value
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_user_sign_in
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTaskTimeLessThanColumn
(
QdUserSignIn
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_task_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"add_task_time <="
,
value
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_user_sign_in
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTaskTimeLessThanOrEqualToColumn
(
QdUserSignIn
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_task_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"add_task_time in"
,
values
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"add_task_time not in"
,
values
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"add_task_time between"
,
value1
,
value2
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTaskTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"add_task_time not between"
,
value1
,
value2
,
"addTaskTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andConsecutiveDaysIsNull
()
{
public
Criteria
andConsecutiveDaysIsNull
()
{
addCriterion
(
"consecutive_days is null"
);
addCriterion
(
"consecutive_days is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
...
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/qiandao/QdUserSignInRequestDto.java
View file @
922cf26f
...
@@ -60,6 +60,13 @@ public class QdUserSignInRequestDto extends BaseRequestDto implements Entity {
...
@@ -60,6 +60,13 @@ public class QdUserSignInRequestDto extends BaseRequestDto implements Entity {
*/
*/
private
Integer
rewardLevel
;
private
Integer
rewardLevel
;
/**
* 参加任务时间
*/
private
Date
addTaskTime
;
/**
/**
* 是否领取奖励
* 是否领取奖励
*/
*/
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/qiandao/QdSignInRankingDaoImpl.java
0 → 100644
View file @
922cf26f
package
com.wwdz.ch.db.impl.qiandao
;
import
com.wwdz.ch.db.bean.QdUserSignInRecord
;
import
com.wwdz.ch.db.dao.qiandao.QdSignInRankingDao
;
import
com.wwdz.ch.db.domain.qiandao.QdSignInRanking
;
import
com.wwdz.ch.db.domain.qiandao.QdSignInRankingExample
;
import
com.wwdz.ch.db.mapper.qiandao.QdSignInRankingMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
@Repository
public
class
QdSignInRankingDaoImpl
implements
QdSignInRankingDao
{
@Autowired
QdSignInRankingMapper
qdSignInRankingMapper
;
@Override
public
Long
insert
(
QdSignInRanking
qdSignInRanking
)
{
qdSignInRankingMapper
.
insert
(
qdSignInRanking
);
return
qdSignInRanking
.
getId
();
}
@Override
public
QdSignInRanking
findByIndex
(
long
userId
,
Long
taskId
)
{
QdSignInRankingExample
example
=
new
QdSignInRankingExample
();
QdSignInRankingExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andUserIdEqualTo
(
userId
);
criteria
.
andTaskIdEqualTo
(
taskId
);
criteria
.
andIsValidEqualTo
(
true
);
return
qdSignInRankingMapper
.
selectOneByExample
(
example
);
}
@Override
public
void
update
(
QdSignInRanking
qdSignInRanking
)
{
qdSignInRankingMapper
.
updateByPrimaryKeySelective
(
qdSignInRanking
);
}
@Override
public
boolean
isExisted
(
long
userId
,
Long
taskId
)
{
QdSignInRankingExample
example
=
new
QdSignInRankingExample
();
QdSignInRankingExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andUserIdEqualTo
(
userId
);
criteria
.
andTaskIdEqualTo
(
taskId
);
criteria
.
andIsValidEqualTo
(
true
);
return
qdSignInRankingMapper
.
countByExample
(
example
)
>
0
;
}
@Override
public
QdUserSignInRecord
findRanking
(
long
userId
,
Long
taskId
)
{
return
qdSignInRankingMapper
.
findRanking
(
userId
,
taskId
);
}
}
ch-dao/src/main/java/com/wwdz/ch/db/impl/qiandao/QdUserSignInTaskDaoImpl.java
View file @
922cf26f
...
@@ -37,6 +37,16 @@ public class QdUserSignInTaskDaoImpl implements QdUserSignInTaskDao {
...
@@ -37,6 +37,16 @@ public class QdUserSignInTaskDaoImpl implements QdUserSignInTaskDao {
}
}
@Override
public
QdUserSignInTask
findByIndex
(
long
userId
,
long
taskId
)
{
QdUserSignInTaskExample
example
=
new
QdUserSignInTaskExample
();
QdUserSignInTaskExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andUserIdEqualTo
(
userId
);
criteria
.
andTaskIdEqualTo
(
taskId
);
criteria
.
andIsValidEqualTo
(
true
);
return
qdUserSignInTaskMapper
.
selectOneByExample
(
example
);
}
@Override
@Override
public
boolean
update
(
QdUserSignInTask
qdUserSignInTask
)
{
public
boolean
update
(
QdUserSignInTask
qdUserSignInTask
)
{
QdUserSignInTaskExample
example
=
new
QdUserSignInTaskExample
();
QdUserSignInTaskExample
example
=
new
QdUserSignInTaskExample
();
...
...
ch-dao/src/main/java/com/wwdz/ch/db/mapper/qiandao/QdSignInRankingMapper.java
0 → 100644
View file @
922cf26f
package
com.wwdz.ch.db.mapper.qiandao
;
import
com.wwdz.ch.db.bean.QdUserSignInRecord
;
import
com.wwdz.ch.db.domain.qiandao.QdSignInRanking
;
import
com.wwdz.ch.db.domain.qiandao.QdSignInRankingExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
QdSignInRankingMapper
{
long
countByExample
(
QdSignInRankingExample
example
);
int
deleteByExample
(
QdSignInRankingExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
QdSignInRanking
record
);
int
insertSelective
(
QdSignInRanking
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
QdSignInRanking
selectOneByExample
(
QdSignInRankingExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
QdSignInRanking
selectOneByExampleSelective
(
@Param
(
"example"
)
QdSignInRankingExample
example
,
@Param
(
"selective"
)
QdSignInRanking
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
QdSignInRanking
>
selectByExampleSelective
(
@Param
(
"example"
)
QdSignInRankingExample
example
,
@Param
(
"selective"
)
QdSignInRanking
.
Column
...
selective
);
List
<
QdSignInRanking
>
selectByExample
(
QdSignInRankingExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table qd_sign_in_ranking
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
QdSignInRanking
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Long
id
,
@Param
(
"selective"
)
QdSignInRanking
.
Column
...
selective
);
QdSignInRanking
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
QdSignInRanking
record
,
@Param
(
"example"
)
QdSignInRankingExample
example
);
int
updateByExample
(
@Param
(
"record"
)
QdSignInRanking
record
,
@Param
(
"example"
)
QdSignInRankingExample
example
);
int
updateByPrimaryKeySelective
(
QdSignInRanking
record
);
int
updateByPrimaryKey
(
QdSignInRanking
record
);
QdUserSignInRecord
findRanking
(
@Param
(
"userId"
)
Long
userId
,
@Param
(
"taskId"
)
Long
taskId
);
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/mapper/qiandao/QdUserSignInMapper.java
View file @
922cf26f
...
@@ -4,7 +4,6 @@ import com.wwdz.ch.db.bean.QdUserSignInRecord;
...
@@ -4,7 +4,6 @@ import com.wwdz.ch.db.bean.QdUserSignInRecord;
import
com.wwdz.ch.db.domain.qiandao.QdUserSignIn
;
import
com.wwdz.ch.db.domain.qiandao.QdUserSignIn
;
import
com.wwdz.ch.db.domain.qiandao.QdUserSignInExample
;
import
com.wwdz.ch.db.domain.qiandao.QdUserSignInExample
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/qiandao/QdSignInRankingMapper.xml
0 → 100644
View file @
922cf26f
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.wwdz.ch.db.mapper.qiandao.QdSignInRankingMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.qiandao.QdSignInRanking"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"user_id"
jdbcType=
"BIGINT"
property=
"userId"
/>
<result
column=
"task_id"
jdbcType=
"BIGINT"
property=
"taskId"
/>
<result
column=
"add_task_time"
jdbcType=
"TIMESTAMP"
property=
"addTaskTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"total_sign_in_days"
jdbcType=
"INTEGER"
property=
"totalSignInDays"
/>
<result
column=
"is_valid"
jdbcType=
"BIT"
property=
"isValid"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, user_id, task_id, add_task_time, create_time, update_time, total_sign_in_days,
is_valid
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdSignInRankingExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from qd_sign_in_ranking
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if
test=
"example.distinct"
>
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, user_id, task_id, add_task_time, create_time, update_time, total_sign_in_days,
is_valid
</otherwise>
</choose>
from qd_sign_in_ranking
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from qd_sign_in_ranking
where id = #{id,jdbcType=BIGINT}
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, user_id, task_id, add_task_time, create_time, update_time, total_sign_in_days,
is_valid
</otherwise>
</choose>
from qd_sign_in_ranking
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from qd_sign_in_ranking
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdSignInRankingExample"
>
delete from qd_sign_in_ranking
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdSignInRanking"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into qd_sign_in_ranking (user_id, task_id, add_task_time,
create_time, update_time, total_sign_in_days,
is_valid)
values (#{userId,jdbcType=BIGINT}, #{taskId,jdbcType=BIGINT}, #{addTaskTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{totalSignInDays,jdbcType=INTEGER},
#{isValid,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdSignInRanking"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into qd_sign_in_ranking
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"taskId != null"
>
task_id,
</if>
<if
test=
"addTaskTime != null"
>
add_task_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"totalSignInDays != null"
>
total_sign_in_days,
</if>
<if
test=
"isValid != null"
>
is_valid,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"userId != null"
>
#{userId,jdbcType=BIGINT},
</if>
<if
test=
"taskId != null"
>
#{taskId,jdbcType=BIGINT},
</if>
<if
test=
"addTaskTime != null"
>
#{addTaskTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"totalSignInDays != null"
>
#{totalSignInDays,jdbcType=INTEGER},
</if>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=BIT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdSignInRankingExample"
resultType=
"java.lang.Long"
>
select count(*) from qd_sign_in_ranking
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update qd_sign_in_ranking
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=BIGINT},
</if>
<if
test=
"record.taskId != null"
>
task_id = #{record.taskId,jdbcType=BIGINT},
</if>
<if
test=
"record.addTaskTime != null"
>
add_task_time = #{record.addTaskTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.totalSignInDays != null"
>
total_sign_in_days = #{record.totalSignInDays,jdbcType=INTEGER},
</if>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=BIT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update qd_sign_in_ranking
set id = #{record.id,jdbcType=BIGINT},
user_id = #{record.userId,jdbcType=BIGINT},
task_id = #{record.taskId,jdbcType=BIGINT},
add_task_time = #{record.addTaskTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
total_sign_in_days = #{record.totalSignInDays,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=BIT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdSignInRanking"
>
update qd_sign_in_ranking
<set>
<if
test=
"userId != null"
>
user_id = #{userId,jdbcType=BIGINT},
</if>
<if
test=
"taskId != null"
>
task_id = #{taskId,jdbcType=BIGINT},
</if>
<if
test=
"addTaskTime != null"
>
add_task_time = #{addTaskTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"totalSignInDays != null"
>
total_sign_in_days = #{totalSignInDays,jdbcType=INTEGER},
</if>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdSignInRanking"
>
update qd_sign_in_ranking
set user_id = #{userId,jdbcType=BIGINT},
task_id = #{taskId,jdbcType=BIGINT},
add_task_time = #{addTaskTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
total_sign_in_days = #{totalSignInDays,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=BIT}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdSignInRankingExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from qd_sign_in_ranking
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, user_id, task_id, add_task_time, create_time, update_time, total_sign_in_days,
is_valid
</otherwise>
</choose>
from qd_sign_in_ranking
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
limit 1
</select>
<select
id=
"findRanking"
parameterType=
"java.lang.Long"
resultType=
"com.wwdz.ch.db.bean.QdUserSignInRecord"
>
SELECT id,total_sign_in_days,add_task_time,
(SELECT COUNT(*)
FROM qd_sign_in_ranking
WHERE total_sign_in_days > t.total_sign_in_days
OR (total_sign_in_days = t.total_sign_in_days AND add_task_time
<
t.add_task_time)
) + 1 AS ranking
FROM qd_sign_in_ranking t
WHERE user_id = #{userId} and task_Id = #{taskId}
</select>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/qiandao/QdUserSignInMapper.xml
View file @
922cf26f
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"sign_in_date"
jdbcType=
"VARCHAR"
property=
"signInDate"
/>
<result
column=
"sign_in_date"
jdbcType=
"VARCHAR"
property=
"signInDate"
/>
<result
column=
"add_task_time"
jdbcType=
"TIMESTAMP"
property=
"addTaskTime"
/>
<result
column=
"consecutive_days"
jdbcType=
"INTEGER"
property=
"consecutiveDays"
/>
<result
column=
"consecutive_days"
jdbcType=
"INTEGER"
property=
"consecutiveDays"
/>
<result
column=
"is_reward"
jdbcType=
"BIT"
property=
"isReward"
/>
<result
column=
"is_reward"
jdbcType=
"BIT"
property=
"isReward"
/>
<result
column=
"reward_level"
jdbcType=
"INTEGER"
property=
"rewardLevel"
/>
<result
column=
"reward_level"
jdbcType=
"INTEGER"
property=
"rewardLevel"
/>
...
@@ -73,8 +74,8 @@
...
@@ -73,8 +74,8 @@
</where>
</where>
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, task_id, user_id, create_time, update_time, sign_in_date,
consecutive_days, is_reward
,
id, task_id, user_id, create_time, update_time, sign_in_date,
add_task_time, consecutive_days
,
reward_level, is_get, is_valid
is_reward,
reward_level, is_get, is_valid
</sql>
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdUserSignInExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdUserSignInExample"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -103,14 +104,14 @@
...
@@ -103,14 +104,14 @@
distinct
distinct
</if>
</if>
<choose>
<choose>
<when
test=
"selective != null and selective.length
>
0"
>
<when
test=
"selective != null and selective.length
>
0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
${column.escapedColumnName}
</foreach>
</foreach>
</when>
</when>
<otherwise>
<otherwise>
id, task_id, user_id, create_time, update_time, sign_in_date,
consecutive_days, is_reward
,
id, task_id, user_id, create_time, update_time, sign_in_date,
add_task_time, consecutive_days
,
reward_level, is_get, is_valid
is_reward,
reward_level, is_get, is_valid
</otherwise>
</otherwise>
</choose>
</choose>
from qd_user_sign_in
from qd_user_sign_in
...
@@ -135,14 +136,14 @@
...
@@ -135,14 +136,14 @@
-->
-->
select
select
<choose>
<choose>
<when
test=
"selective != null and selective.length
>
0"
>
<when
test=
"selective != null and selective.length
>
0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
${column.escapedColumnName}
</foreach>
</foreach>
</when>
</when>
<otherwise>
<otherwise>
id, task_id, user_id, create_time, update_time, sign_in_date,
consecutive_days, is_reward
,
id, task_id, user_id, create_time, update_time, sign_in_date,
add_task_time, consecutive_days
,
reward_level, is_get, is_valid
is_reward,
reward_level, is_get, is_valid
</otherwise>
</otherwise>
</choose>
</choose>
from qd_user_sign_in
from qd_user_sign_in
...
@@ -163,13 +164,13 @@
...
@@ -163,13 +164,13 @@
SELECT LAST_INSERT_ID()
SELECT LAST_INSERT_ID()
</selectKey>
</selectKey>
insert into qd_user_sign_in (task_id, user_id, create_time,
insert into qd_user_sign_in (task_id, user_id, create_time,
update_time, sign_in_date,
consecutive_days
,
update_time, sign_in_date,
add_task_time
,
is_reward, reward_level, is_get
,
consecutive_days, is_reward, reward_level
,
is_valid)
is_
get, is_
valid)
values (#{taskId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
values (#{taskId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{signInDate,jdbcType=VARCHAR}, #{
consecutiveDays,jdbcType=INTEGER
},
#{updateTime,jdbcType=TIMESTAMP}, #{signInDate,jdbcType=VARCHAR}, #{
addTaskTime,jdbcType=TIMESTAMP
},
#{
isReward,jdbcType=BIT}, #{rewardLevel,jdbcType=INTEGER}, #{isGet,jdbcType=BIT
},
#{
consecutiveDays,jdbcType=INTEGER}, #{isReward,jdbcType=BIT}, #{rewardLevel,jdbcType=INTEGER
},
#{isValid,jdbcType=BIT})
#{is
Get,jdbcType=BIT}, #{is
Valid,jdbcType=BIT})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdUserSignIn"
>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdUserSignIn"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
...
@@ -192,6 +193,9 @@
...
@@ -192,6 +193,9 @@
<if
test=
"signInDate != null"
>
<if
test=
"signInDate != null"
>
sign_in_date,
sign_in_date,
</if>
</if>
<if
test=
"addTaskTime != null"
>
add_task_time,
</if>
<if
test=
"consecutiveDays != null"
>
<if
test=
"consecutiveDays != null"
>
consecutive_days,
consecutive_days,
</if>
</if>
...
@@ -224,6 +228,9 @@
...
@@ -224,6 +228,9 @@
<if
test=
"signInDate != null"
>
<if
test=
"signInDate != null"
>
#{signInDate,jdbcType=VARCHAR},
#{signInDate,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"addTaskTime != null"
>
#{addTaskTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"consecutiveDays != null"
>
<if
test=
"consecutiveDays != null"
>
#{consecutiveDays,jdbcType=INTEGER},
#{consecutiveDays,jdbcType=INTEGER},
</if>
</if>
...
@@ -268,6 +275,9 @@
...
@@ -268,6 +275,9 @@
<if
test=
"record.signInDate != null"
>
<if
test=
"record.signInDate != null"
>
sign_in_date = #{record.signInDate,jdbcType=VARCHAR},
sign_in_date = #{record.signInDate,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.addTaskTime != null"
>
add_task_time = #{record.addTaskTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.consecutiveDays != null"
>
<if
test=
"record.consecutiveDays != null"
>
consecutive_days = #{record.consecutiveDays,jdbcType=INTEGER},
consecutive_days = #{record.consecutiveDays,jdbcType=INTEGER},
</if>
</if>
...
@@ -296,6 +306,7 @@
...
@@ -296,6 +306,7 @@
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
sign_in_date = #{record.signInDate,jdbcType=VARCHAR},
sign_in_date = #{record.signInDate,jdbcType=VARCHAR},
add_task_time = #{record.addTaskTime,jdbcType=TIMESTAMP},
consecutive_days = #{record.consecutiveDays,jdbcType=INTEGER},
consecutive_days = #{record.consecutiveDays,jdbcType=INTEGER},
is_reward = #{record.isReward,jdbcType=BIT},
is_reward = #{record.isReward,jdbcType=BIT},
reward_level = #{record.rewardLevel,jdbcType=INTEGER},
reward_level = #{record.rewardLevel,jdbcType=INTEGER},
...
@@ -323,6 +334,9 @@
...
@@ -323,6 +334,9 @@
<if
test=
"signInDate != null"
>
<if
test=
"signInDate != null"
>
sign_in_date = #{signInDate,jdbcType=VARCHAR},
sign_in_date = #{signInDate,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"addTaskTime != null"
>
add_task_time = #{addTaskTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"consecutiveDays != null"
>
<if
test=
"consecutiveDays != null"
>
consecutive_days = #{consecutiveDays,jdbcType=INTEGER},
consecutive_days = #{consecutiveDays,jdbcType=INTEGER},
</if>
</if>
...
@@ -348,6 +362,7 @@
...
@@ -348,6 +362,7 @@
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
sign_in_date = #{signInDate,jdbcType=VARCHAR},
sign_in_date = #{signInDate,jdbcType=VARCHAR},
add_task_time = #{addTaskTime,jdbcType=TIMESTAMP},
consecutive_days = #{consecutiveDays,jdbcType=INTEGER},
consecutive_days = #{consecutiveDays,jdbcType=INTEGER},
is_reward = #{isReward,jdbcType=BIT},
is_reward = #{isReward,jdbcType=BIT},
reward_level = #{rewardLevel,jdbcType=INTEGER},
reward_level = #{rewardLevel,jdbcType=INTEGER},
...
@@ -382,14 +397,14 @@
...
@@ -382,14 +397,14 @@
select
select
'true' as QUERYID,
'true' as QUERYID,
<choose>
<choose>
<when
test=
"selective != null and selective.length
>
0"
>
<when
test=
"selective != null and selective.length
>
0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
${column.escapedColumnName}
</foreach>
</foreach>
</when>
</when>
<otherwise>
<otherwise>
id, task_id, user_id, create_time, update_time, sign_in_date,
consecutive_days, is_reward
,
id, task_id, user_id, create_time, update_time, sign_in_date,
add_task_time, consecutive_days
,
reward_level, is_get, is_valid
is_reward,
reward_level, is_get, is_valid
</otherwise>
</otherwise>
</choose>
</choose>
from qd_user_sign_in
from qd_user_sign_in
...
@@ -401,14 +416,13 @@
...
@@ -401,14 +416,13 @@
</if>
</if>
limit 1
limit 1
</select>
</select>
<select
id=
"countGroupByUser"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdUserSignInExample"
resultType=
"com.wwdz.ch.db.bean.QdUserSignInRecord"
>
<select
id=
"countGroupByUser"
parameterType=
"com.wwdz.ch.db.domain.qiandao.QdUserSignInExample"
resultType=
"com.wwdz.ch.db.bean.QdUserSignInRecord"
>
select `user_id` as userId, count(1) as totalDays from qd_user_sign_in
select `user_id` as userId, count(1) as totalDays from qd_user_sign_in
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
</if>
</if>
group by `user_id` order by totalDays desc
group by `user_id` order by totalDays
, `add_task_time`
desc
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/generatorConfig_new.xml
View file @
922cf26f
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.mapper.qiandao"
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.mapper.qiandao"
targetProject=
"ch-dao/src/main/java"
/>
targetProject=
"ch-dao/src/main/java"
/>
<table
tableName=
"qd_
disposable_subscribe_record
"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<table
tableName=
"qd_
sign_in_ranking
"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<generatedKey
column=
"id"
sqlStatement=
"Mysql"
identity=
"true"
/>
<generatedKey
column=
"id"
sqlStatement=
"Mysql"
identity=
"true"
/>
</table>
</table>
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/qiandao/QdUserSignInServiceImpl.java
View file @
922cf26f
...
@@ -73,6 +73,9 @@ public class QdUserSignInServiceImpl implements QdUserSignInService {
...
@@ -73,6 +73,9 @@ public class QdUserSignInServiceImpl implements QdUserSignInService {
@Autowired
@Autowired
WxCheckRecordDao
wxCheckRecordDao
;
WxCheckRecordDao
wxCheckRecordDao
;
@Autowired
QdSignInRankingDao
qdSignInRankingDao
;
@Override
@Override
public
Result
check
(
QdUserSignInRequestDto
dto
)
{
public
Result
check
(
QdUserSignInRequestDto
dto
)
{
try
{
try
{
...
@@ -240,7 +243,24 @@ public class QdUserSignInServiceImpl implements QdUserSignInService {
...
@@ -240,7 +243,24 @@ public class QdUserSignInServiceImpl implements QdUserSignInService {
}
}
logger
.
info
(
"=========== 微信音频内容安全识别接口调用成功 ==========="
);
logger
.
info
(
"=========== 微信音频内容安全识别接口调用成功 ==========="
);
}
}
//保存签到排名记录
QdSignInRanking
qdSignInRanking
=
qdSignInRankingDao
.
findByIndex
(
userId
,
taskId
);
if
(
qdSignInRanking
==
null
)
{
qdSignInRanking
.
setIsValid
(
true
);
qdSignInRanking
.
setTotalSignInDays
(
1
);
qdSignInRanking
.
setUserId
(
userId
);
qdSignInRanking
.
setTaskId
(
taskId
);
//查询用户加入任务的时间
QdUserSignInTask
qdUserSignInTask
=
qdUserSignInTaskDao
.
findByIndex
(
userId
,
taskId
);
qdSignInRanking
.
setAddTaskTime
(
qdUserSignInTask
.
getCreateTime
());
qdSignInRanking
.
setCreateTime
(
new
Date
());
qdSignInRanking
.
setUpdateTime
(
new
Date
());
qdSignInRankingDao
.
insert
(
qdSignInRanking
);
}
else
{
qdSignInRanking
.
setTotalSignInDays
(
qdSignInRanking
.
getTotalSignInDays
()
+
1
);
qdSignInRanking
.
setUpdateTime
(
new
Date
());
qdSignInRankingDao
.
update
(
qdSignInRanking
);
}
return
Result
.
success
();
return
Result
.
success
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"乾岛签到失败 error:{}"
,
e
);
logger
.
error
(
"乾岛签到失败 error:{}"
,
e
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/qiandao/QdUserSignInTaskServiceImpl.java
View file @
922cf26f
...
@@ -5,10 +5,7 @@ import com.wwdz.ch.core.type.Result;
...
@@ -5,10 +5,7 @@ import com.wwdz.ch.core.type.Result;
import
com.wwdz.ch.db.bean.QdUserSignInRecord
;
import
com.wwdz.ch.db.bean.QdUserSignInRecord
;
import
com.wwdz.ch.db.dao.qiandao.*
;
import
com.wwdz.ch.db.dao.qiandao.*
;
import
com.wwdz.ch.db.domain.User
;
import
com.wwdz.ch.db.domain.User
;
import
com.wwdz.ch.db.domain.qiandao.QdUser
;
import
com.wwdz.ch.db.domain.qiandao.*
;
import
com.wwdz.ch.db.domain.qiandao.QdUserSignIn
;
import
com.wwdz.ch.db.domain.qiandao.QdUserSignInTask
;
import
com.wwdz.ch.db.domain.qiandao.SignInTask
;
import
com.wwdz.ch.db.dto.request.qiandao.QdUserSignInRequestDto
;
import
com.wwdz.ch.db.dto.request.qiandao.QdUserSignInRequestDto
;
import
com.wwdz.ch.db.dto.request.qiandao.QdUserSignInTaskRequestDto
;
import
com.wwdz.ch.db.dto.request.qiandao.QdUserSignInTaskRequestDto
;
import
com.wwdz.ch.db.dto.request.qiandao.SignInTaskRequestDto
;
import
com.wwdz.ch.db.dto.request.qiandao.SignInTaskRequestDto
;
...
@@ -50,6 +47,9 @@ public class QdUserSignInTaskServiceImpl implements QdUserSignInTaskService {
...
@@ -50,6 +47,9 @@ public class QdUserSignInTaskServiceImpl implements QdUserSignInTaskService {
@Autowired
@Autowired
QdUserDao
qdUserDao
;
QdUserDao
qdUserDao
;
@Autowired
QdSignInRankingDao
qdSignInRankingDao
;
@Override
@Override
public
Result
join
(
QdUserSignInTaskRequestDto
dto
)
{
public
Result
join
(
QdUserSignInTaskRequestDto
dto
)
{
try
{
try
{
...
@@ -253,8 +253,13 @@ public class QdUserSignInTaskServiceImpl implements QdUserSignInTaskService {
...
@@ -253,8 +253,13 @@ public class QdUserSignInTaskServiceImpl implements QdUserSignInTaskService {
@Override
@Override
public
Result
findCharts
(
QdUserSignInTaskRequestDto
dto
)
{
public
Result
findCharts
(
QdUserSignInTaskRequestDto
dto
)
{
try
{
try
{
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
long
taskId
=
dto
.
getTaskId
();
long
taskId
=
dto
.
getTaskId
();
long
userId
=
dto
.
getUserId
();
long
userId
=
dto
.
getUserId
();
//查询参加任务的人数
long
joinNum
=
qdUserSignInTaskDao
.
countByTaskId
(
taskId
);
resultMap
.
put
(
"joinNum"
,
joinNum
);
QdUser
cUser
=
qdUserDao
.
queryById
(
userId
);
QdUser
cUser
=
qdUserDao
.
queryById
(
userId
);
//当前用户总打卡数
//当前用户总打卡数
long
currentUserTotalDays
=
qdUserSignInDao
.
countTotalRecord
(
userId
,
taskId
);
long
currentUserTotalDays
=
qdUserSignInDao
.
countTotalRecord
(
userId
,
taskId
);
...
@@ -262,6 +267,7 @@ public class QdUserSignInTaskServiceImpl implements QdUserSignInTaskService {
...
@@ -262,6 +267,7 @@ public class QdUserSignInTaskServiceImpl implements QdUserSignInTaskService {
int
currentUserRanking
=
0
;
int
currentUserRanking
=
0
;
List
<
QdUserSignInRecord
>
list
=
qdUserSignInDao
.
countGroupByUser
(
taskId
);
List
<
QdUserSignInRecord
>
list
=
qdUserSignInDao
.
countGroupByUser
(
taskId
);
List
<
Map
<
String
,
Object
>>
dataList
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
dataList
=
new
ArrayList
<>();
//为了并列排序
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
Map
<
String
,
Object
>
chartsListInfo
=
new
HashMap
<>();
Map
<
String
,
Object
>
chartsListInfo
=
new
HashMap
<>();
int
ranking
=
i
+
1
;
int
ranking
=
i
+
1
;
...
@@ -275,12 +281,18 @@ public class QdUserSignInTaskServiceImpl implements QdUserSignInTaskService {
...
@@ -275,12 +281,18 @@ public class QdUserSignInTaskServiceImpl implements QdUserSignInTaskService {
}
}
dataList
.
add
(
chartsListInfo
);
dataList
.
add
(
chartsListInfo
);
}
}
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
resultMap
.
put
(
"currentUserName"
,
cUser
.
getNickName
());
resultMap
.
put
(
"currentUserName"
,
cUser
.
getNickName
());
resultMap
.
put
(
"currentAvatar"
,
cUser
.
getAvatar
());
resultMap
.
put
(
"currentAvatar"
,
cUser
.
getAvatar
());
resultMap
.
put
(
"currentAvatar"
,
cUser
.
getAvatar
());
resultMap
.
put
(
"currentAvatar"
,
cUser
.
getAvatar
());
if
(
currentUserRanking
==
0
)
{
if
(
currentUserRanking
==
0
)
{
resultMap
.
put
(
"currentUserRanking"
,
"未上榜"
);
if
(
currentUserTotalDays
==
0
)
{
resultMap
.
put
(
"currentUserRanking"
,
"未打卡"
);
}
else
{
QdUserSignInRecord
qdUserSignInRecord
=
qdSignInRankingDao
.
findRanking
(
userId
,
taskId
);
if
(
qdUserSignInRecord
!=
null
)
{
resultMap
.
put
(
"currentUserRanking"
,
qdUserSignInRecord
.
getRanking
());
}
}
}
else
{
}
else
{
resultMap
.
put
(
"currentUserRanking"
,
currentUserRanking
);
resultMap
.
put
(
"currentUserRanking"
,
currentUserRanking
);
}
}
...
...
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