commit
This commit is contained in:
+1
@@ -81,6 +81,7 @@ public class ClientActivityController {
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询报名人员
|
||||
* 报名人不见得参加活动
|
||||
|
||||
+14
@@ -117,4 +117,18 @@ public class ClientItemController {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 取消项目报名
|
||||
* @param signVO
|
||||
* @return
|
||||
*/
|
||||
@At("/cancel-team-sign-up")
|
||||
@AdaptBy(type = JsonAdaptor.class)
|
||||
@SaCheckLogin(type = StpClientUtil.TYPE)
|
||||
public synchronized Result cancelTeamSignUp(ClientActivitySignVO signVO) {
|
||||
clientItemService.cancelTeamSignUp(signVO);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
+3
@@ -1,9 +1,12 @@
|
||||
package com.budwk.app.client.module.activity.service;
|
||||
|
||||
import com.budwk.app.base.service.BaseService;
|
||||
import com.budwk.app.client.module.activity.vo.ClientActivitySignVO;
|
||||
import com.budwk.app.client.module.activity.vo.ClientItemSignUpVO;
|
||||
import com.budwk.app.module.activity.models.ActivityItemUser;
|
||||
|
||||
public interface ClientItemService extends BaseService<ActivityItemUser> {
|
||||
void signUp(ClientItemSignUpVO signVO);
|
||||
|
||||
void cancelTeamSignUp(ClientActivitySignVO signVO);
|
||||
}
|
||||
|
||||
+7
@@ -2,6 +2,7 @@ package com.budwk.app.client.module.activity.service.impl;
|
||||
|
||||
import com.budwk.app.base.service.impl.BaseServiceImpl;
|
||||
import com.budwk.app.client.module.activity.service.ClientItemService;
|
||||
import com.budwk.app.client.module.activity.vo.ClientActivitySignVO;
|
||||
import com.budwk.app.client.module.activity.vo.ClientItemSignUpVO;
|
||||
import com.budwk.app.module.activity.models.ActGroupUser;
|
||||
import com.budwk.app.module.activity.models.Activity;
|
||||
@@ -59,4 +60,10 @@ public class ClientItemServiceImpl extends BaseServiceImpl<ActivityItemUser> imp
|
||||
}
|
||||
insert(userList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cancelTeamSignUp(ClientActivitySignVO signVO) {
|
||||
clear(Cnd.where(ActivityItemUser::getActivityId, "=", signVO.getActivityId())
|
||||
.and(ActivityItemUser::getItemId, "=", signVO.getItemId()));
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -12,6 +12,7 @@ import java.util.List;
|
||||
public class ClientActivitySignVO {
|
||||
|
||||
private Long activityId;
|
||||
private Long itemId;
|
||||
|
||||
private String unitName;
|
||||
|
||||
|
||||
@@ -31,15 +31,15 @@ const itemForm = {
|
||||
<el-table-column label="报名人数">
|
||||
<template #default="{row}">
|
||||
<el-input-number v-model="row.num" :disabled="row.isTeamApply"
|
||||
placeholder="请输入报名人数"></el-input-number>
|
||||
placeholder="请输入报名人数" style="width: 100%"></el-input-number>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="图片">
|
||||
<template #default="{row}">
|
||||
{{row.img}}
|
||||
<image-upload v-model="row.img" :maxCount="1"></image-upload>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="图片">
|
||||
<template #default="{row}">
|
||||
{{row.img}}
|
||||
<image-upload v-model="row.img" :max-count="1"></image-upload>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
<el-table-column label="操作" fixed="right" width="100px">
|
||||
<template #default="{$index}">
|
||||
<el-button type="text" class="text-danger" @click="removeRow($index)">删除</el-button>
|
||||
|
||||
Reference in New Issue
Block a user