|
@@ -2,13 +2,11 @@ package com.rongwei.bsserver.sys.controller;
|
|
|
|
|
|
import com.rongwei.bscommon.sys.service.SubConfigService;
|
|
|
import com.rongwei.bscommon.sys.utils.ExceptionUtils;
|
|
|
+import com.rongwei.bsentity.dto.IdGeneralDTO;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -60,10 +58,10 @@ public class SubConfigController {
|
|
|
*/
|
|
|
|
|
|
@PostMapping("/getTableIdByModuleId")
|
|
|
- public R getTableSqlByModuleId(@RequestParam String id){
|
|
|
+ public R getTableSqlByModuleId(@RequestBody IdGeneralDTO id){
|
|
|
try {
|
|
|
log.info("进入接口:/subsystem-config/getTableIdByModuleId,入参为:{}",id);
|
|
|
- return subConfigService.getTableSqlByModuleId(id);
|
|
|
+ return subConfigService.getTableSqlByModuleId(id.getId());
|
|
|
}catch (Exception e){
|
|
|
ExceptionUtils.printExceptionDetail(e,"异常为:");
|
|
|
log.error(e.getMessage());
|