mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
update sim批量续费方法
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user