This commit is contained in:
zhangqinlin
2022-07-18 16:25:23 +08:00
parent 14eb361600
commit 12dd032d52
2 changed files with 16 additions and 3 deletions
@@ -156,13 +156,25 @@ public class PayMeetingQuestionController extends JeroController<PayMeetingQuest
*/
@AutoLog(value = "征集问题-通过id删除")
@ApiOperation(value = "征集问题-通过id删除", notes = "征集问题-通过id删除")
@PostMapping(value = "/delete")
@GetMapping(value = "/delete")
public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
payMeetingQuestionService.removeById(id);
return Result.ok("删除成功!");
}
/**
* 通过id删除
*
* @param ids
* @return
*/
@AutoLog(value = "征集问题-批量删除")
@ApiOperation(value = "征集问题-批量删除", notes = "征集问题-批量删除")
@GetMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
payMeetingQuestionService.removeByIds(Arrays.asList(ids.split(",")));
return Result.ok("批量删除成功!");
}
/**
* 导出excel
*
@@ -193,6 +205,7 @@ public class PayMeetingQuestionController extends JeroController<PayMeetingQuest
// lambdaQueryWrapper.eq(PayMeetingQuestion::getCreaterId, payMeetingQuestion.getMeetingId());
// }
// }
queryWrapper.in(StringUtils.isNotBlank(searchStandard.getSelections()),"pmq.id", Arrays.asList(searchStandard.getSelections().split(",")));
queryWrapper.eq(StringUtils.isNotBlank(searchStandard.getStandardNumber()),"pms.standard_number", searchStandard.getStandardNumber());
queryWrapper.eq("pm.id", searchStandard.getMeetingId());
queryWrapper.like(StringUtils.isNotBlank(searchStandard.getCreater()),"pmq.creater", searchStandard.getCreater());
@@ -22,6 +22,6 @@ public class SearchStandard {
@ApiModelProperty(value = "创建人")
private java.lang.String creater;
private java.lang.String selections;
}