删除地址

This commit is contained in:
sxu 2025-05-09 17:30:58 +08:00
parent 009e060d0b
commit 0b12332114
2 changed files with 14 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.bonus.common.log.enums.OperaType;
import com.bonus.canteen.core.common.annotation.PreventRepeatSubmit;
import com.bonus.system.api.domain.SysAddress;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
@ -132,4 +133,16 @@ public class UserAddrController extends BaseController {
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(userAddrService.deleteUserAddrByIds(ids));
}
/**
* 删除地址信息
*/
@ApiOperation(value = "删除地址信息")
//@PreventRepeatSubmit
//@RequiresPermissions("user:addr:remove")
@SysLog(title = "地址信息", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除地址信息")
@PostMapping("/del")
public AjaxResult remove(@RequestBody SysAddress sysAddress) {
return toAjax(userAddrService.deleteUserAddrById(sysAddress.getId()));
}
}

View File

@ -55,7 +55,7 @@ public interface UserAddrMapper {
* @param id 地址信息主键
* @return 结果
*/
public int deleteUserAddrById(Long id);
public int deleteUserAddrById(@Param("id") Long id);
/**
* 批量删除地址信息