mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
修改充电桩时, 运营桩删除密钥, 个人桩生成密钥
This commit is contained in:
@@ -155,7 +155,7 @@ public class PileBasicInfoController extends BaseController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量更新充电桩
|
||||
* 批量更新充电桩/批量修改充电桩
|
||||
* 运营商 站点
|
||||
*/
|
||||
@PostMapping("/batchUpdatePileList")
|
||||
|
||||
@@ -11,10 +11,7 @@ import com.jsowell.common.core.domain.ykc.YKCFrameTypeCode;
|
||||
import com.jsowell.common.core.redis.RedisCache;
|
||||
import com.jsowell.common.enums.DelFlagEnum;
|
||||
import com.jsowell.common.enums.lianlian.LianLianPileStatusEnum;
|
||||
import com.jsowell.common.enums.ykc.PileConnectorDataBaseStatusEnum;
|
||||
import com.jsowell.common.enums.ykc.PileConnectorStatusEnum;
|
||||
import com.jsowell.common.enums.ykc.PileStatusEnum;
|
||||
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
|
||||
import com.jsowell.common.enums.ykc.*;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.common.util.*;
|
||||
import com.jsowell.pile.domain.PileBasicInfo;
|
||||
@@ -379,6 +376,12 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
|
||||
if (CollectionUtils.isNotEmpty(connectorInfoList)) {
|
||||
pileConnectorInfoService.batchInsertConnectorInfo(connectorInfoList);
|
||||
}
|
||||
|
||||
// if (StringUtils.equals(BusinessTypeEnum.INDIVIDUAL_PILE.getValue(), dto.getChargerPileType())) {
|
||||
// // 个人桩生成一个八位的密钥(字母加数字)
|
||||
// String secretKey = RandomStringUtils.randomAlphanumeric(8).toUpperCase(Locale.ROOT);
|
||||
// basicInfo.setSecretKey(secretKey);
|
||||
// }
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
@@ -231,7 +231,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="merchantId != null">merchant_id = #{merchantId},</if>
|
||||
<if test="stationId != null">station_id = #{stationId},</if>
|
||||
<if test="chargerPileType != null">business_type = #{chargerPileType,jdbcType=VARCHAR},</if>
|
||||
<if test="chargerPileType != null">
|
||||
business_type = #{chargerPileType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="chargerPileType == '1'.toString() "> secret_key = null,</if>
|
||||
<if test="chargerPileType == '2'.toString() "> secret_key = substring(uuid(), 1, 8),</if>
|
||||
<if test="modelId != null">model_id = #{modelId},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
|
||||
Reference in New Issue
Block a user