Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
ecd60d99
提交
ecd60d99
authored
10月 20, 2023
作者:
xiaowang
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop'
上级
052c4702
e8cdda2d
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
41 行增加
和
11 行删除
+41
-11
SignInDao.java
...src/main/java/com/mmc/iuav/user/dao/signin/SignInDao.java
+4
-0
SignInServiceImpl.java
.../mmc/iuav/user/service/signin/impl/SignInServiceImpl.java
+25
-9
CooperationDao.xml
...service-user/src/main/resources/mapper/CooperationDao.xml
+1
-1
SignIn.xml
...-service-user/src/main/resources/mapper/signin/SignIn.xml
+10
-0
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/signin/SignInDao.java
浏览文件 @
ecd60d99
...
@@ -40,4 +40,8 @@ public interface SignInDao {
...
@@ -40,4 +40,8 @@ public interface SignInDao {
void
updateUserAppSignInD
(
AppSignInVO
appSignInVO
);
void
updateUserAppSignInD
(
AppSignInVO
appSignInVO
);
List
<
SignInRecordDO
>
signInRecord
(
Integer
userAccountId
);
List
<
SignInRecordDO
>
signInRecord
(
Integer
userAccountId
);
void
deleteSign
();
void
deleteSignRecord
();
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/signin/impl/SignInServiceImpl.java
浏览文件 @
ecd60d99
...
@@ -38,6 +38,13 @@ public class SignInServiceImpl implements SignInService {
...
@@ -38,6 +38,13 @@ public class SignInServiceImpl implements SignInService {
@Override
@Override
public
ResultBody
SignIn
(
SignInVO
signInVO
)
{
public
ResultBody
SignIn
(
SignInVO
signInVO
)
{
SignInDO
signInDO
=
new
SignInDO
(
signInVO
);
SignInDO
signInDO
=
new
SignInDO
(
signInVO
);
List
<
SignInDO
>
signInDOS
=
signInDao
.
SignInList
();
for
(
SignInDO
inDO
:
signInDOS
)
{
if
(!
inDO
.
getPeriod
().
equals
(
signInVO
.
getPeriod
())){
signInDao
.
deleteSign
();
signInDao
.
deleteSignRecord
();
}
}
if
(
signInDO
.
getId
()!=
null
){
if
(
signInDO
.
getId
()!=
null
){
int
update
=
signInDao
.
update
(
signInDO
);
int
update
=
signInDao
.
update
(
signInDO
);
signInDao
.
remove
(
signInDO
.
getId
());
signInDao
.
remove
(
signInDO
.
getId
());
...
@@ -78,7 +85,16 @@ public class SignInServiceImpl implements SignInService {
...
@@ -78,7 +85,16 @@ public class SignInServiceImpl implements SignInService {
signInDao
.
insertSignInRecord
(
appSignInVO
);
signInDao
.
insertSignInRecord
(
appSignInVO
);
for
(
SignInDO
signInDO
:
signInDOS
)
{
for
(
SignInDO
signInDO
:
signInDOS
)
{
Integer
integral
=
signInDO
.
getIntegral
();
Integer
integral
=
signInDO
.
getIntegral
();
changeUserPointVO
.
setChangePoint
(
integral
);
Integer
allPoint
=
0
;
List
<
UserContinuousCheckInVO
>
userContinuousCheckInVO
=
signInDO
.
getUserContinuousCheckInVO
();
for
(
UserContinuousCheckInVO
continuousCheckInVO
:
userContinuousCheckInVO
)
{
Integer
numberOfDays
=
continuousCheckInVO
.
getNumberOfDays
();
if
(
numberOfDays
==
1
){
Integer
bonusPoints
=
continuousCheckInVO
.
getBonusPoints
();
allPoint
=
integral
+
bonusPoints
;
}
}
changeUserPointVO
.
setChangePoint
(
allPoint
);
}
}
userPointsService
.
change
(
changeUserPointVO
);
userPointsService
.
change
(
changeUserPointVO
);
}
}
...
@@ -104,14 +120,14 @@ public class SignInServiceImpl implements SignInService {
...
@@ -104,14 +120,14 @@ public class SignInServiceImpl implements SignInService {
for
(
SignInDO
signInDO
:
signInDOS
)
{
for
(
SignInDO
signInDO
:
signInDOS
)
{
Integer
integral
=
signInDO
.
getIntegral
();
Integer
integral
=
signInDO
.
getIntegral
();
List
<
UserContinuousCheckInVO
>
userContinuousCheckInVO
=
signInDO
.
getUserContinuousCheckInVO
();
List
<
UserContinuousCheckInVO
>
userContinuousCheckInVO
=
signInDO
.
getUserContinuousCheckInVO
();
for
(
UserContinuousCheckInVO
continuousCheckInVO
:
userContinuousCheckInVO
)
{
List
<
UserContinuousCheckInVO
>
collect
=
userContinuousCheckInVO
.
stream
().
filter
(
t
->
t
.
getNumberOfDays
().
equals
(
userAppSignInDO1
.
getSignInDays
())).
collect
(
Collectors
.
toList
());
if
(
continuousCheckInVO
.
getNumberOfDays
().
equals
(
userAppSignInDO1
.
getSignInDays
()))
{
for
(
UserContinuousCheckInVO
continuousCheckInVO
:
collect
)
{
int
bonusPoints
=
continuousCheckInVO
.
getBonusPoints
();
int
bonusPoints
=
continuousCheckInVO
.
getBonusPoints
();
allPoints
=
integral
+
bonusPoints
;
allPoints
=
integral
+
bonusPoints
;
changeUserPointVO
.
setChangePoint
(
allPoints
);
changeUserPointVO
.
setChangePoint
(
allPoints
);
}
else
if
(!
continuousCheckInVO
.
getNumberOfDays
().
equals
(
userAppSignInDO1
.
getSignInDays
())){
}
changeUserPointVO
.
setChangePoint
(
integral
);
if
(
collect
.
size
()==
0
){
}
changeUserPointVO
.
setChangePoint
(
integral
);
}
}
}
}
userPointsService
.
change
(
changeUserPointVO
);
userPointsService
.
change
(
changeUserPointVO
);
...
...
csm-service/cms-service-user/src/main/resources/mapper/CooperationDao.xml
浏览文件 @
ecd60d99
...
@@ -466,7 +466,7 @@
...
@@ -466,7 +466,7 @@
and uat.is_deleted = 0
and uat.is_deleted = 0
and uat.apply_status = 1
and uat.apply_status = 1
and ci.is_deleted = 0
and ci.is_deleted = 0
ORDER BY distance ASC
ORDER BY
if(ci.id = 11, 1, 0) DESC,
distance ASC
LIMIT #{pageNo}, #{pageSize}
LIMIT #{pageNo}, #{pageSize}
</select>
</select>
<select
id=
"getJoinStoreCount"
resultType=
"java.lang.Integer"
>
<select
id=
"getJoinStoreCount"
resultType=
"java.lang.Integer"
>
...
...
csm-service/cms-service-user/src/main/resources/mapper/signin/SignIn.xml
浏览文件 @
ecd60d99
...
@@ -72,6 +72,14 @@
...
@@ -72,6 +72,14 @@
delete from sign_in_record where user_account_id=#{userAccountId}
delete from sign_in_record where user_account_id=#{userAccountId}
</delete>
</delete>
<delete
id=
"deleteSign"
>
delete from user_app_sign_in
</delete>
<delete
id=
"deleteSignRecord"
>
delete from sign_in_record
</delete>
<insert
id=
"insertSignInRecord"
parameterType=
"com.mmc.iuav.user.model.vo.signin.AppSignInVO"
>
<insert
id=
"insertSignInRecord"
parameterType=
"com.mmc.iuav.user.model.vo.signin.AppSignInVO"
>
insert into sign_in_record(user_account_id,sign_in_time,create_time,update_time)
insert into sign_in_record(user_account_id,sign_in_time,create_time,update_time)
values(#{userAccountId},#{signTime},NOW(),NOW())
values(#{userAccountId},#{signTime},NOW(),NOW())
...
@@ -90,4 +98,6 @@
...
@@ -90,4 +98,6 @@
</select>
</select>
</mapper>
</mapper>
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
ecd60d99
...
@@ -18,4 +18,4 @@ patches:
...
@@ -18,4 +18,4 @@ patches:
images
:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms
newTag
:
b38bc5b6374e85ae77c492215d7ff3830022547a
newTag
:
4c3c5ff67a1e639106fdd7c5a56a97482a7e1c62
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论