ljlong_2630
11 months ago
10 changed files with 684 additions and 8 deletions
@ -0,0 +1,118 @@ |
|||
package com.lzbi.targetFolder.controller; |
|||
|
|||
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.targetFolder.domain.DcBaseAssetTargetDao; |
|||
import com.lzbi.targetFolder.service.DcBaseAssetTargetService; |
|||
import com.lzbi.common.utils.poi.ExcelUtil; |
|||
import com.lzbi.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 资产指标配置Controller |
|||
* |
|||
* @author Lu.JL |
|||
* @date 2023-11-30 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/target/target") |
|||
public class DcBaseAssetTargetController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private DcBaseAssetTargetService dcBaseAssetTargetService; |
|||
|
|||
/** |
|||
* 查询资产指标配置列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:target:list')") |
|||
@GetMapping("/list") |
|||
public TableDataInfo list(DcBaseAssetTargetDao dcBaseAssetTargetDao) |
|||
{ |
|||
startPage(); |
|||
List<DcBaseAssetTargetDao> list = dcBaseAssetTargetService.selectDcBaseAssetTargetDaoList(dcBaseAssetTargetDao); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出资产指标配置列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:target:export')") |
|||
@Log(title = "资产指标配置", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(HttpServletResponse response, DcBaseAssetTargetDao dcBaseAssetTargetDao) |
|||
{ |
|||
List<DcBaseAssetTargetDao> list = dcBaseAssetTargetService.selectDcBaseAssetTargetDaoList(dcBaseAssetTargetDao); |
|||
ExcelUtil<DcBaseAssetTargetDao> util = new ExcelUtil<DcBaseAssetTargetDao>(DcBaseAssetTargetDao.class); |
|||
util.exportExcel(response, list, "资产指标配置数据"); |
|||
} |
|||
|
|||
/** |
|||
* 获取资产指标配置详细信息 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:target:query')") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") Long id) |
|||
{ |
|||
return success(dcBaseAssetTargetService.selectDcBaseAssetTargetDaoById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增资产指标配置 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:target:add')") |
|||
@Log(title = "资产指标配置", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
public AjaxResult add(@RequestBody DcBaseAssetTargetDao dcBaseAssetTargetDao) |
|||
{ |
|||
return toAjax(dcBaseAssetTargetService.insertDcBaseAssetTargetDao(dcBaseAssetTargetDao)); |
|||
} |
|||
|
|||
/** |
|||
* 修改资产指标配置 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:target:edit')") |
|||
@Log(title = "资产指标配置", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody DcBaseAssetTargetDao dcBaseAssetTargetDao) |
|||
{ |
|||
return toAjax(dcBaseAssetTargetService.updateDcBaseAssetTargetDao(dcBaseAssetTargetDao)); |
|||
} |
|||
|
|||
/** |
|||
* 删除资产指标配置 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:target:remove')") |
|||
@Log(title = "资产指标配置", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable Long[] ids) |
|||
{ |
|||
return toAjax(dcBaseAssetTargetService.deleteDcBaseAssetTargetDaoByIds(ids)); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 查询资产指标配置列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:target:list')") |
|||
@GetMapping("/listNoPage") |
|||
public AjaxResult listNoPage(DcBaseAssetTargetDao dcBaseAssetTargetDao) |
|||
{ |
|||
List<DcBaseAssetTargetDao> list = dcBaseAssetTargetService.selectDcBaseAssetTargetDaoList(dcBaseAssetTargetDao); |
|||
return AjaxResult.success(list); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,117 @@ |
|||
package com.lzbi.targetFolder.controller; |
|||
|
|||
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.targetFolder.domain.DcBaseTargetModelDao; |
|||
import com.lzbi.targetFolder.service.DcBaseTargetModelService; |
|||
import com.lzbi.common.utils.poi.ExcelUtil; |
|||
import com.lzbi.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 指标模版配置Controller |
|||
* |
|||
* @author Lu.JL |
|||
* @date 2023-11-29 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/target/targetModel") |
|||
public class DcBaseTargetModelController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private DcBaseTargetModelService dcBaseTargetModelService; |
|||
|
|||
/** |
|||
* 查询指标模版配置列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:targetModel:list')") |
|||
@GetMapping("/list") |
|||
public TableDataInfo list(DcBaseTargetModelDao dcBaseTargetModelDao) |
|||
{ |
|||
startPage(); |
|||
List<DcBaseTargetModelDao> list = dcBaseTargetModelService.selectDcBaseTargetModelDaoList(dcBaseTargetModelDao); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出指标模版配置列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:targetModel:export')") |
|||
@Log(title = "指标模版配置", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(HttpServletResponse response, DcBaseTargetModelDao dcBaseTargetModelDao) |
|||
{ |
|||
List<DcBaseTargetModelDao> list = dcBaseTargetModelService.selectDcBaseTargetModelDaoList(dcBaseTargetModelDao); |
|||
ExcelUtil<DcBaseTargetModelDao> util = new ExcelUtil<DcBaseTargetModelDao>(DcBaseTargetModelDao.class); |
|||
util.exportExcel(response, list, "指标模版配置数据"); |
|||
} |
|||
|
|||
/** |
|||
* 获取指标模版配置详细信息 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:targetModel:query')") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") Long id) |
|||
{ |
|||
return success(dcBaseTargetModelService.selectDcBaseTargetModelDaoById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增指标模版配置 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:targetModel:add')") |
|||
@Log(title = "指标模版配置", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
public AjaxResult add(@RequestBody DcBaseTargetModelDao dcBaseTargetModelDao) |
|||
{ |
|||
return toAjax(dcBaseTargetModelService.insertDcBaseTargetModelDao(dcBaseTargetModelDao)); |
|||
} |
|||
|
|||
/** |
|||
* 修改指标模版配置 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:targetModel:edit')") |
|||
@Log(title = "指标模版配置", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody DcBaseTargetModelDao dcBaseTargetModelDao) |
|||
{ |
|||
return toAjax(dcBaseTargetModelService.updateDcBaseTargetModelDao(dcBaseTargetModelDao)); |
|||
} |
|||
|
|||
/** |
|||
* 删除指标模版配置 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:targetModel:remove')") |
|||
@Log(title = "指标模版配置", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable Long[] ids) |
|||
{ |
|||
return toAjax(dcBaseTargetModelService.deleteDcBaseTargetModelDaoByIds(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 查询指标模版配置列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('target:targetModel:list')") |
|||
@GetMapping("/listNoPage") |
|||
public AjaxResult listNoPage(DcBaseTargetModelDao dcBaseTargetModelDao) |
|||
{ |
|||
List<DcBaseTargetModelDao> list = dcBaseTargetModelService.selectDcBaseTargetModelDaoList(dcBaseTargetModelDao); |
|||
return AjaxResult.success(list); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,83 @@ |
|||
package com.lzbi.targetFolder.domain; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
import com.lzbi.common.annotation.Excel; |
|||
import com.lzbi.module.base.BaseModuleEntity; |
|||
|
|||
/** |
|||
* 资产指标配置对象 dc_base_asset_target |
|||
* |
|||
* @author Lu.JL |
|||
* @date 2023-11-30 |
|||
*/ |
|||
@Data |
|||
public class DcBaseAssetTargetDao extends BaseModuleEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 主键 */ |
|||
private Long id; |
|||
|
|||
/** 资产ID */ |
|||
@Excel(name = "资产ID") |
|||
private Long assetId; |
|||
|
|||
/** 指标模型编码 */ |
|||
@Excel(name = "指标模型编码") |
|||
private String targetModelCode; |
|||
|
|||
/** 指标名称 */ |
|||
@Excel(name = "指标名称") |
|||
private String targetName; |
|||
|
|||
/** 指标编码 */ |
|||
@Excel(name = "指标编码") |
|||
private String targetCode; |
|||
|
|||
/** 所属专业 */ |
|||
@Excel(name = "所属专业") |
|||
private String targetField; |
|||
|
|||
/** 上限 */ |
|||
@Excel(name = "上限") |
|||
private BigDecimal limitUp; |
|||
|
|||
/** 下限 */ |
|||
@Excel(name = "下限") |
|||
private BigDecimal limitDown; |
|||
|
|||
/** 值 */ |
|||
@Excel(name = "值") |
|||
private BigDecimal valueBase; |
|||
|
|||
/** 是否均值 */ |
|||
@Excel(name = "是否均值") |
|||
private String flagAvg; |
|||
|
|||
/** 是否汇总 */ |
|||
@Excel(name = "是否汇总") |
|||
private String flagSum; |
|||
|
|||
/** 是否积算 */ |
|||
@Excel(name = "是否积算") |
|||
private String flagCompute; |
|||
|
|||
/** 排序 */ |
|||
@Excel(name = "排序") |
|||
private String sort; |
|||
|
|||
/** 创建人 */ |
|||
private String createdBy; |
|||
|
|||
/** 创建时间 */ |
|||
private Date createdTime; |
|||
|
|||
/** 更新人 */ |
|||
private String updatedBy; |
|||
|
|||
/** 更新时间 */ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,43 @@ |
|||
package com.lzbi.targetFolder.domain; |
|||
|
|||
import lombok.Data; |
|||
import com.lzbi.common.annotation.Excel; |
|||
import com.lzbi.module.base.BaseModuleEntity; |
|||
|
|||
/** |
|||
* 指标模版配置对象 dc_base_target_model |
|||
* |
|||
* @author Lu.JL |
|||
* @date 2023-11-29 |
|||
*/ |
|||
@Data |
|||
public class DcBaseTargetModelDao extends BaseModuleEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 主键 */ |
|||
private Long id; |
|||
|
|||
/** 指标模版编码 */ |
|||
@Excel(name = "指标模版编码") |
|||
private String targetModelCode; |
|||
|
|||
/** 指标模版名称 */ |
|||
@Excel(name = "指标模版名称") |
|||
private String targetModelName; |
|||
|
|||
/** 指标类型;计算型,录入型 */ |
|||
@Excel(name = "指标类型;计算型,录入型") |
|||
private String targetModelType; |
|||
|
|||
/** 所属专业 */ |
|||
@Excel(name = "所属专业") |
|||
private String targetModelField; |
|||
|
|||
/** 指标等级 */ |
|||
@Excel(name = "指标等级") |
|||
private Long targetModelLevel; |
|||
|
|||
|
|||
|
|||
} |
@ -0,0 +1,65 @@ |
|||
package com.lzbi.targetFolder.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.lzbi.targetFolder.domain.DcBaseAssetTargetDao; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 资产指标配置Mapper接口 |
|||
* |
|||
* @author Lu.JL |
|||
* @date 2023-11-30 |
|||
*/ |
|||
|
|||
@Mapper |
|||
public interface DcBaseAssetTargetMapper extends BaseMapper<DcBaseAssetTargetDao> |
|||
{ |
|||
/** |
|||
* 查询资产指标配置 |
|||
* |
|||
* @param id 资产指标配置主键 |
|||
* @return 资产指标配置 |
|||
*/ |
|||
public DcBaseAssetTargetDao selectDcBaseAssetTargetDaoById(Long id); |
|||
|
|||
/** |
|||
* 查询资产指标配置列表 |
|||
* |
|||
* @param dcBaseAssetTargetDao 资产指标配置 |
|||
* @return 资产指标配置集合 |
|||
*/ |
|||
public List<DcBaseAssetTargetDao> selectDcBaseAssetTargetDaoList(DcBaseAssetTargetDao dcBaseAssetTargetDao); |
|||
|
|||
/** |
|||
* 新增资产指标配置 |
|||
* |
|||
* @param dcBaseAssetTargetDao 资产指标配置 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertDcBaseAssetTargetDao(DcBaseAssetTargetDao dcBaseAssetTargetDao); |
|||
|
|||
/** |
|||
* 修改资产指标配置 |
|||
* |
|||
* @param dcBaseAssetTarget 资产指标配置 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateDcBaseAssetTargetDao(DcBaseAssetTargetDao dcBaseAssetTargetDao); |
|||
|
|||
/** |
|||
* 删除资产指标配置 |
|||
* |
|||
* @param id 资产指标配置主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDcBaseAssetTargetDaoById(Long id); |
|||
|
|||
/** |
|||
* 批量删除资产指标配置 |
|||
* |
|||
* @param ids 需要删除的数据主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDcBaseAssetTargetDaoByIds(Long[] ids); |
|||
} |
@ -0,0 +1,63 @@ |
|||
package com.lzbi.targetFolder.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.lzbi.targetFolder.domain.DcBaseTargetModelDao; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
|
|||
/** |
|||
* 指标模版配置Mapper接口 |
|||
* |
|||
* @author Lu.JL |
|||
* @date 2023-11-29 |
|||
*/ |
|||
|
|||
public interface DcBaseTargetModelMapper extends BaseMapper<DcBaseTargetModelDao> |
|||
{ |
|||
/** |
|||
* 查询指标模版配置 |
|||
* |
|||
* @param id 指标模版配置主键 |
|||
* @return 指标模版配置 |
|||
*/ |
|||
public DcBaseTargetModelDao selectDcBaseTargetModelDaoById(Long id); |
|||
|
|||
/** |
|||
* 查询指标模版配置列表 |
|||
* |
|||
* @param dcBaseTargetModelDao 指标模版配置 |
|||
* @return 指标模版配置集合 |
|||
*/ |
|||
public List<DcBaseTargetModelDao> selectDcBaseTargetModelDaoList(DcBaseTargetModelDao dcBaseTargetModelDao); |
|||
|
|||
/** |
|||
* 新增指标模版配置 |
|||
* |
|||
* @param dcBaseTargetModelDao 指标模版配置 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertDcBaseTargetModelDao(DcBaseTargetModelDao dcBaseTargetModelDao); |
|||
|
|||
/** |
|||
* 修改指标模版配置 |
|||
* |
|||
* @param dcBaseTargetModel 指标模版配置 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateDcBaseTargetModelDao(DcBaseTargetModelDao dcBaseTargetModelDao); |
|||
|
|||
/** |
|||
* 删除指标模版配置 |
|||
* |
|||
* @param id 指标模版配置主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDcBaseTargetModelDaoById(Long id); |
|||
|
|||
/** |
|||
* 批量删除指标模版配置 |
|||
* |
|||
* @param ids 需要删除的数据主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDcBaseTargetModelDaoByIds(Long[] ids); |
|||
} |
@ -0,0 +1,95 @@ |
|||
package com.lzbi.targetFolder.service; |
|||
|
|||
import java.util.List; |
|||
|
|||
import com.lzbi.common.utils.DateUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.lzbi.targetFolder.domain.DcBaseAssetTargetDao; |
|||
import com.lzbi.targetFolder.mapper.DcBaseAssetTargetMapper; |
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
/** |
|||
* 资产指标配置Service业务层处理 |
|||
* |
|||
* @author Lu.JL |
|||
* @date 2023-11-30 |
|||
*/ |
|||
@Service |
|||
public class DcBaseAssetTargetService extends ServiceImpl<DcBaseAssetTargetMapper, DcBaseAssetTargetDao> implements IService<DcBaseAssetTargetDao> |
|||
{ |
|||
@Autowired |
|||
private DcBaseAssetTargetMapper dcBaseAssetTargetMapper; |
|||
|
|||
/** |
|||
* 查询资产指标配置 |
|||
* |
|||
* @param id 资产指标配置主键 |
|||
* @return 资产指标配置 |
|||
*/ |
|||
public DcBaseAssetTargetDao selectDcBaseAssetTargetDaoById(Long id) |
|||
{ |
|||
return dcBaseAssetTargetMapper.selectDcBaseAssetTargetDaoById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询资产指标配置列表 |
|||
* |
|||
* @param dcBaseAssetTargetDao 资产指标配置 |
|||
* @return 资产指标配置 |
|||
*/ |
|||
public List<DcBaseAssetTargetDao> selectDcBaseAssetTargetDaoList(DcBaseAssetTargetDao dcBaseAssetTargetDao) |
|||
{ |
|||
return dcBaseAssetTargetMapper.selectDcBaseAssetTargetDaoList(dcBaseAssetTargetDao); |
|||
} |
|||
|
|||
/** |
|||
* 新增资产指标配置 |
|||
* |
|||
* @param dcBaseAssetTargetDao 资产指标配置 |
|||
* @return 结果 |
|||
*/ |
|||
|
|||
public int insertDcBaseAssetTargetDao(DcBaseAssetTargetDao dcBaseAssetTargetDao) |
|||
{ |
|||
dcBaseAssetTargetDao.setCreatedTime(DateUtils.getNowDate()); |
|||
return dcBaseAssetTargetMapper.insertDcBaseAssetTargetDao(dcBaseAssetTargetDao); |
|||
} |
|||
|
|||
/** |
|||
* 修改资产指标配置 |
|||
* |
|||
* @param dcBaseAssetTargetDao 资产指标配置 |
|||
* @return 结果 |
|||
*/ |
|||
|
|||
public int updateDcBaseAssetTargetDao(DcBaseAssetTargetDao dcBaseAssetTargetDao) |
|||
{ |
|||
dcBaseAssetTargetDao.setUpdatedTime(DateUtils.getNowDate()); |
|||
return dcBaseAssetTargetMapper.updateDcBaseAssetTargetDao(dcBaseAssetTargetDao); |
|||
} |
|||
|
|||
/** |
|||
* 批量删除资产指标配置 |
|||
* |
|||
* @param ids 需要删除的资产指标配置主键 |
|||
* @return 结果 |
|||
*/ |
|||
|
|||
public int deleteDcBaseAssetTargetDaoByIds(Long[] ids) |
|||
{ |
|||
return dcBaseAssetTargetMapper.deleteDcBaseAssetTargetDaoByIds(ids); |
|||
} |
|||
|
|||
/** |
|||
* 删除资产指标配置信息 |
|||
* |
|||
* @param id 资产指标配置主键 |
|||
* @return 结果 |
|||
*/ |
|||
|
|||
public int deleteDcBaseAssetTargetDaoById(Long id) |
|||
{ |
|||
return dcBaseAssetTargetMapper.deleteDcBaseAssetTargetDaoById(id); |
|||
} |
|||
} |
@ -0,0 +1,92 @@ |
|||
package com.lzbi.targetFolder.service; |
|||
|
|||
import java.util.List; |
|||
|
|||
import com.lzbi.common.utils.DateUtils; |
|||
import org.springframework.stereotype.Service; |
|||
import com.lzbi.targetFolder.domain.DcBaseTargetModelDao; |
|||
import com.lzbi.targetFolder.mapper.DcBaseTargetModelMapper; |
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
/** |
|||
* 指标模版配置Service业务层处理 |
|||
* |
|||
* @author Lu.JL |
|||
* @date 2023-11-29 |
|||
*/ |
|||
@Service |
|||
public class DcBaseTargetModelService extends ServiceImpl<DcBaseTargetModelMapper, DcBaseTargetModelDao> implements IService<DcBaseTargetModelDao> |
|||
{ |
|||
|
|||
/** |
|||
* 查询指标模版配置 |
|||
* |
|||
* @param id 指标模版配置主键 |
|||
* @return 指标模版配置 |
|||
*/ |
|||
public DcBaseTargetModelDao selectDcBaseTargetModelDaoById(Long id) |
|||
{ |
|||
return baseMapper.selectDcBaseTargetModelDaoById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询指标模版配置列表 |
|||
* |
|||
* @param dcBaseTargetModelDao 指标模版配置 |
|||
* @return 指标模版配置 |
|||
*/ |
|||
public List<DcBaseTargetModelDao> selectDcBaseTargetModelDaoList(DcBaseTargetModelDao dcBaseTargetModelDao) |
|||
{ |
|||
return baseMapper.selectDcBaseTargetModelDaoList(dcBaseTargetModelDao); |
|||
} |
|||
|
|||
/** |
|||
* 新增指标模版配置 |
|||
* |
|||
* @param dcBaseTargetModelDao 指标模版配置 |
|||
* @return 结果 |
|||
*/ |
|||
|
|||
public int insertDcBaseTargetModelDao(DcBaseTargetModelDao dcBaseTargetModelDao) |
|||
{ |
|||
dcBaseTargetModelDao.setCreatedTime(DateUtils.getNowDate()); |
|||
return baseMapper.insertDcBaseTargetModelDao(dcBaseTargetModelDao); |
|||
} |
|||
|
|||
/** |
|||
* 修改指标模版配置 |
|||
* |
|||
* @param dcBaseTargetModelDao 指标模版配置 |
|||
* @return 结果 |
|||
*/ |
|||
|
|||
public int updateDcBaseTargetModelDao(DcBaseTargetModelDao dcBaseTargetModelDao) |
|||
{ |
|||
dcBaseTargetModelDao.setUpdatedTime(DateUtils.getNowDate()); |
|||
return baseMapper.updateDcBaseTargetModelDao(dcBaseTargetModelDao); |
|||
} |
|||
|
|||
/** |
|||
* 批量删除指标模版配置 |
|||
* |
|||
* @param ids 需要删除的指标模版配置主键 |
|||
* @return 结果 |
|||
*/ |
|||
|
|||
public int deleteDcBaseTargetModelDaoByIds(Long[] ids) |
|||
{ |
|||
return baseMapper.deleteDcBaseTargetModelDaoByIds(ids); |
|||
} |
|||
|
|||
/** |
|||
* 删除指标模版配置信息 |
|||
* |
|||
* @param id 指标模版配置主键 |
|||
* @return 结果 |
|||
*/ |
|||
|
|||
public int deleteDcBaseTargetModelDaoById(Long id) |
|||
{ |
|||
return baseMapper.deleteDcBaseTargetModelDaoById(id); |
|||
} |
|||
} |
Loading…
Reference in new issue