解决删除bug

pull/1/head
zhaochencheng 3 years ago
parent 1679894ee5
commit 11a9c6bef7

@ -86,7 +86,7 @@ public class ${_className.controller} extends BaseController {
@ApiOperation("删除${functionName}") @ApiOperation("删除${functionName}")
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')") @PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')")
@Log(title = "${functionName}", businessType = BusinessType.DELETE) @Log(title = "${functionName}", businessType = BusinessType.DELETE)
@DeleteMapping("/{${pkColumn.javaField}s}") @DeleteMapping("/{${pkColumn.javaField}}")
public ResponseEntity<Integer> remove(@PathVariable ${pkColumn.javaType} ${pkColumn.javaField}) { public ResponseEntity<Integer> remove(@PathVariable ${pkColumn.javaType} ${pkColumn.javaField}) {
return ResponseEntity.ok(service.deleteBy${pkColumn.capJavaField}(${pkColumn.javaField})); return ResponseEntity.ok(service.deleteBy${pkColumn.capJavaField}(${pkColumn.javaField}));
} }

@ -86,7 +86,7 @@ public class BrandController extends BaseController {
@ApiOperation("删除品牌管理") @ApiOperation("删除品牌管理")
@PreAuthorize("@ss.hasPermi('pms:brand:remove')") @PreAuthorize("@ss.hasPermi('pms:brand:remove')")
@Log(title = "品牌管理", businessType = BusinessType.DELETE) @Log(title = "品牌管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{id}")
public ResponseEntity<Integer> remove(@PathVariable Long id) { public ResponseEntity<Integer> remove(@PathVariable Long id) {
return ResponseEntity.ok(service.deleteById(id)); return ResponseEntity.ok(service.deleteById(id));
} }

@ -86,7 +86,7 @@ public class ProductCategoryController extends BaseController {
@ApiOperation("删除商品分类") @ApiOperation("删除商品分类")
@PreAuthorize("@ss.hasPermi('pms:productCategory:remove')") @PreAuthorize("@ss.hasPermi('pms:productCategory:remove')")
@Log(title = "商品分类", businessType = BusinessType.DELETE) @Log(title = "商品分类", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{id}")
public ResponseEntity<Integer> remove(@PathVariable Long id) { public ResponseEntity<Integer> remove(@PathVariable Long id) {
return ResponseEntity.ok(service.deleteById(id)); return ResponseEntity.ok(service.deleteById(id));
} }

@ -86,7 +86,7 @@ public class ProductController extends BaseController {
@ApiOperation("删除商品信息") @ApiOperation("删除商品信息")
@PreAuthorize("@ss.hasPermi('pms:product:remove')") @PreAuthorize("@ss.hasPermi('pms:product:remove')")
@Log(title = "商品信息", businessType = BusinessType.DELETE) @Log(title = "商品信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{id}")
public ResponseEntity<Integer> remove(@PathVariable Long id) { public ResponseEntity<Integer> remove(@PathVariable Long id) {
return ResponseEntity.ok(service.deleteById(id)); return ResponseEntity.ok(service.deleteById(id));
} }

@ -86,7 +86,7 @@ public class SkuController extends BaseController {
@ApiOperation("删除sku信息") @ApiOperation("删除sku信息")
@PreAuthorize("@ss.hasPermi('pms:sku:remove')") @PreAuthorize("@ss.hasPermi('pms:sku:remove')")
@Log(title = "sku信息", businessType = BusinessType.DELETE) @Log(title = "sku信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{id}")
public ResponseEntity<Integer> remove(@PathVariable Long id) { public ResponseEntity<Integer> remove(@PathVariable Long id) {
return ResponseEntity.ok(service.deleteById(id)); return ResponseEntity.ok(service.deleteById(id));
} }

@ -86,7 +86,7 @@ public class MemberAddressController extends BaseController {
@ApiOperation("删除会员收货地址") @ApiOperation("删除会员收货地址")
@PreAuthorize("@ss.hasPermi('ums:memberAddress:remove')") @PreAuthorize("@ss.hasPermi('ums:memberAddress:remove')")
@Log(title = "会员收货地址", businessType = BusinessType.DELETE) @Log(title = "会员收货地址", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{id}")
public ResponseEntity<Integer> remove(@PathVariable Long id) { public ResponseEntity<Integer> remove(@PathVariable Long id) {
return ResponseEntity.ok(service.deleteById(id)); return ResponseEntity.ok(service.deleteById(id));
} }

@ -86,7 +86,7 @@ public class MemberController extends BaseController {
@ApiOperation("删除会员信息") @ApiOperation("删除会员信息")
@PreAuthorize("@ss.hasPermi('ums:member:remove')") @PreAuthorize("@ss.hasPermi('ums:member:remove')")
@Log(title = "会员信息", businessType = BusinessType.DELETE) @Log(title = "会员信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{id}")
public ResponseEntity<Integer> remove(@PathVariable Long id) { public ResponseEntity<Integer> remove(@PathVariable Long id) {
return ResponseEntity.ok(service.deleteById(id)); return ResponseEntity.ok(service.deleteById(id));
} }

@ -86,7 +86,7 @@ public class MemberWechatController extends BaseController {
@ApiOperation("删除用户微信信息") @ApiOperation("删除用户微信信息")
@PreAuthorize("@ss.hasPermi('ums:memberWechat:remove')") @PreAuthorize("@ss.hasPermi('ums:memberWechat:remove')")
@Log(title = "用户微信信息", businessType = BusinessType.DELETE) @Log(title = "用户微信信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{id}")
public ResponseEntity<Integer> remove(@PathVariable Long id) { public ResponseEntity<Integer> remove(@PathVariable Long id) {
return ResponseEntity.ok(service.deleteById(id)); return ResponseEntity.ok(service.deleteById(id));
} }

Loading…
Cancel
Save