your code eaten by cat
This commit is contained in:
parent
4b1c6ea5c6
commit
92d49b16bd
@ -75,7 +75,7 @@ public class NotificationEquipChargeStatusTask extends CoreDispatcher {
|
|||||||
calculateEm(equipChargeStatus, cacheRateModel);
|
calculateEm(equipChargeStatus, cacheRateModel);
|
||||||
notify(equipChargeStatus, authSecretTokenOut);
|
notify(equipChargeStatus, authSecretTokenOut);
|
||||||
String xhOrderNo = orderkey.substring(6);
|
String xhOrderNo = orderkey.substring(6);
|
||||||
String internetSerialNumber = REDIS.getCacheMapValue(orderkey, "internetSerialNumer"); //todo set it
|
String internetSerialNumber = REDIS.getCacheMapValue(orderkey, "internetSerialNumber"); //todo set it
|
||||||
// in redis cache
|
// in redis cache
|
||||||
NotificationChargeOrderInfo4BonusTask.saveOrderMapping(xhOrderNo, internetSerialNumber,
|
NotificationChargeOrderInfo4BonusTask.saveOrderMapping(xhOrderNo, internetSerialNumber,
|
||||||
orderMappingRepository);
|
orderMappingRepository);
|
||||||
|
|||||||
@ -89,11 +89,18 @@ public interface XhpcChargingPileMapper {
|
|||||||
int updateXhpcTerminal(@Param("chargingPileId") Long chargingPileId);
|
int updateXhpcTerminal(@Param("chargingPileId") Long chargingPileId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 统计改场站的终端
|
* 统计场站的终端
|
||||||
*
|
*
|
||||||
* @param chargingStationId
|
* @param chargingStationId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
int countXhpcTerminal(@Param("chargingStationId") Long chargingStationId);
|
int countXhpcTerminal(@Param("chargingStationId") Long chargingStationId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 对应场站的桩数量
|
||||||
|
* @param chargingStationId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
int pileCount(@Param("chargingStationId") Long chargingStationId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -198,7 +198,7 @@ public class XhpcChargingPileServiceImpl implements IXhpcChargingPileService {
|
|||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
//删除桩
|
//删除桩
|
||||||
Set<String> set = new HashSet<>();
|
Set<String> set = new HashSet<>();
|
||||||
set.add(chargingPileId + "");
|
set.add(xhpc.getSerialNumber());
|
||||||
powerPileService.deletePileWhitelist(xhpc.getChargingStationId(), set);
|
powerPileService.deletePileWhitelist(xhpc.getChargingStationId(), set);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -397,4 +397,8 @@
|
|||||||
<select id="countXhpcTerminal" resultType="int">
|
<select id="countXhpcTerminal" resultType="int">
|
||||||
select count(charging_pile_id) from xhpc_charging_pile where charging_station_id = #{chargingStationId}
|
select count(charging_pile_id) from xhpc_charging_pile where charging_station_id = #{chargingStationId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="pileCount" resultType="java.lang.Integer">
|
||||||
|
select count(charging_pile_id) from xhpc_charging_pile WHERE charging_station_id =#{chargingStationId} and def_flag=0
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user