zhousq
12 months ago
32 changed files with 1158 additions and 518 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 ; |
||||
|
|
||||
|
} |
@ -0,0 +1,80 @@ |
|||||
|
package com.lzbi.asset.domain; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
import com.lzbi.common.annotation.Excel; |
||||
|
import com.lzbi.module.base.BaseModuleEntity; |
||||
|
|
||||
|
/** |
||||
|
* 互联参数读取数据对照对象 dc_busi_work_read_config |
||||
|
* |
||||
|
* @author zhousq |
||||
|
* @date 2023-12-04 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class DcBusiWorkReadConfig extends BaseModuleEntity |
||||
|
{ |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
/** 主键 */ |
||||
|
@Excel(name = "主键") |
||||
|
private Long id; |
||||
|
|
||||
|
/** 公司ID */ |
||||
|
private Long companyId; |
||||
|
|
||||
|
/** 公司名称 */ |
||||
|
@Excel(name = "公司名称") |
||||
|
private String companyName; |
||||
|
|
||||
|
/** 组织机构名称 */ |
||||
|
@Excel(name = "组织机构名称") |
||||
|
private String organizeName; |
||||
|
|
||||
|
/** 组织机构ID */ |
||||
|
private Long oragnizeId; |
||||
|
|
||||
|
/** 统计单元编码 */ |
||||
|
private String assetCode; |
||||
|
|
||||
|
/** 统计单元名称 */ |
||||
|
@Excel(name = "统计单元名称") |
||||
|
private String assetName; |
||||
|
|
||||
|
/** 统计参数编码 */ |
||||
|
private String assetParamCode; |
||||
|
|
||||
|
/** 目标参数编码 */ |
||||
|
private String goalParamCode; |
||||
|
|
||||
|
/** 目标参数名称 */ |
||||
|
@Excel(name = "目标参数名称") |
||||
|
private String goalParamName; |
||||
|
|
||||
|
/** 目标参数扩展1 */ |
||||
|
@Excel(name = "目标参数扩展1") |
||||
|
private String goalParamExt1; |
||||
|
|
||||
|
/** 目标参数扩展2 */ |
||||
|
@Excel(name = "目标参数扩展2") |
||||
|
private String goalParamExt2; |
||||
|
|
||||
|
/** 读取数值类型 */ |
||||
|
@Excel(name = "读取数值类型") |
||||
|
private String goalParamType; |
||||
|
|
||||
|
/** 数据来源 */ |
||||
|
@Excel(name = "数据来源") |
||||
|
private String goalSource; |
||||
|
|
||||
|
/** 生产专业编码 */ |
||||
|
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; |
||||
|
|
||||
/** |
/** |
||||
* 互联参数读取数据对照表;(dc_busi_work_read_config)表数据库访问层 |
* 互联参数读取数据对照Mapper接口 |
||||
* @author : zhousq |
* |
||||
* @date : 2023-11-30 |
* @author zhousq |
||||
|
* @date 2023-12-04 |
||||
*/ |
*/ |
||||
@InterceptorIgnore(tenantLine = "true") |
|
||||
public interface DcBusiWorkReadConfigMapper extends BaseMapper<DcBusiWorkReadConfig>{ |
public interface DcBusiWorkReadConfigMapper extends BaseMapper<DcBusiWorkReadConfig> |
||||
List<DcBusiWorkReadConfig> selectByVo( DcBusiWorkReadConfig beanVo); |
{ |
||||
int insertByVo( DcBusiWorkReadConfig beanVo); |
/** |
||||
} |
* 查询互联参数读取数据对照 |
||||
|
* |
||||
|
* @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); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除互联参数读取数据对照 |
||||
|
* |
||||
|
* @param ids 需要删除的数据主键集合 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteDcBusiWorkReadConfigByIds(Long[] ids); |
||||
|
} |
||||
|
@ -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.DcBaseWorkSpecialDao; |
||||
|
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() |
||||
|
{ |
||||
|
DcBaseWorkSpecialDao dcBaseWorkSpecialDao=new DcBaseWorkSpecialDao(); |
||||
|
return AjaxResult.success( dcBaseWorkSpecialService.selectDcBaseWorkSpecialDaoDictList(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)); |
||||
|
} |
||||
|
} |
@ -1,94 +1,75 @@ |
|||||
package com.lzbi.draft.domain; |
package com.lzbi.draft.domain; |
||||
|
|
||||
import java.util.List; |
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.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
import lombok.AllArgsConstructor; |
||||
import lombok.Data; |
import lombok.Data; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
import lombok.NoArgsConstructor; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
import lombok.experimental.Accessors; |
||||
import com.lzbi.common.annotation.Excel; |
|
||||
import com.lzbi.module.base.BaseModuleEntity; |
import com.lzbi.module.base.BaseModuleEntity; |
||||
|
|
||||
/** |
/** |
||||
* 参数采集(录入)单据主对象 dc_busi_param_bill_master |
* 参数采集(录入)单据主对象 dc_busi_param_bill_master |
||||
* |
* |
||||
* @author win |
* @author win |
||||
* @date 2023-11-28 |
* @date 2023-11-28 |
||||
*/ |
*/ |
||||
@Data |
@Data |
||||
public class DcBusiParamBillMasterDao extends BaseModuleEntity |
@NoArgsConstructor |
||||
|
@AllArgsConstructor |
||||
|
@Accessors(chain = true) |
||||
|
@ApiModel(value = "参数采集(录入)单据主表",description = "") |
||||
|
@TableName("dc_busi_param_bill_master") |
||||
|
public class DcBusiParamBillMaster 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; |
@ApiModelProperty(name = "主键",notes = "") |
||||
|
@TableId(type= IdType.AUTO) |
||||
|
private Long id ; |
||||
/** 单据编号 */ |
/** 单据编号 */ |
||||
@Excel(name = "单据编号") |
@ApiModelProperty(name = "单据编号",notes = "") |
||||
private String billNo; |
private String billNo ; |
||||
|
|
||||
/** 采集时间 */ |
/** 采集时间 */ |
||||
@Excel(name = "采集时间") |
@ApiModelProperty(name = "采集时间",notes = "") |
||||
private String billIncomeDate; |
private String billIncomeDate ; |
||||
|
|
||||
/** 单据类型 */ |
/** 单据类型 */ |
||||
@Excel(name = "单据类型") |
@ApiModelProperty(name = "单据类型",notes = "") |
||||
private String billType; |
private String billType ; |
||||
|
|
||||
/** 审核类型 */ |
/** 审核类型 */ |
||||
@Excel(name = "审核类型") |
@ApiModelProperty(name = "审核类型",notes = "") |
||||
private String checkType; |
private String checkType ; |
||||
|
|
||||
/** 审核状态 */ |
/** 审核状态 */ |
||||
@Excel(name = "审核状态") |
@ApiModelProperty(name = "审核状态",notes = "") |
||||
private String checkStatus; |
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> dcBusiParamBillSubDaoList; |
private List<DcBusiParamBillSub> dcBusiParamBillSubList; |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
@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> |
@ -1,128 +1,169 @@ |
|||||
<?xml version="1.0" encoding="UTF-8" ?> |
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper |
<!DOCTYPE mapper |
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
<mapper namespace="com.lzbi.asset.mapper.DcBusiWorkReadConfigMapper"> |
<mapper namespace="com.lzbi.asset.mapper.DcBusiWorkReadConfigMapper"> |
||||
<resultMap type="com.lzbi.asset.domain.DcBusiWorkReadConfig" id="rmDcBusiWorkReadConfig"> |
|
||||
<!-- 租户号 --> |
<resultMap type="com.lzbi.asset.domain.DcBusiWorkReadConfig" id="DcBusiWorkReadConfigResult"> |
||||
<result property="tenantId" column="tenant_id"/> |
<result property="tenantId" column="tenant_id" /> |
||||
<!-- 乐观锁 --> |
<result property="revision" column="revision" /> |
||||
<result property="revision" column="revision"/> |
<result property="createdBy" column="created_by" /> |
||||
<!-- 创建人 --> |
<result property="createdTime" column="created_time" /> |
||||
<result property="createdBy" column="created_by"/> |
<result property="updatedBy" column="updated_by" /> |
||||
<!-- 创建时间 --> |
<result property="updatedTime" column="updated_time" /> |
||||
<result property="createdTime" column="created_time"/> |
<result property="deleteBy" column="delete_by" /> |
||||
<!-- 更新人 --> |
<result property="deleteTime" column="delete_time" /> |
||||
<result property="updatedBy" column="updated_by"/> |
<result property="id" column="id" /> |
||||
<!-- 更新时间 --> |
<result property="companyId" column="company_id" /> |
||||
<result property="updatedTime" column="updated_time"/> |
<result property="companyName" column="company_name" /> |
||||
<!-- 删除人 --> |
<result property="organizeName" column="organize_name" /> |
||||
<result property="deleteBy" column="delete_by"/> |
<result property="oragnizeId" column="oragnize_id" /> |
||||
<!-- 删除时间 --> |
<result property="assetCode" column="asset_code" /> |
||||
<result property="deleteTime" column="delete_time"/> |
<result property="assetName" column="asset_name" /> |
||||
<!-- 主键 --> |
<result property="assetParamCode" column="asset_param_code" /> |
||||
<result property="id" column="id"/> |
<result property="goalParamCode" column="goal_param_code" /> |
||||
<!-- 统计单元编码 --> |
<result property="goalParamName" column="goal_param_name" /> |
||||
<result property="assetCode" column="asset_code"/> |
<result property="goalParamExt1" column="goal_param_ext1" /> |
||||
<!-- 统计单元参数编码 --> |
<result property="goalParamExt2" column="goal_param_ext2" /> |
||||
<result property="assetParamCode" column="asset_param_code"/> |
<result property="goalParamType" column="goal_param_type" /> |
||||
<!-- 目标参数编码 --> |
<result property="goalSource" column="goal_source" /> |
||||
<result property="goalParamCode" column="goal_param_code"/> |
<result property="assetFieldCode" column="asset_field_code" /> |
||||
<!-- 目标参数辅助查询参数1 --> |
<result property="assetFieldName" column="asset_field_name" /> |
||||
<result property="goalParamExt1" column="goal_param_ext1"/> |
<result property="assetParamName" column="asset_param_name" /> |
||||
<!-- 目标参数辅助查询参数2 --> |
<result property="paramCounts" column="param_counts" /> |
||||
<result property="goalParamExt2" column="goal_param_ext2"/> |
|
||||
<!-- 读取数值类型 --> |
|
||||
<result property="goalParamType" column="goal_param_type"/> |
|
||||
<!-- 数据来源 --> |
|
||||
<result property="goalSource" column="goal_source"/> |
|
||||
<!-- 数据来源 --> |
|
||||
<result property="assetFieldCode" column="asset_field_code"/> |
|
||||
|
|
||||
</resultMap> |
</resultMap> |
||||
<sql id="baseQuerySql"> |
|
||||
select |
<sql id="selectDcBusiWorkReadConfigVo"> |
||||
tenant_id, |
select tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time, id, company_id, company_name, organize_name, oragnize_id, asset_code, asset_name, asset_param_code, goal_param_code, goal_param_name, goal_param_ext1, goal_param_ext2, goal_param_type, goal_source, asset_field_code, asset_field_name, asset_param_name from dc_busi_work_read_config |
||||
revision, |
|
||||
created_by, |
|
||||
created_time, |
|
||||
updated_by, |
|
||||
updated_time, |
|
||||
delete_by, |
|
||||
delete_time, |
|
||||
id, |
|
||||
asset_code, |
|
||||
asset_param_code, |
|
||||
goal_param_code, |
|
||||
goal_param_ext1, |
|
||||
goal_param_ext2, |
|
||||
goal_param_type, |
|
||||
goal_source, |
|
||||
asset_field_code |
|
||||
from dc_busi_work_read_config |
|
||||
</sql> |
</sql> |
||||
<select id="selectByVo" resultMap="rmDcBusiWorkReadConfig" parameterType="com.lzbi.asset.domain.DcBusiWorkReadConfig"> |
|
||||
<include refid="baseQuerySql"/> |
<select id="selectDcBusiWorkReadConfigList" parameterType="DcBusiWorkReadConfig" resultMap="DcBusiWorkReadConfigResult"> |
||||
|
<include refid="selectDcBusiWorkReadConfigVo"/> |
||||
|
<where> |
||||
|
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if> |
||||
|
<if test="organizeName != null and organizeName != ''"> and organize_name like concat('%', #{organizeName}, '%')</if> |
||||
|
<if test="oragnizeId != null "> and oragnize_id = #{oragnizeId}</if> |
||||
|
<if test="companyId != null "> and company_id = #{companyId}</if> |
||||
|
<if test="assetFieldName != null and assetFieldName != ''"> and asset_field_name like concat('%', #{assetFieldName}, '%')</if> |
||||
|
<if test=" assetFieldCode != null "> and asset_field_code = #{ assetFieldCode}</if> |
||||
|
<if test="assetName != null and assetName != ''"> and asset_name like concat('%', #{assetName}, '%')</if> |
||||
|
<if test=" assetCode != null "> and asset_code = #{assetCode}</if> |
||||
|
</where> |
||||
|
</select> |
||||
|
<select id="selectDcBusiWorkReadConfigMainList" parameterType="com.lzbi.common.AssetQueryParams" resultMap="DcBusiWorkReadConfigResult"> |
||||
|
select company_id, company_name, organize_name, oragnize_id, asset_code, asset_name,asset_field_code, asset_field_name,count(asset_param_code) as param_counts from dc_busi_work_read_config |
||||
|
|
||||
<where> |
<where> |
||||
<if test="tenantId != null "> and tenant_id = #{tenantId}</if> |
<if test="companyID != null "> and company_id = #{companyID}</if> |
||||
<if test="revision != null "> and revision = #{revision}</if> |
<if test="orgID != null "> and oragnize_id = #{orgID}</if> |
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if> |
<if test="fieldCode != null "> and asset_field_code = #{fieldCode} </if> |
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if> |
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if> |
||||
<if test="updatedBy != null and updatedBy != ''"> and updated_by = #{updatedBy}</if> |
<if test="orgName != null and orgName != ''"> and organize_name like concat('%', #{organizeName}, '%')</if> |
||||
<if test="updatedTime != null "> and updated_time = #{updatedTime}</if> |
<if test="fieldName != null and fieldName != ''"> and asset_field_name like concat('%', #{assetFieldName}, '%')</if> |
||||
<if test="deleteBy != null and deleteBy != ''"> and delete_by = #{deleteBy}</if> |
|
||||
<if test="deleteTime != null "> and delete_time = #{deleteTime}</if> |
|
||||
<if test="id != null "> and id = #{id}</if> |
|
||||
<if test="assetCode != null and assetCode != ''"> and asset_code = #{assetCode}</if> |
|
||||
<if test="assetParamCode != null and assetParamCode != ''"> and asset_param_code = #{assetParamCode}</if> |
|
||||
<if test="goalParamCode != null and goalParamCode != ''"> and goal_param_code = #{goalParamCode}</if> |
|
||||
<if test="goalParamExt1 != null and goalParamExt1 != ''"> and goal_param_ext1 = #{goalParamExt1}</if> |
|
||||
<if test="goalParamExt2 != null and goalParamExt2 != ''"> and goal_param_ext2 = #{goalParamExt2}</if> |
|
||||
<if test="goalParamType != null and goalParamType != ''"> and goal_param_type = #{goalParamType}</if> |
|
||||
<if test="goalSource != null and goalSource != ''"> and goal_source = #{goalSource}</if> |
|
||||
<if test="assetFieldCode != null and assetFieldCode != ''"> and asset_field_code = #{assetFieldCode}</if> |
|
||||
</where> |
</where> |
||||
|
group by company_id, company_name, organize_name, oragnize_id, asset_code, asset_name,asset_field_code, asset_field_name |
||||
</select> |
</select> |
||||
<insert id="insertByVo" parameterType="com.lzbi.asset.domain.DcBusiWorkReadConfig"> |
|
||||
|
<select id="selectDcBusiWorkReadConfigById" parameterType="Long" resultMap="DcBusiWorkReadConfigResult"> |
||||
|
<include refid="selectDcBusiWorkReadConfigVo"/> |
||||
|
where id = #{id} |
||||
|
</select> |
||||
|
|
||||
|
<insert id="insertDcBusiWorkReadConfig" parameterType="DcBusiWorkReadConfig" useGeneratedKeys="true" keyProperty="id"> |
||||
insert into dc_busi_work_read_config |
insert into dc_busi_work_read_config |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
<if test="tenantId != null and tenantId != ''">tenant_id,</if> |
<if test="tenantId != null">tenant_id,</if> |
||||
<if test="revision != null and revision != ''">revision,</if> |
<if test="revision != null">revision,</if> |
||||
<if test="createdBy != null and createdBy != ''">created_by,</if> |
<if test="createdBy != null">created_by,</if> |
||||
<if test="createdTime != null and createdTime != ''">created_time,</if> |
<if test="createdTime != null">created_time,</if> |
||||
<if test="updatedBy != null and updatedBy != ''">updated_by,</if> |
<if test="updatedBy != null">updated_by,</if> |
||||
<if test="updatedTime != null and updatedTime != ''">updated_time,</if> |
<if test="updatedTime != null">updated_time,</if> |
||||
<if test="deleteBy != null and deleteBy != ''">delete_by,</if> |
<if test="deleteBy != null">delete_by,</if> |
||||
<if test="deleteTime != null and deleteTime != ''">delete_time,</if> |
<if test="deleteTime != null">delete_time,</if> |
||||
<if test="id != null and id != ''">id,</if> |
<if test="companyId != null">company_id,</if> |
||||
<if test="assetCode != null and assetCode != ''">asset_code,</if> |
<if test="companyName != null">company_name,</if> |
||||
<if test="assetParamCode != null and assetParamCode != ''">asset_param_code,</if> |
<if test="organizeName != null">organize_name,</if> |
||||
<if test="goalParamCode != null and goalParamCode != ''">goal_param_code,</if> |
<if test="oragnizeId != null">oragnize_id,</if> |
||||
<if test="goalParamExt1 != null and goalParamExt1 != ''">goal_param_ext1,</if> |
<if test="assetCode != null">asset_code,</if> |
||||
<if test="goalParamExt2 != null and goalParamExt2 != ''">goal_param_ext2,</if> |
<if test="assetName != null">asset_name,</if> |
||||
<if test="goalParamType != null and goalParamType != ''">goal_param_type,</if> |
<if test="assetParamCode != null">asset_param_code,</if> |
||||
<if test="goalSource != null and goalSource != ''">goal_source,</if> |
<if test="goalParamCode != null">goal_param_code,</if> |
||||
<if test="assetFieldCode != null and assetFieldCode != ''">asset_field_code</if> |
<if test="goalParamName != null">goal_param_name,</if> |
||||
</trim> |
<if test="goalParamExt1 != null">goal_param_ext1,</if> |
||||
|
<if test="goalParamExt2 != null">goal_param_ext2,</if> |
||||
|
<if test="goalParamType != null">goal_param_type,</if> |
||||
|
<if test="goalSource != null">goal_source,</if> |
||||
|
<if test="assetFieldCode != null">asset_field_code,</if> |
||||
|
<if test="assetFieldName != null">asset_field_name,</if> |
||||
|
<if test="assetParamName != null">asset_param_name,</if> |
||||
|
</trim> |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
<if test="tenantId != null and tenantId != ''">#{tenantId},</if> |
<if test="tenantId != null">#{tenantId},</if> |
||||
<if test="revision != null and revision != ''">#{revision},</if> |
<if test="revision != null">#{revision},</if> |
||||
<if test="createdBy != null and createdBy != ''">#{createdBy},</if> |
<if test="createdBy != null">#{createdBy},</if> |
||||
<if test="createdTime != null and createdTime != ''">#{createdTime},</if> |
<if test="createdTime != null">#{createdTime},</if> |
||||
<if test="updatedBy != null and updatedBy != ''">#{updatedBy},</if> |
<if test="updatedBy != null">#{updatedBy},</if> |
||||
<if test="updatedTime != null and updatedTime != ''">#{updatedTime},</if> |
<if test="updatedTime != null">#{updatedTime},</if> |
||||
<if test="deleteBy != null and deleteBy != ''">#{deleteBy},</if> |
<if test="deleteBy != null">#{deleteBy},</if> |
||||
<if test="deleteTime != null and deleteTime != ''">#{deleteTime},</if> |
<if test="deleteTime != null">#{deleteTime},</if> |
||||
<if test="id != null and id != ''">#{id},</if> |
<if test="companyId != null">#{companyId},</if> |
||||
<if test="assetCode != null and assetCode != ''">#{assetCode},</if> |
<if test="companyName != null">#{companyName},</if> |
||||
<if test="assetParamCode != null and assetParamCode != ''">#{assetParamCode},</if> |
<if test="organizeName != null">#{organizeName},</if> |
||||
<if test="goalParamCode != null and goalParamCode != ''">#{goalParamCode},</if> |
<if test="oragnizeId != null">#{oragnizeId},</if> |
||||
<if test="goalParamExt1 != null and goalParamExt1 != ''">#{goalParamExt1},</if> |
<if test="assetCode != null">#{assetCode},</if> |
||||
<if test="goalParamExt2 != null and goalParamExt2 != ''">#{goalParamExt2},</if> |
<if test="assetName != null">#{assetName},</if> |
||||
<if test="goalParamType != null and goalParamType != ''">#{goalParamType},</if> |
<if test="assetParamCode != null">#{assetParamCode},</if> |
||||
<if test="goalSource != null and goalSource != ''">#{goalSource},</if> |
<if test="goalParamCode != null">#{goalParamCode},</if> |
||||
<if test="assetFieldCode != null and assetFieldCode != ''">#{assetFieldCode},</if> |
<if test="goalParamName != null">#{goalParamName},</if> |
||||
</trim> |
<if test="goalParamExt1 != null">#{goalParamExt1},</if> |
||||
|
<if test="goalParamExt2 != null">#{goalParamExt2},</if> |
||||
|
<if test="goalParamType != null">#{goalParamType},</if> |
||||
|
<if test="goalSource != null">#{goalSource},</if> |
||||
|
<if test="assetFieldCode != null">#{assetFieldCode},</if> |
||||
|
<if test="assetFieldName != null">#{assetFieldName},</if> |
||||
|
<if test="assetParamName != null">#{assetParamName},</if> |
||||
|
</trim> |
||||
</insert> |
</insert> |
||||
|
|
||||
|
<update id="updateDcBusiWorkReadConfig" parameterType="DcBusiWorkReadConfig"> |
||||
|
update dc_busi_work_read_config |
||||
|
<trim prefix="SET" suffixOverrides=","> |
||||
|
<if test="tenantId != null">tenant_id = #{tenantId},</if> |
||||
|
<if test="revision != null">revision = #{revision},</if> |
||||
|
<if test="createdBy != null">created_by = #{createdBy},</if> |
||||
|
<if test="createdTime != null">created_time = #{createdTime},</if> |
||||
|
<if test="updatedBy != null">updated_by = #{updatedBy},</if> |
||||
|
<if test="updatedTime != null">updated_time = #{updatedTime},</if> |
||||
|
<if test="deleteBy != null">delete_by = #{deleteBy},</if> |
||||
|
<if test="deleteTime != null">delete_time = #{deleteTime},</if> |
||||
|
<if test="companyId != null">company_id = #{companyId},</if> |
||||
|
<if test="companyName != null">company_name = #{companyName},</if> |
||||
|
<if test="organizeName != null">organize_name = #{organizeName},</if> |
||||
|
<if test="oragnizeId != null">oragnize_id = #{oragnizeId},</if> |
||||
|
<if test="assetCode != null">asset_code = #{assetCode},</if> |
||||
|
<if test="assetName != null">asset_name = #{assetName},</if> |
||||
|
<if test="assetParamCode != null">asset_param_code = #{assetParamCode},</if> |
||||
|
<if test="goalParamCode != null">goal_param_code = #{goalParamCode},</if> |
||||
|
<if test="goalParamName != null">goal_param_name = #{goalParamName},</if> |
||||
|
<if test="goalParamExt1 != null">goal_param_ext1 = #{goalParamExt1},</if> |
||||
|
<if test="goalParamExt2 != null">goal_param_ext2 = #{goalParamExt2},</if> |
||||
|
<if test="goalParamType != null">goal_param_type = #{goalParamType},</if> |
||||
|
<if test="goalSource != null">goal_source = #{goalSource},</if> |
||||
|
<if test="assetFieldCode != null">asset_field_code = #{assetFieldCode},</if> |
||||
|
<if test="assetFieldName != null">asset_field_name = #{assetFieldName},</if> |
||||
|
<if test="assetParamName != null">asset_param_name = #{assetParamName},</if> |
||||
|
</trim> |
||||
|
where id = #{id} |
||||
|
</update> |
||||
|
|
||||
|
<delete id="deleteDcBusiWorkReadConfigById" parameterType="Long"> |
||||
|
delete from dc_busi_work_read_config where id = #{id} |
||||
|
</delete> |
||||
|
|
||||
|
<delete id="deleteDcBusiWorkReadConfigByIds" parameterType="String"> |
||||
|
delete from dc_busi_work_read_config where id in |
||||
|
<foreach item="id" collection="array" open="(" separator="," close=")"> |
||||
|
#{id} |
||||
|
</foreach> |
||||
|
</delete> |
||||
</mapper> |
</mapper> |
Loading…
Reference in new issue