Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
fd47f2d7
提交
fd47f2d7
authored
10月 27, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
活动修改
上级
031b1025
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
12 行增加
和
3 行删除
+12
-3
ActivityQO.java
.../src/main/java/com/mmc/iuav/user/model/qo/ActivityQO.java
+3
-0
ActivityDao.java
...user/src/main/java/com/mmc/iuav/user/dao/ActivityDao.java
+1
-1
ActivityServiceImpl.java
...a/com/mmc/iuav/user/service/impl/ActivityServiceImpl.java
+1
-1
activity.xml
...e/cms-service-user/src/main/resources/mapper/activity.xml
+7
-1
没有找到文件。
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/qo/ActivityQO.java
浏览文件 @
fd47f2d7
...
...
@@ -20,6 +20,9 @@ import java.io.Serializable;
public
class
ActivityQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
5184984402962050696L
;
@ApiModelProperty
(
value
=
"活动名称"
)
private
Integer
activityName
;
@ApiModelProperty
(
value
=
"活动id"
)
private
Integer
activityId
;
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/ActivityDao.java
浏览文件 @
fd47f2d7
...
...
@@ -31,7 +31,7 @@ public interface ActivityDao {
ActivityDO
currentActivity
(
Integer
activityType
);
int
countActivityPart
(
Integer
activityId
,
Integer
userAccountId
);
int
countActivityPart
(
Integer
activityId
);
void
insertActivityPart
(
ActivityPartDO
activityPartDO
);
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/ActivityServiceImpl.java
浏览文件 @
fd47f2d7
...
...
@@ -103,7 +103,7 @@ public class ActivityServiceImpl implements ActivityService {
return
ResultBody
.
success
();
}
// 查询是否超过奖励限制
int
count
=
activityDao
.
countActivityPart
(
activityDO
.
getId
()
,
userAccountId
);
int
count
=
activityDao
.
countActivityPart
(
activityDO
.
getId
());
if
(
activityDO
.
getRequireNum
()
==
0
||
count
<
activityDO
.
getRequireNum
())
{
log
.
info
(
"Activity invite award! userAccountId:{}"
,
userAccountId
);
// 暂时只奖励积分
...
...
csm-service/cms-service-user/src/main/resources/mapper/activity.xml
浏览文件 @
fd47f2d7
...
...
@@ -89,6 +89,9 @@
parameterType=
"com.mmc.iuav.user.model.qo.ActivityQO"
>
select count(*) from activity
where is_deleted = 0
<if
test=
"activityName != null"
>
and activity_name = #{activityName}
</if>
<if
test=
"activityType != null"
>
and activity_type = #{activityType}
</if>
...
...
@@ -102,6 +105,9 @@
<include
refid=
"activity_column"
/>
from activity ac
where ac.is_deleted = 0
<if
test=
"activityName != null"
>
and ac.activity_name = #{activityName}
</if>
<if
test=
"activityType != null"
>
and ac.activity_type = #{activityType}
</if>
...
...
@@ -148,7 +154,7 @@
<select
id=
"countActivityPart"
resultType=
"java.lang.Integer"
>
select count(*) from activity ac inner join activity_part acp on ac.id = acp.activity_id
where acp.activity_id = #{activityId}
and acp.user_account_id = #{userAccountId}
where acp.activity_id = #{activityId}
</select>
<select
id=
"activityPartDetail"
resultType=
"com.mmc.iuav.user.entity.activity.ActivityPartDO"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论