mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
station_setting_relation ----> thirdparty_station_relation
This commit is contained in:
@@ -12,15 +12,14 @@ import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.common.util.StringUtils;
|
||||
import com.jsowell.common.util.poi.ExcelUtil;
|
||||
import com.jsowell.pile.domain.PileStationInfo;
|
||||
import com.jsowell.pile.domain.StationSettingRelation;
|
||||
import com.jsowell.pile.domain.ThirdPartyStationRelation;
|
||||
import com.jsowell.pile.domain.ThirdPartySettingInfo;
|
||||
import com.jsowell.pile.dto.FastCreateStationDTO;
|
||||
import com.jsowell.pile.dto.LianLianPushStationInfoDTO;
|
||||
import com.jsowell.pile.dto.QueryStationDTO;
|
||||
import com.jsowell.pile.service.IPileStationInfoService;
|
||||
import com.jsowell.pile.service.IStationSettingRelationService;
|
||||
import com.jsowell.pile.service.IThirdPartyStationRelationService;
|
||||
import com.jsowell.pile.service.IThirdPartySettingInfoService;
|
||||
import com.jsowell.pile.vo.base.StationSettingRelationVO;
|
||||
import com.jsowell.pile.vo.web.PileStationVO;
|
||||
import com.jsowell.service.PileService;
|
||||
import com.jsowell.thirdparty.lianlian.service.LianLianService;
|
||||
@@ -53,7 +52,7 @@ public class PileStationInfoController extends BaseController {
|
||||
private LianLianService lianLianService;
|
||||
|
||||
@Autowired
|
||||
private IStationSettingRelationService stationSettingRelationService;
|
||||
private IThirdPartyStationRelationService thirdPartyStationRelationService;
|
||||
|
||||
|
||||
/**
|
||||
@@ -192,9 +191,9 @@ public class PileStationInfoController extends BaseController {
|
||||
@PreAuthorize("@ss.hasPermi('pile:station:query')")
|
||||
@GetMapping("/getSettingByStationId/{stationId}")
|
||||
public AjaxResult getSettingByStationId(@PathVariable("stationId") Long id) {
|
||||
StationSettingRelation info = new StationSettingRelation();
|
||||
ThirdPartyStationRelation info = new ThirdPartyStationRelation();
|
||||
info.setStationId(id);
|
||||
return AjaxResult.success(stationSettingRelationService.selectRelationInfo(info));
|
||||
return AjaxResult.success(thirdPartyStationRelationService.selectRelationInfo(info));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -259,10 +258,10 @@ public class PileStationInfoController extends BaseController {
|
||||
logger.error("推送联联平台充电站信息 error", e);
|
||||
response = new RestApiResponse<>("推送失败,请联系管理员");
|
||||
// 删除对应配置信息
|
||||
StationSettingRelation relation = new StationSettingRelation();
|
||||
ThirdPartyStationRelation relation = new ThirdPartyStationRelation();
|
||||
relation.setStationId(dto.getStationId());
|
||||
relation.setDelFlag("1");
|
||||
stationSettingRelationService.updateStationSettingRelation(relation);
|
||||
thirdPartyStationRelationService.updateThirdPartyStationRelation(relation);
|
||||
}
|
||||
logger.info("推送联联平台充电站信息 result:{}", response);
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user