|
@ -3,6 +3,7 @@ package org.jeecg.modules.applet.service.impl; |
|
|
import cn.hutool.core.util.StrUtil; |
|
|
import cn.hutool.core.util.StrUtil; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.jeecg.common.exception.JeecgBootException; |
|
|
import org.jeecg.common.exception.JeecgBootException; |
|
@ -14,6 +15,8 @@ import org.jeecg.modules.demo.appletShippingAddress.service.IAppletShippingAddre |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
|
|
|
|
|
@Service |
|
|
@Service |
|
|
@Slf4j |
|
|
@Slf4j |
|
|
public class AppletApiAddressServiceImpl implements AppletApiAddressService { |
|
|
public class AppletApiAddressServiceImpl implements AppletApiAddressService { |
|
@ -135,4 +138,14 @@ public class AppletApiAddressServiceImpl implements AppletApiAddressService { |
|
|
.update(); |
|
|
.update(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void delete(String addressId) { |
|
|
|
|
|
if (StringUtils.isBlank(addressId)){ |
|
|
|
|
|
throw new JeecgBootException("addressId不能为空"); |
|
|
|
|
|
} |
|
|
|
|
|
appletShippingAddressService.removeBatchByIds( |
|
|
|
|
|
Arrays.asList(addressId.split(",")) |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |