| | |
| | | this.ossBuilder = ossBuilder; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IMalfunctionTypeService |
| | | |
| | | public MalfunctionTypeVO insert(MalfunctionTypeVO malfunctionTypeVO) { |
| | | boolean id = (Func.isNotEmpty(malfunctionTypeVO.getId()) ? Boolean.TRUE : Boolean.FALSE).booleanValue(); |
| | | boolean result = checkUnableMalfunctionTypeVO(malfunctionTypeVO.getCode()); |
| | |
| | | return MalfunctionTypeConvert.INSTANCE.convert(malfunctionType); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IMalfunctionTypeService |
| | | |
| | | public Boolean deleteMalfunctionTypeByIdList(List<Long> malfunctionTypeIds, Integer type) { |
| | | if (StatusType.REMOVE.getType().equals(type)) { |
| | | return Boolean.valueOf(remove(Wrappers.<MalfunctionType>lambdaQuery().in(MalfunctionType::getId, malfunctionTypeIds))); |
| | |
| | | return Boolean.valueOf(changeStatus(malfunctionTypeIds, CommonConstant.DEACTIVATE)); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IMalfunctionTypeService |
| | | |
| | | public IPage<MalfunctionTypeVO> listPage(Query query, String keyWord, Integer status) { |
| | | IPage<MalfunctionType> page = page(Condition.getPage(query), Wrappers.<MalfunctionType>query() |
| | | .lambda() |
| | |
| | | }).orElse(new Page<>()); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IMalfunctionTypeService |
| | | |
| | | public MalfunctionTypeVO detail(Long malfunctionTypeId) { |
| | | MalfunctionType malfunctionType = (MalfunctionType) this.baseMapper.selectById(malfunctionTypeId); |
| | | return MalfunctionTypeConvert.INSTANCE.convert(malfunctionType); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IMalfunctionTypeService |
| | | |
| | | public BladeFile importMalfunctionType(List<MalfunctionTypeImport> data) { |
| | | if (Func.isEmpty(data)) { |
| | | throw new ServiceException(MessageUtils.message("excel.import.data.can.not.be.null", new Object[0])); |
| | |
| | | return null; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IMalfunctionTypeService |
| | | |
| | | public Boolean updateMalfunctionType(MalfunctionTypeVO malfunctionTypeVO) { |
| | | checkMalfunctionTypeVO(malfunctionTypeVO); |
| | | Long id = malfunctionTypeVO.getId(); |
| | |
| | | }, id)));*/ |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IMalfunctionTypeService |
| | | |
| | | public List<MalfunctionTypeRecordVO> getCodeAndRecord() { |
| | | List<MalfunctionType> list = list(Wrappers.<MalfunctionType>lambdaQuery() |
| | | .eq(MalfunctionType::getStatus, CommonConstant.ENABLE) |