package com.aps.core.controller.mainPlan;
|
|
import com.aps.common.core.utils.poi.ExcelUtil;
|
import com.aps.common.core.web.controller.BaseController;
|
import com.aps.common.core.web.domain.AjaxResult;
|
import com.aps.common.core.web.page.TableDataInfo;
|
import com.aps.common.log.annotation.Log;
|
import com.aps.common.log.enums.BusinessType;
|
import com.aps.common.security.annotation.RequiresPermissions;
|
import com.aps.core.domain.ApsGasPipingPlanTemp;
|
import com.aps.core.service.IApsGasPipingPlanTempService;
|
import jakarta.servlet.http.HttpServletResponse;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
import java.util.List;
|
|
/**
|
* 气体管路计划管理-临时Controller
|
*
|
* @author wwj
|
* @date 2025-04-09
|
*/
|
@RestController
|
@RequestMapping("/gasPipingTemp")
|
public class ApsGasPipingPlanTempController extends BaseController
|
{
|
@Autowired
|
private IApsGasPipingPlanTempService apsGasPipingPlanTempService;
|
|
/**
|
* 查询气体管路计划管理-临时列表
|
*/
|
@RequiresPermissions("gasPiping:import")
|
@GetMapping("/list")
|
public TableDataInfo list(ApsGasPipingPlanTemp apsGasPipingPlanTemp)
|
{
|
// startPage();
|
List<ApsGasPipingPlanTemp> list = apsGasPipingPlanTempService.selectApsGasPipingPlanTempList(apsGasPipingPlanTemp);
|
return getDataTable(list);
|
}
|
|
/**
|
* 导出气体管路计划管理-临时列表
|
*/
|
@RequiresPermissions("gasPipingTemp:gasPipingTemp:export")
|
@Log(title = "气体管路计划管理-临时", businessType = BusinessType.EXPORT)
|
@PostMapping("/export")
|
public void export(HttpServletResponse response, ApsGasPipingPlanTemp apsGasPipingPlanTemp)
|
{
|
List<ApsGasPipingPlanTemp> list = apsGasPipingPlanTempService.selectApsGasPipingPlanTempList(apsGasPipingPlanTemp);
|
ExcelUtil<ApsGasPipingPlanTemp> util = new ExcelUtil<ApsGasPipingPlanTemp>(ApsGasPipingPlanTemp.class);
|
util.exportExcel(response, list, "气体管路计划管理-临时数据");
|
}
|
|
/**
|
* 获取气体管路计划管理-临时详细信息
|
*/
|
@RequiresPermissions("gasPipingTemp:gasPipingTemp:query")
|
@GetMapping(value = "/{id}")
|
public AjaxResult getInfo(@PathVariable("id") String id)
|
{
|
return success(apsGasPipingPlanTempService.selectApsGasPipingPlanTempById(id));
|
}
|
|
/**
|
* 新增气体管路计划管理-临时
|
*/
|
@RequiresPermissions("gasPipingTemp:gasPipingTemp:add")
|
@Log(title = "气体管路计划管理-临时", businessType = BusinessType.INSERT)
|
@PostMapping
|
public AjaxResult add(@RequestBody ApsGasPipingPlanTemp apsGasPipingPlanTemp)
|
{
|
return toAjax(apsGasPipingPlanTempService.insertApsGasPipingPlanTemp(apsGasPipingPlanTemp));
|
}
|
|
/**
|
* 修改气体管路计划管理-临时
|
*/
|
@RequiresPermissions("gasPipingTemp:gasPipingTemp:edit")
|
@Log(title = "气体管路计划管理-临时", businessType = BusinessType.UPDATE)
|
@PutMapping
|
public AjaxResult edit(@RequestBody ApsGasPipingPlanTemp apsGasPipingPlanTemp)
|
{
|
return toAjax(apsGasPipingPlanTempService.updateApsGasPipingPlanTemp(apsGasPipingPlanTemp));
|
}
|
|
/**
|
* 删除气体管路计划管理-临时
|
*/
|
@RequiresPermissions("gasPipingTemp:gasPipingTemp:remove")
|
@Log(title = "气体管路计划管理-临时", businessType = BusinessType.DELETE)
|
@DeleteMapping("/{ids}")
|
public AjaxResult remove(@PathVariable String[] ids)
|
{
|
return toAjax(apsGasPipingPlanTempService.deleteApsGasPipingPlanTempByIds(ids));
|
}
|
}
|