This commit is contained in:
2023-11-30 14:25:57 +08:00
parent 5f5160c92e
commit de7d26ad46
5 changed files with 7 additions and 7 deletions

View File

@@ -609,9 +609,9 @@ public class AdapayService {
// 逻辑删除原来审核不通过的记录 // 逻辑删除原来审核不通过的记录
List<AdapayMemberAccount> accountList = adapayMemberAccountService.selectAdapayMemberAccountList(dto.getMerchantId()); List<AdapayMemberAccount> accountList = adapayMemberAccountService.selectAdapayMemberAccountList(dto.getMerchantId());
if (CollectionUtils.isNotEmpty(accountList)) { if (CollectionUtils.isNotEmpty(accountList)) {
Long[] ids = accountList.stream() List<String> ids = accountList.stream()
.map(AdapayMemberAccount::getId) .map(x -> x.getId() + "")
.toArray(Long[]::new); .collect(Collectors.toList());
adapayMemberAccountService.deleteAdapayMemberAccountByIds(ids); adapayMemberAccountService.deleteAdapayMemberAccountByIds(ids);
} }

View File

@@ -110,7 +110,7 @@ public interface AdapayMemberAccountMapper {
* @param ids 需要删除的数据主键集合 * @param ids 需要删除的数据主键集合
* @return 结果 * @return 结果
*/ */
int deleteAdapayMemberAccountByIds(Long[] ids); int deleteAdapayMemberAccountByIds(List<String> ids);
AdapayMemberAccount selectByMerchantId(String merchantId); AdapayMemberAccount selectByMerchantId(String merchantId);

View File

@@ -57,7 +57,7 @@ public interface AdapayMemberAccountService {
* @param ids 需要删除的【请填写功能名称】主键集合 * @param ids 需要删除的【请填写功能名称】主键集合
* @return 结果 * @return 结果
*/ */
int deleteAdapayMemberAccountByIds(Long[] ids); int deleteAdapayMemberAccountByIds(List<String> ids);
AdapayMemberAccount selectByMerchantId(String merchantId); AdapayMemberAccount selectByMerchantId(String merchantId);

View File

@@ -93,7 +93,7 @@ public class AdapayMemberAccountServiceImpl implements AdapayMemberAccountServic
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deleteAdapayMemberAccountByIds(Long[] ids) { public int deleteAdapayMemberAccountByIds(List<String> ids) {
return adapayMemberAccountMapper.deleteAdapayMemberAccountByIds(ids); return adapayMemberAccountMapper.deleteAdapayMemberAccountByIds(ids);
} }

View File

@@ -504,7 +504,7 @@
update adapay_member_account update adapay_member_account
set del_flag = '1' set del_flag = '1'
where id in where id in
<foreach close=")" collection="array" item="id" open="(" separator=","> <foreach close=")" collection="list" item="id" open="(" separator=",">
#{id} #{id}
</foreach> </foreach>
</update> </update>