|
|
|
@ -71,7 +71,7 @@ public class ${entityName}Controller extends BaseController {
|
|
|
|
|
@ApiOperation("全部")
|
|
|
|
|
@GetMapping("/listAll")
|
|
|
|
|
public AjaxResult listAll() {
|
|
|
|
|
return AjaxResult.success(${entityName?uncap_first}Service.list());
|
|
|
|
|
return ${entityName?uncap_first}Service.listAll();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -80,7 +80,7 @@ public class ${entityName}Controller extends BaseController {
|
|
|
|
|
@ApiOperation("详情")
|
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") String id) {
|
|
|
|
|
return AjaxResult.success(${entityName?uncap_first}Service.getById(id));
|
|
|
|
|
return ${entityName?uncap_first}Service.getOqcSpotCheckRecordDetail(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -116,8 +116,7 @@ public class ${entityName}Controller extends BaseController {
|
|
|
|
|
@ApiOperation(value="删除", notes="删除")
|
|
|
|
|
@DeleteMapping(value = "/delete")
|
|
|
|
|
public AjaxResult delete(@RequestParam(name="id",required=true) String id) {
|
|
|
|
|
${entityName?uncap_first}Service.removeById(id);
|
|
|
|
|
return AjaxResult.success("删除成功!");
|
|
|
|
|
return ${entityName?uncap_first}Service.deleteOqcSpotCheckRecord(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -129,8 +128,7 @@ public class ${entityName}Controller extends BaseController {
|
|
|
|
|
@ApiOperation(value="批量删除", notes="批量删除")
|
|
|
|
|
@DeleteMapping(value = "/deleteBatch")
|
|
|
|
|
public AjaxResult deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
|
|
|
this.${entityName?uncap_first}Service.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
|
|
return AjaxResult.success("批量删除成功!");
|
|
|
|
|
return this.${entityName?uncap_first}Service.deleteOqcSpotCheckRecord(Arrays.asList(ids.split(",")));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|