解决直接设置费率模型没有桩的错误
This commit is contained in:
parent
512590bff7
commit
c6e81465dc
@ -8,6 +8,8 @@ import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import static com.xhpc.pp.server.ChargingPileServer.REDIS;
|
||||
|
||||
@RestController
|
||||
@ -24,7 +26,10 @@ public class StationController {
|
||||
String rkey = "rateModel:".concat(rateModelId.toString());
|
||||
REDIS.setCacheObject(rkey, rateModel);
|
||||
String rmskey = "rateModelStation:".concat(stationId.toString());
|
||||
REDIS.setCacheSet(rmskey, cacheStation.getPiles());
|
||||
Set<String> piles = cacheStation.getPiles();
|
||||
if (piles!=null) {
|
||||
REDIS.setCacheSet(rmskey, piles);
|
||||
}
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user