| | |
| | | MachineFile mf; |
| | | for(Long id : idList){ |
| | | mf = macineFileService.getById(id); |
| | | mf.setStatus(MachineFile.STATUS_ACCEPTED); |
| | | mf.accept(); |
| | | macineFileService.updateById(mf); |
| | | |
| | | /* |
| | | MachineBackFile backFile = this.getById(id); |
| | | backFile.setStatus(MachineBackFile.STATUS_ACCEPTED); |
| | | backFile.setConfirmTime(DateUtil.now()); |
| | | this.updateById(backFile); |
| | | |
| | | */ |
| | | } |
| | | |
| | | } |
| | |
| | | public void reject(String ids) { |
| | | List<Long> idList = Func.toLongList(ids); |
| | | |
| | | MachineFile mf; |
| | | for(Long id : idList){ |
| | | mf = macineFileService.getById(id); |
| | | mf.reject(); |
| | | macineFileService.updateById(mf); |
| | | } |
| | | /* |
| | | for(Long id : idList){ |
| | | MachineBackFile backFile = this.getById(id); |
| | | backFile.setStatus(MachineBackFile.STATUS_REJECTED); |
| | | backFile.setConfirmTime(DateUtil.now()); |
| | | this.updateById(backFile); |
| | | } |
| | | }*/ |
| | | |
| | | } |
| | | |
| | |
| | | * @param query 查询参数对象 |
| | | * @return 分页数据 |
| | | */ |
| | | /* |
| | | public IPage<MachineBackFileVO> handlePageQuery(MachineBackFileHandleQueryVO query) { |
| | | IPage<MachineBackFileVO> page = this.getBaseMapper().handlePageQuery(Condition.getPage(query),query); |
| | | return page; |
| | | } |
| | | |
| | | */ |
| | | |
| | | } |