bobol
11 months ago
10 changed files with 169 additions and 303 deletions
@ -1,131 +0,0 @@ |
|||
package com.lzbi.bill.controller; |
|||
import io.swagger.annotations.ApiImplicitParam; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import java.util.List; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
import com.lzbi.common.annotation.Log; |
|||
import com.lzbi.common.core.controller.BaseController; |
|||
import com.lzbi.common.core.domain.AjaxResult; |
|||
import com.lzbi.common.enums.BusinessType; |
|||
import com.lzbi.bill.domain. DcBusiPlanBillSub; |
|||
import com.lzbi.bill.service.DcBusiPlanBillSubService; |
|||
import com.lzbi.common.utils.poi.ExcelUtil; |
|||
import com.lzbi.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 计划单据明细Controller |
|||
* |
|||
* @author lienbo |
|||
* @date 2023-12-21 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/bill/planBillSub") |
|||
public class DcBusiPlanBillSubController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private DcBusiPlanBillSubService dcBusiPlanBillSubService; |
|||
|
|||
/** |
|||
* 查询计划单据明细列表 |
|||
*/ |
|||
@ApiOperation("查询计划单据明细列表") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = "DcBusiPlanBillSub", value = "", dataType = "DcBusiPlanBillSub", dataTypeClass = DcBusiPlanBillSub.class), |
|||
}) |
|||
@PreAuthorize("@ss.hasPermi('bill:planBillSub:list')") |
|||
@GetMapping("/list") |
|||
public TableDataInfo list(DcBusiPlanBillSub DcBusiPlanBillSub) |
|||
{ |
|||
startPage(); |
|||
List< DcBusiPlanBillSub> list = dcBusiPlanBillSubService.selectDcBusiPlanBillSubList(DcBusiPlanBillSub); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出计划单据明细列表 |
|||
*/ |
|||
@ApiOperation("导出计划单据明细列表") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = "DcBusiPlanBillSub", value = "", dataType = "DcBusiPlanBillSub", dataTypeClass = DcBusiPlanBillSub.class), |
|||
}) |
|||
@PreAuthorize("@ss.hasPermi('bill:planBillSub:export')") |
|||
@Log(title = "计划单据明细", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(HttpServletResponse response,DcBusiPlanBillSub DcBusiPlanBillSub) |
|||
{ |
|||
List<DcBusiPlanBillSub> list = dcBusiPlanBillSubService.selectDcBusiPlanBillSubList(DcBusiPlanBillSub); |
|||
ExcelUtil<DcBusiPlanBillSub> util = new ExcelUtil<DcBusiPlanBillSub>(DcBusiPlanBillSub.class); |
|||
util.exportExcel(response, list, "计划单据明细数据"); |
|||
} |
|||
|
|||
/** |
|||
* 获取计划单据明细详细信息 |
|||
*/ |
|||
@ApiOperation("获取计划单据明细详细信息") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = "id", value = "", dataType = "Long", dataTypeClass = Long.class), |
|||
}) |
|||
@PreAuthorize("@ss.hasPermi('bill:planBillSub:query')") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") Long id) |
|||
{ |
|||
return success(dcBusiPlanBillSubService.selectDcBusiPlanBillSubById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增计划单据明细 |
|||
*/ |
|||
@ApiOperation("新增计划单据明细") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = "DcBusiPlanBillSub", value = "", dataType = "DcBusiPlanBillSub", dataTypeClass = DcBusiPlanBillSub.class), |
|||
}) |
|||
@PreAuthorize("@ss.hasPermi('bill:planBillSub:add')") |
|||
@Log(title = "计划单据明细", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
public AjaxResult add(@RequestBody DcBusiPlanBillSub DcBusiPlanBillSub) |
|||
{ |
|||
return toAjax(dcBusiPlanBillSubService.insertDcBusiPlanBillSub(DcBusiPlanBillSub)); |
|||
} |
|||
|
|||
/** |
|||
* 修改计划单据明细 |
|||
*/ |
|||
|
|||
@ApiOperation("修改计划单据明细") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = "DcBusiPlanBillSub", value = "", dataType = "DcBusiPlanBillSub", dataTypeClass = DcBusiPlanBillSub.class), |
|||
}) |
|||
@PreAuthorize("@ss.hasPermi('bill:planBillSub:edit')") |
|||
@Log(title = "计划单据明细", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody DcBusiPlanBillSub DcBusiPlanBillSub) |
|||
{ |
|||
return toAjax(dcBusiPlanBillSubService.updateDcBusiPlanBillSub(DcBusiPlanBillSub)); |
|||
} |
|||
|
|||
/** |
|||
* 删除计划单据明细 |
|||
*/ |
|||
@ApiOperation("删除计划单据明细") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = "ids", value = "", dataType = "Long", dataTypeClass =Long.class), |
|||
}) |
|||
@PreAuthorize("@ss.hasPermi('bill:planBillSub:remove')") |
|||
@Log(title = "计划单据明细", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable Long[] ids) |
|||
{ |
|||
return toAjax(dcBusiPlanBillSubService.deleteDcBusiPlanBillSubByIds(ids)); |
|||
} |
|||
} |
Loading…
Reference in new issue