|
|
@@ -164,7 +164,7 @@ public class CmsAccountServiceImpl extends ServiceImpl<AccountMapper, Account> i
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Throwable.class)
|
|
|
- public void analysisChatGPTAccount(List<Object> accountList) {
|
|
|
+ public void analysisChatGPTAccount(Long goodsId, Long skuId, List<Object> accountList) {
|
|
|
if (CollUtil.isEmpty(accountList)) {
|
|
|
throw BusinessRuntimeException.getInstance("文件数据为空");
|
|
|
}
|
|
|
@@ -177,7 +177,7 @@ public class CmsAccountServiceImpl extends ServiceImpl<AccountMapper, Account> i
|
|
|
String apiKey = part[2];
|
|
|
int count = this.count(Wrappers.lambdaQuery(Account.class)
|
|
|
.eq(Account::getAccount, account)
|
|
|
- .eq(Account::getGoodsId, 18));
|
|
|
+ .eq(Account::getGoodsId, goodsId));
|
|
|
if (count > 0) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -185,12 +185,12 @@ public class CmsAccountServiceImpl extends ServiceImpl<AccountMapper, Account> i
|
|
|
insert.setAccount(account);
|
|
|
insert.setPassword(password);
|
|
|
insert.setApiKey(apiKey);
|
|
|
- insert.setGoodsId(18l);
|
|
|
+ insert.setGoodsId(goodsId);
|
|
|
this.save(insert);
|
|
|
|
|
|
//自动配置车队
|
|
|
GroupsTrips groupsTrips = new GroupsTrips();
|
|
|
- groupsTrips.setSkuId(176l);
|
|
|
+ groupsTrips.setSkuId(skuId);
|
|
|
groupsTrips.setAccountId(insert.getId());
|
|
|
cmsGroupService.issuance(groupsTrips);
|
|
|
}
|