记得上下班打卡 | git大法好,push需谨慎

Commit 41525e25 authored by 胡佳晨's avatar 胡佳晨

修改活动列表

parent 20613482
...@@ -205,14 +205,13 @@ public class SmileVolunteersController extends BaseController { ...@@ -205,14 +205,13 @@ public class SmileVolunteersController extends BaseController {
return volunteersService.list(param); return volunteersService.list(param);
} }
@GetMapping("/details/{uid}/{projectId}") @GetMapping("/details/{mid}")
@ApiOperation("志愿者详情") @ApiOperation("志愿者详情")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "projectId", value = "活动id"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "mid", value = "mid"),
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "uid", value = "用户id"),
}) })
public String detailsVolunteers(String projectId, String uid, ModelMap mmap) { public String detailsVolunteers(String mid, ModelMap mmap) {
SmileVolunteersDetailsVo data = volunteersService.details(projectId, uid); SmileVolunteersDetailsVo data = volunteersService.details(mid);
mmap.put("smileVolunteersDetailsVo", data); mmap.put("smileVolunteersDetailsVo", data);
return prefix + "/details"; return prefix + "/details";
} }
......
...@@ -61,71 +61,54 @@ ...@@ -61,71 +61,54 @@
checkbox: true checkbox: true
}, },
{ {
field: 'title', field: 'mid',
title: '演出名称' title: '序号'
}, },
{ {
field: 'performancesId', field: 'uid',
title: '演出id' title: '用户id'
}, },
{ {
field: 'timeStart', field: 'name',
title: '开演时间' title: '姓名'
}, },
{ {
field: 'totalGeneral', field: 'img',
title: '供票总量' title: '头像'
}, },
{ {
field: 'saleGeneral', field: 'sex',
title: '实销' title: '性别'
}, },
{ {
field: 'surplusGeneral', field: 'status',
title: '余票' title: '状态'
}, },
{ {
field: 'totalSalePrice', field: 'school',
title: '总销售款' title: '学校'
}, },
{ {
field: 'statusName', field: 'phone',
title: '演出状态' title: '手机号'
}, },
{ {
field: 'rejectTxt', field: 'createdAt',
title: '拒绝理由' title: '创建时间'
},
{
field: 'sort',
title: '排序',
sortable: true
}, },
{ {
title: '操作', title: '操作',
align: 'center', align: 'center',
formatter: function (value, row, index) { formatter: function (value, row, index) {
var actions = []; var actions = [];
if (row.auditStatus == 0 && row.fieldAuditStatus == 0) { actions.push('<a class="btn btn-warning btn-xs ' + expertFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.performancesId + '\')"><i class="fa fa-remove"></i>同步</a>');
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.performancesId + '\')"><i class="fa fa-edit"></i>管理</a> ');
} else {
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.performancesId + '\')"><i class="fa fa-edit"></i>查看</a> ');
}
if (row.syncDamai == 1) {
actions.push('<a class="btn btn-warning btn-xs ' + expertFlag + '" href="javascript:void(0)" onclick="f(\'' + row.performancesId + '\')"><i class="fa fa-remove"></i>同步</a>');
}
return actions.join(''); return actions.join('');
} }
}] }]
}; };
$.table.init(options); $.table.init(options);
}); });
function f(id) {
$.post(prefix + "/sync/damai", {performancesId: id}, function (res) {
alert(res.msg)
});
}
</script> </script>
</body> </body>
</html> </html>
...@@ -24,6 +24,6 @@ public interface ISmileVolunteersService extends IService<SmileVolunteers> { ...@@ -24,6 +24,6 @@ public interface ISmileVolunteersService extends IService<SmileVolunteers> {
AjaxResult audit(String projectId, String uid, String teamId, Integer status); AjaxResult audit(String projectId, String uid, String teamId, Integer status);
//志愿者详情详情 //志愿者详情详情
SmileVolunteersDetailsVo details(String projectId, String uid); SmileVolunteersDetailsVo details(String mid);
} }
...@@ -35,7 +35,6 @@ public class SmileVolunteersServiceImpl extends ServiceImpl<SmileVolunteersMappe ...@@ -35,7 +35,6 @@ public class SmileVolunteersServiceImpl extends ServiceImpl<SmileVolunteersMappe
SmileVolunteersTeamRelationMapper volunteersTeamRelationMapper; SmileVolunteersTeamRelationMapper volunteersTeamRelationMapper;
@Override @Override
public TableDataInfo list(SmileVSParam param) { public TableDataInfo list(SmileVSParam param) {
try { try {
...@@ -93,8 +92,8 @@ public class SmileVolunteersServiceImpl extends ServiceImpl<SmileVolunteersMappe ...@@ -93,8 +92,8 @@ public class SmileVolunteersServiceImpl extends ServiceImpl<SmileVolunteersMappe
} }
@Override @Override
public SmileVolunteersDetailsVo details(String projectId, String uid) { public SmileVolunteersDetailsVo details(String mid) {
SmileVolunteers bean = volunteersMapper.selectOne(Wrappers.lambdaQuery(SmileVolunteers.class).eq(SmileVolunteers::getProjectId, projectId).eq(SmileVolunteers::getUid, uid)); SmileVolunteers bean = volunteersMapper.selectOne(Wrappers.lambdaQuery(SmileVolunteers.class).eq(SmileVolunteers::getMid, mid));
ArrayList<String> teamIdArray = CollectionUtil.arrayListString(); ArrayList<String> teamIdArray = CollectionUtil.arrayListString();
if (bean == null) { if (bean == null) {
return null; return null;
...@@ -109,7 +108,7 @@ public class SmileVolunteersServiceImpl extends ServiceImpl<SmileVolunteersMappe ...@@ -109,7 +108,7 @@ public class SmileVolunteersServiceImpl extends ServiceImpl<SmileVolunteersMappe
teamIdArray.add(bean.getTeamId3()); teamIdArray.add(bean.getTeamId3());
} }
} else if (bean.getStatus().equals(1)) {//审核通过 显示分配的组 } else if (bean.getStatus().equals(1)) {//审核通过 显示分配的组
List<String> teamIds = volunteersTeamRelationMapper.selectList(Wrappers.lambdaQuery(SmileVolunteersTeamRelation.class).eq(SmileVolunteersTeamRelation::getProjectId, projectId).eq(SmileVolunteersTeamRelation::getUid, uid)) List<String> teamIds = volunteersTeamRelationMapper.selectList(Wrappers.lambdaQuery(SmileVolunteersTeamRelation.class).eq(SmileVolunteersTeamRelation::getProjectId, bean.getProjectId()).eq(SmileVolunteersTeamRelation::getUid, bean.getUid()))
.stream().map(SmileVolunteersTeamRelation::getTeamId).collect(Collectors.toList()); .stream().map(SmileVolunteersTeamRelation::getTeamId).collect(Collectors.toList());
teamIdArray.addAll(teamIds); teamIdArray.addAll(teamIds);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment