mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-14 04:09:50 +08:00
废弃 保存桩和计费模板的关系
This commit is contained in:
@@ -146,6 +146,7 @@ public interface IPileBillingTemplateService {
|
|||||||
*
|
*
|
||||||
* @param relationList
|
* @param relationList
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
void insertPileBillingRelation(List<PileBillingRelation> relationList);
|
void insertPileBillingRelation(List<PileBillingRelation> relationList);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import com.google.common.collect.Lists;
|
|||||||
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
|
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
|
||||||
import com.jsowell.common.exception.BusinessException;
|
import com.jsowell.common.exception.BusinessException;
|
||||||
import com.jsowell.common.util.StringUtils;
|
import com.jsowell.common.util.StringUtils;
|
||||||
import com.jsowell.pile.domain.PileBillingRelation;
|
|
||||||
import com.jsowell.pile.domain.PileBillingTemplate;
|
import com.jsowell.pile.domain.PileBillingTemplate;
|
||||||
import com.jsowell.pile.domain.PileFirmwareInfo;
|
import com.jsowell.pile.domain.PileFirmwareInfo;
|
||||||
import com.jsowell.pile.domain.ykcCommond.*;
|
import com.jsowell.pile.domain.ykcCommond.*;
|
||||||
@@ -166,22 +165,22 @@ public class PileRemoteService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 保存计费模板和桩的关系
|
// 保存计费模板和桩的关系
|
||||||
List<PileBillingRelation> relationList = Lists.newArrayList();
|
// List<PileBillingRelation> relationList = Lists.newArrayList();
|
||||||
for (PileDetailVO pileInfoVO : pileList) {
|
for (PileDetailVO pileInfoVO : pileList) {
|
||||||
// push
|
// push
|
||||||
publishPileBillingTemplate(pileInfoVO.getPileSn(), billingTemplateVO);
|
publishPileBillingTemplate(pileInfoVO.getPileSn(), billingTemplateVO);
|
||||||
|
|
||||||
// 入库
|
// 入库
|
||||||
relationList.add(PileBillingRelation.builder()
|
// relationList.add(PileBillingRelation.builder()
|
||||||
.pileSn(pileInfoVO.getPileSn())
|
// .pileSn(pileInfoVO.getPileSn())
|
||||||
.billingTemplateCode(billingTemplateVO.getTemplateCode())
|
// .billingTemplateCode(billingTemplateVO.getTemplateCode())
|
||||||
.stationId(dto.getStationId())
|
// .stationId(dto.getStationId())
|
||||||
.build());
|
// .build());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CollectionUtils.isNotEmpty(relationList)) {
|
// if (CollectionUtils.isNotEmpty(relationList)) {
|
||||||
pileBillingTemplateService.insertPileBillingRelation(relationList);
|
// pileBillingTemplateService.insertPileBillingRelation(relationList);
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 修改计费模板状态
|
// 修改计费模板状态
|
||||||
pileBillingTemplateService.changeStationTemplate(dto.getStationId(), dto.getTemplateId());
|
pileBillingTemplateService.changeStationTemplate(dto.getStationId(), dto.getTemplateId());
|
||||||
|
|||||||
@@ -734,6 +734,7 @@ public class PileBillingTemplateServiceImpl implements IPileBillingTemplateServi
|
|||||||
return pileBillingTemplateMapper.selectBillingTemplateByTemplateId(templateId);
|
return pileBillingTemplateMapper.selectBillingTemplateByTemplateId(templateId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void insertPileBillingRelation(List<PileBillingRelation> relationList) {
|
public void insertPileBillingRelation(List<PileBillingRelation> relationList) {
|
||||||
if (CollectionUtils.isEmpty(relationList)) {
|
if (CollectionUtils.isEmpty(relationList)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user