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