新增TKmapper自动生成部分代码功能组件
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user