update sim批量续费方法

This commit is contained in:
Lemon
2026-03-13 09:43:19 +08:00
parent a7953a9fdb
commit 4e0d551edb
2 changed files with 15 additions and 3 deletions

View File

@@ -64,6 +64,7 @@ import com.jsowell.pile.dto.lutongyunting.BindCouponDTO;
import com.jsowell.pile.mapper.MemberBasicInfoMapper; import com.jsowell.pile.mapper.MemberBasicInfoMapper;
import com.jsowell.pile.mapper.PileBillingTemplateMapper; import com.jsowell.pile.mapper.PileBillingTemplateMapper;
import com.jsowell.pile.service.*; 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.AbstractProgramLogic;
import com.jsowell.pile.service.programlogic.ProgramLogicFactory; import com.jsowell.pile.service.programlogic.ProgramLogicFactory;
import com.jsowell.pile.thirdparty.CommonParamsDTO; 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.LTYTService;
import com.jsowell.thirdparty.parking.service.QcyunsService; import com.jsowell.thirdparty.parking.service.QcyunsService;
import com.jsowell.thirdparty.platform.service.ThirdPartyPlatformService; 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.Cryptos;
import com.jsowell.thirdparty.platform.util.Encodes; import com.jsowell.thirdparty.platform.util.Encodes;
import com.jsowell.thirdparty.platform.util.GBSignUtils; import com.jsowell.thirdparty.platform.util.GBSignUtils;

View File

@@ -16,6 +16,7 @@ import com.jsowell.common.util.id.IdUtils;
import com.jsowell.common.util.sim.SimCardUtils; import com.jsowell.common.util.sim.SimCardUtils;
import com.jsowell.common.util.sim.XunZhongSimUtils; import com.jsowell.common.util.sim.XunZhongSimUtils;
import com.jsowell.pile.domain.PileSimInfo; import com.jsowell.pile.domain.PileSimInfo;
import com.jsowell.pile.domain.SimRechargeRecord;
import com.jsowell.pile.dto.SimRenewDTO; import com.jsowell.pile.dto.SimRenewDTO;
import com.jsowell.pile.vo.web.*; import com.jsowell.pile.vo.web.*;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
@@ -45,6 +46,9 @@ public class SimCardService {
@Autowired @Autowired
private PileSimInfoService pileSimInfoService; private PileSimInfoService pileSimInfoService;
@Autowired
private SimRechargeRecordService simRechargeRecordService;
protected final Logger logger = LoggerFactory.getLogger(SimCardService.class); protected final Logger logger = LoggerFactory.getLogger(SimCardService.class);
@Value("${xunzhong.apiId}") @Value("${xunzhong.apiId}")
@@ -197,7 +201,7 @@ public class SimCardService {
} }
/** /**
* 批量续费Sim卡 * 批量续费Sim卡26年新版
* *
* @param dto * @param dto
*/ */
@@ -215,7 +219,11 @@ public class SimCardService {
WuLianSimRenew(wuLianCards, dto.getCycleNumber()); 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"); String message = jsonResult.getString("message");
throw new BusinessException(code, message); throw new BusinessException(code, message);
} }
// 续费成功, 将信息存库
SimRechargeRecord record = SimRechargeRecord.builder()
.iccId()
.build();
} }