mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
update 添加为空校验,修改联联设置equipmentOwnerId
This commit is contained in:
@@ -184,6 +184,12 @@ public class ThirdPartyStationRelationServiceImpl implements ThirdPartyStationRe
|
||||
*/
|
||||
@Override
|
||||
public void updateThirdPartyStationRelationV2(ThirdPartyStationRelationDTO dto) {
|
||||
if (dto == null) {
|
||||
return;
|
||||
}
|
||||
if (dto.getEquipmentOwnerId().isEmpty()||dto.getThirdPartyType().isEmpty()){
|
||||
throw new RuntimeException("未设置设备所属Id");
|
||||
}
|
||||
ThirdPartyStationRelation thirdPartyStationRelation = thirdPartyStationRelationMapper.selectThirdPartyStationRelationById(Long.parseLong(dto.getId()));
|
||||
if (thirdPartyStationRelation == null) {
|
||||
log.error("修改站点、第三方推送平台配置对应信息失败,站点、第三方推送平台配置对应不存在, id:{}", dto.getId());
|
||||
|
||||
Reference in New Issue
Block a user