|  |  | 
 |  |  | import com.zy.core.model.protocol.*; | 
 |  |  | import com.zy.core.properties.SlaveProperties; | 
 |  |  | import com.zy.core.thread.*; | 
 |  |  | import com.zy.system.entity.Config; | 
 |  |  | import com.zy.system.service.ConfigService; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.beans.factory.annotation.Value; | 
 |  |  | 
 |  |  |     private WrkMastLocMapper wrkMastLocMapper; | 
 |  |  |     @Autowired | 
 |  |  |     private BasLiftOptService basLiftOptService; | 
 |  |  |     @Autowired | 
 |  |  |     private ConfigService configService; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |                 } | 
 |  |  |             } else if (wrkCharge.getWrkSts() == 52) { | 
 |  |  |                 //检测小车是否满电 | 
 |  |  |  | 
 |  |  |                 //获取满电阈值 | 
 |  |  |                 int maxPower = 95; | 
 |  |  |                 EntityWrapper<Config> wrapper = new EntityWrapper<>(); | 
 |  |  |                 wrapper.eq("code", "chargeMaxValue"); | 
 |  |  |                 Config config = configService.selectOne(wrapper); | 
 |  |  |                 if (config != null) { | 
 |  |  |                     maxPower = Integer.parseInt(config.getValue()); | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 if (shuttleProtocol.getPowerPercent() < maxPower) { | 
 |  |  |                     continue; | 
 |  |  |                 } |