| | |
| | | import com.qianwen.smartman.modules.cps.vo.TraySurfaceVO; |
| | | |
| | | @Service |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/service/impl/TraySurfaceServiceImpl.class */ |
| | | public class TraySurfaceServiceImpl extends BladeServiceImpl<TraySurfaceMapper, TraySurface> implements ITraySurfaceService { |
| | | private final ITrayFixtureService fixtureService; |
| | | |
| | |
| | | this.fixtureService = fixtureService; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.ITraySurfaceService |
| | | |
| | | public Boolean removeFace(Long trayId, Long faceId) { |
| | | int count = this.baseMapper.removeFixture(trayId, faceId); |
| | | ThrowFun.isTrue(count > 0).throwMessage(MessageUtils.message("cps.face.fixture.station.fixture", new Object[0])); |
| | |
| | | return Boolean.valueOf(removeById(faceId) && removeFixture); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.ITraySurfaceService |
| | | |
| | | public List<TraySurfaceVO> listTraySurface(Long trayId) { |
| | | return this.baseMapper.listTraySurface(trayId); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.ITraySurfaceService |
| | | |
| | | public TraySurfaceVO saveTrayFave(TrayFaceAddVO vo) { |
| | | Long trayId = vo.getTrayId(); |
| | | validFaceCode(vo.getCode(), trayId); |
| | |
| | | return TraySurfaceConvert.INSTANCE.convert(surface).setFixtureNum(0); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.ITraySurfaceService |
| | | |
| | | public Boolean updateTraySurface(TrayFaceUpdateVO vo) { |
| | | return Boolean.valueOf(update(Wrappers.<TraySurface>lambdaUpdate().set(TraySurface::getName, vo.getName()).eq(TraySurface::getId, vo.getId()))); |
| | | /* |
| | |
| | | }, vo.getId())));*/ |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.ITraySurfaceService |
| | | |
| | | public List<TraySurface> listByTrayCodeName(Wrapper<TrayFixtureImport> wrapper) { |
| | | return this.baseMapper.listByTrayCodeName(wrapper); |
| | | } |