mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-29 19:47:56 +08:00
update
This commit is contained in:
@@ -73,7 +73,6 @@ import java.nio.charset.StandardCharsets;
|
|||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
@ActiveProfiles("dev")
|
@ActiveProfiles("dev")
|
||||||
@SpringBootTest(classes = JsowellApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
@SpringBootTest(classes = JsowellApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||||
@@ -532,7 +531,7 @@ public class SpringBootTestController {
|
|||||||
public void testQueryCorpMember() {
|
public void testQueryCorpMember() {
|
||||||
List<AdapayMemberAccount> accountList = adapayMemberAccountService.selectAdapayMemberAccountList(new AdapayMemberAccount());
|
List<AdapayMemberAccount> accountList = adapayMemberAccountService.selectAdapayMemberAccountList(new AdapayMemberAccount());
|
||||||
if (CollectionUtils.isNotEmpty(accountList)) {
|
if (CollectionUtils.isNotEmpty(accountList)) {
|
||||||
Long[] ids = accountList.stream().map(AdapayMemberAccount::getId).collect(Collectors.toList()).toArray(new Long[]{});
|
Long[] ids = accountList.stream().map(AdapayMemberAccount::getId).toArray(Long[]::new);
|
||||||
adapayMemberAccountService.deleteAdapayMemberAccountByIds(ids);
|
adapayMemberAccountService.deleteAdapayMemberAccountByIds(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ import java.io.IOException;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
@@ -416,8 +415,7 @@ public class AdapayMemberService {
|
|||||||
if (CollectionUtils.isNotEmpty(accountList)) {
|
if (CollectionUtils.isNotEmpty(accountList)) {
|
||||||
Long[] ids = accountList.stream()
|
Long[] ids = accountList.stream()
|
||||||
.map(AdapayMemberAccount::getId)
|
.map(AdapayMemberAccount::getId)
|
||||||
.collect(Collectors.toList())
|
.toArray(Long[]::new);
|
||||||
.toArray(new Long[]{});
|
|
||||||
adapayMemberAccountService.deleteAdapayMemberAccountByIds(ids);
|
adapayMemberAccountService.deleteAdapayMemberAccountByIds(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user