删除地址
This commit is contained in:
parent
009e060d0b
commit
0b12332114
|
|
@ -4,6 +4,7 @@ import java.util.List;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import com.bonus.common.log.enums.OperaType;
|
import com.bonus.common.log.enums.OperaType;
|
||||||
import com.bonus.canteen.core.common.annotation.PreventRepeatSubmit;
|
import com.bonus.canteen.core.common.annotation.PreventRepeatSubmit;
|
||||||
|
import com.bonus.system.api.domain.SysAddress;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
@ -132,4 +133,16 @@ public class UserAddrController extends BaseController {
|
||||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
return toAjax(userAddrService.deleteUserAddrByIds(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()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ public interface UserAddrMapper {
|
||||||
* @param id 地址信息主键
|
* @param id 地址信息主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteUserAddrById(Long id);
|
public int deleteUserAddrById(@Param("id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除地址信息
|
* 批量删除地址信息
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue