| | |
| | | } |
| | | |
| | | @PostMapping(path="save") |
| | | @SsoPowerAop(power = "-1") |
| | | @SsoPowerAop(power = "10200009") |
| | | @Log("保存排班") |
| | | public BaseResponse<Boolean> save(@RequestBody @Valid PrSchedule schedule){ |
| | | int count = sv.save(schedule); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping(path="update") |
| | | @SsoPowerAop(power = "-1") |
| | | @SsoPowerAop(power = "10200009") |
| | | @Log("更新排班") |
| | | public BaseResponse<Boolean> update(@RequestBody @Valid PrSchedule schedule){ |
| | | int count = sv.update(schedule); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping(path="selectPlan") |
| | | @SsoPowerAop(power = "-1") |
| | | @SsoPowerAop(power = "10200008") |
| | | @Log("查询任务计划列表") |
| | | public BaseResponse<List<JSONObject>> selectPlan(@RequestBody QueryVo vo){ |
| | | List<JSONObject> array = sv.selectPlan(vo) ; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping(path="one") |
| | | @SsoPowerAop(power = "-1") |
| | | @SsoPowerAop(power = "10200008") |
| | | @Log("根据ID查询排班") |
| | | public BaseResponse<PrSchedule> one(Long id){ |
| | | PrSchedule schedule=sv.selectById(id); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping(path="some") |
| | | @SsoPowerAop(power = "-1") |
| | | @SsoPowerAop(power = "10200008") |
| | | @Log("分页查询排班") |
| | | public BaseResponse<QueryResultVo<List<PrSchedule>>> some(@RequestBody com.dy.pmsProduct.schedule.QueryVo vo){ |
| | | public BaseResponse<QueryResultVo<List<PrSchedule>>> some(@RequestBody QueryVo vo){ |
| | | QueryResultVo<List<PrSchedule>> list = sv.selectSome(vo) ; |
| | | return BaseResponseUtils.buildSuccess(list); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping(path="getUserList") |
| | | @SsoPowerAop(power = "-1") |
| | | @SsoPowerAop(power = "10200008") |
| | | @Log("查询系统中操作人员信息") |
| | | public BaseResponse<List<BaUser>> getUserList(){ |
| | | List<BaUser> userList = sv.selectById(); |
| | |
| | | |
| | | |
| | | @PostMapping(path="export") |
| | | @SsoPowerAop(power = "-1") |
| | | @SsoPowerAop(power = "10200009") |
| | | @Log("导出排班") |
| | | public void exportSchedule(@RequestBody QueryVo queryVo, HttpServletResponse response) throws IOException { |
| | | List<ExcelVo> list = new ArrayList<>(); |
| | |
| | | EasyExcel.write(response.getOutputStream(), list.get(0).getClass()).sheet(sheetName) |
| | | .registerWriteHandler(new CustomCellWriteHandler()).doWrite(list); |
| | | } |
| | | |
| | | /** |
| | | * 查询所有,触屏端使用不验证token |
| | | * @param queryVo |
| | | * @return |
| | | */ |
| | | @PostMapping(path="selectAll") |
| | | public BaseResponse<List<PrSchedule>> selectAll(@RequestBody QueryVo queryVo) { |
| | | return BaseResponseUtils.buildSuccess(sv.selectAll(queryVo)); |
| | | } |
| | | } |