|
|
|
@ -88,7 +88,7 @@ public class ${ClassName}Controller extends BaseController {
|
|
|
|
|
@Log(title = "${functionName}", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping()
|
|
|
|
|
public R<Void> add(@Validated(AddGroup.class) @RequestBody ${ClassName}Bo bo) {
|
|
|
|
|
return toAjax(i${ClassName}Service.insertByBo(bo) ? 1 : 0);
|
|
|
|
|
return toAjax(i${ClassName}Service.insertByBo(bo));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -98,7 +98,7 @@ public class ${ClassName}Controller extends BaseController {
|
|
|
|
|
@Log(title = "${functionName}", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping()
|
|
|
|
|
public R<Void> edit(@Validated(EditGroup.class) @RequestBody ${ClassName}Bo bo) {
|
|
|
|
|
return toAjax(i${ClassName}Service.updateByBo(bo) ? 1 : 0);
|
|
|
|
|
return toAjax(i${ClassName}Service.updateByBo(bo));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -110,6 +110,6 @@ public class ${ClassName}Controller extends BaseController {
|
|
|
|
|
@Log(title = "${functionName}", businessType = BusinessType.DELETE)
|
|
|
|
|
@DeleteMapping("/{${pkColumn.javaField}s}")
|
|
|
|
|
public R<Void> remove(@NotEmpty(message = "主键不能为空") @PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s) {
|
|
|
|
|
return toAjax(i${ClassName}Service.deleteWithValidByIds(Arrays.asList(${pkColumn.javaField}s), true) ? 1 : 0);
|
|
|
|
|
return toAjax(i${ClassName}Service.deleteWithValidByIds(Arrays.asList(${pkColumn.javaField}s), true));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|