| | |
| | | package com.mes.rawglassstation.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.mes.rawglassdetails.entity.RawGlassStorageDetails; |
| | | import com.mes.rawglassstation.entity.RawGlassStorageStation; |
| | | import com.mes.rawglassstation.mapper.RawGlassStorageStationMapper; |
| | | import com.mes.rawglassstation.service.RawGlassStorageStationService; |
| | | import com.mes.rawglasstask.entity.RawGlassStorageTask; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | return this.save(rw); |
| | | } |
| | | |
| | | @Override |
| | | public List<RawGlassStorageTask> listRawGlassDetails() { |
| | | @Override |
| | | public List<RawGlassStorageDetails> listRawGlassDetails() { |
| | | return baseMapper.listRawGlassDetails(); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public boolean updateSlotState(Integer slot, Integer enableState) { |
| | | return update( |
| | | new LambdaUpdateWrapper<RawGlassStorageStation>() |
| | | .set(RawGlassStorageStation::getEnableState, enableState) |
| | | .eq(RawGlassStorageStation::getSlot, slot)); |
| | | } |
| | | } |