| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.core.mp.base.BizServiceImpl; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.mdm.basesetting.machine.vo.MachineQueryVO; |
| | | import org.springblade.mdm.basesetting.machine.vo.MachineVO; |
| | | import org.springblade.mdm.machineback.entity.MachineBackFile; |
| | | import org.springblade.mdm.machineback.mapper.MachineBackFileMapper; |
| | | import org.springblade.mdm.machineback.vo.MachineBackFileHandleQueryVO; |
| | | import org.springblade.mdm.machineback.vo.MachineBackFileQueryVO; |
| | | import org.springblade.mdm.machineback.vo.MachineBackFileVO; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | @Service |
| | | public class MachineBackFileService extends BizServiceImpl<MachineBackFileMapper, MachineBackFile> { |
| | | /* |
| | | @Transactional |
| | | public void save(MachineSaveVO vo){ |
| | | //TODO |
| | | Machine machine = new Machine(); |
| | | BeanUtil.copyProperties(vo, machine); |
| | | this.save(machine); |
| | | } |
| | | */ |
| | | |
| | | /** |
| | | * 接受 |
| | | * @param ids |
| | | */ |
| | | public void accept(String ids) { |
| | | |
| | | List<Long> idList = Func.toLongList(ids); |
| | |
| | | for(Long id : idList){ |
| | | MachineBackFile backFile = this.getById(id); |
| | | backFile.setStatus(MachineBackFile.STATUS_ACCEPTED); |
| | | backFile.setConfirmTime(DateUtil.now()); |
| | | this.updateById(backFile); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 拒绝 |
| | | * @param ids |
| | | */ |
| | | public void reject(String ids) { |
| | | List<Long> idList = Func.toLongList(ids); |
| | | |
| | |
| | | |
| | | return page; |
| | | } |
| | | |
| | | public IPage<MachineBackFileVO> handlePageQuery(MachineBackFileHandleQueryVO query) { |
| | | IPage<MachineBackFileVO> page = this.getBaseMapper().handlePageQuery(Condition.getPage(query),query); |
| | | return page; |
| | | } |
| | | } |