| | |
| | | PageInfo<DeviceResourceApply> pageInfo = new PageInfo<>(deviceResourceApplies); |
| | | return new Response().set(1,pageInfo); |
| | | } |
| | | |
| | | public Response approve(Integer id, Integer status) { |
| | | DeviceResourceApply apply = new DeviceResourceApply(); |
| | | apply.setId(id); |
| | | apply.setStatus(status); |
| | | apply.setApproveTime(new Date()); |
| | | mapper.updateById(apply); |
| | | return new Response().setMsg(1,"审批完成"); |
| | | } |
| | | |
| | | public Response getApplyInfo(Integer id) { |
| | | DeviceResourceApply apply = mapper.getApplyInfo(id); |
| | | return new Response().set(1,apply); |
| | | } |
| | | } |