master
周文涛 2 years ago
parent 183da52b70
commit 2475292e6f

@ -66,9 +66,9 @@ public class Main {
String user = "enjoy";
String password = "Nomi1234";
//2.选择表配置
String table= "oqc_spot_check_record";
String entityName="OqcSpotCheckRecord";//实体类
String description = "抽检记录表";//备注
String table= "oqc_lnspection_template";
String entityName="oqcLnspectionTemplate";//实体类
String description = "检验模板表";//备注
String primaryKeyField = "id";//主键
List<TableEntityVo> tableEntityVoList = printTableStructure(driver, url, user, password, table);
//3.生成

@ -74,7 +74,7 @@ public class ${entityName}Controller extends BaseController {
@ApiOperation("详情")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id) {
return ${entityName?uncap_first}Service.getOqcSpotCheckRecordDetail(id);
return ${entityName?uncap_first}Service.get${entityName}Detail(id);
}
/**
@ -104,7 +104,7 @@ public class ${entityName}Controller extends BaseController {
@ApiOperation(value="删除", notes="删除")
@DeleteMapping(value = "/delete")
public AjaxResult delete(@RequestParam(name="id",required=true) String id) {
return ${entityName?uncap_first}Service.deleteOqcSpotCheckRecord(id);
return ${entityName?uncap_first}Service.delete${entityName}(id);
}
/**
@ -114,7 +114,7 @@ public class ${entityName}Controller extends BaseController {
@ApiOperation(value="批量删除", notes="批量删除")
@DeleteMapping(value = "/deleteBatch")
public AjaxResult deleteBatch(@RequestParam(name="ids",required=true) String ids) {
return this.${entityName?uncap_first}Service.deleteOqcSpotCheckRecord(Arrays.asList(ids.split(",")));
return this.${entityName?uncap_first}Service.delete${entityName}(Arrays.asList(ids.split(",")));
}
}

Loading…
Cancel
Save