新增TKmapper自动生成部分代码功能组件

This commit is contained in:
gy b
2024-01-05 15:03:06 +08:00
parent fee63623ad
commit 8a9cdd09fc
19 changed files with 1039 additions and 3 deletions
@@ -0,0 +1,32 @@
package com.ruoyi.web.controller;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.TestMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import static com.ruoyi.common.core.domain.AjaxResult.success;
@RestController
@RequestMapping("/testdemo")
public class TestMapperController {
@Autowired
TestMapperService testMapperService;
@GetMapping("/queryCountry")
@Anonymous
public AjaxResult queryCountry() {
Object sealSignRecordselect = testMapperService.queryCountry();
return success(sealSignRecordselect);
}
@GetMapping("/queryCountryById")
@Anonymous
public AjaxResult queryCountryById(@RequestParam(name = "countryid")Integer countryid) {
Object sealSignRecordselect = testMapperService.queryCountryById(countryid);
return success(sealSignRecordselect);
}
}