修改添加桩
This commit is contained in:
parent
1fd977cfd8
commit
8193d7a169
@ -73,7 +73,7 @@ public class XhpcChargingPileServiceImpl implements IXhpcChargingPileService {
|
|||||||
return AjaxResult.error("终端数量不能大于26");
|
return AjaxResult.error("终端数量不能大于26");
|
||||||
}
|
}
|
||||||
if(xhpcChargingPile.getSerialNumber() ==null || xhpcChargingPile.getSerialNumber().length()!=14){
|
if(xhpcChargingPile.getSerialNumber() ==null || xhpcChargingPile.getSerialNumber().length()!=14){
|
||||||
return AjaxResult.error("桩编号14");
|
return AjaxResult.error("桩编号14位");
|
||||||
}
|
}
|
||||||
Long chargingStationId = xhpcChargingPile.getChargingStationId();
|
Long chargingStationId = xhpcChargingPile.getChargingStationId();
|
||||||
//获取计费模型id
|
//获取计费模型id
|
||||||
@ -98,9 +98,9 @@ public class XhpcChargingPileServiceImpl implements IXhpcChargingPileService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//插入redis 桩的编号
|
//插入redis 桩的编号
|
||||||
HashSet<String> noSet = new HashSet<>();
|
// HashSet<String> noSet = new HashSet<>();
|
||||||
noSet.add(serialNumber);
|
// noSet.add(serialNumber);
|
||||||
powerPileService.addPileWhitelist(chargingStationId, noSet);
|
// powerPileService.addPileWhitelist(chargingStationId, noSet);
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -37,15 +37,7 @@ public class QrImgUtils {
|
|||||||
//3.拼接成完整图片
|
//3.拼接成完整图片
|
||||||
//3.1生成指定规则的图片名
|
//3.1生成指定规则的图片名
|
||||||
String finallyImgFileName = DateUtil.format(new Date(), "yyyyMMddHHmmssSSS") + serialNumber + ".png";
|
String finallyImgFileName = DateUtil.format(new Date(), "yyyyMMddHHmmssSSS") + serialNumber + ".png";
|
||||||
// new ImageUtil().createXhImg(
|
|
||||||
// new File(environment.getProperty("oss.bottomImg")),
|
|
||||||
// QrCode,
|
|
||||||
// new File(environment.getProperty("oss.bottomLogoImg")),
|
|
||||||
// serialNumber,
|
|
||||||
// new File(environment.getProperty("oss.fullImgDestPath")+finallyImgFileName),
|
|
||||||
// chargingStationName,
|
|
||||||
// String.valueOf(xhpcTerminal.getNumber()),
|
|
||||||
// String.valueOf(letterMap.get(forIndex)));
|
|
||||||
new ImageUtil().fastCreateImg(
|
new ImageUtil().fastCreateImg(
|
||||||
new File(environment.getProperty("oss.bottomImg")),
|
new File(environment.getProperty("oss.bottomImg")),
|
||||||
QrCode,
|
QrCode,
|
||||||
|
|||||||
@ -176,7 +176,7 @@
|
|||||||
update_by,
|
update_by,
|
||||||
</if>
|
</if>
|
||||||
<if test="null != remark and '' != remark">
|
<if test="null != remark and '' != remark">
|
||||||
remark
|
remark,
|
||||||
</if>
|
</if>
|
||||||
<if test="null != brandModel ">
|
<if test="null != brandModel ">
|
||||||
brand_model
|
brand_model
|
||||||
@ -259,7 +259,7 @@
|
|||||||
#{updateBy},
|
#{updateBy},
|
||||||
</if>
|
</if>
|
||||||
<if test="null != remark and '' != remark">
|
<if test="null != remark and '' != remark">
|
||||||
#{remark}
|
#{remark},
|
||||||
</if>
|
</if>
|
||||||
<if test="null != brandModel ">
|
<if test="null != brandModel ">
|
||||||
#{brandModel}
|
#{brandModel}
|
||||||
@ -355,6 +355,6 @@
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="countXhpcTerminal" resultType="int">
|
<select id="countXhpcTerminal" resultType="int">
|
||||||
select count(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>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user