| | |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.mapper.LocMastMapper; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.service.MonitorLocMapCacheService; |
| | | import com.zy.asrs.utils.Utils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | @Service("locMastService") |
| | | public class LocMastServiceImpl extends ServiceImpl<LocMastMapper, LocMast> implements LocMastService { |
| | | |
| | | @Autowired |
| | | private MonitorLocMapCacheService monitorLocMapCacheService; |
| | | |
| | | @Override |
| | | public boolean updateById(LocMast entity) { |
| | | boolean updated = super.updateById(entity); |
| | | if (updated) { |
| | | monitorLocMapCacheService.clearQuietly(); |
| | | } |
| | | return updated; |
| | | } |
| | | |
| | | @Override |
| | | public boolean updateAllColumnById(LocMast entity) { |
| | | boolean updated = super.updateAllColumnById(entity); |
| | | if (updated) { |
| | | monitorLocMapCacheService.clearQuietly(); |
| | | } |
| | | return updated; |
| | | } |
| | | |
| | | @Override |
| | | public List<String> queryGroupEmptyStock(String sourceLocNo) { |