| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.common.utils.arg; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | |
| | | @GetMapping("/pageReply") |
| | | public R<IPage<WorkReportVo>> pageReply(WorkReportVo workReport, Query query) { |
| | | IPage<WorkReportVo> pages = workReportService.selectWorkReplyPage(Condition.getPage(query), workReport); |
| | | // List<WorkReportVo> records = pages.getRecords(); |
| | | // for (WorkReportVo record : records) { |
| | | // record.setReplyRealName(getReplyRealName(record)); |
| | | // record.setReplyDeptName(getReplyDeptName(record)); |
| | | // } |
| | | return R.data(pages); |
| | | } |
| | | |
| | |
| | | * @param workReport 工作汇报信息对象 |
| | | */ |
| | | @PostMapping("/submit") |
| | | public R submit(@RequestBody WorkReport workReport) { |
| | | public R submit(@RequestBody WorkReport workReport) throws Exception { |
| | | if (null!=workReport.getId()){ |
| | | workReport.setReplyTime(new Date()); |
| | | workReport.setReplyDeptIds(getReplyDeptIds(workReport.getReceivedIds())); |
| | |
| | | workReport.setReportTime(new Date()); |
| | | workReport.setReplyDeptIds(getReplyDeptIds(workReport.getReceivedIds())); |
| | | } |
| | | arg.test01(arg.url+"/workReport/submit",workReport); |
| | | return R.status(workReportService.saveOrUpdate(workReport)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PostMapping("/remove") |
| | | public R remove(@ApiParam(value = "主键集合") @RequestParam String ids) { |
| | | arg.sendPostRemoveByIds(arg.url+"/workReport/remove",ids); |
| | | return R.status(workReportService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |