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
11 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)); |
|||
} |
|||
} |
@ -1,63 +1,65 @@ |
|||
package com.lzbi.targetFolder.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.lzbi.targetFolder.domain.DcBaseTargetModelDao; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.lzbi.targetFolder.domain.DcBaseTargetModel; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 指标模版配置Mapper接口 |
|||
* |
|||
* |
|||
* @author Lu.JL |
|||
* @date 2023-11-29 |
|||
* @date 2023-12-07 |
|||
*/ |
|||
|
|||
public interface DcBaseTargetModelMapper extends BaseMapper<DcBaseTargetModelDao> |
|||
public interface DcBaseTargetModelMapper extends BaseMapper<DcBaseTargetModel> |
|||
{ |
|||
/** |
|||
* 查询指标模版配置 |
|||
* |
|||
* |
|||
* @param id 指标模版配置主键 |
|||
* @return 指标模版配置 |
|||
*/ |
|||
public DcBaseTargetModelDao selectDcBaseTargetModelDaoById(Long id); |
|||
public DcBaseTargetModel selectDcBaseTargetModelById(Long id); |
|||
|
|||
/** |
|||
* 查询指标模版配置列表 |
|||
* |
|||
* @param dcBaseTargetModelDao 指标模版配置 |
|||
* |
|||
* @param dcBaseTargetModel 指标模版配置 |
|||
* @return 指标模版配置集合 |
|||
*/ |
|||
public List<DcBaseTargetModelDao> selectDcBaseTargetModelDaoList(DcBaseTargetModelDao dcBaseTargetModelDao); |
|||
public List<DcBaseTargetModel> selectDcBaseTargetModelList(DcBaseTargetModel dcBaseTargetModel); |
|||
|
|||
/** |
|||
* 新增指标模版配置 |
|||
* |
|||
* @param dcBaseTargetModelDao 指标模版配置 |
|||
* |
|||
* @param dcBaseTargetModel 指标模版配置 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertDcBaseTargetModelDao(DcBaseTargetModelDao dcBaseTargetModelDao); |
|||
public int insertDcBaseTargetModel(DcBaseTargetModel dcBaseTargetModel); |
|||
|
|||
/** |
|||
* 修改指标模版配置 |
|||
* |
|||
* |
|||
* @param dcBaseTargetModel 指标模版配置 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateDcBaseTargetModelDao(DcBaseTargetModelDao dcBaseTargetModelDao); |
|||
public int updateDcBaseTargetModel(DcBaseTargetModel dcBaseTargetModel); |
|||
|
|||
/** |
|||
* 删除指标模版配置 |
|||
* |
|||
* |
|||
* @param id 指标模版配置主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDcBaseTargetModelDaoById(Long id); |
|||
public int deleteDcBaseTargetModelById(Long id); |
|||
|
|||
/** |
|||
* 批量删除指标模版配置 |
|||
* |
|||
* |
|||
* @param ids 需要删除的数据主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDcBaseTargetModelDaoByIds(Long[] ids); |
|||
public int deleteDcBaseTargetModelByIds(Long[] ids); |
|||
} |
|||
|
Loading…
Reference in new issue