修改表名、实体类

This commit is contained in:
Lemon
2023-07-07 14:26:31 +08:00
parent 7a7117f089
commit 19704bcf9e
10 changed files with 178 additions and 174 deletions

View File

@@ -9,7 +9,7 @@ import com.jsowell.common.response.RestApiResponse;
import com.jsowell.common.util.JWTUtils;
import com.jsowell.common.util.StringUtils;
import com.jsowell.pile.dto.*;
import com.jsowell.pile.service.IDockingPlatformConfigService;
import com.jsowell.pile.service.IThirdPartyPlatformConfigService;
import com.jsowell.thirdparty.lianlian.common.CommonResult;
import com.jsowell.thirdparty.lianlian.dto.CommonParamsDTO;
import com.jsowell.thirdparty.lianlian.service.LianLianService;
@@ -38,7 +38,7 @@ public class LianLianController extends BaseController {
private LianLianService lianLianService;
@Autowired
private IDockingPlatformConfigService dockingPlatformConfigService;
private IThirdPartyPlatformConfigService thirdPartyPlatformConfigService;
/**
* 推送充电站信息 notification_stationInfo

View File

@@ -17,8 +17,8 @@ import com.jsowell.common.annotation.Log;
import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.core.domain.AjaxResult;
import com.jsowell.common.enums.BusinessType;
import com.jsowell.pile.domain.DockingPlatformConfig;
import com.jsowell.pile.service.IDockingPlatformConfigService;
import com.jsowell.pile.domain.ThirdPartyPlatformConfig;
import com.jsowell.pile.service.IThirdPartyPlatformConfigService;
import com.jsowell.common.util.poi.ExcelUtil;
import com.jsowell.common.core.page.TableDataInfo;
@@ -30,18 +30,18 @@ import com.jsowell.common.core.page.TableDataInfo;
*/
@RestController
@RequestMapping("/pile/config")
public class DockingPlatformConfigController extends BaseController {
public class ThirdPartyPlatformConfigController extends BaseController {
@Autowired
private IDockingPlatformConfigService dockingPlatformConfigService;
private IThirdPartyPlatformConfigService thirdPartyPlatformConfigService;
/**
* 查询对接平台配置信息列表
*/
@PreAuthorize("@ss.hasPermi('pile:config:list')")
@GetMapping("/list")
public TableDataInfo list(DockingPlatformConfig dockingPlatformConfig) {
public TableDataInfo list(ThirdPartyPlatformConfig thirdPartyPlatformConfig) {
startPage();
List<DockingPlatformConfig> list = dockingPlatformConfigService.selectDockingPlatformConfigList(dockingPlatformConfig);
List<ThirdPartyPlatformConfig> list = thirdPartyPlatformConfigService.selectThirdPartyPlatformConfigList(thirdPartyPlatformConfig);
return getDataTable(list);
}
@@ -51,9 +51,9 @@ public class DockingPlatformConfigController extends BaseController {
@PreAuthorize("@ss.hasPermi('pile:config:export')")
@Log(title = "对接平台配置信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DockingPlatformConfig dockingPlatformConfig) {
List<DockingPlatformConfig> list = dockingPlatformConfigService.selectDockingPlatformConfigList(dockingPlatformConfig);
ExcelUtil<DockingPlatformConfig> util = new ExcelUtil<DockingPlatformConfig>(DockingPlatformConfig.class);
public void export(HttpServletResponse response, ThirdPartyPlatformConfig thirdPartyPlatformConfig) {
List<ThirdPartyPlatformConfig> list = thirdPartyPlatformConfigService.selectThirdPartyPlatformConfigList(thirdPartyPlatformConfig);
ExcelUtil<ThirdPartyPlatformConfig> util = new ExcelUtil<ThirdPartyPlatformConfig>(ThirdPartyPlatformConfig.class);
util.exportExcel(response, list, "对接平台配置信息数据");
}
@@ -63,7 +63,7 @@ public class DockingPlatformConfigController extends BaseController {
@PreAuthorize("@ss.hasPermi('pile:config:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Integer id) {
return AjaxResult.success(dockingPlatformConfigService.selectDockingPlatformConfigById(id));
return AjaxResult.success(thirdPartyPlatformConfigService.selectThirdPartyPlatformConfigById(id));
}
/**
@@ -72,8 +72,8 @@ public class DockingPlatformConfigController extends BaseController {
@PreAuthorize("@ss.hasPermi('pile:config:add')")
@Log(title = "对接平台配置信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DockingPlatformConfig dockingPlatformConfig) {
return toAjax(dockingPlatformConfigService.insertDockingPlatformConfig(dockingPlatformConfig));
public AjaxResult add(@RequestBody ThirdPartyPlatformConfig thirdPartyPlatformConfig) {
return toAjax(thirdPartyPlatformConfigService.insertThirdPartyPlatformConfig(thirdPartyPlatformConfig));
}
/**
@@ -82,8 +82,8 @@ public class DockingPlatformConfigController extends BaseController {
@PreAuthorize("@ss.hasPermi('pile:config:edit')")
@Log(title = "对接平台配置信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DockingPlatformConfig dockingPlatformConfig) {
return toAjax(dockingPlatformConfigService.updateDockingPlatformConfig(dockingPlatformConfig));
public AjaxResult edit(@RequestBody ThirdPartyPlatformConfig thirdPartyPlatformConfig) {
return toAjax(thirdPartyPlatformConfigService.updateThirdPartyPlatformConfig(thirdPartyPlatformConfig));
}
/**
@@ -93,6 +93,6 @@ public class DockingPlatformConfigController extends BaseController {
@Log(title = "对接平台配置信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Integer[] ids) {
return toAjax(dockingPlatformConfigService.deleteDockingPlatformConfigByIds(ids));
return toAjax(thirdPartyPlatformConfigService.deleteThirdPartyPlatformConfigByIds(ids));
}
}