ljlong_2630
12 months ago
34 changed files with 1178 additions and 599 deletions
@ -1,151 +1,121 @@ |
|||||
package com.lzbi.asset.controller; |
package com.lzbi.asset.controller; |
||||
|
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
import java.util.List; |
||||
import com.lzbi.code.service.CodeNoGenerater; |
import java.util.Optional; |
||||
import com.lzbi.code.service.DcBaseCoderuleDefineService; |
import javax.servlet.http.HttpServletResponse; |
||||
|
|
||||
|
import com.fasterxml.jackson.databind.ext.OptionalHandlerFactory; |
||||
|
import com.github.pagehelper.PageHelper; |
||||
|
import com.lzbi.common.AssetQueryParams; |
||||
|
import com.lzbi.common.core.page.PageDomain; |
||||
|
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.annotation.Log; |
||||
import com.lzbi.common.core.controller.BaseController; |
import com.lzbi.common.core.controller.BaseController; |
||||
import com.lzbi.common.core.domain.AjaxResult; |
import com.lzbi.common.core.domain.AjaxResult; |
||||
import com.lzbi.common.core.page.TableDataInfo; |
|
||||
import com.lzbi.common.enums.BusinessType; |
import com.lzbi.common.enums.BusinessType; |
||||
import com.lzbi.common.utils.DateUtils; |
|
||||
import com.lzbi.common.utils.poi.ExcelUtil; |
|
||||
import com.lzbi.draft.service.DcBusiParamBillMasterService; |
|
||||
import com.lzbi.task.TaskParamDfratProcess; |
|
||||
import com.lzbi.task.TaskWorkParamRead; |
|
||||
import com.lzbi.task.service.WorkParamReadService; |
|
||||
import io.swagger.annotations.Api; |
|
||||
import io.swagger.annotations.ApiOperation; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import javax.servlet.http.HttpServletResponse; |
|
||||
import javax.validation.Valid; |
|
||||
import org.springframework.web.bind.annotation.*; |
|
||||
|
|
||||
import java.util.*; |
|
||||
import java.util.stream.Collectors; |
|
||||
|
|
||||
import com.lzbi.asset.domain.DcBusiWorkReadConfig; |
import com.lzbi.asset.domain.DcBusiWorkReadConfig; |
||||
import com.lzbi.asset.service.DcBusiWorkReadConfigService; |
import com.lzbi.asset.service.DcBusiWorkReadConfigService; |
||||
|
import com.lzbi.common.utils.poi.ExcelUtil; |
||||
|
import com.lzbi.common.core.page.TableDataInfo; |
||||
|
|
||||
|
import static com.lzbi.common.core.page.TableSupport.getPageDomain; |
||||
|
|
||||
/** |
/** |
||||
* 互联参数读取数据对照表;(dc_busi_work_read_config)表控制层 |
* 互联参数读取数据对照Controller |
||||
* @author : zhousq |
* |
||||
* @date : 2023-11-30 |
* @author zhousq |
||||
|
* @date 2023-12-04 |
||||
*/ |
*/ |
||||
@Api(tags = "互联参数读取数据对照表对象功能接口") |
|
||||
@RestController |
@RestController |
||||
@RequestMapping("/asset/dcBusiWorkReadConfig") |
@RequestMapping("/asset/assetExtConfig") |
||||
public class DcBusiWorkReadConfigController extends BaseController{ |
public class DcBusiWorkReadConfigController extends BaseController |
||||
|
{ |
||||
@Autowired |
@Autowired |
||||
private DcBusiWorkReadConfigService dcBusiWorkReadConfigService; |
private DcBusiWorkReadConfigService dcBusiWorkReadConfigService; |
||||
|
|
||||
/** |
/** |
||||
* 分页列表查询 |
* 查询互联参数读取数据对照列表 |
||||
* @return 分页数据 |
|
||||
*/ |
*/ |
||||
@GetMapping("/list") |
|
||||
public TableDataInfo list(DcBusiWorkReadConfig dcBusiWorkReadConfig) |
@PostMapping("/list") |
||||
{ startPage(); |
public TableDataInfo list(@RequestBody AssetQueryParams assetQueryParams) |
||||
List<DcBusiWorkReadConfig> list = null; |
{ |
||||
|
//startPage();
|
||||
|
PageHelper.startPage(assetQueryParams.getPageNum(), assetQueryParams.getPageSize()); |
||||
|
List<DcBusiWorkReadConfig> list = dcBusiWorkReadConfigService.selectDcBusiWorkReadConfigMainList(assetQueryParams); |
||||
return getDataTable(list); |
return getDataTable(list); |
||||
} |
} |
||||
/** |
@PostMapping("/detail/list") |
||||
*根据ID获取详情 |
public TableDataInfo list(@RequestBody DcBusiWorkReadConfig dcBusiWorkReadConfig) |
||||
*@param id |
{ |
||||
@return DcBusiWorkReadConfig 没有反馈空 |
//startPage();
|
||||
*/ |
dcBusiWorkReadConfig.setAssetCode(Optional.ofNullable(dcBusiWorkReadConfig.getAssetCode()).orElse("*")); |
||||
@ApiOperation("根据ID获取互联参数读取数据对照表详细信息") |
dcBusiWorkReadConfig.setAssetName(Optional.ofNullable(dcBusiWorkReadConfig.getAssetName()).orElse("")); |
||||
@GetMapping(value = "/{id}") |
List<DcBusiWorkReadConfig> list = dcBusiWorkReadConfigService.selectDcBusiWorkReadConfigList(dcBusiWorkReadConfig); |
||||
public AjaxResult getInfo(@PathVariable("id") Long id) { |
return getDataTable(list); |
||||
return AjaxResult.success(dcBusiWorkReadConfigService.getById(id)); |
|
||||
} |
|
||||
/** |
|
||||
* 互联参数读取数据对照表-新增 |
|
||||
*@param |
|
||||
*@return DcBusiWorkReadConfig |
|
||||
*/ |
|
||||
@ApiOperation("新增互联参数读取数据对照表一条数据") |
|
||||
@Log(title = "", businessType = BusinessType.INSERT) |
|
||||
@PostMapping |
|
||||
public AjaxResult add(@Valid @RequestBody DcBusiWorkReadConfig dcBusiWorkReadConfig) { |
|
||||
//BeanValidators.validateWithException(validator, dcBusiWorkReadConfig);
|
|
||||
dcBusiWorkReadConfig.setCreatedBy(getUsername()); |
|
||||
dcBusiWorkReadConfig.setCreatedTime(DateUtils.getNowDate()); |
|
||||
dcBusiWorkReadConfig.setTenantId("0"); |
|
||||
dcBusiWorkReadConfig.setUpdatedBy(getUsername()); |
|
||||
dcBusiWorkReadConfig.setUpdatedTime(DateUtils.getNowDate()); |
|
||||
return toAjax(true); |
|
||||
} |
} |
||||
/** |
/** |
||||
* 互联参数读取数据对照表-修改 |
* 导出互联参数读取数据对照列表 |
||||
*@param |
|
||||
*@return DcBusiWorkReadConfig |
|
||||
*/ |
*/ |
||||
@ApiOperation("互联参数读取数据对照表修改") |
//@PreAuthorize("@ss.hasPermi('asset:assetExtConfig:export')")
|
||||
@Log(title = "", businessType = BusinessType.UPDATE) |
@Log(title = "互联参数读取数据对照", businessType = BusinessType.EXPORT) |
||||
@PutMapping |
@PostMapping("/export") |
||||
public AjaxResult edit(@Valid @RequestBody DcBusiWorkReadConfig dcBusiWorkReadConfig) { |
public void export(HttpServletResponse response, DcBusiWorkReadConfig DcBusiWorkReadConfig) |
||||
//BeanValidators.validateWithException(validator, dcBusiWorkReadConfig);
|
{ |
||||
dcBusiWorkReadConfig.setUpdatedBy(getUsername()); |
List<DcBusiWorkReadConfig> list = dcBusiWorkReadConfigService.selectDcBusiWorkReadConfigList(DcBusiWorkReadConfig); |
||||
dcBusiWorkReadConfig.setUpdatedTime(DateUtils.getNowDate()); |
ExcelUtil<DcBusiWorkReadConfig> util = new ExcelUtil<DcBusiWorkReadConfig>(DcBusiWorkReadConfig.class); |
||||
return toAjax(dcBusiWorkReadConfigService.updateById(dcBusiWorkReadConfig)); |
util.exportExcel(response, list, "互联参数读取数据对照数据"); |
||||
} |
} |
||||
|
|
||||
/** |
/** |
||||
* 通过ID删除互联参数读取数据对照表 |
* 获取互联参数读取数据对照详细信息 |
||||
* @param id |
|
||||
* @return 成功1 失败0 |
|
||||
*/ |
*/ |
||||
@ApiOperation("根据ID删除互联参数读取数据对照表") |
//@PreAuthorize("@ss.hasPermi('asset:assetExtConfig:query')")
|
||||
@Log(title = "单一互联参数读取数据对照表", businessType = BusinessType.DELETE) |
@GetMapping(value = "/{id}") |
||||
@DeleteMapping("/id/{id}") |
public AjaxResult getInfo(@PathVariable("id") Long id) |
||||
public AjaxResult batchRemove(@PathVariable Long id) { |
{ |
||||
DcBusiWorkReadConfig dcBusiWorkReadConfig=new DcBusiWorkReadConfig(); |
return success(dcBusiWorkReadConfigService.selectDcBusiWorkReadConfigById(id)); |
||||
dcBusiWorkReadConfig.setId(id); |
|
||||
return toAjax(dcBusiWorkReadConfigService.removeById( dcBusiWorkReadConfig)); |
|
||||
} |
} |
||||
|
|
||||
/** |
/** |
||||
* 批量删除互联参数读取数据对照表 |
* 新增互联参数读取数据对照 |
||||
* @param ids 数组 |
|
||||
* @return 删除的条数 |
|
||||
*/ |
*/ |
||||
@ApiOperation("批量删除互联参数读取数据对照表") |
///@PreAuthorize("@ss.hasPermi('asset:assetExtConfig:add')")
|
||||
@Log(title = "批量删除互联参数读取数据对照表", businessType = BusinessType.DELETE) |
@Log(title = "互联参数读取数据对照", businessType = BusinessType.INSERT) |
||||
@DeleteMapping("/ids/{ids}") |
@PostMapping("/add") |
||||
public AjaxResult batchRemove(@PathVariable Long[] ids) { |
public AjaxResult add(@RequestBody DcBusiWorkReadConfig DcBusiWorkReadConfig) |
||||
List<Long> collect = Arrays.stream(ids).collect(Collectors.toList()); |
{ |
||||
return toAjax(dcBusiWorkReadConfigService.removeBatchByIds(collect)); |
return toAjax(dcBusiWorkReadConfigService.insertDcBusiWorkReadConfig(DcBusiWorkReadConfig)); |
||||
} |
} |
||||
|
|
||||
/** |
/** |
||||
* 通过模版导入"互联参数读取数据对照表数据 |
* 修改互联参数读取数据对照 |
||||
* |
|
||||
*/ |
*/ |
||||
@ApiOperation("互联参数读取数据对照表数据导入") |
//@PreAuthorize("@ss.hasPermi('asset:assetExtConfig:edit')")
|
||||
@PostMapping("/importTemplate") |
@Log(title = "互联参数读取数据对照", businessType = BusinessType.UPDATE) |
||||
public void importTemplate(HttpServletResponse response) { |
@PutMapping |
||||
ExcelUtil<DcBusiWorkReadConfig> util = new ExcelUtil<>(DcBusiWorkReadConfig.class); |
public AjaxResult edit(@RequestBody DcBusiWorkReadConfig DcBusiWorkReadConfig) |
||||
util.importTemplateExcel(response, "互联参数读取数据对照表导出数据"); |
{ |
||||
|
return toAjax(dcBusiWorkReadConfigService.updateDcBusiWorkReadConfig(DcBusiWorkReadConfig)); |
||||
} |
} |
||||
|
|
||||
/** |
/** |
||||
* "互联参数读取数据对照表数据导出功能 |
* 删除互联参数读取数据对照 |
||||
*/ |
*/ |
||||
@ApiOperation("导出互联参数读取数据对照表数据") |
// @PreAuthorize("@ss.hasPermi('asset:assetExtConfig:remove')")
|
||||
@PostMapping("/export") |
@Log(title = "互联参数读取数据对照", businessType = BusinessType.DELETE) |
||||
public void export(HttpServletResponse response, DcBusiWorkReadConfig dcBusiWorkReadConfig) { |
@DeleteMapping("/{ids}") |
||||
QueryWrapper<DcBusiWorkReadConfig> queryWrapper = new QueryWrapper<>(); |
public AjaxResult remove(@PathVariable Long[] ids) |
||||
List<DcBusiWorkReadConfig> list = dcBusiWorkReadConfigService.list(queryWrapper); |
{ |
||||
ExcelUtil<DcBusiWorkReadConfig> util = new ExcelUtil<>(DcBusiWorkReadConfig.class); |
return toAjax(dcBusiWorkReadConfigService.deleteDcBusiWorkReadConfigByIds(ids)); |
||||
util.exportExcel(response, list, "导出的互联参数读取数据对照表数据"); |
|
||||
} |
|
||||
@GetMapping("/getWork") |
|
||||
public AjaxResult getWorkParamValue(){ |
|
||||
TaskWorkParamRead taskWorkParamRead=new TaskWorkParamRead(); |
|
||||
taskWorkParamRead.runTask(false); |
|
||||
return success(); |
|
||||
} |
|
||||
@GetMapping("/getDraft") |
|
||||
public AjaxResult getDraftValue(){ |
|
||||
TaskParamDfratProcess taskParamDfratProcess=new TaskParamDfratProcess(); |
|
||||
taskParamDfratProcess.doBills(null); |
|
||||
return success(); |
|
||||
} |
} |
||||
} |
} |
@ -0,0 +1,60 @@ |
|||||
|
package com.lzbi.asset.domain; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.IdType; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.baomidou.mybatisplus.annotation.TableId; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
import lombok.experimental.Accessors; |
||||
|
import com.lzbi.module.base.BaseModuleEntity; |
||||
|
|
||||
|
/** |
||||
|
* 采集参数来源信息表; |
||||
|
* @author : zhousq |
||||
|
* @date : 2023-12-5 |
||||
|
*/ |
||||
|
@Data |
||||
|
@NoArgsConstructor |
||||
|
@AllArgsConstructor |
||||
|
@Accessors(chain = true) |
||||
|
@ApiModel(value = "采集参数来源信息表",description = "") |
||||
|
@TableName("dc_busi_param_source") |
||||
|
public class DcBusiParamSource extends BaseModuleEntity{ |
||||
|
/** 参数编码 */ |
||||
|
@ApiModelProperty(name = "参数编码",notes = "") |
||||
|
private String paramCode ; |
||||
|
/** 参数名称 */ |
||||
|
@ApiModelProperty(name = "参数名称",notes = "") |
||||
|
private String paramName ; |
||||
|
/** 分组名称 */ |
||||
|
@ApiModelProperty(name = "分组名称",notes = "") |
||||
|
private String groupName ; |
||||
|
/** 分组编码 */ |
||||
|
@ApiModelProperty(name = "分组编码",notes = "") |
||||
|
private String groupCode ; |
||||
|
/** 扩展属性 */ |
||||
|
@ApiModelProperty(name = "扩展属性",notes = "") |
||||
|
private String extPro ; |
||||
|
/** 来源类型 */ |
||||
|
@ApiModelProperty(name = "来源类型",notes = "") |
||||
|
private String sourceType ; |
||||
|
/** 是否有效 */ |
||||
|
@ApiModelProperty(name = "是否有效",notes = "") |
||||
|
private String enabledFlag ; |
||||
|
/** 主键 */ |
||||
|
@ApiModelProperty(name = "主键",notes = "") |
||||
|
@TableId(type= IdType.AUTO) |
||||
|
private Integer id ; |
||||
|
/** 所属专业 */ |
||||
|
@ApiModelProperty(name = "所属专业",notes = "") |
||||
|
private String fieldCode ; |
||||
|
/** 所属名称 */ |
||||
|
@ApiModelProperty(name = "所属名称",notes = "") |
||||
|
private String fieldName ; |
||||
|
|
||||
|
} |
@ -1,54 +1,80 @@ |
|||||
package com.lzbi.asset.domain; |
package com.lzbi.asset.domain; |
||||
|
|
||||
import io.swagger.annotations.ApiModel; |
|
||||
import io.swagger.annotations.ApiModelProperty; |
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
|
||||
import com.baomidou.mybatisplus.annotation.TableId; |
|
||||
import java.util.Date; |
|
||||
import lombok.AllArgsConstructor; |
|
||||
import lombok.Data; |
import lombok.Data; |
||||
import lombok.NoArgsConstructor; |
import com.lzbi.common.annotation.Excel; |
||||
import lombok.experimental.Accessors; |
|
||||
import com.lzbi.module.base.BaseModuleEntity; |
import com.lzbi.module.base.BaseModuleEntity; |
||||
|
|
||||
/** |
/** |
||||
* 互联参数读取数据对照表; |
* 互联参数读取数据对照对象 dc_busi_work_read_config |
||||
* @author : zhousq |
* |
||||
* @date : 2023-11-30 |
* @author zhousq |
||||
|
* @date 2023-12-04 |
||||
*/ |
*/ |
||||
@Data |
@Data |
||||
@NoArgsConstructor |
public class DcBusiWorkReadConfig extends BaseModuleEntity |
||||
@AllArgsConstructor |
{ |
||||
@Accessors(chain = true) |
private static final long serialVersionUID = 1L; |
||||
@ApiModel(value = "互联参数读取数据对照表",description = "") |
|
||||
@TableName("dc_busi_work_read_config") |
|
||||
public class DcBusiWorkReadConfig extends BaseModuleEntity{ |
|
||||
/** 主键 */ |
/** 主键 */ |
||||
@ApiModelProperty(name = "主键",notes = "") |
@Excel(name = "主键") |
||||
@TableId |
|
||||
private Long id; |
private Long id; |
||||
|
|
||||
|
/** 公司ID */ |
||||
|
private Long companyId; |
||||
|
|
||||
|
/** 公司名称 */ |
||||
|
@Excel(name = "公司名称") |
||||
|
private String companyName; |
||||
|
|
||||
|
/** 组织机构名称 */ |
||||
|
@Excel(name = "组织机构名称") |
||||
|
private String organizeName; |
||||
|
|
||||
|
/** 组织机构ID */ |
||||
|
private Long oragnizeId; |
||||
|
|
||||
/** 统计单元编码 */ |
/** 统计单元编码 */ |
||||
@ApiModelProperty(name = "统计单元编码",notes = "") |
|
||||
private String assetCode; |
private String assetCode; |
||||
/** 统计单元参数编码 */ |
|
||||
@ApiModelProperty(name = "统计单元参数编码",notes = "") |
/** 统计单元名称 */ |
||||
|
@Excel(name = "统计单元名称") |
||||
|
private String assetName; |
||||
|
|
||||
|
/** 统计参数编码 */ |
||||
private String assetParamCode; |
private String assetParamCode; |
||||
|
|
||||
/** 目标参数编码 */ |
/** 目标参数编码 */ |
||||
@ApiModelProperty(name = "目标参数编码",notes = "") |
|
||||
private String goalParamCode; |
private String goalParamCode; |
||||
/** 目标参数辅助查询参数1 */ |
|
||||
@ApiModelProperty(name = "目标参数辅助查询参数1",notes = "") |
/** 目标参数名称 */ |
||||
|
@Excel(name = "目标参数名称") |
||||
|
private String goalParamName; |
||||
|
|
||||
|
/** 目标参数扩展1 */ |
||||
|
@Excel(name = "目标参数扩展1") |
||||
private String goalParamExt1; |
private String goalParamExt1; |
||||
/** 目标参数辅助查询参数2 */ |
|
||||
@ApiModelProperty(name = "目标参数辅助查询参数2",notes = "") |
/** 目标参数扩展2 */ |
||||
|
@Excel(name = "目标参数扩展2") |
||||
private String goalParamExt2; |
private String goalParamExt2; |
||||
|
|
||||
/** 读取数值类型 */ |
/** 读取数值类型 */ |
||||
@ApiModelProperty(name = "读取数值类型",notes = "") |
@Excel(name = "读取数值类型") |
||||
private String goalParamType; |
private String goalParamType; |
||||
/** 数据来源;生产IOT:work;计费:charge;Erp:erp */ |
|
||||
@ApiModelProperty(name = "数据来源",notes = "生产IOT:work;计费:charge;Erp:erp") |
/** 数据来源 */ |
||||
|
@Excel(name = "数据来源") |
||||
private String goalSource; |
private String goalSource; |
||||
@ApiModelProperty(name = "所属专业") |
|
||||
|
/** 生产专业编码 */ |
||||
private String assetFieldCode; |
private String assetFieldCode; |
||||
|
|
||||
|
/** 生产专业名称 */ |
||||
|
@Excel(name = "生产专业名称") |
||||
|
private String assetFieldName; |
||||
|
|
||||
|
/** 统计单元参数名称 */ |
||||
|
@Excel(name = "统计单元参数名称") |
||||
|
private String assetParamName; |
||||
|
private Integer paramCounts; |
||||
|
|
||||
} |
} |
@ -0,0 +1,17 @@ |
|||||
|
package com.lzbi.asset.mapper; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.InterceptorIgnore; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.lzbi.asset.domain.DcBusiParamSource; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 采集参数来源信息表;(dc_busi_param_source)表数据库访问层 |
||||
|
* @author : zhousq |
||||
|
* @date : 2023-12-5 |
||||
|
*/ |
||||
|
@InterceptorIgnore(tenantLine = "true") |
||||
|
public interface DcBusiParamSourceMapper extends BaseMapper<DcBusiParamSource>{ |
||||
|
List<DcBusiParamSource> selectByVo( DcBusiParamSource beanVo); |
||||
|
int insertByVo( DcBusiParamSource beanVo); |
||||
|
} |
@ -1,17 +1,65 @@ |
|||||
package com.lzbi.asset.mapper; |
package com.lzbi.asset.mapper; |
||||
|
|
||||
import com.baomidou.mybatisplus.annotation.InterceptorIgnore; |
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|
||||
import com.lzbi.asset.domain.DcBusiWorkReadConfig; |
|
||||
import java.util.List; |
import java.util.List; |
||||
|
import com.lzbi.asset.domain.DcBusiWorkReadConfig; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.lzbi.common.AssetQueryParams; |
||||
|
|
||||
|
/** |
||||
|
* 互联参数读取数据对照Mapper接口 |
||||
|
* |
||||
|
* @author zhousq |
||||
|
* @date 2023-12-04 |
||||
|
*/ |
||||
|
|
||||
|
public interface DcBusiWorkReadConfigMapper extends BaseMapper<DcBusiWorkReadConfig> |
||||
|
{ |
||||
|
/** |
||||
|
* 查询互联参数读取数据对照 |
||||
|
* |
||||
|
* @param id 互联参数读取数据对照主键 |
||||
|
* @return 互联参数读取数据对照 |
||||
|
*/ |
||||
|
public DcBusiWorkReadConfig selectDcBusiWorkReadConfigById(Long id); |
||||
|
|
||||
|
/** |
||||
|
* 查询互联参数读取数据对照列表 |
||||
|
* |
||||
|
* @param dcBusiWorkReadConfig 互联参数读取数据对照 |
||||
|
* @return 互联参数读取数据对照集合 |
||||
|
*/ |
||||
|
public List<DcBusiWorkReadConfig> selectDcBusiWorkReadConfigList(DcBusiWorkReadConfig dcBusiWorkReadConfig); |
||||
|
public List<DcBusiWorkReadConfig> selectDcBusiWorkReadConfigMainList(AssetQueryParams assetQueryParams); |
||||
|
|
||||
|
/** |
||||
|
* 新增互联参数读取数据对照 |
||||
|
* |
||||
|
* @param dcBusiWorkReadConfig 互联参数读取数据对照 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int insertDcBusiWorkReadConfig(DcBusiWorkReadConfig dcBusiWorkReadConfig); |
||||
|
|
||||
|
/** |
||||
|
* 修改互联参数读取数据对照 |
||||
|
* |
||||
|
* @param dcBusiWorkReadConfig 互联参数读取数据对照 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int updateDcBusiWorkReadConfig(DcBusiWorkReadConfig dcBusiWorkReadConfig); |
||||
|
|
||||
|
/** |
||||
|
* 删除互联参数读取数据对照 |
||||
|
* |
||||
|
* @param id 互联参数读取数据对照主键 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteDcBusiWorkReadConfigById(Long id); |
||||
|
|
||||
/** |
/** |
||||
* 互联参数读取数据对照表;(dc_busi_work_read_config)表数据库访问层 |
* 批量删除互联参数读取数据对照 |
||||
* @author : zhousq |
* |
||||
* @date : 2023-11-30 |
* @param ids 需要删除的数据主键集合 |
||||
|
* @return 结果 |
||||
*/ |
*/ |
||||
@InterceptorIgnore(tenantLine = "true") |
public int deleteDcBusiWorkReadConfigByIds(Long[] ids); |
||||
public interface DcBusiWorkReadConfigMapper extends BaseMapper<DcBusiWorkReadConfig>{ |
|
||||
List<DcBusiWorkReadConfig> selectByVo( DcBusiWorkReadConfig beanVo); |
|
||||
int insertByVo( DcBusiWorkReadConfig beanVo); |
|
||||
} |
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.lzbi.asset.service; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
|
import com.lzbi.asset.mapper.DcBusiParamSourceMapper; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import com.lzbi.asset.domain.DcBusiParamSource; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 采集参数来源信息表;(dc_busi_param_source)表服务接口 |
||||
|
* @author : zhousq |
||||
|
* @date : 2023-12-5 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class DcBusiParamSourceService extends ServiceImpl<DcBusiParamSourceMapper, DcBusiParamSource> implements IService<DcBusiParamSource> { |
||||
|
|
||||
|
public List<DcBusiParamSource> selectByVo( DcBusiParamSource dcBusiParamSource){ |
||||
|
return baseMapper.selectByVo(dcBusiParamSource); |
||||
|
} |
||||
|
public int insertByVo( DcBusiParamSource dcBusiParamSource){ |
||||
|
return baseMapper.insertByVo(dcBusiParamSource); |
||||
|
} |
||||
|
|
||||
|
} |
@ -1,25 +1,96 @@ |
|||||
package com.lzbi.asset.service; |
package com.lzbi.asset.service; |
||||
|
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
||||
import com.lzbi.asset.mapper.DcBusiWorkReadConfigMapper; |
|
||||
import org.springframework.stereotype.Service; |
|
||||
import com.lzbi.asset.domain.DcBusiWorkReadConfig; |
|
||||
import java.util.List; |
import java.util.List; |
||||
|
|
||||
|
import com.lzbi.common.AssetQueryParams; |
||||
|
import com.lzbi.common.utils.DateUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import com.lzbi.asset.domain.DcBusiWorkReadConfig; |
||||
|
import com.lzbi.asset.mapper.DcBusiWorkReadConfigMapper; |
||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
/** |
/** |
||||
* 互联参数读取数据对照表;(dc_busi_work_read_config)表服务接口 |
* 互联参数读取数据对照Service业务层处理 |
||||
* @author : zhousq |
* |
||||
* @date : 2023-11-30 |
* @author zhousq |
||||
|
* @date 2023-12-04 |
||||
*/ |
*/ |
||||
@Service |
@Service |
||||
public class DcBusiWorkReadConfigService extends ServiceImpl<DcBusiWorkReadConfigMapper, DcBusiWorkReadConfig> implements IService<DcBusiWorkReadConfig> { |
public class DcBusiWorkReadConfigService extends ServiceImpl<DcBusiWorkReadConfigMapper, DcBusiWorkReadConfig> implements IService<DcBusiWorkReadConfig> |
||||
|
{ |
||||
|
|
||||
|
/** |
||||
|
* 查询互联参数读取数据对照 |
||||
|
* |
||||
|
* @param id 互联参数读取数据对照主键 |
||||
|
* @return 互联参数读取数据对照 |
||||
|
*/ |
||||
|
public DcBusiWorkReadConfig selectDcBusiWorkReadConfigById(Long id) |
||||
|
{ |
||||
|
return baseMapper.selectDcBusiWorkReadConfigById(id); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询互联参数读取数据对照列表 |
||||
|
* |
||||
|
* @param dcBusiWorkReadConfig 互联参数读取数据对照 |
||||
|
* @return 互联参数读取数据对照 |
||||
|
*/ |
||||
|
public List<DcBusiWorkReadConfig> selectDcBusiWorkReadConfigList(DcBusiWorkReadConfig dcBusiWorkReadConfig) |
||||
|
{ |
||||
|
return baseMapper.selectDcBusiWorkReadConfigList(dcBusiWorkReadConfig); |
||||
|
} |
||||
|
public List<DcBusiWorkReadConfig> selectDcBusiWorkReadConfigMainList(AssetQueryParams asetQueryParams) |
||||
|
{ |
||||
|
return baseMapper.selectDcBusiWorkReadConfigMainList(asetQueryParams); |
||||
|
} |
||||
|
/** |
||||
|
* 新增互联参数读取数据对照 |
||||
|
* |
||||
|
* @param dcBusiWorkReadConfig 互联参数读取数据对照 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
|
||||
public List<DcBusiWorkReadConfig> selectByVo( DcBusiWorkReadConfig dcBusiWorkReadConfig){ |
public int insertDcBusiWorkReadConfig(DcBusiWorkReadConfig dcBusiWorkReadConfig) |
||||
return baseMapper.selectByVo(dcBusiWorkReadConfig); |
{ |
||||
|
dcBusiWorkReadConfig.setCreatedTime(DateUtils.getNowDate()); |
||||
|
return baseMapper.insertDcBusiWorkReadConfig(dcBusiWorkReadConfig); |
||||
} |
} |
||||
public int insertByVo( DcBusiWorkReadConfig dcBusiWorkReadConfig){ |
|
||||
return baseMapper.insertByVo(dcBusiWorkReadConfig); |
/** |
||||
|
* 修改互联参数读取数据对照 |
||||
|
* |
||||
|
* @param dcBusiWorkReadConfig 互联参数读取数据对照 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
|
||||
|
public int updateDcBusiWorkReadConfig(DcBusiWorkReadConfig dcBusiWorkReadConfig) |
||||
|
{ |
||||
|
dcBusiWorkReadConfig.setUpdatedTime(DateUtils.getNowDate()); |
||||
|
return baseMapper.updateDcBusiWorkReadConfig(dcBusiWorkReadConfig); |
||||
} |
} |
||||
|
|
||||
|
/** |
||||
|
* 批量删除互联参数读取数据对照 |
||||
|
* |
||||
|
* @param ids 需要删除的互联参数读取数据对照主键 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
|
||||
|
public int deleteDcBusiWorkReadConfigByIds(Long[] ids) |
||||
|
{ |
||||
|
return baseMapper.deleteDcBusiWorkReadConfigByIds(ids); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除互联参数读取数据对照信息 |
||||
|
* |
||||
|
* @param id 互联参数读取数据对照主键 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
|
||||
|
public int deleteDcBusiWorkReadConfigById(Long id) |
||||
|
{ |
||||
|
return baseMapper.deleteDcBusiWorkReadConfigById(id); |
||||
|
} |
||||
} |
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.lzbi.common; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @auth create by Administrator |
||||
|
* @date 2023/12/5 |
||||
|
* AssetQueryParams |
||||
|
* 统计单元联动查询参数 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AssetQueryParams { |
||||
|
@ApiModelProperty("公司ID") |
||||
|
private Long companyID; |
||||
|
@ApiModelProperty("组织机构ID") |
||||
|
private Long orgID; |
||||
|
@ApiModelProperty("所属专业编码") |
||||
|
private String fieldCode; |
||||
|
@ApiModelProperty("统计单元编码") |
||||
|
private String assetCode; |
||||
|
@ApiModelProperty("统计单元ID") |
||||
|
private Long assetId; |
||||
|
@ApiModelProperty("公司名称") |
||||
|
private Long companyName; |
||||
|
@ApiModelProperty("组织机构名称") |
||||
|
private Long orgName; |
||||
|
@ApiModelProperty("所属专业名称") |
||||
|
private String fieldName; |
||||
|
@ApiModelProperty("统计单元名称") |
||||
|
private String assetName; |
||||
|
private Integer pageNum; |
||||
|
private Integer pageSize; |
||||
|
|
||||
|
} |
@ -0,0 +1,107 @@ |
|||||
|
package com.lzbi.common; |
||||
|
|
||||
|
import com.lzbi.asset.domain.DcBaseAssetInfo; |
||||
|
import com.lzbi.asset.domain.DcBusiParamSource; |
||||
|
import com.lzbi.asset.service.DcBusiParamSourceService; |
||||
|
import com.lzbi.asset.service.IDcBaseAssetInfoService; |
||||
|
import com.lzbi.common.core.controller.BaseController; |
||||
|
import com.lzbi.common.core.domain.AjaxResult; |
||||
|
import com.lzbi.common.core.domain.TreeSelect; |
||||
|
import com.lzbi.common.core.domain.entity.SysDept; |
||||
|
import com.lzbi.special.domain.DcBaseWorkSpecial; |
||||
|
import com.lzbi.special.service.DcBaseWorkSpecialService; |
||||
|
import com.lzbi.system.service.impl.SysDeptServiceImpl; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.lang.Nullable; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @auth create by Administrator |
||||
|
* @date 2023/12/5 |
||||
|
* SelectOptionsControl |
||||
|
*/ |
||||
|
@ApiModel("通用选择接口") |
||||
|
@RestController |
||||
|
@RequestMapping("/tool") |
||||
|
public class SelectOptionsControl extends BaseController { |
||||
|
@Autowired |
||||
|
private SysDeptServiceImpl sysDeptService; |
||||
|
@Autowired |
||||
|
DcBaseWorkSpecialService dcBaseWorkSpecialService; |
||||
|
@Autowired |
||||
|
IDcBaseAssetInfoService dcBaseAssetInfoService; |
||||
|
@Autowired |
||||
|
DcBusiParamSourceService dcBusiParamSourceService; |
||||
|
///获取部门类型为公司的列表,树形选择
|
||||
|
@GetMapping("/company/tree/{depId}") |
||||
|
public AjaxResult getCompanyTreeList(@Nullable @PathVariable Long depId){ |
||||
|
if(depId==0){ |
||||
|
depId=null; |
||||
|
} |
||||
|
List<SysDept> lsysDept = sysDeptService.selectCompany(depId); |
||||
|
List<TreeSelect> treeSelects = sysDeptService.buildDeptTreeSelect(lsysDept); |
||||
|
return AjaxResult.success( treeSelects) ; |
||||
|
} |
||||
|
//普通列表
|
||||
|
@GetMapping("/company/list/{depId}") |
||||
|
public AjaxResult getCompanyList(@Nullable @PathVariable Long depId){ |
||||
|
if(depId==0){ |
||||
|
depId=null; |
||||
|
} |
||||
|
return AjaxResult.success(sysDeptService.selectCompany(depId)) ; |
||||
|
} |
||||
|
///获取部门类型为组织的列表
|
||||
|
@GetMapping("/org/list/{depId}") |
||||
|
public AjaxResult getOrgList(@Nullable @PathVariable Long depId){ |
||||
|
if(depId==0){ |
||||
|
depId=null; |
||||
|
} |
||||
|
return AjaxResult.success(sysDeptService.selectOrg(depId)) ; |
||||
|
} |
||||
|
///获取部门类型为组织的树形选择
|
||||
|
@GetMapping("/org/tree/{depId}") |
||||
|
public AjaxResult getOrgTreeList(@Nullable @PathVariable Long depId){ |
||||
|
if(depId==0){ |
||||
|
depId=null; |
||||
|
} |
||||
|
List<SysDept> lsysDept = sysDeptService.selectOrg(depId); |
||||
|
return AjaxResult.success(sysDeptService.buildDeptTreeSelect(lsysDept)) ; |
||||
|
} |
||||
|
//获取生产专业的列表
|
||||
|
@GetMapping("/special/list") |
||||
|
public AjaxResult getSepcialSelectList() |
||||
|
{ |
||||
|
DcBaseWorkSpecial dcBaseWorkSpecialDao=new DcBaseWorkSpecial(); |
||||
|
return AjaxResult.success( dcBaseWorkSpecialService.selectDcBaseWorkSpecialDictList(dcBaseWorkSpecialDao)); |
||||
|
} |
||||
|
//根据条件获取统计单元列表
|
||||
|
@PostMapping("/assetInfo/list") |
||||
|
public AjaxResult getAssetSelectList(@RequestBody AssetQueryParams assetQueryParams) |
||||
|
{ |
||||
|
DcBaseAssetInfo dcBaseAssetInfo=new DcBaseAssetInfo(); |
||||
|
//dcBaseAssetInfo.setAssetClass(assetQueryParams.getFieldCode());
|
||||
|
dcBaseAssetInfo.setComanyId(assetQueryParams.getCompanyID()); |
||||
|
dcBaseAssetInfo.setDeptId(assetQueryParams.getOrgID()); |
||||
|
return AjaxResult.success(dcBaseAssetInfoService.selectDcBaseAssetInfoList(dcBaseAssetInfo)); |
||||
|
} |
||||
|
//根据条件获取统计单元指标列表
|
||||
|
@PostMapping("/assetTaget/list") |
||||
|
public AjaxResult getAssetTargetSelectList(@RequestBody AssetQueryParams assetQueryParams) |
||||
|
{ |
||||
|
|
||||
|
return AjaxResult.success(null); |
||||
|
} |
||||
|
//
|
||||
|
//获取IOT参数列表
|
||||
|
@GetMapping("/iotParam/list/{fcode}") |
||||
|
public AjaxResult getAssetIotParamList(@PathVariable String fcode) |
||||
|
{ |
||||
|
DcBusiParamSource dcBusiParamSource=new DcBusiParamSource(); |
||||
|
dcBusiParamSource.setEnabledFlag("0"); |
||||
|
dcBusiParamSource.setFieldCode(fcode); |
||||
|
return AjaxResult.success(dcBusiParamSourceService.selectByVo(dcBusiParamSource)); |
||||
|
} |
||||
|
} |
@ -0,0 +1,75 @@ |
|||||
|
package com.lzbi.draft.domain; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.IdType; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.baomidou.mybatisplus.annotation.TableId; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
import lombok.experimental.Accessors; |
||||
|
import com.lzbi.module.base.BaseModuleEntity; |
||||
|
|
||||
|
/** |
||||
|
* 参数采集(录入)单据主对象 dc_busi_param_bill_master |
||||
|
* |
||||
|
* @author win |
||||
|
* @date 2023-11-28 |
||||
|
*/ |
||||
|
@Data |
||||
|
@NoArgsConstructor |
||||
|
@AllArgsConstructor |
||||
|
@Accessors(chain = true) |
||||
|
@ApiModel(value = "参数采集(录入)单据主表",description = "") |
||||
|
@TableName("dc_busi_param_bill_master") |
||||
|
public class DcBusiParamBillMaster extends BaseModuleEntity |
||||
|
{ |
||||
|
/** 主键 */ |
||||
|
@ApiModelProperty(name = "主键",notes = "") |
||||
|
@TableId(type= IdType.AUTO) |
||||
|
private Long id ; |
||||
|
/** 单据编号 */ |
||||
|
@ApiModelProperty(name = "单据编号",notes = "") |
||||
|
private String billNo ; |
||||
|
/** 采集时间 */ |
||||
|
@ApiModelProperty(name = "采集时间",notes = "") |
||||
|
private String billIncomeDate ; |
||||
|
/** 单据类型 */ |
||||
|
@ApiModelProperty(name = "单据类型",notes = "") |
||||
|
private String billType ; |
||||
|
/** 审核类型 */ |
||||
|
@ApiModelProperty(name = "审核类型",notes = "") |
||||
|
private String checkType ; |
||||
|
/** 审核状态 */ |
||||
|
@ApiModelProperty(name = "审核状态",notes = "") |
||||
|
private String checkStatus ; |
||||
|
/** 公司ID */ |
||||
|
@ApiModelProperty(name = "公司ID",notes = "") |
||||
|
private Integer companyId ; |
||||
|
/** 公司名称 */ |
||||
|
@ApiModelProperty(name = "公司名称",notes = "") |
||||
|
private String companyName ; |
||||
|
/** 组织机构名称 */ |
||||
|
@ApiModelProperty(name = "组织机构名称",notes = "") |
||||
|
private String organizeName ; |
||||
|
/** 组织机构ID */ |
||||
|
@ApiModelProperty(name = "组织机构ID",notes = "") |
||||
|
private Integer oragnizeId ; |
||||
|
/** 统计单元编码 */ |
||||
|
@ApiModelProperty(name = "统计单元编码",notes = "") |
||||
|
private String assetCode ; |
||||
|
/** 统计单元名称 */ |
||||
|
@ApiModelProperty(name = "统计单元名称",notes = "") |
||||
|
private String assetName ; |
||||
|
|
||||
|
/** 参数数据采集(录入)明细信息 */ |
||||
|
private List<DcBusiParamBillSub> dcBusiParamBillSubList; |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -1,94 +0,0 @@ |
|||||
package com.lzbi.draft.domain; |
|
||||
|
|
||||
import java.util.List; |
|
||||
import java.util.Date; |
|
||||
import lombok.Data; |
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
|
||||
import com.lzbi.common.annotation.Excel; |
|
||||
import com.lzbi.module.base.BaseModuleEntity; |
|
||||
|
|
||||
/** |
|
||||
* 参数采集(录入)单据主对象 dc_busi_param_bill_master |
|
||||
* |
|
||||
* @author win |
|
||||
* @date 2023-11-28 |
|
||||
*/ |
|
||||
@Data |
|
||||
public class DcBusiParamBillMasterDao extends BaseModuleEntity |
|
||||
{ |
|
||||
private static final long serialVersionUID = 1L; |
|
||||
|
|
||||
/** 租户号 */ |
|
||||
private String tenantId; |
|
||||
|
|
||||
/** 乐观锁 */ |
|
||||
private Long REVISION; |
|
||||
|
|
||||
/** 创建人 */ |
|
||||
private String createdBy; |
|
||||
|
|
||||
/** 创建时间 */ |
|
||||
private Date createdTime; |
|
||||
|
|
||||
/** 更新人 */ |
|
||||
private String updatedBy; |
|
||||
|
|
||||
/** 更新时间 */ |
|
||||
private Date updatedTime; |
|
||||
|
|
||||
/** 删除人 */ |
|
||||
private String deleteBy; |
|
||||
|
|
||||
/** 删除时间 */ |
|
||||
private Date deleteTime; |
|
||||
|
|
||||
/** 主键 */ |
|
||||
private Long id; |
|
||||
|
|
||||
/** 单据编号 */ |
|
||||
@Excel(name = "单据编号") |
|
||||
private String billNo; |
|
||||
|
|
||||
/** 采集时间 */ |
|
||||
@Excel(name = "采集时间") |
|
||||
private String billIncomeDate; |
|
||||
|
|
||||
/** 单据类型 */ |
|
||||
@Excel(name = "单据类型") |
|
||||
private String billType; |
|
||||
|
|
||||
/** 审核类型 */ |
|
||||
@Excel(name = "审核类型") |
|
||||
private String checkType; |
|
||||
|
|
||||
/** 审核状态 */ |
|
||||
@Excel(name = "审核状态") |
|
||||
private String checkStatus; |
|
||||
|
|
||||
/** 参数数据采集(录入)明细信息 */ |
|
||||
private List<DcBusiParamBillSub> dcBusiParamBillSubDaoList; |
|
||||
|
|
||||
|
|
||||
|
|
||||
@Override |
|
||||
public String toString() { |
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|
||||
.append("tenantId", getTenantId()) |
|
||||
.append("REVISION", getREVISION()) |
|
||||
.append("createdBy", getCreatedBy()) |
|
||||
.append("createdTime", getCreatedTime()) |
|
||||
.append("updatedBy", getUpdatedBy()) |
|
||||
.append("updatedTime", getUpdatedTime()) |
|
||||
.append("deleteBy", getDeleteBy()) |
|
||||
.append("deleteTime", getDeleteTime()) |
|
||||
.append("id", getId()) |
|
||||
.append("billNo", getBillNo()) |
|
||||
.append("billIncomeDate", getBillIncomeDate()) |
|
||||
.append("billType", getBillType()) |
|
||||
.append("checkType", getCheckType()) |
|
||||
.append("checkStatus", getCheckStatus()) |
|
||||
.append("dcBusiParamBillSubList", getDcBusiParamBillSubDaoList()) |
|
||||
.toString(); |
|
||||
} |
|
||||
} |
|
@ -0,0 +1,135 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper |
||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.lzbi.asset.mapper.DcBusiParamSourceMapper"> |
||||
|
<resultMap type="com.lzbi.asset.domain.DcBusiParamSource" id="rmDcBusiParamSource"> |
||||
|
<!-- 租户号 --> |
||||
|
<result property="tenantId" column="tenant_id"/> |
||||
|
<!-- 乐观锁 --> |
||||
|
<result property="revision" column="revision"/> |
||||
|
<!-- 创建人 --> |
||||
|
<result property="createdBy" column="created_by"/> |
||||
|
<!-- 创建时间 --> |
||||
|
<result property="createdTime" column="created_time"/> |
||||
|
<!-- 更新人 --> |
||||
|
<result property="updatedBy" column="updated_by"/> |
||||
|
<!-- 更新时间 --> |
||||
|
<result property="updatedTime" column="updated_time"/> |
||||
|
<!-- 删除人 --> |
||||
|
<result property="deleteBy" column="delete_by"/> |
||||
|
<!-- 删除时间 --> |
||||
|
<result property="deleteTime" column="delete_time"/> |
||||
|
<!-- 参数编码 --> |
||||
|
<result property="paramCode" column="param_code"/> |
||||
|
<!-- 参数名称 --> |
||||
|
<result property="paramName" column="param_name"/> |
||||
|
<!-- 分组名称 --> |
||||
|
<result property="groupName" column="group_name"/> |
||||
|
<!-- 分组编码 --> |
||||
|
<result property="groupCode" column="group_code"/> |
||||
|
<!-- 扩展属性 --> |
||||
|
<result property="extPro" column="ext_pro"/> |
||||
|
<!-- 来源类型 --> |
||||
|
<result property="sourceType" column="source_type"/> |
||||
|
<!-- 是否有效 --> |
||||
|
<result property="enabledFlag" column="enabled_flag"/> |
||||
|
<!-- 主键 --> |
||||
|
<result property="id" column="id"/> |
||||
|
<!-- 所属专业 --> |
||||
|
<result property="fieldCode" column="field_code"/> |
||||
|
<!-- 所属名称 --> |
||||
|
<result property="fieldName" column="field_name"/> |
||||
|
</resultMap> |
||||
|
<sql id="baseQuerySql"> |
||||
|
select |
||||
|
tenant_id, |
||||
|
revision, |
||||
|
created_by, |
||||
|
created_time, |
||||
|
updated_by, |
||||
|
updated_time, |
||||
|
delete_by, |
||||
|
delete_time, |
||||
|
param_code, |
||||
|
param_name, |
||||
|
group_name, |
||||
|
group_code, |
||||
|
ext_pro, |
||||
|
source_type, |
||||
|
enabled_flag, |
||||
|
id, |
||||
|
field_code, |
||||
|
field_name |
||||
|
from dc_busi_param_source |
||||
|
</sql> |
||||
|
<select id="selectByVo" resultMap="rmDcBusiParamSource" parameterType="com.lzbi.asset.domain.DcBusiParamSource"> |
||||
|
<include refid="baseQuerySql"/> |
||||
|
<where> |
||||
|
<if test="tenantId != null and tenantId != ''"> and tenant_id = #{tenantId}</if> |
||||
|
<if test="revision != null and revision != ''"> and revision = #{revision}</if> |
||||
|
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if> |
||||
|
<if test="createdTime != null and createdTime != ''"> and created_time = #{createdTime}</if> |
||||
|
<if test="updatedBy != null and updatedBy != ''"> and updated_by = #{updatedBy}</if> |
||||
|
<if test="updatedTime != null and updatedTime != ''"> and updated_time = #{updatedTime}</if> |
||||
|
<if test="deleteBy != null and deleteBy != ''"> and delete_by = #{deleteBy}</if> |
||||
|
<if test="deleteTime != null and deleteTime != ''"> and delete_time = #{deleteTime}</if> |
||||
|
<if test="paramCode != null and paramCode != ''"> and param_code = #{paramCode}</if> |
||||
|
<if test="paramName != null and paramName != ''"> and param_name = #{paramName}</if> |
||||
|
<if test="groupName != null and groupName != ''"> and group_name = #{groupName}</if> |
||||
|
<if test="groupCode != null and groupCode != ''"> and group_code = #{groupCode}</if> |
||||
|
<if test="extPro != null and extPro != ''"> and ext_pro = #{extPro}</if> |
||||
|
<if test="sourceType != null and sourceType != ''"> and source_type = #{sourceType}</if> |
||||
|
<if test="enabledFlag != null and enabledFlag != ''"> and enabled_flag = #{enabledFlag}</if> |
||||
|
<if test="id != null and id != ''"> and id = #{id}</if> |
||||
|
<if test="fieldCode != null and fieldCode != ''"> and field_code = #{fieldCode}</if> |
||||
|
<if test="fieldName != null and fieldName != ''"> and field_name = #{fieldName}</if> |
||||
|
|
||||
|
</where> |
||||
|
</select> |
||||
|
<insert id="insertByVo" parameterType="com.lzbi.asset.domain.DcBusiParamSource"> |
||||
|
insert into dc_busi_param_source |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="tenantId != null and tenantId != ''">tenant_id,</if> |
||||
|
<if test="revision != null and revision != ''">revision,</if> |
||||
|
<if test="createdBy != null and createdBy != ''">created_by,</if> |
||||
|
<if test="createdTime != null and createdTime != ''">created_time,</if> |
||||
|
<if test="updatedBy != null and updatedBy != ''">updated_by,</if> |
||||
|
<if test="updatedTime != null and updatedTime != ''">updated_time,</if> |
||||
|
<if test="deleteBy != null and deleteBy != ''">delete_by,</if> |
||||
|
<if test="deleteTime != null and deleteTime != ''">delete_time,</if> |
||||
|
<if test="paramCode != null and paramCode != ''">param_code,</if> |
||||
|
<if test="paramName != null and paramName != ''">param_name,</if> |
||||
|
<if test="groupName != null and groupName != ''">group_name,</if> |
||||
|
<if test="groupCode != null and groupCode != ''">group_code,</if> |
||||
|
<if test="extPro != null and extPro != ''">ext_pro,</if> |
||||
|
<if test="sourceType != null and sourceType != ''">source_type,</if> |
||||
|
<if test="enabledFlag != null and enabledFlag != ''">enabled_flag,</if> |
||||
|
<if test="id != null and id != ''">id,</if> |
||||
|
<if test="fieldCode != null and fieldCode != ''">field_code,</if> |
||||
|
<if test="fieldName != null and fieldName != ''">field_name,</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="tenantId != null and tenantId != ''">#{tenantId},</if> |
||||
|
<if test="revision != null and revision != ''">#{revision},</if> |
||||
|
<if test="createdBy != null and createdBy != ''">#{createdBy},</if> |
||||
|
<if test="createdTime != null and createdTime != ''">#{createdTime},</if> |
||||
|
<if test="updatedBy != null and updatedBy != ''">#{updatedBy},</if> |
||||
|
<if test="updatedTime != null and updatedTime != ''">#{updatedTime},</if> |
||||
|
<if test="deleteBy != null and deleteBy != ''">#{deleteBy},</if> |
||||
|
<if test="deleteTime != null and deleteTime != ''">#{deleteTime},</if> |
||||
|
<if test="paramCode != null and paramCode != ''">#{paramCode},</if> |
||||
|
<if test="paramName != null and paramName != ''">#{paramName},</if> |
||||
|
<if test="groupName != null and groupName != ''">#{groupName},</if> |
||||
|
<if test="groupCode != null and groupCode != ''">#{groupCode},</if> |
||||
|
<if test="extPro != null and extPro != ''">#{extPro},</if> |
||||
|
<if test="sourceType != null and sourceType != ''">#{sourceType},</if> |
||||
|
<if test="enabledFlag != null and enabledFlag != ''">#{enabledFlag},</if> |
||||
|
<if test="id != null and id != ''">#{id},</if> |
||||
|
<if test="fieldCode != null and fieldCode != ''">#{fieldCode},</if> |
||||
|
<if test="fieldName != null and fieldName != ''">#{fieldName},</if> |
||||
|
|
||||
|
</trim> |
||||
|
</insert> |
||||
|
</mapper> |
Loading…
Reference in new issue