|
@@ -48,7 +48,7 @@ public class CommonController {
|
|
|
* @param dto dto
|
|
|
* @return com.boman.domain.dto.AjaxResult
|
|
|
*/
|
|
|
- @PostMapping
|
|
|
+ @PostMapping("/one/map")
|
|
|
public JSONObject getOneByMap(@RequestBody FormDataDto dto) {
|
|
|
return commonService.getOneByMap(dto.getTable(), dto.getFixedData());
|
|
|
}
|
|
@@ -71,7 +71,7 @@ public class CommonController {
|
|
|
* @param dto dto
|
|
|
* @return com.boman.domain.dto.AjaxResult
|
|
|
*/
|
|
|
- @GetMapping("count/{tableName}/pkName/{pkName}")
|
|
|
+ @PostMapping("count")
|
|
|
public int count(@RequestBody FormDataDto dto) {
|
|
|
return commonService.count(dto);
|
|
|
}
|
|
@@ -82,7 +82,7 @@ public class CommonController {
|
|
|
* @param tableName tableName
|
|
|
* @return com.boman.domain.dto.AjaxResult
|
|
|
*/
|
|
|
- @GetMapping("count/{tableName}")
|
|
|
+ @GetMapping("newest/{tableName}")
|
|
|
public JSONObject getNewest(@PathVariable("tableName") String tableName) {
|
|
|
return commonService.getNewest(tableName);
|
|
|
}
|