|
@@ -32,12 +32,12 @@ import java.io.IOException;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
- * 企业电费Controller
|
|
|
+ * 涉企政策Controller
|
|
|
* @author 尹宇
|
|
|
* @version 2024-11-05
|
|
|
*/
|
|
|
|
|
|
-@Api(tags ="企业电费")
|
|
|
+@Api(tags ="涉企政策")
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/enterpriseelectricity/enterpriseElectricity")
|
|
|
public class EnterpriseElectricityController {
|
|
@@ -50,10 +50,10 @@ public class EnterpriseElectricityController {
|
|
|
@Autowired
|
|
|
private EnterpriseInfoService enterpriseInfoService;
|
|
|
/**
|
|
|
- * 企业电费列表数据
|
|
|
+ * 查询涉企政策列表数据
|
|
|
*/
|
|
|
- @ApiLog("查询企业电费列表数据")
|
|
|
- @ApiOperation(value = "查询企业电费列表数据")
|
|
|
+ @ApiLog("查询涉企政策列表数据")
|
|
|
+ @ApiOperation(value = "查询涉企政策列表数据")
|
|
|
@GetMapping("list")
|
|
|
public ResponseEntity<IPage<EnterpriseElectricityDTO>> list(EnterpriseElectricityDTO enterpriseElectricityDTO, Page<EnterpriseElectricityDTO> page) throws Exception {
|
|
|
QueryWrapper queryWrapper = QueryWrapperGenerator.buildQueryCondition (enterpriseElectricityDTO, EnterpriseElectricityDTO.class);
|
|
@@ -63,20 +63,20 @@ public class EnterpriseElectricityController {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 根据Id获取企业电费数据
|
|
|
+ * 根据Id获取涉企政策数据
|
|
|
*/
|
|
|
- @ApiLog("根据Id获取企业电费数据")
|
|
|
- @ApiOperation(value = "根据Id获取企业电费数据")
|
|
|
+ @ApiLog("根据Id获取涉企政策数据")
|
|
|
+ @ApiOperation(value = "根据Id获取涉企政策数据")
|
|
|
@GetMapping("queryById")
|
|
|
public ResponseEntity<EnterpriseElectricityDTO> queryById(String id) {
|
|
|
return ResponseEntity.ok ( enterpriseElectricityWrapper.toDTO ( enterpriseElectricityService.getById ( id ) ) );
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 保存企业电费
|
|
|
+ * 保存涉企政策
|
|
|
*/
|
|
|
- @ApiLog("保存企业电费")
|
|
|
- @ApiOperation(value = "保存企业电费")
|
|
|
+ @ApiLog("保存涉企政策")
|
|
|
+ @ApiOperation(value = "保存涉企政策")
|
|
|
@PreAuthorize("hasAnyAuthority('enterpriseelectricity:enterpriseElectricity:add','enterpriseelectricity:enterpriseElectricity:edit')")
|
|
|
@PostMapping("save")
|
|
|
public ResponseEntity <String> save(@Valid @RequestBody EnterpriseElectricityDTO enterpriseElectricityDTO) {
|
|
@@ -87,10 +87,10 @@ public class EnterpriseElectricityController {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 删除企业电费
|
|
|
+ * 删除涉企政策
|
|
|
*/
|
|
|
- @ApiLog("删除企业电费")
|
|
|
- @ApiOperation(value = "删除企业电费")
|
|
|
+ @ApiLog("删除涉企政策")
|
|
|
+ @ApiOperation(value = "删除涉企政策")
|
|
|
@PreAuthorize("hasAuthority('enterpriseelectricity:enterpriseElectricity:del')")
|
|
|
@DeleteMapping("delete")
|
|
|
public ResponseEntity <String> delete(String ids) {
|
|
@@ -100,14 +100,14 @@ public class EnterpriseElectricityController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 导出企业电费数据
|
|
|
+ * 导出涉企政策数据
|
|
|
*
|
|
|
* @param enterpriseElectricityDTO
|
|
|
* @param page
|
|
|
* @param response
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
- @ApiLog("导出企业电费数据")
|
|
|
+ @ApiLog("导出涉企政策数据")
|
|
|
@PreAuthorize("hasAnyAuthority('enterpriseelectricity:enterpriseElectricity:export')")
|
|
|
@GetMapping("export")
|
|
|
public void exportFile(EnterpriseElectricityDTO enterpriseElectricityDTO, Page <EnterpriseElectricity> page, ExcelOptions options, HttpServletResponse response) throws Exception {
|
|
@@ -126,7 +126,7 @@ public class EnterpriseElectricityController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 导入企业电费数据
|
|
|
+ * 导入涉企政策数据
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
@@ -138,7 +138,7 @@ public class EnterpriseElectricityController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 下载导入企业电费数据模板
|
|
|
+ * 下载导入涉企政策数据模板
|
|
|
*
|
|
|
* @param response
|
|
|
* @return
|
|
@@ -146,9 +146,9 @@ public class EnterpriseElectricityController {
|
|
|
@PreAuthorize ("hasAnyAuthority('enterpriseelectricity:enterpriseElectricity:import')")
|
|
|
@GetMapping("import/template")
|
|
|
public void importFileTemplate(HttpServletResponse response) throws IOException {
|
|
|
- String fileName = "企业电费数据导入模板.xlsx";
|
|
|
+ String fileName = "涉企政策数据导入模板.xlsx";
|
|
|
List<EnterpriseElectricityDTO> list = Lists.newArrayList();
|
|
|
- EasyExcelUtils.newInstance ( enterpriseElectricityService, enterpriseElectricityWrapper ).exportExcel ( list, "企业电费数据", EnterpriseElectricityDTO.class, fileName, null, response );
|
|
|
+ EasyExcelUtils.newInstance ( enterpriseElectricityService, enterpriseElectricityWrapper ).exportExcel ( list, "涉企政策数据", EnterpriseElectricityDTO.class, fileName, null, response );
|
|
|
}
|
|
|
|
|
|
}
|