diff --git a/jsowell-admin/src/test/java/SpringBootTestController.java b/jsowell-admin/src/test/java/SpringBootTestController.java index 85ddd5491..a5a4e655f 100644 --- a/jsowell-admin/src/test/java/SpringBootTestController.java +++ b/jsowell-admin/src/test/java/SpringBootTestController.java @@ -64,6 +64,7 @@ import com.jsowell.pile.dto.lutongyunting.BindCouponDTO; import com.jsowell.pile.mapper.MemberBasicInfoMapper; import com.jsowell.pile.mapper.PileBillingTemplateMapper; import com.jsowell.pile.service.*; +import com.jsowell.pile.service.batteryreport.BatteryChargeReportService; import com.jsowell.pile.service.programlogic.AbstractProgramLogic; import com.jsowell.pile.service.programlogic.ProgramLogicFactory; import com.jsowell.pile.thirdparty.CommonParamsDTO; @@ -87,7 +88,6 @@ import com.jsowell.thirdparty.parking.common.bean.QcyunParkCouponDTO; import com.jsowell.thirdparty.parking.service.LTYTService; import com.jsowell.thirdparty.parking.service.QcyunsService; import com.jsowell.thirdparty.platform.service.ThirdPartyPlatformService; -import com.jsowell.thirdparty.platform.service.impl.BatteryChargeReportService; import com.jsowell.thirdparty.platform.util.Cryptos; import com.jsowell.thirdparty.platform.util.Encodes; import com.jsowell.thirdparty.platform.util.GBSignUtils; diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/SimCardService.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/SimCardService.java index 22908e4ef..5e50bcfbb 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/SimCardService.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/SimCardService.java @@ -16,6 +16,7 @@ import com.jsowell.common.util.id.IdUtils; import com.jsowell.common.util.sim.SimCardUtils; import com.jsowell.common.util.sim.XunZhongSimUtils; import com.jsowell.pile.domain.PileSimInfo; +import com.jsowell.pile.domain.SimRechargeRecord; import com.jsowell.pile.dto.SimRenewDTO; import com.jsowell.pile.vo.web.*; import org.apache.commons.collections4.CollectionUtils; @@ -45,6 +46,9 @@ public class SimCardService { @Autowired private PileSimInfoService pileSimInfoService; + @Autowired + private SimRechargeRecordService simRechargeRecordService; + protected final Logger logger = LoggerFactory.getLogger(SimCardService.class); @Value("${xunzhong.apiId}") @@ -197,7 +201,7 @@ public class SimCardService { } /** - * 批量续费Sim卡 + * 批量续费Sim卡(26年新版) * * @param dto */ @@ -215,7 +219,11 @@ public class SimCardService { WuLianSimRenew(wuLianCards, dto.getCycleNumber()); // 将续费完成后的数据插入数据库 - + // SimRechargeRecord record = SimRechargeRecord.builder() + // .iccId(iccId) + // .status("1") + // .build(); + // simRechargeRecordService.insertSimRechargeRecord() } /** @@ -458,6 +466,10 @@ public class SimCardService { String message = jsonResult.getString("message"); throw new BusinessException(code, message); } + // 续费成功, 将信息存库 + SimRechargeRecord record = SimRechargeRecord.builder() + .iccId() + .build(); }