新增按id查询起草组信息(免token)
This commit is contained in:
+5
@@ -201,6 +201,11 @@ public class ShiroConfig {
|
|||||||
// 快递100-快递信息
|
// 快递100-快递信息
|
||||||
filterChainDefinitionMap.put("/mail/postInfo/queryInfo","anon");
|
filterChainDefinitionMap.put("/mail/postInfo/queryInfo","anon");
|
||||||
|
|
||||||
|
// 起草组报名-按照id查询
|
||||||
|
filterChainDefinitionMap.put("/drafting/payDraftingGroup/applyQueryById","anon");
|
||||||
|
// 起草组报名-提交信息
|
||||||
|
filterChainDefinitionMap.put("/drafting/payDraftingGroupSubitem/addByQRCode","anon");
|
||||||
|
|
||||||
// 添加自己的过滤器并且取名为jwt
|
// 添加自己的过滤器并且取名为jwt
|
||||||
Map<String, Filter> filterMap = new HashMap<String, Filter>(1);
|
Map<String, Filter> filterMap = new HashMap<String, Filter>(1);
|
||||||
//如果cloudServer为空 则说明是单体 需要加载跨域配置
|
//如果cloudServer为空 则说明是单体 需要加载跨域配置
|
||||||
|
|||||||
+26
@@ -300,4 +300,30 @@ public class PayDraftingGroupController extends JeroController<PayDraftingGroup,
|
|||||||
public Result<String> createBase64(String contact) {
|
public Result<String> createBase64(String contact) {
|
||||||
return Result.OK(QrcodeUtil.create(contact));
|
return Result.OK(QrcodeUtil.create(contact));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报名-起草组项目报名-通过id查询
|
||||||
|
*
|
||||||
|
* @param id 起草组项目id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="报名-起草组项目-通过id查询", notes="报名-起草组项目-通过id查询")
|
||||||
|
@GetMapping(value = "/applyQueryById")
|
||||||
|
public Result<?> applyQueryById(@RequestParam(name="id") String id) {
|
||||||
|
if (StringUtils.isBlank(id)) {
|
||||||
|
return Result.error("起草组id不能为空");
|
||||||
|
}
|
||||||
|
PayDraftingGroup payDraftingGroup = payDraftingGroupService.getById(id);
|
||||||
|
if(Objects.isNull(payDraftingGroup)) {
|
||||||
|
return Result.error("未找到对应数据");
|
||||||
|
}
|
||||||
|
// 根据工作组id查询对应的工作组名称
|
||||||
|
if (StringUtils.isNotBlank(payDraftingGroup.getWorkingGroupId())) {
|
||||||
|
PayWorkingGroup payWorkingGroup = payDraftingGroupService.getPayWorkingGroupNameById(payDraftingGroup.getWorkingGroupId());
|
||||||
|
if (!Objects.isNull(payWorkingGroup)) {
|
||||||
|
payDraftingGroup.setWorkingGroupName(payWorkingGroup.getWorkingGroupProject());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Result.OK(payDraftingGroup);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user