Browse Source
# Conflicts: # lzbi-module/src/main/java/com/lzbi/module/base/BaseModuleEntity.java # lzbi-module/src/main/java/com/lzbi/special/domain/DcBaseWorkSpecial.java # lzbi-module/src/main/resources/mapper/targetFolder/DcBaseAssetTargetMapper.xmldevelop
zhousq
12 months ago
38 changed files with 669 additions and 301 deletions
@ -0,0 +1,105 @@ |
|||
package com.lzbi.draft.controller; |
|||
|
|||
import java.util.List; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
|
|||
import com.lzbi.draft.domain.DcBusiTargetAdjustDaySubDao; |
|||
import com.lzbi.draft.service.DcBusiTargetAdjustDaySubService; |
|||
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.common.utils.poi.ExcelUtil; |
|||
import com.lzbi.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 统计单元指标调整单子(日)Controller |
|||
* |
|||
* @author win |
|||
* @date 2023-12-05 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/asset/target/adjust/sub") |
|||
public class DcBusiTargetAdjustDaySubController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private DcBusiTargetAdjustDaySubService dcBusiTargetAdjustDaySubService; |
|||
|
|||
/** |
|||
* 查询统计单元指标调整单子(日)列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('asset:targetAdjustBill:list')") |
|||
@GetMapping("/list") |
|||
public TableDataInfo list(DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao) |
|||
{ |
|||
startPage(); |
|||
List<DcBusiTargetAdjustDaySubDao> list = dcBusiTargetAdjustDaySubService.selectDcBusiTargetAdjustDaySubDaoList(dcBusiTargetAdjustDaySubDao); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出统计单元指标调整单子(日)列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('asset:targetAdjustBill:export')") |
|||
@Log(title = "统计单元指标调整单子(日)", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(HttpServletResponse response, DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao) |
|||
{ |
|||
List<DcBusiTargetAdjustDaySubDao> list = dcBusiTargetAdjustDaySubService.selectDcBusiTargetAdjustDaySubDaoList(dcBusiTargetAdjustDaySubDao); |
|||
ExcelUtil<DcBusiTargetAdjustDaySubDao> util = new ExcelUtil<DcBusiTargetAdjustDaySubDao>(DcBusiTargetAdjustDaySubDao.class); |
|||
util.exportExcel(response, list, "统计单元指标调整单子(日)数据"); |
|||
} |
|||
|
|||
/** |
|||
* 获取统计单元指标调整单子(日)详细信息 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('asset:targetAdjustBill:query')") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") Long id) |
|||
{ |
|||
return success(dcBusiTargetAdjustDaySubService.selectDcBusiTargetAdjustDaySubDaoById(id)); |
|||
} |
|||
|
|||
// /**
|
|||
// * 新增统计单元指标调整单子(日)
|
|||
// */
|
|||
// @PreAuthorize("@ss.hasPermi('asset:targetAdjustBill:add')")
|
|||
// @Log(title = "统计单元指标调整单子(日)", businessType = BusinessType.INSERT)
|
|||
// @PostMapping
|
|||
// public AjaxResult add(@RequestBody DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao)
|
|||
// {
|
|||
// return toAjax(dcBusiTargetAdjustDaySubService.insertDcBusiTargetAdjustDaySubDao(dcBusiTargetAdjustDaySubDao));
|
|||
// }
|
|||
|
|||
/** |
|||
* 修改统计单元指标调整单子(日) |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('asset:targetAdjustBill:edit')") |
|||
@Log(title = "统计单元指标调整单子(日)", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao) |
|||
{ |
|||
return toAjax(dcBusiTargetAdjustDaySubService.updateDcBusiTargetAdjustDaySubDao(dcBusiTargetAdjustDaySubDao)); |
|||
} |
|||
|
|||
/** |
|||
* 删除统计单元指标调整单子(日) |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('asset:targetAdjustBill:remove')") |
|||
@Log(title = "统计单元指标调整单子(日)", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable Long[] ids) |
|||
{ |
|||
return toAjax(dcBusiTargetAdjustDaySubService.deleteDcBusiTargetAdjustDaySubDaoByIds(ids)); |
|||
} |
|||
} |
Loading…
Reference in new issue