zhousq
1 year ago
37 changed files with 1276 additions and 2845 deletions
@ -0,0 +1,132 @@ |
|||||
|
package com.lzbi.asset.controller; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.lzbi.common.annotation.Log; |
||||
|
import com.lzbi.common.core.controller.BaseController; |
||||
|
import com.lzbi.common.core.domain.AjaxResult; |
||||
|
import com.lzbi.common.core.page.TableDataInfo; |
||||
|
import com.lzbi.common.enums.BusinessType; |
||||
|
import com.lzbi.common.utils.DateUtils; |
||||
|
import com.lzbi.common.utils.poi.ExcelUtil; |
||||
|
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.Arrays; |
||||
|
import java.util.List; |
||||
|
import java.util.stream.Collectors; |
||||
|
import com.lzbi.asset.domain.DcBaseParamModel; |
||||
|
import com.lzbi.asset.service.DcBaseParamModelService; |
||||
|
|
||||
|
/** |
||||
|
* 参数模版管理Controller |
||||
|
* |
||||
|
* @author zhousq |
||||
|
* @date 2023-11-24 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("/asset/paramModel") |
||||
|
public class DcBaseParamModelController extends BaseController |
||||
|
{ |
||||
|
@Autowired |
||||
|
private DcBaseParamModelService dcBaseParamModelService; |
||||
|
|
||||
|
/** |
||||
|
* 分页列表查询 |
||||
|
* @return 分页数据 |
||||
|
*/ |
||||
|
@GetMapping("/list") |
||||
|
public TableDataInfo list(DcBaseParamModel dcBaseParamModel) |
||||
|
{ startPage(); |
||||
|
List<DcBaseParamModel> list = dcBaseParamModelService.selectByVo(dcBaseParamModel); |
||||
|
return getDataTable(list); |
||||
|
} |
||||
|
/** |
||||
|
*根据ID获取详情 |
||||
|
*@param id |
||||
|
@return DcBaseParamModel 没有反馈空 |
||||
|
*/ |
||||
|
@ApiOperation("根据ID获取参数模版表详细信息") |
||||
|
@GetMapping(value = "/{id}") |
||||
|
public AjaxResult getInfo(@PathVariable("id") Long id) { |
||||
|
return AjaxResult.success(dcBaseParamModelService.getById(id)); |
||||
|
} |
||||
|
/** |
||||
|
* 参数模版表-新增 |
||||
|
*@param |
||||
|
*@return DcBaseParamModel |
||||
|
*/ |
||||
|
@ApiOperation("新增参数模版表一条数据") |
||||
|
@Log(title = "", businessType = BusinessType.INSERT) |
||||
|
@PostMapping |
||||
|
public AjaxResult add(@Valid @RequestBody DcBaseParamModel dcBaseParamModel) { |
||||
|
//BeanValidators.validateWithException(validator, dcBaseParamModel);
|
||||
|
dcBaseParamModel.setCreatedBy(getUsername()); |
||||
|
dcBaseParamModel.setCreatedTime(DateUtils.getNowDate()); |
||||
|
dcBaseParamModel.setTenantId("0"); |
||||
|
dcBaseParamModel.setUpdatedBy(getUsername()); |
||||
|
dcBaseParamModel.setUpdatedTime(DateUtils.getNowDate()); |
||||
|
return toAjax(dcBaseParamModelService.insertByVo(dcBaseParamModel)); |
||||
|
} |
||||
|
/** |
||||
|
* 参数模版表-修改 |
||||
|
*@param |
||||
|
*@return DcBaseParamModel |
||||
|
*/ |
||||
|
@ApiOperation("参数模版表修改") |
||||
|
@Log(title = "", businessType = BusinessType.UPDATE) |
||||
|
@PutMapping |
||||
|
public AjaxResult edit(@Valid @RequestBody DcBaseParamModel dcBaseParamModel) { |
||||
|
//BeanValidators.validateWithException(validator, dcBaseParamModel);
|
||||
|
dcBaseParamModel.setUpdatedBy(getUsername()); |
||||
|
dcBaseParamModel.setUpdatedTime(DateUtils.getNowDate()); |
||||
|
return toAjax(dcBaseParamModelService.updateById(dcBaseParamModel)); |
||||
|
} |
||||
|
/** |
||||
|
* 通过ID删除参数模版表 |
||||
|
* @param id |
||||
|
* @return 成功1 失败0 |
||||
|
*/ |
||||
|
@ApiOperation("根据ID删除参数模版表") |
||||
|
@Log(title = "单一参数模版表", businessType = BusinessType.DELETE) |
||||
|
@DeleteMapping("/id/{id}") |
||||
|
public AjaxResult batchRemove(@PathVariable Long id) { |
||||
|
DcBaseParamModel dcBaseParamModel=new DcBaseParamModel(); |
||||
|
dcBaseParamModel.setId(id); |
||||
|
return toAjax(dcBaseParamModelService.removeById( dcBaseParamModel)); |
||||
|
} |
||||
|
/** |
||||
|
* 批量删除参数模版表 |
||||
|
* @param ids 数组 |
||||
|
* @return 删除的条数 |
||||
|
*/ |
||||
|
@ApiOperation("批量删除参数模版表") |
||||
|
@Log(title = "批量删除参数模版表", businessType = BusinessType.DELETE) |
||||
|
@DeleteMapping("/ids/{ids}") |
||||
|
public AjaxResult batchRemove(@PathVariable Long[] ids) { |
||||
|
List<Long> collect = Arrays.stream(ids).collect(Collectors.toList()); |
||||
|
return toAjax(dcBaseParamModelService.removeBatchByIds(collect)); |
||||
|
} |
||||
|
/** |
||||
|
* 通过模版导入"参数模版表数据 |
||||
|
* |
||||
|
*/ |
||||
|
@ApiOperation("参数模版表数据导入") |
||||
|
@PostMapping("/importTemplate") |
||||
|
public void importTemplate(HttpServletResponse response) { |
||||
|
ExcelUtil<DcBaseParamModel> util = new ExcelUtil<>(DcBaseParamModel.class); |
||||
|
util.importTemplateExcel(response, "参数模版表导出数据"); |
||||
|
} |
||||
|
/** |
||||
|
* "参数模版表数据导出功能 |
||||
|
*/ |
||||
|
@ApiOperation("导出参数模版表数据") |
||||
|
@PostMapping("/export") |
||||
|
public void export(HttpServletResponse response, DcBaseParamModel dcBaseParamModel) { |
||||
|
QueryWrapper<DcBaseParamModel> queryWrapper = new QueryWrapper<>(); |
||||
|
List<DcBaseParamModel> list = dcBaseParamModelService.list(queryWrapper); |
||||
|
ExcelUtil<DcBaseParamModel> util = new ExcelUtil<>(DcBaseParamModel.class); |
||||
|
util.exportExcel(response, list, "导出的参数模版表数据"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,47 @@ |
|||||
|
package com.lzbi.asset.domain; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
import lombok.experimental.Accessors; |
||||
|
import com.lzbi.module.base.BaseModuleEntity; |
||||
|
|
||||
|
/** |
||||
|
* 参数模版表; |
||||
|
* @author : zhousq |
||||
|
* @date : 2023-11-24 |
||||
|
*/ |
||||
|
@Data |
||||
|
@NoArgsConstructor |
||||
|
@AllArgsConstructor |
||||
|
@Accessors(chain = true) |
||||
|
@ApiModel(value = "参数模版表",description = "") |
||||
|
//@TableName("dc_base_param_model")
|
||||
|
public class DcBaseParamModel extends BaseModuleEntity{ |
||||
|
|
||||
|
/** 主键 */ |
||||
|
@ApiModelProperty(name = "主键",notes = "") |
||||
|
private long id ; |
||||
|
/** 参数模型编码 */ |
||||
|
@ApiModelProperty(name = "参数模型编码",notes = "") |
||||
|
private String paramModelCode ; |
||||
|
/** 参数模型名称 */ |
||||
|
@ApiModelProperty(name = "参数模型名称",notes = "") |
||||
|
private String paramModelName ; |
||||
|
/** 所属专业 */ |
||||
|
@ApiModelProperty(name = "所属专业",notes = "") |
||||
|
private String paramModelField ; |
||||
|
/** 参数模型分组 */ |
||||
|
@ApiModelProperty(name = "参数模型分组",notes = "") |
||||
|
private String paramModelGroup ; |
||||
|
/** 参数来源 */ |
||||
|
@ApiModelProperty(name = "参数来源",notes = "") |
||||
|
private String paramModelSource ; |
||||
|
/** 状态标识 */ |
||||
|
@ApiModelProperty(name = "状态标识",notes = "") |
||||
|
private String flagStatus ; |
||||
|
|
||||
|
} |
@ -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.DcBaseParamModel; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 参数模版表;(dc_base_param_model)表数据库访问层 |
||||
|
* @author : zhousq |
||||
|
* @date : 2023-11-24 |
||||
|
*/ |
||||
|
@InterceptorIgnore(tenantLine = "true") |
||||
|
public interface DcBaseParamModelMapper extends BaseMapper<DcBaseParamModel>{ |
||||
|
List<DcBaseParamModel> selectByVo( DcBaseParamModel beanVo); |
||||
|
int insertByVo( DcBaseParamModel 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.DcBaseParamModelMapper; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import com.lzbi.asset.domain.DcBaseParamModel; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 参数模版表;(dc_base_param_model)表服务接口 |
||||
|
* @author : zhousq |
||||
|
* @date : 2023-11-24 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class DcBaseParamModelService extends ServiceImpl<DcBaseParamModelMapper, DcBaseParamModel> implements IService<DcBaseParamModel> { |
||||
|
|
||||
|
public List<DcBaseParamModel> selectByVo( DcBaseParamModel dcBaseParamModel){ |
||||
|
return baseMapper.selectByVo(dcBaseParamModel); |
||||
|
} |
||||
|
public int insertByVo( DcBaseParamModel dcBaseParamModel){ |
||||
|
return baseMapper.insertByVo(dcBaseParamModel); |
||||
|
} |
||||
|
|
||||
|
} |
@ -1,104 +0,0 @@ |
|||||
package com.lzbi.bi.controller; |
|
||||
|
|
||||
import java.util.List; |
|
||||
import javax.servlet.http.HttpServletResponse; |
|
||||
import org.springframework.security.access.prepost.PreAuthorize; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.web.bind.annotation.GetMapping; |
|
||||
import org.springframework.web.bind.annotation.PostMapping; |
|
||||
import org.springframework.web.bind.annotation.PutMapping; |
|
||||
import org.springframework.web.bind.annotation.DeleteMapping; |
|
||||
import org.springframework.web.bind.annotation.PathVariable; |
|
||||
import org.springframework.web.bind.annotation.RequestBody; |
|
||||
import org.springframework.web.bind.annotation.RequestMapping; |
|
||||
import org.springframework.web.bind.annotation.RestController; |
|
||||
import com.lzbi.common.annotation.Log; |
|
||||
import com.lzbi.common.core.controller.BaseController; |
|
||||
import com.lzbi.common.core.domain.AjaxResult; |
|
||||
import com.lzbi.common.enums.BusinessType; |
|
||||
import com.lzbi.bi.domain.DcBusiTargetAdjust; |
|
||||
import com.lzbi.bi.service.IDcBusiTargetAdjustService; |
|
||||
import com.lzbi.common.utils.poi.ExcelUtil; |
|
||||
import com.lzbi.common.core.page.TableDataInfo; |
|
||||
|
|
||||
/** |
|
||||
* 资产指标调整单Controller |
|
||||
* |
|
||||
* @author zhousq |
|
||||
* @date 2023-11-23 |
|
||||
*/ |
|
||||
@RestController |
|
||||
@RequestMapping("/asset/AssetTargetAdjustBill") |
|
||||
public class DcBusiTargetAdjustController extends BaseController |
|
||||
{ |
|
||||
@Autowired |
|
||||
private IDcBusiTargetAdjustService dcBusiTargetAdjustService; |
|
||||
|
|
||||
/** |
|
||||
* 查询资产指标调整单列表 |
|
||||
*/ |
|
||||
@PreAuthorize("@ss.hasPermi('assetData:AssetTargetAdjustBill:list')") |
|
||||
@GetMapping("/list") |
|
||||
public TableDataInfo list(DcBusiTargetAdjust dcBusiTargetAdjust) |
|
||||
{ |
|
||||
startPage(); |
|
||||
List<DcBusiTargetAdjust> list = dcBusiTargetAdjustService.selectDcBusiTargetAdjustList(dcBusiTargetAdjust); |
|
||||
return getDataTable(list); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 导出资产指标调整单列表 |
|
||||
*/ |
|
||||
@PreAuthorize("@ss.hasPermi('assetData:AssetTargetAdjustBill:export')") |
|
||||
@Log(title = "资产指标调整单", businessType = BusinessType.EXPORT) |
|
||||
@PostMapping("/export") |
|
||||
public void export(HttpServletResponse response, DcBusiTargetAdjust dcBusiTargetAdjust) |
|
||||
{ |
|
||||
List<DcBusiTargetAdjust> list = dcBusiTargetAdjustService.selectDcBusiTargetAdjustList(dcBusiTargetAdjust); |
|
||||
ExcelUtil<DcBusiTargetAdjust> util = new ExcelUtil<DcBusiTargetAdjust>(DcBusiTargetAdjust.class); |
|
||||
util.exportExcel(response, list, "资产指标调整单数据"); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 获取资产指标调整单详细信息 |
|
||||
*/ |
|
||||
@PreAuthorize("@ss.hasPermi('assetData:AssetTargetAdjustBill:query')") |
|
||||
@GetMapping(value = "/{id}") |
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) |
|
||||
{ |
|
||||
return success(dcBusiTargetAdjustService.selectDcBusiTargetAdjustById(id)); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 新增资产指标调整单 |
|
||||
*/ |
|
||||
@PreAuthorize("@ss.hasPermi('assetData:AssetTargetAdjustBill:add')") |
|
||||
@Log(title = "资产指标调整单", businessType = BusinessType.INSERT) |
|
||||
@PostMapping |
|
||||
public AjaxResult add(@RequestBody DcBusiTargetAdjust dcBusiTargetAdjust) |
|
||||
{ |
|
||||
return toAjax(dcBusiTargetAdjustService.insertDcBusiTargetAdjust(dcBusiTargetAdjust)); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 修改资产指标调整单 |
|
||||
*/ |
|
||||
@PreAuthorize("@ss.hasPermi('assetData:AssetTargetAdjustBill:edit')") |
|
||||
@Log(title = "资产指标调整单", businessType = BusinessType.UPDATE) |
|
||||
@PutMapping |
|
||||
public AjaxResult edit(@RequestBody DcBusiTargetAdjust dcBusiTargetAdjust) |
|
||||
{ |
|
||||
return toAjax(dcBusiTargetAdjustService.updateDcBusiTargetAdjust(dcBusiTargetAdjust)); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 删除资产指标调整单 |
|
||||
*/ |
|
||||
@PreAuthorize("@ss.hasPermi('assetData:AssetTargetAdjustBill:remove')") |
|
||||
@Log(title = "资产指标调整单", businessType = BusinessType.DELETE) |
|
||||
@DeleteMapping("/{ids}") |
|
||||
public AjaxResult remove(@PathVariable Long[] ids) |
|
||||
{ |
|
||||
return toAjax(dcBusiTargetAdjustService.deleteDcBusiTargetAdjustByIds(ids)); |
|
||||
} |
|
||||
} |
|
@ -1,104 +0,0 @@ |
|||||
package com.lzbi.bi.controller; |
|
||||
|
|
||||
import java.util.List; |
|
||||
import javax.servlet.http.HttpServletResponse; |
|
||||
import org.springframework.security.access.prepost.PreAuthorize; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.web.bind.annotation.GetMapping; |
|
||||
import org.springframework.web.bind.annotation.PostMapping; |
|
||||
import org.springframework.web.bind.annotation.PutMapping; |
|
||||
import org.springframework.web.bind.annotation.DeleteMapping; |
|
||||
import org.springframework.web.bind.annotation.PathVariable; |
|
||||
import org.springframework.web.bind.annotation.RequestBody; |
|
||||
import org.springframework.web.bind.annotation.RequestMapping; |
|
||||
import org.springframework.web.bind.annotation.RestController; |
|
||||
import com.lzbi.common.annotation.Log; |
|
||||
import com.lzbi.common.core.controller.BaseController; |
|
||||
import com.lzbi.common.core.domain.AjaxResult; |
|
||||
import com.lzbi.common.enums.BusinessType; |
|
||||
import com.lzbi.bi.domain.DcBusiTargetDraft; |
|
||||
import com.lzbi.bi.service.IDcBusiTargetDraftService; |
|
||||
import com.lzbi.common.utils.poi.ExcelUtil; |
|
||||
import com.lzbi.common.core.page.TableDataInfo; |
|
||||
|
|
||||
/** |
|
||||
* 指标数据底稿Controller |
|
||||
* |
|
||||
* @author zhousq |
|
||||
* @date 2023-11-23 |
|
||||
*/ |
|
||||
@RestController |
|
||||
@RequestMapping("/asset/AssetTargetdraft") |
|
||||
public class DcBusiTargetDraftController extends BaseController |
|
||||
{ |
|
||||
@Autowired |
|
||||
private IDcBusiTargetDraftService dcBusiTargetDraftService; |
|
||||
|
|
||||
/** |
|
||||
* 查询指标数据底稿列表 |
|
||||
*/ |
|
||||
@PreAuthorize("@ss.hasPermi('assetData:AssetTargetdraft:list')") |
|
||||
@GetMapping("/list") |
|
||||
public TableDataInfo list(DcBusiTargetDraft dcBusiTargetDraft) |
|
||||
{ |
|
||||
startPage(); |
|
||||
List<DcBusiTargetDraft> list = dcBusiTargetDraftService.selectDcBusiTargetDraftList(dcBusiTargetDraft); |
|
||||
return getDataTable(list); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 导出指标数据底稿列表 |
|
||||
*/ |
|
||||
@PreAuthorize("@ss.hasPermi('assetData:AssetTargetdraft:export')") |
|
||||
@Log(title = "指标数据底稿", businessType = BusinessType.EXPORT) |
|
||||
@PostMapping("/export") |
|
||||
public void export(HttpServletResponse response, DcBusiTargetDraft dcBusiTargetDraft) |
|
||||
{ |
|
||||
List<DcBusiTargetDraft> list = dcBusiTargetDraftService.selectDcBusiTargetDraftList(dcBusiTargetDraft); |
|
||||
ExcelUtil<DcBusiTargetDraft> util = new ExcelUtil<DcBusiTargetDraft>(DcBusiTargetDraft.class); |
|
||||
util.exportExcel(response, list, "指标数据底稿数据"); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 获取指标数据底稿详细信息 |
|
||||
*/ |
|
||||
@PreAuthorize("@ss.hasPermi('assetData:AssetTargetdraft:query')") |
|
||||
@GetMapping(value = "/{id}") |
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) |
|
||||
{ |
|
||||
return success(dcBusiTargetDraftService.selectDcBusiTargetDraftById(id)); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 新增指标数据底稿 |
|
||||
*/ |
|
||||
@PreAuthorize("@ss.hasPermi('assetData:AssetTargetdraft:add')") |
|
||||
@Log(title = "指标数据底稿", businessType = BusinessType.INSERT) |
|
||||
@PostMapping |
|
||||
public AjaxResult add(@RequestBody DcBusiTargetDraft dcBusiTargetDraft) |
|
||||
{ |
|
||||
return toAjax(dcBusiTargetDraftService.insertDcBusiTargetDraft(dcBusiTargetDraft)); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 修改指标数据底稿 |
|
||||
*/ |
|
||||
@PreAuthorize("@ss.hasPermi('assetData:AssetTargetdraft:edit')") |
|
||||
@Log(title = "指标数据底稿", businessType = BusinessType.UPDATE) |
|
||||
@PutMapping |
|
||||
public AjaxResult edit(@RequestBody DcBusiTargetDraft dcBusiTargetDraft) |
|
||||
{ |
|
||||
return toAjax(dcBusiTargetDraftService.updateDcBusiTargetDraft(dcBusiTargetDraft)); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 删除指标数据底稿 |
|
||||
*/ |
|
||||
@PreAuthorize("@ss.hasPermi('assetData:AssetTargetdraft:remove')") |
|
||||
@Log(title = "指标数据底稿", businessType = BusinessType.DELETE) |
|
||||
@DeleteMapping("/{ids}") |
|
||||
public AjaxResult remove(@PathVariable Long[] ids) |
|
||||
{ |
|
||||
return toAjax(dcBusiTargetDraftService.deleteDcBusiTargetDraftByIds(ids)); |
|
||||
} |
|
||||
} |
|
@ -1,63 +0,0 @@ |
|||||
package com.lzbi.bi.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.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-11-16 |
|
||||
*/ |
|
||||
@Data |
|
||||
@NoArgsConstructor |
|
||||
@AllArgsConstructor |
|
||||
@Accessors(chain = true) |
|
||||
@ApiModel(value = "资产信息表",description = "") |
|
||||
@TableName("dc_base_asset_info") |
|
||||
public class DcBaseAssetInfo extends BaseModuleEntity{ |
|
||||
|
|
||||
/** 资产ID */ |
|
||||
@ApiModelProperty(name = "资产ID",notes = "") |
|
||||
@TableId |
|
||||
private long id ; |
|
||||
/** 资产名称 */ |
|
||||
@ApiModelProperty(name = "资产名称",notes = "") |
|
||||
private String assetName ; |
|
||||
/** 资产编码 */ |
|
||||
@ApiModelProperty(name = "资产编码",notes = "") |
|
||||
private String assetCode ; |
|
||||
/** 资产类别;设备型资产;管理型资产; */ |
|
||||
@ApiModelProperty(name = "资产类别",notes = "设备型资产;管理型资产;") |
|
||||
private String assetClass ; |
|
||||
/** 部门共享;0不共享;1限定部门共享;2所有部门可见 */ |
|
||||
@ApiModelProperty(name = "部门共享",notes = "0不共享;1限定部门共享;2所有部门可见") |
|
||||
private String flagValidateDept ; |
|
||||
/** 角色内共享;0不共享;1限定角色共享;2所有角色可见 */ |
|
||||
@ApiModelProperty(name = "角色内共享",notes = "0不共享;1限定角色共享;2所有角色可见") |
|
||||
private String flagValidateRole ; |
|
||||
/** 用户共享;0不共享;1限定用户共享;2所有用户可见 */ |
|
||||
@ApiModelProperty(name = "用户共享",notes = "0不共享;1限定用户共享;2所有用户可见") |
|
||||
private String flagValidateUser ; |
|
||||
/** 资产状态 */ |
|
||||
@ApiModelProperty(name = "资产状态",notes = "") |
|
||||
private String statusAsset ; |
|
||||
/** 所属公司 */ |
|
||||
@ApiModelProperty(name = "所属公司",notes = "") |
|
||||
private Integer comanyId ; |
|
||||
/** 所属组织结构 */ |
|
||||
@ApiModelProperty(name = "所属组织结构",notes = "") |
|
||||
private Integer deptId ; |
|
||||
/** 生产专业 */ |
|
||||
@ApiModelProperty(name = "生产专业",notes = "") |
|
||||
private String workType ; |
|
||||
|
|
||||
} |
|
@ -1,296 +0,0 @@ |
|||||
package com.lzbi.bi.domain; |
|
||||
|
|
||||
import java.math.BigDecimal; |
|
||||
import java.util.Date; |
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
|
||||
import com.lzbi.common.annotation.Excel; |
|
||||
import com.lzbi.common.core.domain.BaseEntity; |
|
||||
|
|
||||
/** |
|
||||
* 资产指标调整单对象 dc_busi_target_adjust |
|
||||
* |
|
||||
* @author zhousq |
|
||||
* @date 2023-11-23 |
|
||||
*/ |
|
||||
public class DcBusiTargetAdjust extends BaseEntity |
|
||||
{ |
|
||||
private static final long serialVersionUID = 1L; |
|
||||
|
|
||||
/** 租户号 */ |
|
||||
@Excel(name = "租户号") |
|
||||
private String tenantId; |
|
||||
|
|
||||
/** 乐观锁 */ |
|
||||
@Excel(name = "乐观锁") |
|
||||
private Long REVISION; |
|
||||
|
|
||||
/** 创建人 */ |
|
||||
@Excel(name = "创建人") |
|
||||
private String createdBy; |
|
||||
|
|
||||
/** 创建时间 */ |
|
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") |
|
||||
private Date createdTime; |
|
||||
|
|
||||
/** 更新人 */ |
|
||||
@Excel(name = "更新人") |
|
||||
private String updatedBy; |
|
||||
|
|
||||
/** 更新时间 */ |
|
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
|
||||
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd") |
|
||||
private Date updatedTime; |
|
||||
|
|
||||
/** 删除人 */ |
|
||||
@Excel(name = "删除人") |
|
||||
private String deleteBy; |
|
||||
|
|
||||
/** 删除时间 */ |
|
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
|
||||
@Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd") |
|
||||
private Date deleteTime; |
|
||||
|
|
||||
/** 单据号 */ |
|
||||
@Excel(name = "单据号") |
|
||||
private String billSerial; |
|
||||
|
|
||||
/** 单据类别 */ |
|
||||
@Excel(name = "单据类别") |
|
||||
private String biilType; |
|
||||
|
|
||||
/** 指标编码 */ |
|
||||
@Excel(name = "指标编码") |
|
||||
private String targetCode; |
|
||||
|
|
||||
/** 资产ID */ |
|
||||
@Excel(name = "资产ID") |
|
||||
private Long assetId; |
|
||||
|
|
||||
/** 原始值 */ |
|
||||
@Excel(name = "原始值") |
|
||||
private BigDecimal valOrginal; |
|
||||
|
|
||||
/** 调整值 */ |
|
||||
@Excel(name = "调整值") |
|
||||
private BigDecimal valAdjust; |
|
||||
|
|
||||
/** 结果值 */ |
|
||||
@Excel(name = "结果值") |
|
||||
private BigDecimal valResult; |
|
||||
|
|
||||
/** 主键 */ |
|
||||
private Long id; |
|
||||
|
|
||||
/** 调整目标日期 */ |
|
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
|
||||
@Excel(name = "调整目标日期", width = 30, dateFormat = "yyyy-MM-dd") |
|
||||
private Date dateAdjust; |
|
||||
|
|
||||
/** 调整目标时间 */ |
|
||||
@Excel(name = "调整目标时间") |
|
||||
private String hourAdjust; |
|
||||
|
|
||||
/** 调整目标日期字符串 */ |
|
||||
@Excel(name = "调整目标日期字符串") |
|
||||
private String dateAdjustStr; |
|
||||
|
|
||||
public void setTenantId(String tenantId) |
|
||||
{ |
|
||||
this.tenantId = tenantId; |
|
||||
} |
|
||||
|
|
||||
public String getTenantId() |
|
||||
{ |
|
||||
return tenantId; |
|
||||
} |
|
||||
public void setREVISION(Long REVISION) |
|
||||
{ |
|
||||
this.REVISION = REVISION; |
|
||||
} |
|
||||
|
|
||||
public Long getREVISION() |
|
||||
{ |
|
||||
return REVISION; |
|
||||
} |
|
||||
public void setCreatedBy(String createdBy) |
|
||||
{ |
|
||||
this.createdBy = createdBy; |
|
||||
} |
|
||||
|
|
||||
public String getCreatedBy() |
|
||||
{ |
|
||||
return createdBy; |
|
||||
} |
|
||||
public void setCreatedTime(Date createdTime) |
|
||||
{ |
|
||||
this.createdTime = createdTime; |
|
||||
} |
|
||||
|
|
||||
public Date getCreatedTime() |
|
||||
{ |
|
||||
return createdTime; |
|
||||
} |
|
||||
public void setUpdatedBy(String updatedBy) |
|
||||
{ |
|
||||
this.updatedBy = updatedBy; |
|
||||
} |
|
||||
|
|
||||
public String getUpdatedBy() |
|
||||
{ |
|
||||
return updatedBy; |
|
||||
} |
|
||||
public void setUpdatedTime(Date updatedTime) |
|
||||
{ |
|
||||
this.updatedTime = updatedTime; |
|
||||
} |
|
||||
|
|
||||
public Date getUpdatedTime() |
|
||||
{ |
|
||||
return updatedTime; |
|
||||
} |
|
||||
public void setDeleteBy(String deleteBy) |
|
||||
{ |
|
||||
this.deleteBy = deleteBy; |
|
||||
} |
|
||||
|
|
||||
public String getDeleteBy() |
|
||||
{ |
|
||||
return deleteBy; |
|
||||
} |
|
||||
public void setDeleteTime(Date deleteTime) |
|
||||
{ |
|
||||
this.deleteTime = deleteTime; |
|
||||
} |
|
||||
|
|
||||
public Date getDeleteTime() |
|
||||
{ |
|
||||
return deleteTime; |
|
||||
} |
|
||||
public void setBillSerial(String billSerial) |
|
||||
{ |
|
||||
this.billSerial = billSerial; |
|
||||
} |
|
||||
|
|
||||
public String getBillSerial() |
|
||||
{ |
|
||||
return billSerial; |
|
||||
} |
|
||||
public void setBiilType(String biilType) |
|
||||
{ |
|
||||
this.biilType = biilType; |
|
||||
} |
|
||||
|
|
||||
public String getBiilType() |
|
||||
{ |
|
||||
return biilType; |
|
||||
} |
|
||||
public void setTargetCode(String targetCode) |
|
||||
{ |
|
||||
this.targetCode = targetCode; |
|
||||
} |
|
||||
|
|
||||
public String getTargetCode() |
|
||||
{ |
|
||||
return targetCode; |
|
||||
} |
|
||||
public void setAssetId(Long assetId) |
|
||||
{ |
|
||||
this.assetId = assetId; |
|
||||
} |
|
||||
|
|
||||
public Long getAssetId() |
|
||||
{ |
|
||||
return assetId; |
|
||||
} |
|
||||
public void setValOrginal(BigDecimal valOrginal) |
|
||||
{ |
|
||||
this.valOrginal = valOrginal; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getValOrginal() |
|
||||
{ |
|
||||
return valOrginal; |
|
||||
} |
|
||||
public void setValAdjust(BigDecimal valAdjust) |
|
||||
{ |
|
||||
this.valAdjust = valAdjust; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getValAdjust() |
|
||||
{ |
|
||||
return valAdjust; |
|
||||
} |
|
||||
public void setValResult(BigDecimal valResult) |
|
||||
{ |
|
||||
this.valResult = valResult; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getValResult() |
|
||||
{ |
|
||||
return valResult; |
|
||||
} |
|
||||
public void setId(Long id) |
|
||||
{ |
|
||||
this.id = id; |
|
||||
} |
|
||||
|
|
||||
public Long getId() |
|
||||
{ |
|
||||
return id; |
|
||||
} |
|
||||
public void setDateAdjust(Date dateAdjust) |
|
||||
{ |
|
||||
this.dateAdjust = dateAdjust; |
|
||||
} |
|
||||
|
|
||||
public Date getDateAdjust() |
|
||||
{ |
|
||||
return dateAdjust; |
|
||||
} |
|
||||
public void setHourAdjust(String hourAdjust) |
|
||||
{ |
|
||||
this.hourAdjust = hourAdjust; |
|
||||
} |
|
||||
|
|
||||
public String getHourAdjust() |
|
||||
{ |
|
||||
return hourAdjust; |
|
||||
} |
|
||||
public void setDateAdjustStr(String dateAdjustStr) |
|
||||
{ |
|
||||
this.dateAdjustStr = dateAdjustStr; |
|
||||
} |
|
||||
|
|
||||
public String getDateAdjustStr() |
|
||||
{ |
|
||||
return dateAdjustStr; |
|
||||
} |
|
||||
|
|
||||
@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("billSerial", getBillSerial()) |
|
||||
.append("biilType", getBiilType()) |
|
||||
.append("targetCode", getTargetCode()) |
|
||||
.append("assetId", getAssetId()) |
|
||||
.append("valOrginal", getValOrginal()) |
|
||||
.append("valAdjust", getValAdjust()) |
|
||||
.append("valResult", getValResult()) |
|
||||
.append("id", getId()) |
|
||||
.append("dateAdjust", getDateAdjust()) |
|
||||
.append("hourAdjust", getHourAdjust()) |
|
||||
.append("dateAdjustStr", getDateAdjustStr()) |
|
||||
.toString(); |
|
||||
} |
|
||||
} |
|
@ -1,729 +0,0 @@ |
|||||
package com.lzbi.bi.domain; |
|
||||
|
|
||||
import java.math.BigDecimal; |
|
||||
import java.util.Date; |
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
|
||||
import com.lzbi.common.annotation.Excel; |
|
||||
import com.lzbi.common.core.domain.BaseEntity; |
|
||||
|
|
||||
/** |
|
||||
* 指标数据底稿对象 dc_busi_target_draft |
|
||||
* |
|
||||
* @author zhousq |
|
||||
* @date 2023-11-23 |
|
||||
*/ |
|
||||
public class DcBusiTargetDraft extends BaseEntity |
|
||||
{ |
|
||||
private static final long serialVersionUID = 1L; |
|
||||
|
|
||||
/** 租户号 */ |
|
||||
@Excel(name = "租户号") |
|
||||
private String tenantId; |
|
||||
|
|
||||
/** 乐观锁 */ |
|
||||
@Excel(name = "乐观锁") |
|
||||
private Long REVISION; |
|
||||
|
|
||||
/** 创建人 */ |
|
||||
@Excel(name = "创建人") |
|
||||
private String createdBy; |
|
||||
|
|
||||
/** 创建时间 */ |
|
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") |
|
||||
private Date createdTime; |
|
||||
|
|
||||
/** 更新人 */ |
|
||||
@Excel(name = "更新人") |
|
||||
private String updatedBy; |
|
||||
|
|
||||
/** 更新时间 */ |
|
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
|
||||
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd") |
|
||||
private Date updatedTime; |
|
||||
|
|
||||
/** 删除人 */ |
|
||||
@Excel(name = "删除人") |
|
||||
private String deleteBy; |
|
||||
|
|
||||
/** 删除时间 */ |
|
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
|
||||
@Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd") |
|
||||
private Date deleteTime; |
|
||||
|
|
||||
/** 主键 */ |
|
||||
private Long id; |
|
||||
|
|
||||
/** 指标主键 */ |
|
||||
@Excel(name = "指标主键") |
|
||||
private Long targetId; |
|
||||
|
|
||||
/** 指标编码 */ |
|
||||
@Excel(name = "指标编码") |
|
||||
private String targetCode; |
|
||||
|
|
||||
/** 年份 */ |
|
||||
@Excel(name = "年份") |
|
||||
private String countYear; |
|
||||
|
|
||||
/** 月份 */ |
|
||||
@Excel(name = "月份") |
|
||||
private String countMonth; |
|
||||
|
|
||||
/** 日 */ |
|
||||
@Excel(name = "日") |
|
||||
private String countDay; |
|
||||
|
|
||||
/** 1时;[00:00:00,00:59:59] */ |
|
||||
@Excel(name = "1时;[00:00:00,00:59:59]") |
|
||||
private BigDecimal val01; |
|
||||
|
|
||||
/** 2时;[01:00:00,01:59:59] */ |
|
||||
@Excel(name = "2时;[01:00:00,01:59:59]") |
|
||||
private BigDecimal val02; |
|
||||
|
|
||||
/** 3时;[02:00:00,02:59:59] */ |
|
||||
@Excel(name = "3时;[02:00:00,02:59:59]") |
|
||||
private BigDecimal val03; |
|
||||
|
|
||||
/** 4时 */ |
|
||||
@Excel(name = "4时") |
|
||||
private BigDecimal val04; |
|
||||
|
|
||||
/** 5时 */ |
|
||||
@Excel(name = "5时") |
|
||||
private BigDecimal val05; |
|
||||
|
|
||||
/** 6时 */ |
|
||||
@Excel(name = "6时") |
|
||||
private BigDecimal val06; |
|
||||
|
|
||||
/** 7时 */ |
|
||||
@Excel(name = "7时") |
|
||||
private BigDecimal val07; |
|
||||
|
|
||||
/** 8时 */ |
|
||||
@Excel(name = "8时") |
|
||||
private BigDecimal val08; |
|
||||
|
|
||||
/** 9时 */ |
|
||||
@Excel(name = "9时") |
|
||||
private BigDecimal val09; |
|
||||
|
|
||||
/** 10时 */ |
|
||||
@Excel(name = "10时") |
|
||||
private BigDecimal val10; |
|
||||
|
|
||||
/** 11时 */ |
|
||||
@Excel(name = "11时") |
|
||||
private BigDecimal val11; |
|
||||
|
|
||||
/** 12时 */ |
|
||||
@Excel(name = "12时") |
|
||||
private BigDecimal val12; |
|
||||
|
|
||||
/** 13时 */ |
|
||||
@Excel(name = "13时") |
|
||||
private BigDecimal val13; |
|
||||
|
|
||||
/** 14时 */ |
|
||||
@Excel(name = "14时") |
|
||||
private BigDecimal val14; |
|
||||
|
|
||||
/** 15时 */ |
|
||||
@Excel(name = "15时") |
|
||||
private BigDecimal val15; |
|
||||
|
|
||||
/** 16时 */ |
|
||||
@Excel(name = "16时") |
|
||||
private BigDecimal val16; |
|
||||
|
|
||||
/** 17时 */ |
|
||||
@Excel(name = "17时") |
|
||||
private BigDecimal val17; |
|
||||
|
|
||||
/** 18时 */ |
|
||||
@Excel(name = "18时") |
|
||||
private BigDecimal val18; |
|
||||
|
|
||||
/** 18时 */ |
|
||||
@Excel(name = "18时") |
|
||||
private BigDecimal val19; |
|
||||
|
|
||||
/** 20时 */ |
|
||||
@Excel(name = "20时") |
|
||||
private BigDecimal val20; |
|
||||
|
|
||||
/** 21时 */ |
|
||||
@Excel(name = "21时") |
|
||||
private BigDecimal val21; |
|
||||
|
|
||||
/** 22时 */ |
|
||||
@Excel(name = "22时") |
|
||||
private BigDecimal val22; |
|
||||
|
|
||||
/** 23时 */ |
|
||||
@Excel(name = "23时") |
|
||||
private BigDecimal val23; |
|
||||
|
|
||||
/** 24时 */ |
|
||||
@Excel(name = "24时") |
|
||||
private BigDecimal val24; |
|
||||
|
|
||||
/** 公司 */ |
|
||||
@Excel(name = "公司") |
|
||||
private String companyCode; |
|
||||
|
|
||||
/** 公司名称 */ |
|
||||
@Excel(name = "公司名称") |
|
||||
private String companyName; |
|
||||
|
|
||||
/** 组织机构代码 */ |
|
||||
@Excel(name = "组织机构代码") |
|
||||
private String orgCode; |
|
||||
|
|
||||
/** 组织机构名称 */ |
|
||||
@Excel(name = "组织机构名称") |
|
||||
private String orgName; |
|
||||
|
|
||||
/** 生产专业 */ |
|
||||
@Excel(name = "生产专业") |
|
||||
private String workType; |
|
||||
|
|
||||
/** 统计单元名称 */ |
|
||||
@Excel(name = "统计单元名称") |
|
||||
private String countUnitName; |
|
||||
|
|
||||
/** 资产ID */ |
|
||||
@Excel(name = "资产ID") |
|
||||
private Long assetId; |
|
||||
|
|
||||
/** 上线 */ |
|
||||
@Excel(name = "上线") |
|
||||
private BigDecimal valUpLimit; |
|
||||
|
|
||||
/** 下线 */ |
|
||||
@Excel(name = "下线") |
|
||||
private BigDecimal valDownLimit; |
|
||||
|
|
||||
/** 均值 */ |
|
||||
@Excel(name = "均值") |
|
||||
private BigDecimal valAvg; |
|
||||
|
|
||||
/** 合值 */ |
|
||||
@Excel(name = "合值") |
|
||||
private BigDecimal valTotal; |
|
||||
|
|
||||
/** 积算 */ |
|
||||
@Excel(name = "积算") |
|
||||
private BigDecimal valCompute; |
|
||||
|
|
||||
public void setTenantId(String tenantId) |
|
||||
{ |
|
||||
this.tenantId = tenantId; |
|
||||
} |
|
||||
|
|
||||
public String getTenantId() |
|
||||
{ |
|
||||
return tenantId; |
|
||||
} |
|
||||
public void setREVISION(Long REVISION) |
|
||||
{ |
|
||||
this.REVISION = REVISION; |
|
||||
} |
|
||||
|
|
||||
public Long getREVISION() |
|
||||
{ |
|
||||
return REVISION; |
|
||||
} |
|
||||
public void setCreatedBy(String createdBy) |
|
||||
{ |
|
||||
this.createdBy = createdBy; |
|
||||
} |
|
||||
|
|
||||
public String getCreatedBy() |
|
||||
{ |
|
||||
return createdBy; |
|
||||
} |
|
||||
public void setCreatedTime(Date createdTime) |
|
||||
{ |
|
||||
this.createdTime = createdTime; |
|
||||
} |
|
||||
|
|
||||
public Date getCreatedTime() |
|
||||
{ |
|
||||
return createdTime; |
|
||||
} |
|
||||
public void setUpdatedBy(String updatedBy) |
|
||||
{ |
|
||||
this.updatedBy = updatedBy; |
|
||||
} |
|
||||
|
|
||||
public String getUpdatedBy() |
|
||||
{ |
|
||||
return updatedBy; |
|
||||
} |
|
||||
public void setUpdatedTime(Date updatedTime) |
|
||||
{ |
|
||||
this.updatedTime = updatedTime; |
|
||||
} |
|
||||
|
|
||||
public Date getUpdatedTime() |
|
||||
{ |
|
||||
return updatedTime; |
|
||||
} |
|
||||
public void setDeleteBy(String deleteBy) |
|
||||
{ |
|
||||
this.deleteBy = deleteBy; |
|
||||
} |
|
||||
|
|
||||
public String getDeleteBy() |
|
||||
{ |
|
||||
return deleteBy; |
|
||||
} |
|
||||
public void setDeleteTime(Date deleteTime) |
|
||||
{ |
|
||||
this.deleteTime = deleteTime; |
|
||||
} |
|
||||
|
|
||||
public Date getDeleteTime() |
|
||||
{ |
|
||||
return deleteTime; |
|
||||
} |
|
||||
public void setId(Long id) |
|
||||
{ |
|
||||
this.id = id; |
|
||||
} |
|
||||
|
|
||||
public Long getId() |
|
||||
{ |
|
||||
return id; |
|
||||
} |
|
||||
public void setTargetId(Long targetId) |
|
||||
{ |
|
||||
this.targetId = targetId; |
|
||||
} |
|
||||
|
|
||||
public Long getTargetId() |
|
||||
{ |
|
||||
return targetId; |
|
||||
} |
|
||||
public void setTargetCode(String targetCode) |
|
||||
{ |
|
||||
this.targetCode = targetCode; |
|
||||
} |
|
||||
|
|
||||
public String getTargetCode() |
|
||||
{ |
|
||||
return targetCode; |
|
||||
} |
|
||||
public void setCountYear(String countYear) |
|
||||
{ |
|
||||
this.countYear = countYear; |
|
||||
} |
|
||||
|
|
||||
public String getCountYear() |
|
||||
{ |
|
||||
return countYear; |
|
||||
} |
|
||||
public void setCountMonth(String countMonth) |
|
||||
{ |
|
||||
this.countMonth = countMonth; |
|
||||
} |
|
||||
|
|
||||
public String getCountMonth() |
|
||||
{ |
|
||||
return countMonth; |
|
||||
} |
|
||||
public void setCountDay(String countDay) |
|
||||
{ |
|
||||
this.countDay = countDay; |
|
||||
} |
|
||||
|
|
||||
public String getCountDay() |
|
||||
{ |
|
||||
return countDay; |
|
||||
} |
|
||||
public void setVal01(BigDecimal val01) |
|
||||
{ |
|
||||
this.val01 = val01; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal01() |
|
||||
{ |
|
||||
return val01; |
|
||||
} |
|
||||
public void setVal02(BigDecimal val02) |
|
||||
{ |
|
||||
this.val02 = val02; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal02() |
|
||||
{ |
|
||||
return val02; |
|
||||
} |
|
||||
public void setVal03(BigDecimal val03) |
|
||||
{ |
|
||||
this.val03 = val03; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal03() |
|
||||
{ |
|
||||
return val03; |
|
||||
} |
|
||||
public void setVal04(BigDecimal val04) |
|
||||
{ |
|
||||
this.val04 = val04; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal04() |
|
||||
{ |
|
||||
return val04; |
|
||||
} |
|
||||
public void setVal05(BigDecimal val05) |
|
||||
{ |
|
||||
this.val05 = val05; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal05() |
|
||||
{ |
|
||||
return val05; |
|
||||
} |
|
||||
public void setVal06(BigDecimal val06) |
|
||||
{ |
|
||||
this.val06 = val06; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal06() |
|
||||
{ |
|
||||
return val06; |
|
||||
} |
|
||||
public void setVal07(BigDecimal val07) |
|
||||
{ |
|
||||
this.val07 = val07; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal07() |
|
||||
{ |
|
||||
return val07; |
|
||||
} |
|
||||
public void setVal08(BigDecimal val08) |
|
||||
{ |
|
||||
this.val08 = val08; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal08() |
|
||||
{ |
|
||||
return val08; |
|
||||
} |
|
||||
public void setVal09(BigDecimal val09) |
|
||||
{ |
|
||||
this.val09 = val09; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal09() |
|
||||
{ |
|
||||
return val09; |
|
||||
} |
|
||||
public void setVal10(BigDecimal val10) |
|
||||
{ |
|
||||
this.val10 = val10; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal10() |
|
||||
{ |
|
||||
return val10; |
|
||||
} |
|
||||
public void setVal11(BigDecimal val11) |
|
||||
{ |
|
||||
this.val11 = val11; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal11() |
|
||||
{ |
|
||||
return val11; |
|
||||
} |
|
||||
public void setVal12(BigDecimal val12) |
|
||||
{ |
|
||||
this.val12 = val12; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal12() |
|
||||
{ |
|
||||
return val12; |
|
||||
} |
|
||||
public void setVal13(BigDecimal val13) |
|
||||
{ |
|
||||
this.val13 = val13; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal13() |
|
||||
{ |
|
||||
return val13; |
|
||||
} |
|
||||
public void setVal14(BigDecimal val14) |
|
||||
{ |
|
||||
this.val14 = val14; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal14() |
|
||||
{ |
|
||||
return val14; |
|
||||
} |
|
||||
public void setVal15(BigDecimal val15) |
|
||||
{ |
|
||||
this.val15 = val15; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal15() |
|
||||
{ |
|
||||
return val15; |
|
||||
} |
|
||||
public void setVal16(BigDecimal val16) |
|
||||
{ |
|
||||
this.val16 = val16; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal16() |
|
||||
{ |
|
||||
return val16; |
|
||||
} |
|
||||
public void setVal17(BigDecimal val17) |
|
||||
{ |
|
||||
this.val17 = val17; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal17() |
|
||||
{ |
|
||||
return val17; |
|
||||
} |
|
||||
public void setVal18(BigDecimal val18) |
|
||||
{ |
|
||||
this.val18 = val18; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal18() |
|
||||
{ |
|
||||
return val18; |
|
||||
} |
|
||||
public void setVal19(BigDecimal val19) |
|
||||
{ |
|
||||
this.val19 = val19; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal19() |
|
||||
{ |
|
||||
return val19; |
|
||||
} |
|
||||
public void setVal20(BigDecimal val20) |
|
||||
{ |
|
||||
this.val20 = val20; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal20() |
|
||||
{ |
|
||||
return val20; |
|
||||
} |
|
||||
public void setVal21(BigDecimal val21) |
|
||||
{ |
|
||||
this.val21 = val21; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal21() |
|
||||
{ |
|
||||
return val21; |
|
||||
} |
|
||||
public void setVal22(BigDecimal val22) |
|
||||
{ |
|
||||
this.val22 = val22; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal22() |
|
||||
{ |
|
||||
return val22; |
|
||||
} |
|
||||
public void setVal23(BigDecimal val23) |
|
||||
{ |
|
||||
this.val23 = val23; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal23() |
|
||||
{ |
|
||||
return val23; |
|
||||
} |
|
||||
public void setVal24(BigDecimal val24) |
|
||||
{ |
|
||||
this.val24 = val24; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getVal24() |
|
||||
{ |
|
||||
return val24; |
|
||||
} |
|
||||
public void setCompanyCode(String companyCode) |
|
||||
{ |
|
||||
this.companyCode = companyCode; |
|
||||
} |
|
||||
|
|
||||
public String getCompanyCode() |
|
||||
{ |
|
||||
return companyCode; |
|
||||
} |
|
||||
public void setCompanyName(String companyName) |
|
||||
{ |
|
||||
this.companyName = companyName; |
|
||||
} |
|
||||
|
|
||||
public String getCompanyName() |
|
||||
{ |
|
||||
return companyName; |
|
||||
} |
|
||||
public void setOrgCode(String orgCode) |
|
||||
{ |
|
||||
this.orgCode = orgCode; |
|
||||
} |
|
||||
|
|
||||
public String getOrgCode() |
|
||||
{ |
|
||||
return orgCode; |
|
||||
} |
|
||||
public void setOrgName(String orgName) |
|
||||
{ |
|
||||
this.orgName = orgName; |
|
||||
} |
|
||||
|
|
||||
public String getOrgName() |
|
||||
{ |
|
||||
return orgName; |
|
||||
} |
|
||||
public void setWorkType(String workType) |
|
||||
{ |
|
||||
this.workType = workType; |
|
||||
} |
|
||||
|
|
||||
public String getWorkType() |
|
||||
{ |
|
||||
return workType; |
|
||||
} |
|
||||
public void setCountUnitName(String countUnitName) |
|
||||
{ |
|
||||
this.countUnitName = countUnitName; |
|
||||
} |
|
||||
|
|
||||
public String getCountUnitName() |
|
||||
{ |
|
||||
return countUnitName; |
|
||||
} |
|
||||
public void setAssetId(Long assetId) |
|
||||
{ |
|
||||
this.assetId = assetId; |
|
||||
} |
|
||||
|
|
||||
public Long getAssetId() |
|
||||
{ |
|
||||
return assetId; |
|
||||
} |
|
||||
public void setValUpLimit(BigDecimal valUpLimit) |
|
||||
{ |
|
||||
this.valUpLimit = valUpLimit; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getValUpLimit() |
|
||||
{ |
|
||||
return valUpLimit; |
|
||||
} |
|
||||
public void setValDownLimit(BigDecimal valDownLimit) |
|
||||
{ |
|
||||
this.valDownLimit = valDownLimit; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getValDownLimit() |
|
||||
{ |
|
||||
return valDownLimit; |
|
||||
} |
|
||||
public void setValAvg(BigDecimal valAvg) |
|
||||
{ |
|
||||
this.valAvg = valAvg; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getValAvg() |
|
||||
{ |
|
||||
return valAvg; |
|
||||
} |
|
||||
public void setValTotal(BigDecimal valTotal) |
|
||||
{ |
|
||||
this.valTotal = valTotal; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getValTotal() |
|
||||
{ |
|
||||
return valTotal; |
|
||||
} |
|
||||
public void setValCompute(BigDecimal valCompute) |
|
||||
{ |
|
||||
this.valCompute = valCompute; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getValCompute() |
|
||||
{ |
|
||||
return valCompute; |
|
||||
} |
|
||||
|
|
||||
@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("targetId", getTargetId()) |
|
||||
.append("targetCode", getTargetCode()) |
|
||||
.append("countYear", getCountYear()) |
|
||||
.append("countMonth", getCountMonth()) |
|
||||
.append("countDay", getCountDay()) |
|
||||
.append("val01", getVal01()) |
|
||||
.append("val02", getVal02()) |
|
||||
.append("val03", getVal03()) |
|
||||
.append("val04", getVal04()) |
|
||||
.append("val05", getVal05()) |
|
||||
.append("val06", getVal06()) |
|
||||
.append("val07", getVal07()) |
|
||||
.append("val08", getVal08()) |
|
||||
.append("val09", getVal09()) |
|
||||
.append("val10", getVal10()) |
|
||||
.append("val11", getVal11()) |
|
||||
.append("val12", getVal12()) |
|
||||
.append("val13", getVal13()) |
|
||||
.append("val14", getVal14()) |
|
||||
.append("val15", getVal15()) |
|
||||
.append("val16", getVal16()) |
|
||||
.append("val17", getVal17()) |
|
||||
.append("val18", getVal18()) |
|
||||
.append("val19", getVal19()) |
|
||||
.append("val20", getVal20()) |
|
||||
.append("val21", getVal21()) |
|
||||
.append("val22", getVal22()) |
|
||||
.append("val23", getVal23()) |
|
||||
.append("val24", getVal24()) |
|
||||
.append("companyCode", getCompanyCode()) |
|
||||
.append("companyName", getCompanyName()) |
|
||||
.append("orgCode", getOrgCode()) |
|
||||
.append("orgName", getOrgName()) |
|
||||
.append("workType", getWorkType()) |
|
||||
.append("countUnitName", getCountUnitName()) |
|
||||
.append("assetId", getAssetId()) |
|
||||
.append("valUpLimit", getValUpLimit()) |
|
||||
.append("valDownLimit", getValDownLimit()) |
|
||||
.append("valAvg", getValAvg()) |
|
||||
.append("valTotal", getValTotal()) |
|
||||
.append("valCompute", getValCompute()) |
|
||||
.toString(); |
|
||||
} |
|
||||
} |
|
@ -1,17 +0,0 @@ |
|||||
package com.lzbi.bi.mapper; |
|
||||
|
|
||||
import com.baomidou.mybatisplus.annotation.InterceptorIgnore; |
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|
||||
import com.lzbi.bi.domain.DcBaseAssetInfo; |
|
||||
import java.util.List; |
|
||||
|
|
||||
/** |
|
||||
* 资产信息表;(dc_base_asset_info)表数据库访问层 |
|
||||
* @author : zhousq |
|
||||
* @date : 2023-11-16 |
|
||||
*/ |
|
||||
@InterceptorIgnore(tenantLine = "true") |
|
||||
public interface DcBaseAssetInfoMapper extends BaseMapper<DcBaseAssetInfo>{ |
|
||||
List<DcBaseAssetInfo> selectByVo( DcBaseAssetInfo beanVo); |
|
||||
int insertByVo( DcBaseAssetInfo beanVo); |
|
||||
} |
|
@ -1,61 +0,0 @@ |
|||||
package com.lzbi.bi.mapper; |
|
||||
|
|
||||
import java.util.List; |
|
||||
import com.lzbi.bi.domain.DcBusiTargetAdjust; |
|
||||
|
|
||||
/** |
|
||||
* 资产指标调整单Mapper接口 |
|
||||
* |
|
||||
* @author zhousq |
|
||||
* @date 2023-11-23 |
|
||||
*/ |
|
||||
public interface DcBusiTargetAdjustMapper |
|
||||
{ |
|
||||
/** |
|
||||
* 查询资产指标调整单 |
|
||||
* |
|
||||
* @param id 资产指标调整单主键 |
|
||||
* @return 资产指标调整单 |
|
||||
*/ |
|
||||
public DcBusiTargetAdjust selectDcBusiTargetAdjustById(Long id); |
|
||||
|
|
||||
/** |
|
||||
* 查询资产指标调整单列表 |
|
||||
* |
|
||||
* @param dcBusiTargetAdjust 资产指标调整单 |
|
||||
* @return 资产指标调整单集合 |
|
||||
*/ |
|
||||
public List<DcBusiTargetAdjust> selectDcBusiTargetAdjustList(DcBusiTargetAdjust dcBusiTargetAdjust); |
|
||||
|
|
||||
/** |
|
||||
* 新增资产指标调整单 |
|
||||
* |
|
||||
* @param dcBusiTargetAdjust 资产指标调整单 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int insertDcBusiTargetAdjust(DcBusiTargetAdjust dcBusiTargetAdjust); |
|
||||
|
|
||||
/** |
|
||||
* 修改资产指标调整单 |
|
||||
* |
|
||||
* @param dcBusiTargetAdjust 资产指标调整单 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int updateDcBusiTargetAdjust(DcBusiTargetAdjust dcBusiTargetAdjust); |
|
||||
|
|
||||
/** |
|
||||
* 删除资产指标调整单 |
|
||||
* |
|
||||
* @param id 资产指标调整单主键 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int deleteDcBusiTargetAdjustById(Long id); |
|
||||
|
|
||||
/** |
|
||||
* 批量删除资产指标调整单 |
|
||||
* |
|
||||
* @param ids 需要删除的数据主键集合 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int deleteDcBusiTargetAdjustByIds(Long[] ids); |
|
||||
} |
|
@ -1,61 +0,0 @@ |
|||||
package com.lzbi.bi.mapper; |
|
||||
|
|
||||
import java.util.List; |
|
||||
import com.lzbi.bi.domain.DcBusiTargetDraft; |
|
||||
|
|
||||
/** |
|
||||
* 指标数据底稿Mapper接口 |
|
||||
* |
|
||||
* @author zhousq |
|
||||
* @date 2023-11-23 |
|
||||
*/ |
|
||||
public interface DcBusiTargetDraftMapper |
|
||||
{ |
|
||||
/** |
|
||||
* 查询指标数据底稿 |
|
||||
* |
|
||||
* @param id 指标数据底稿主键 |
|
||||
* @return 指标数据底稿 |
|
||||
*/ |
|
||||
public DcBusiTargetDraft selectDcBusiTargetDraftById(Long id); |
|
||||
|
|
||||
/** |
|
||||
* 查询指标数据底稿列表 |
|
||||
* |
|
||||
* @param dcBusiTargetDraft 指标数据底稿 |
|
||||
* @return 指标数据底稿集合 |
|
||||
*/ |
|
||||
public List<DcBusiTargetDraft> selectDcBusiTargetDraftList(DcBusiTargetDraft dcBusiTargetDraft); |
|
||||
|
|
||||
/** |
|
||||
* 新增指标数据底稿 |
|
||||
* |
|
||||
* @param dcBusiTargetDraft 指标数据底稿 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int insertDcBusiTargetDraft(DcBusiTargetDraft dcBusiTargetDraft); |
|
||||
|
|
||||
/** |
|
||||
* 修改指标数据底稿 |
|
||||
* |
|
||||
* @param dcBusiTargetDraft 指标数据底稿 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int updateDcBusiTargetDraft(DcBusiTargetDraft dcBusiTargetDraft); |
|
||||
|
|
||||
/** |
|
||||
* 删除指标数据底稿 |
|
||||
* |
|
||||
* @param id 指标数据底稿主键 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int deleteDcBusiTargetDraftById(Long id); |
|
||||
|
|
||||
/** |
|
||||
* 批量删除指标数据底稿 |
|
||||
* |
|
||||
* @param ids 需要删除的数据主键集合 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int deleteDcBusiTargetDraftByIds(Long[] ids); |
|
||||
} |
|
@ -1,25 +0,0 @@ |
|||||
package com.lzbi.bi.service; |
|
||||
|
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
||||
import com.lzbi.bi.mapper.DcBusiTargetAdjustMapper; |
|
||||
import org.springframework.stereotype.Service; |
|
||||
import com.lzbi.bi.domain.DcBusiTargetAdjust; |
|
||||
import java.util.List; |
|
||||
|
|
||||
/** |
|
||||
* 资产指标调整单;(dc_busi_target_adjust)表服务接口 |
|
||||
* @author : zhousq |
|
||||
* @date : 2023-11-16 |
|
||||
*/ |
|
||||
@Service |
|
||||
public class DcBusiTargetAdjustService extends ServiceImpl<DcBusiTargetAdjustMapper, DcBusiTargetAdjust> implements IService<DcBusiTargetAdjust> { |
|
||||
|
|
||||
public List<DcBusiTargetAdjust> selectByVo( DcBusiTargetAdjust dcBusiTargetAdjust){ |
|
||||
return baseMapper.selectByVo(dcBusiTargetAdjust); |
|
||||
} |
|
||||
public int insertByVo( DcBusiTargetAdjust dcBusiTargetAdjust){ |
|
||||
return baseMapper.insertByVo(dcBusiTargetAdjust); |
|
||||
} |
|
||||
|
|
||||
} |
|
@ -1,25 +0,0 @@ |
|||||
package com.lzbi.bi.service; |
|
||||
|
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
||||
import com.lzbi.bi.mapper.DcBusiTargetDraftMapper; |
|
||||
import org.springframework.stereotype.Service; |
|
||||
import com.lzbi.bi.domain.DcBusiTargetDraft; |
|
||||
import java.util.List; |
|
||||
|
|
||||
/** |
|
||||
* 指标数据底稿表;(dc_busi_target_draft)表服务接口 |
|
||||
* @author : zhousq |
|
||||
* @date : 2023-11-16 |
|
||||
*/ |
|
||||
@Service |
|
||||
public class DcBusiTargetDraftService extends ServiceImpl<DcBusiTargetDraftMapper, DcBusiTargetDraft> implements IService<DcBusiTargetDraft> { |
|
||||
|
|
||||
public List<DcBusiTargetDraft> selectByVo( DcBusiTargetDraft dcBusiTargetDraft){ |
|
||||
return baseMapper.selectByVo(dcBusiTargetDraft); |
|
||||
} |
|
||||
public int insertByVo( DcBusiTargetDraft dcBusiTargetDraft){ |
|
||||
return baseMapper.insertByVo(dcBusiTargetDraft); |
|
||||
} |
|
||||
|
|
||||
} |
|
@ -1,61 +0,0 @@ |
|||||
package com.lzbi.bi.service; |
|
||||
|
|
||||
import java.util.List; |
|
||||
import com.lzbi.bi.domain.DcBusiTargetAdjust; |
|
||||
|
|
||||
/** |
|
||||
* 资产指标调整单Service接口 |
|
||||
* |
|
||||
* @author zhousq |
|
||||
* @date 2023-11-23 |
|
||||
*/ |
|
||||
public interface IDcBusiTargetAdjustService |
|
||||
{ |
|
||||
/** |
|
||||
* 查询资产指标调整单 |
|
||||
* |
|
||||
* @param id 资产指标调整单主键 |
|
||||
* @return 资产指标调整单 |
|
||||
*/ |
|
||||
public DcBusiTargetAdjust selectDcBusiTargetAdjustById(Long id); |
|
||||
|
|
||||
/** |
|
||||
* 查询资产指标调整单列表 |
|
||||
* |
|
||||
* @param dcBusiTargetAdjust 资产指标调整单 |
|
||||
* @return 资产指标调整单集合 |
|
||||
*/ |
|
||||
public List<DcBusiTargetAdjust> selectDcBusiTargetAdjustList(DcBusiTargetAdjust dcBusiTargetAdjust); |
|
||||
|
|
||||
/** |
|
||||
* 新增资产指标调整单 |
|
||||
* |
|
||||
* @param dcBusiTargetAdjust 资产指标调整单 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int insertDcBusiTargetAdjust(DcBusiTargetAdjust dcBusiTargetAdjust); |
|
||||
|
|
||||
/** |
|
||||
* 修改资产指标调整单 |
|
||||
* |
|
||||
* @param dcBusiTargetAdjust 资产指标调整单 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int updateDcBusiTargetAdjust(DcBusiTargetAdjust dcBusiTargetAdjust); |
|
||||
|
|
||||
/** |
|
||||
* 批量删除资产指标调整单 |
|
||||
* |
|
||||
* @param ids 需要删除的资产指标调整单主键集合 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int deleteDcBusiTargetAdjustByIds(Long[] ids); |
|
||||
|
|
||||
/** |
|
||||
* 删除资产指标调整单信息 |
|
||||
* |
|
||||
* @param id 资产指标调整单主键 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int deleteDcBusiTargetAdjustById(Long id); |
|
||||
} |
|
@ -1,61 +0,0 @@ |
|||||
package com.lzbi.bi.service; |
|
||||
|
|
||||
import java.util.List; |
|
||||
import com.lzbi.bi.domain.DcBusiTargetDraft; |
|
||||
|
|
||||
/** |
|
||||
* 指标数据底稿Service接口 |
|
||||
* |
|
||||
* @author zhousq |
|
||||
* @date 2023-11-23 |
|
||||
*/ |
|
||||
public interface IDcBusiTargetDraftService |
|
||||
{ |
|
||||
/** |
|
||||
* 查询指标数据底稿 |
|
||||
* |
|
||||
* @param id 指标数据底稿主键 |
|
||||
* @return 指标数据底稿 |
|
||||
*/ |
|
||||
public DcBusiTargetDraft selectDcBusiTargetDraftById(Long id); |
|
||||
|
|
||||
/** |
|
||||
* 查询指标数据底稿列表 |
|
||||
* |
|
||||
* @param dcBusiTargetDraft 指标数据底稿 |
|
||||
* @return 指标数据底稿集合 |
|
||||
*/ |
|
||||
public List<DcBusiTargetDraft> selectDcBusiTargetDraftList(DcBusiTargetDraft dcBusiTargetDraft); |
|
||||
|
|
||||
/** |
|
||||
* 新增指标数据底稿 |
|
||||
* |
|
||||
* @param dcBusiTargetDraft 指标数据底稿 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int insertDcBusiTargetDraft(DcBusiTargetDraft dcBusiTargetDraft); |
|
||||
|
|
||||
/** |
|
||||
* 修改指标数据底稿 |
|
||||
* |
|
||||
* @param dcBusiTargetDraft 指标数据底稿 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int updateDcBusiTargetDraft(DcBusiTargetDraft dcBusiTargetDraft); |
|
||||
|
|
||||
/** |
|
||||
* 批量删除指标数据底稿 |
|
||||
* |
|
||||
* @param ids 需要删除的指标数据底稿主键集合 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int deleteDcBusiTargetDraftByIds(Long[] ids); |
|
||||
|
|
||||
/** |
|
||||
* 删除指标数据底稿信息 |
|
||||
* |
|
||||
* @param id 指标数据底稿主键 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int deleteDcBusiTargetDraftById(Long id); |
|
||||
} |
|
@ -1,93 +0,0 @@ |
|||||
package com.lzbi.bi.service.impl; |
|
||||
|
|
||||
import java.util.List; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.stereotype.Service; |
|
||||
import com.lzbi.bi.mapper.DcBusiTargetAdjustMapper; |
|
||||
import com.lzbi.bi.domain.DcBusiTargetAdjust; |
|
||||
import com.lzbi.bi.service.IDcBusiTargetAdjustService; |
|
||||
|
|
||||
/** |
|
||||
* 资产指标调整单Service业务层处理 |
|
||||
* |
|
||||
* @author zhousq |
|
||||
* @date 2023-11-23 |
|
||||
*/ |
|
||||
@Service |
|
||||
public class DcBusiTargetAdjustServiceImpl implements IDcBusiTargetAdjustService |
|
||||
{ |
|
||||
@Autowired |
|
||||
private DcBusiTargetAdjustMapper dcBusiTargetAdjustMapper; |
|
||||
|
|
||||
/** |
|
||||
* 查询资产指标调整单 |
|
||||
* |
|
||||
* @param id 资产指标调整单主键 |
|
||||
* @return 资产指标调整单 |
|
||||
*/ |
|
||||
@Override |
|
||||
public DcBusiTargetAdjust selectDcBusiTargetAdjustById(Long id) |
|
||||
{ |
|
||||
return dcBusiTargetAdjustMapper.selectDcBusiTargetAdjustById(id); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 查询资产指标调整单列表 |
|
||||
* |
|
||||
* @param dcBusiTargetAdjust 资产指标调整单 |
|
||||
* @return 资产指标调整单 |
|
||||
*/ |
|
||||
@Override |
|
||||
public List<DcBusiTargetAdjust> selectDcBusiTargetAdjustList(DcBusiTargetAdjust dcBusiTargetAdjust) |
|
||||
{ |
|
||||
return dcBusiTargetAdjustMapper.selectDcBusiTargetAdjustList(dcBusiTargetAdjust); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 新增资产指标调整单 |
|
||||
* |
|
||||
* @param dcBusiTargetAdjust 资产指标调整单 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
@Override |
|
||||
public int insertDcBusiTargetAdjust(DcBusiTargetAdjust dcBusiTargetAdjust) |
|
||||
{ |
|
||||
return dcBusiTargetAdjustMapper.insertDcBusiTargetAdjust(dcBusiTargetAdjust); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 修改资产指标调整单 |
|
||||
* |
|
||||
* @param dcBusiTargetAdjust 资产指标调整单 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
@Override |
|
||||
public int updateDcBusiTargetAdjust(DcBusiTargetAdjust dcBusiTargetAdjust) |
|
||||
{ |
|
||||
return dcBusiTargetAdjustMapper.updateDcBusiTargetAdjust(dcBusiTargetAdjust); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 批量删除资产指标调整单 |
|
||||
* |
|
||||
* @param ids 需要删除的资产指标调整单主键 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
@Override |
|
||||
public int deleteDcBusiTargetAdjustByIds(Long[] ids) |
|
||||
{ |
|
||||
return dcBusiTargetAdjustMapper.deleteDcBusiTargetAdjustByIds(ids); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 删除资产指标调整单信息 |
|
||||
* |
|
||||
* @param id 资产指标调整单主键 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
@Override |
|
||||
public int deleteDcBusiTargetAdjustById(Long id) |
|
||||
{ |
|
||||
return dcBusiTargetAdjustMapper.deleteDcBusiTargetAdjustById(id); |
|
||||
} |
|
||||
} |
|
@ -1,93 +0,0 @@ |
|||||
package com.lzbi.bi.service.impl; |
|
||||
|
|
||||
import java.util.List; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.stereotype.Service; |
|
||||
import com.lzbi.bi.mapper.DcBusiTargetDraftMapper; |
|
||||
import com.lzbi.bi.domain.DcBusiTargetDraft; |
|
||||
import com.lzbi.bi.service.IDcBusiTargetDraftService; |
|
||||
|
|
||||
/** |
|
||||
* 指标数据底稿Service业务层处理 |
|
||||
* |
|
||||
* @author zhousq |
|
||||
* @date 2023-11-23 |
|
||||
*/ |
|
||||
@Service |
|
||||
public class DcBusiTargetDraftServiceImpl implements IDcBusiTargetDraftService |
|
||||
{ |
|
||||
@Autowired |
|
||||
private DcBusiTargetDraftMapper dcBusiTargetDraftMapper; |
|
||||
|
|
||||
/** |
|
||||
* 查询指标数据底稿 |
|
||||
* |
|
||||
* @param id 指标数据底稿主键 |
|
||||
* @return 指标数据底稿 |
|
||||
*/ |
|
||||
@Override |
|
||||
public DcBusiTargetDraft selectDcBusiTargetDraftById(Long id) |
|
||||
{ |
|
||||
return dcBusiTargetDraftMapper.selectDcBusiTargetDraftById(id); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 查询指标数据底稿列表 |
|
||||
* |
|
||||
* @param dcBusiTargetDraft 指标数据底稿 |
|
||||
* @return 指标数据底稿 |
|
||||
*/ |
|
||||
@Override |
|
||||
public List<DcBusiTargetDraft> selectDcBusiTargetDraftList(DcBusiTargetDraft dcBusiTargetDraft) |
|
||||
{ |
|
||||
return dcBusiTargetDraftMapper.selectDcBusiTargetDraftList(dcBusiTargetDraft); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 新增指标数据底稿 |
|
||||
* |
|
||||
* @param dcBusiTargetDraft 指标数据底稿 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
@Override |
|
||||
public int insertDcBusiTargetDraft(DcBusiTargetDraft dcBusiTargetDraft) |
|
||||
{ |
|
||||
return dcBusiTargetDraftMapper.insertDcBusiTargetDraft(dcBusiTargetDraft); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 修改指标数据底稿 |
|
||||
* |
|
||||
* @param dcBusiTargetDraft 指标数据底稿 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
@Override |
|
||||
public int updateDcBusiTargetDraft(DcBusiTargetDraft dcBusiTargetDraft) |
|
||||
{ |
|
||||
return dcBusiTargetDraftMapper.updateDcBusiTargetDraft(dcBusiTargetDraft); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 批量删除指标数据底稿 |
|
||||
* |
|
||||
* @param ids 需要删除的指标数据底稿主键 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
@Override |
|
||||
public int deleteDcBusiTargetDraftByIds(Long[] ids) |
|
||||
{ |
|
||||
return dcBusiTargetDraftMapper.deleteDcBusiTargetDraftByIds(ids); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 删除指标数据底稿信息 |
|
||||
* |
|
||||
* @param id 指标数据底稿主键 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
@Override |
|
||||
public int deleteDcBusiTargetDraftById(Long id) |
|
||||
{ |
|
||||
return dcBusiTargetDraftMapper.deleteDcBusiTargetDraftById(id); |
|
||||
} |
|
||||
} |
|
@ -0,0 +1,102 @@ |
|||||
|
package com.lzbi.serial.controller; |
||||
|
|
||||
|
|
||||
|
import javax.servlet.http.HttpServletResponse; |
||||
|
|
||||
|
|
||||
|
import com.lzbi.common.core.controller.BaseController; |
||||
|
import com.lzbi.common.core.domain.AjaxResult; |
||||
|
import com.lzbi.common.core.page.TableDataInfo; |
||||
|
import com.lzbi.common.utils.poi.ExcelUtil; |
||||
|
import com.lzbi.serial.domain.CodeRuleDefine; |
||||
|
import com.lzbi.serial.service.CodeRuleDefineService; |
||||
|
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 java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 单据编号定定义Controller |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2022-12-20 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("/define") |
||||
|
public class CodeRuleDefineController extends BaseController |
||||
|
{ |
||||
|
@Autowired |
||||
|
private CodeRuleDefineService codeRuleDefineService; |
||||
|
|
||||
|
/** |
||||
|
* 查询单据编号定定义列表 |
||||
|
*/ |
||||
|
|
||||
|
@GetMapping("/list") |
||||
|
public TableDataInfo list(CodeRuleDefine sysBillnoDefine) |
||||
|
{ |
||||
|
startPage(); |
||||
|
List<CodeRuleDefine> list = codeRuleDefineService.selectCodeRuleDefineList(sysBillnoDefine); |
||||
|
return getDataTable(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出单据编号定定义列表 |
||||
|
*/ |
||||
|
|
||||
|
@PostMapping("/export") |
||||
|
public void export(HttpServletResponse response, CodeRuleDefine sysBillnoDefine) |
||||
|
{ |
||||
|
List<CodeRuleDefine> list = codeRuleDefineService.selectCodeRuleDefineList(sysBillnoDefine); |
||||
|
ExcelUtil<CodeRuleDefine> util = new ExcelUtil<CodeRuleDefine>(CodeRuleDefine.class); |
||||
|
util.exportExcel(response, list, "单据编号定定义数据"); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 获取单据编号定定义详细信息 |
||||
|
*/ |
||||
|
|
||||
|
@GetMapping(value = "/{defineId}") |
||||
|
public AjaxResult getInfo(@PathVariable("defineId") Long defineId) |
||||
|
{ |
||||
|
return success(codeRuleDefineService.selectCodeRuleDefineByDefineId(defineId)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增单据编号定定义 |
||||
|
*/ |
||||
|
|
||||
|
@PostMapping |
||||
|
public AjaxResult add(@RequestBody CodeRuleDefine sysBillnoDefine) |
||||
|
{ |
||||
|
return toAjax(codeRuleDefineService.insertCodeRuleDefine(sysBillnoDefine)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改单据编号定定义 |
||||
|
*/ |
||||
|
|
||||
|
@PutMapping |
||||
|
public AjaxResult edit(@RequestBody CodeRuleDefine sysBillnoDefine) |
||||
|
{ |
||||
|
return toAjax(codeRuleDefineService.updateCodeRuleDefine(sysBillnoDefine)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除单据编号定定义 |
||||
|
*/ |
||||
|
|
||||
|
@DeleteMapping("/{defineIds}") |
||||
|
public AjaxResult remove(@PathVariable Long[] defineIds) |
||||
|
{ |
||||
|
return toAjax(codeRuleDefineService.deleteCodeRuleDefineByDefineIds(defineIds)); |
||||
|
} |
||||
|
} |
@ -0,0 +1,191 @@ |
|||||
|
package com.lzbi.serial.controller; |
||||
|
|
||||
|
|
||||
|
import com.lzbi.common.core.controller.BaseController; |
||||
|
import com.lzbi.common.core.domain.AjaxResult; |
||||
|
import com.lzbi.common.core.domain.entity.SysUser; |
||||
|
import com.lzbi.common.core.domain.model.LoginUser; |
||||
|
import com.lzbi.common.core.page.TableDataInfo; |
||||
|
import com.lzbi.common.utils.DateUtils; |
||||
|
import com.lzbi.common.utils.SecurityUtils; |
||||
|
import com.lzbi.common.utils.StringUtils; |
||||
|
import com.lzbi.serial.domain.CodeRuleDefine; |
||||
|
import com.lzbi.serial.domain.CodeRuleSerial; |
||||
|
import com.lzbi.serial.service.CodeRuleDefineService; |
||||
|
import com.lzbi.serial.service.CodeRuleSerialService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 单据流水号Controller |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2022-12-20 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("/serial") |
||||
|
public class CodeRuleSerialController extends BaseController { |
||||
|
@Autowired |
||||
|
private CodeRuleSerialService codeRuleSerialService; |
||||
|
@Autowired |
||||
|
private CodeRuleDefineService codeRuleDefineService; |
||||
|
/** |
||||
|
* 查询单据流水号列表 |
||||
|
*/ |
||||
|
@GetMapping("/list") |
||||
|
public TableDataInfo list(CodeRuleSerial codeRuleSerial) { |
||||
|
startPage(); |
||||
|
List<CodeRuleSerial> list = codeRuleSerialService.selectCodeRuleSerialList(codeRuleSerial); |
||||
|
return getDataTable(list); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 获取单据流水号详细信息 |
||||
|
*/ |
||||
|
|
||||
|
@GetMapping(value = "/{id}") |
||||
|
public AjaxResult getInfo(@PathVariable("id") Long id) { |
||||
|
return success(codeRuleSerialService.selectCodeRuleSerialById(id)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增单据流水号 |
||||
|
*/ |
||||
|
|
||||
|
@PostMapping |
||||
|
public AjaxResult add(@RequestBody CodeRuleSerial codeRuleSerial) { |
||||
|
return toAjax(codeRuleSerialService.insertCodeRuleSerial(codeRuleSerial)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改单据流水号 |
||||
|
*/ |
||||
|
|
||||
|
@PutMapping |
||||
|
public AjaxResult edit(@RequestBody CodeRuleSerial codeRuleSerial) { |
||||
|
return toAjax(codeRuleSerialService.updateCodeRuleSerial(codeRuleSerial)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除单据流水号 |
||||
|
*/ |
||||
|
|
||||
|
@DeleteMapping("/{ids}") |
||||
|
public AjaxResult remove(@PathVariable Long[] ids) { |
||||
|
return toAjax(codeRuleSerialService.deleteCodeRuleSerialByIds(ids)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* addby zhousq 获取单据流水号 |
||||
|
* 根据单据的ID获取单据header |
||||
|
* 通过headerYYYYMMDD 获取当日流水号 查询无记录需要新增一条,有记录需要先进行更新流水号成功后返回,否则失败 |
||||
|
* 2023-1-16 增加动态配置能力,可以在数据库配置 格式、长度 |
||||
|
* 原有方法作废 |
||||
|
*/ |
||||
|
|
||||
|
String billsize; |
||||
|
|
||||
|
|
||||
|
@GetMapping("/getBillNo") |
||||
|
public AjaxResult getBillNo(@RequestParam long id) { |
||||
|
String billNo = ""; |
||||
|
long serialsize = 4; |
||||
|
//查询订单头
|
||||
|
CodeRuleDefine codeRuleDefine = codeRuleDefineService.selectCodeRuleDefineByDefineId(id); |
||||
|
if (codeRuleDefine.getDefHeader().isEmpty()) { |
||||
|
return AjaxResult.error("没有定义过ID为" + String.valueOf(id) + "的编号规则类型!"); |
||||
|
} |
||||
|
billNo = codeRuleDefine.getDefHeader() + DateUtils.dateTimeNow(codeRuleDefine.getDefHeaderType()); |
||||
|
serialsize=codeRuleDefine.getSerialLength(); |
||||
|
CodeRuleSerial codeRuleSerial = codeRuleSerialService.selectCodeRuleSerialByHeader(billNo); |
||||
|
SysUser sysUser = SecurityUtils.getLoginUser().getUser(); |
||||
|
if (null== codeRuleSerial || null == codeRuleSerial.getHeaderBillno()) { |
||||
|
codeRuleSerial=new CodeRuleSerial(); |
||||
|
codeRuleSerial.setHeaderBillno(billNo); |
||||
|
codeRuleSerial.setLockSerial(1L); |
||||
|
codeRuleSerial.setSerialNo(1L); |
||||
|
codeRuleSerial.setCreatedTime(DateUtils.getNowDate()); |
||||
|
codeRuleSerial.setCreatedBy(sysUser.getUserName()); |
||||
|
codeRuleSerial.setUpdatedBy(sysUser.getUserName()); |
||||
|
codeRuleSerial.setUpdatedTime(DateUtils.getNowDate()); |
||||
|
int ret = codeRuleSerialService.insertCodeRuleSerial(codeRuleSerial); |
||||
|
if (ret > 0) { |
||||
|
return AjaxResult.success("获取规则编号成功",billNo + StringUtils.padl(1L, (int)serialsize)); |
||||
|
} else { |
||||
|
return AjaxResult.error("新建规则编号失败!"); |
||||
|
} |
||||
|
|
||||
|
} else { |
||||
|
long serialnum = codeRuleSerial.getSerialNo(); |
||||
|
codeRuleSerial.setSerialNo(serialnum + 1L); |
||||
|
codeRuleSerial.setLockSerial(serialnum); |
||||
|
codeRuleSerial.setUpdatedBy(sysUser.getUserName()); |
||||
|
codeRuleSerial.setUpdatedTime(DateUtils.getNowDate()); |
||||
|
int ret = codeRuleSerialService.updateCodeRuleSerialLock(codeRuleSerial); |
||||
|
if (ret > 0) { |
||||
|
|
||||
|
return AjaxResult.success("ok",billNo + StringUtils.padl(codeRuleSerial.getSerialNo(), (int)serialsize)); |
||||
|
} else { |
||||
|
return AjaxResult.error("新建规则编号失败!请稍后重试"); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
@Deprecated |
||||
|
public AjaxResult getBillNoOld(@RequestParam long id) { |
||||
|
String billNo = ""; |
||||
|
int serialsize = 4; |
||||
|
try { |
||||
|
serialsize = Integer.parseInt(billsize); |
||||
|
} catch (NumberFormatException numberFormatException) { |
||||
|
serialsize = 4; |
||||
|
} |
||||
|
//查询订单头
|
||||
|
LoginUser loginUser = SecurityUtils.getLoginUser(); |
||||
|
SysUser sysUser = loginUser.getUser(); |
||||
|
CodeRuleDefine sysBillnoDefine = codeRuleDefineService.selectCodeRuleDefineByDefineId(id); |
||||
|
if (sysBillnoDefine.getDefHeader().isEmpty()) { |
||||
|
return AjaxResult.error("没有定义过ID为" + String.valueOf(id) + "的单据类型!"); |
||||
|
} |
||||
|
billNo = sysBillnoDefine.getDefHeader() + DateUtils.dateTimeNow("YYYYMMdd"); |
||||
|
CodeRuleSerial codeRuleSerial = codeRuleSerialService.selectCodeRuleSerialByHeader(billNo); |
||||
|
if (null== codeRuleSerial || null == codeRuleSerial.getHeaderBillno()) { |
||||
|
codeRuleSerial=new CodeRuleSerial(); |
||||
|
codeRuleSerial.setHeaderBillno(billNo); |
||||
|
codeRuleSerial.setLockSerial(1L); |
||||
|
codeRuleSerial.setSerialNo(1L); |
||||
|
codeRuleSerial.setCreatedTime(DateUtils.getNowDate()); |
||||
|
codeRuleSerial.setCreatedBy(sysUser.getUserName()); |
||||
|
codeRuleSerial.setUpdatedBy(sysUser.getUserName()); |
||||
|
codeRuleSerial.setUpdatedTime(DateUtils.getNowDate()); |
||||
|
int ret = codeRuleSerialService.insertCodeRuleSerial(codeRuleSerial); |
||||
|
if (ret > 0) { |
||||
|
return AjaxResult.success("获取单据流水号成功",billNo + StringUtils.padl(1L, serialsize)); |
||||
|
} else { |
||||
|
return AjaxResult.error("新建单据流水号失败!"); |
||||
|
} |
||||
|
|
||||
|
} else { |
||||
|
long serialnum = codeRuleSerial.getSerialNo(); |
||||
|
codeRuleSerial.setSerialNo(serialnum + 1L); |
||||
|
codeRuleSerial.setLockSerial(serialnum); |
||||
|
codeRuleSerial.setUpdatedBy(sysUser.getUserName()); |
||||
|
codeRuleSerial.setUpdatedTime(DateUtils.getNowDate()); |
||||
|
int ret = codeRuleSerialService.updateCodeRuleSerialLock(codeRuleSerial); |
||||
|
if (ret > 0) { |
||||
|
|
||||
|
return AjaxResult.success("ok",billNo + StringUtils.padl(codeRuleSerial.getSerialNo(), serialsize)); |
||||
|
} else { |
||||
|
return AjaxResult.error("获取单据流水号失败!请稍后重试"); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
package com.lzbi.serial.domain; |
||||
|
|
||||
|
import com.lzbi.module.base.BaseModuleEntity; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
|
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 单据编号定定义对象 sys_billno_define |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2022-12-20 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel("编码规则定义") |
||||
|
public class CodeRuleDefine extends BaseModuleEntity |
||||
|
{ |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
@ApiModelProperty("编码规则ID") |
||||
|
/** 定义ID唯一 */ |
||||
|
private Long defineId; |
||||
|
|
||||
|
/** 单据开头名称 */ |
||||
|
@ApiModelProperty("编码规则头") |
||||
|
private String defHeader; |
||||
|
/** 单据类型 */ |
||||
|
@ApiModelProperty("编码规则类型") |
||||
|
private String defClass; |
||||
|
/** 所属部门id */ |
||||
|
@ApiModelProperty("编码规则头") |
||||
|
private Long deptId; |
||||
|
@ApiModelProperty("编码规则头") |
||||
|
private String defHeaderType; |
||||
|
@ApiModelProperty("编码规则头") |
||||
|
private Long serialLength; |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
||||
|
.append("defineId", getDefineId()) |
||||
|
.append("defHeader", getDefHeader()) |
||||
|
.append("defClass", getDefClass()) |
||||
|
.append("deptId", getDeptId()) |
||||
|
.append("defHeaderType", getDefHeaderType()) |
||||
|
.append("serialLength", getSerialLength()) |
||||
|
.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
package com.lzbi.serial.domain; |
||||
|
|
||||
|
import com.lzbi.module.base.BaseModuleEntity; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
|
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 单据流水号对象 sys_billno_serial |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2022-12-20 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel("") |
||||
|
public class CodeRuleSerial extends BaseModuleEntity |
||||
|
{ |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** 唯一标识符 */ |
||||
|
private Long id; |
||||
|
|
||||
|
/** 单据开头名称+YYYYMMDD */ |
||||
|
@ApiModelProperty("单据开头名称") |
||||
|
private String headerBillno; |
||||
|
|
||||
|
/** 版本锁 */ |
||||
|
@ApiModelProperty("版本锁") |
||||
|
private Long lockSerial; |
||||
|
|
||||
|
/** 流水号 */ |
||||
|
@ApiModelProperty("流水号") |
||||
|
private Long serialNo; |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
||||
|
.append("id", getId()) |
||||
|
.append("headerBillno", getHeaderBillno()) |
||||
|
.append("lockSerial", getLockSerial()) |
||||
|
.append("serialNo", getSerialNo()) |
||||
|
.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,62 @@ |
|||||
|
package com.lzbi.serial.mapper; |
||||
|
|
||||
|
import com.lzbi.serial.domain.CodeRuleDefine; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 单据编号定定义Mapper接口 |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2022-12-20 |
||||
|
*/ |
||||
|
public interface CodeRuleDefineMapper |
||||
|
{ |
||||
|
/** |
||||
|
* 查询单据编号定定义 |
||||
|
* |
||||
|
* @param defineId 单据编号定定义主键 |
||||
|
* @return 单据编号定定义 |
||||
|
*/ |
||||
|
public CodeRuleDefine selectCodeRuleDefineByDefineId(Long defineId); |
||||
|
|
||||
|
/** |
||||
|
* 查询单据编号定定义列表 |
||||
|
* |
||||
|
* @param |
||||
|
* @return 单据编号定定义集合 |
||||
|
*/ |
||||
|
public List<CodeRuleDefine> selectCodeRuleDefineList(CodeRuleDefine codeRuleDefine); |
||||
|
|
||||
|
/** |
||||
|
* 新增单据编号定定义 |
||||
|
* |
||||
|
* @param |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int insertCodeRuleDefine(CodeRuleDefine codeRuleDefine); |
||||
|
|
||||
|
/** |
||||
|
* 修改单据编号定定义 |
||||
|
* |
||||
|
* @param |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int updateCodeRuleDefine(CodeRuleDefine codeRuleDefine); |
||||
|
|
||||
|
/** |
||||
|
* 删除单据编号定定义 |
||||
|
* |
||||
|
* @param defineId 单据编号定定义主键 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteCodeRuleDefineByDefineId(Long defineId); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除单据编号定定义 |
||||
|
* |
||||
|
* @param defineIds 需要删除的数据主键集合 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteCodeRuleDefineByDefineIds(Long[] defineIds); |
||||
|
} |
@ -0,0 +1,73 @@ |
|||||
|
package com.lzbi.serial.mapper; |
||||
|
|
||||
|
import com.lzbi.serial.domain.CodeRuleSerial; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 单据流水号Mapper接口 |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2022-12-20 |
||||
|
*/ |
||||
|
public interface CodeRuleSerialMapper |
||||
|
{ |
||||
|
/** |
||||
|
* 查询单据流水号 |
||||
|
* |
||||
|
* @param id 单据流水号主键 |
||||
|
* @return 单据流水号 |
||||
|
*/ |
||||
|
public CodeRuleSerial selectCodeRuleSerialById(Long id); |
||||
|
|
||||
|
/** |
||||
|
* 查询单据流水号列表 |
||||
|
* |
||||
|
* @param |
||||
|
* @return 单据流水号集合 |
||||
|
*/ |
||||
|
public List<CodeRuleSerial> selectCodeRuleSerialList(CodeRuleSerial codeRuleSerial); |
||||
|
|
||||
|
/** |
||||
|
* 新增单据流水号 |
||||
|
* |
||||
|
* @param |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int insertCodeRuleSerial(CodeRuleSerial codeRuleSerial); |
||||
|
|
||||
|
/** |
||||
|
* 修改单据流水号 |
||||
|
* |
||||
|
* @param |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int updateCodeRuleSerial(CodeRuleSerial codeRuleSerial); |
||||
|
|
||||
|
/** |
||||
|
* 删除单据流水号 |
||||
|
* |
||||
|
* @param id 单据流水号主键 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteCodeRuleSerialById(Long id); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除单据流水号 |
||||
|
* |
||||
|
* @param ids 需要删除的数据主键集合 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteCodeRuleSerialByIds(Long[] ids); |
||||
|
|
||||
|
|
||||
|
public CodeRuleSerial selectCodeRuleSerialByHeader(String headerBillno); |
||||
|
/** |
||||
|
* 成功获取完成流水号获取为1,失败为0 |
||||
|
* |
||||
|
* @param svo 必须包含参数 header 单据头 serialno |
||||
|
* @return 单据流水号 |
||||
|
*/ |
||||
|
|
||||
|
public int updateCodeRuleSerialLock(CodeRuleSerial svo); |
||||
|
} |
@ -0,0 +1,103 @@ |
|||||
|
package com.lzbi.serial.service; |
||||
|
|
||||
|
|
||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
|
import com.lzbi.common.core.domain.model.LoginUser; |
||||
|
import com.lzbi.common.utils.DateUtils; |
||||
|
import com.lzbi.common.utils.SecurityUtils; |
||||
|
import com.lzbi.serial.domain.CodeRuleDefine; |
||||
|
import com.lzbi.serial.mapper.CodeRuleDefineMapper; |
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 单据编号定定义Service业务层处理 |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2022-12-20 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class CodeRuleDefineService extends ServiceImpl<CodeRuleDefineMapper, CodeRuleDefine> implements IService<CodeRuleDefine> |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 查询单据编号定定义 |
||||
|
* |
||||
|
* @param defineId 单据编号定定义主键 |
||||
|
* @return 单据编号定定义 |
||||
|
*/ |
||||
|
|
||||
|
public CodeRuleDefine selectCodeRuleDefineByDefineId(Long defineId) |
||||
|
{ |
||||
|
return baseMapper.selectCodeRuleDefineByDefineId(defineId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询单据编号定定义列表 |
||||
|
* |
||||
|
* @param codeRuleDefine 单据编号定定义 |
||||
|
* @return 单据编号定定义 |
||||
|
*/ |
||||
|
|
||||
|
public List<CodeRuleDefine> selectCodeRuleDefineList(CodeRuleDefine codeRuleDefine) |
||||
|
{ |
||||
|
return baseMapper.selectCodeRuleDefineList(codeRuleDefine); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增单据编号定定义 |
||||
|
* |
||||
|
* @param codeRuleDefine 单据编号定定义 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
|
||||
|
public int insertCodeRuleDefine(CodeRuleDefine codeRuleDefine) |
||||
|
{ |
||||
|
LoginUser loginUser= SecurityUtils.getLoginUser(); |
||||
|
codeRuleDefine.setCreatedBy(loginUser.getUsername()); |
||||
|
codeRuleDefine.setCreatedTime(DateUtils.getNowDate()); |
||||
|
codeRuleDefine.setDeptId(loginUser.getDeptId()); |
||||
|
return baseMapper.insertCodeRuleDefine(codeRuleDefine); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改单据编号定定义 |
||||
|
* |
||||
|
* @param codeRuleDefine 单据编号定定义 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
|
||||
|
public int updateCodeRuleDefine(CodeRuleDefine codeRuleDefine) |
||||
|
{ |
||||
|
codeRuleDefine.setUpdatedTime(DateUtils.getNowDate()); |
||||
|
return baseMapper.updateCodeRuleDefine(codeRuleDefine); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 批量删除单据编号定定义 |
||||
|
* |
||||
|
* @param defineIds 需要删除的单据编号定定义主键 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
|
||||
|
public int deleteCodeRuleDefineByDefineIds(Long[] defineIds) |
||||
|
{ |
||||
|
return baseMapper.deleteCodeRuleDefineByDefineIds(defineIds); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除单据编号定定义信息 |
||||
|
* |
||||
|
* @param defineId 单据编号定定义主键 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
|
||||
|
public int deleteCodeRuleDefineByDefineId(Long defineId) |
||||
|
{ |
||||
|
return baseMapper.deleteCodeRuleDefineByDefineId(defineId); |
||||
|
} |
||||
|
} |
@ -0,0 +1,112 @@ |
|||||
|
package com.lzbi.serial.service; |
||||
|
|
||||
|
|
||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
|
import com.lzbi.common.utils.DateUtils; |
||||
|
import com.lzbi.serial.domain.CodeRuleSerial; |
||||
|
import com.lzbi.serial.mapper.CodeRuleSerialMapper; |
||||
|
|
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 单据流水号Service业务层处理 |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2022-12-20 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class CodeRuleSerialService extends ServiceImpl<CodeRuleSerialMapper, CodeRuleSerial> implements IService<CodeRuleSerial> |
||||
|
{ |
||||
|
|
||||
|
/** |
||||
|
* 查询单据流水号 |
||||
|
* |
||||
|
* @param id 单据流水号主键 |
||||
|
* @return 单据流水号 |
||||
|
*/ |
||||
|
|
||||
|
public CodeRuleSerial selectCodeRuleSerialById(Long id) |
||||
|
{ |
||||
|
return baseMapper.selectCodeRuleSerialById(id); |
||||
|
} |
||||
|
|
||||
|
public CodeRuleSerial selectCodeRuleSerialByHeader(String header){ |
||||
|
return baseMapper.selectCodeRuleSerialByHeader(header); |
||||
|
} |
||||
|
/** |
||||
|
* 成功获取完成流水号获取为1,失败为0 |
||||
|
* |
||||
|
* @param svo 必须包含参数 header 单据头 serialno |
||||
|
* @return 单据流水号 |
||||
|
*/ |
||||
|
|
||||
|
public int updateCodeRuleSerialLock(CodeRuleSerial svo){ |
||||
|
return baseMapper.updateCodeRuleSerialLock(svo); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询单据流水号列表 |
||||
|
* |
||||
|
* @param sysBillnoSerial 单据流水号 |
||||
|
* @return 单据流水号 |
||||
|
*/ |
||||
|
|
||||
|
public List<CodeRuleSerial> selectCodeRuleSerialList(CodeRuleSerial sysBillnoSerial) |
||||
|
{ |
||||
|
return baseMapper.selectCodeRuleSerialList(sysBillnoSerial); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增单据流水号 |
||||
|
* |
||||
|
* @param |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
|
||||
|
public int insertCodeRuleSerial(CodeRuleSerial codeRuleSerial) |
||||
|
{ |
||||
|
codeRuleSerial.setCreatedTime(DateUtils.getNowDate()); |
||||
|
return baseMapper.insertCodeRuleSerial(codeRuleSerial); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改单据流水号 |
||||
|
* |
||||
|
* @param |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
|
||||
|
public int updateCodeRuleSerial(CodeRuleSerial codeRuleSerial) |
||||
|
{ |
||||
|
codeRuleSerial.setUpdatedTime(DateUtils.getNowDate()); |
||||
|
return baseMapper.updateCodeRuleSerial(codeRuleSerial); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 批量删除单据流水号 |
||||
|
* |
||||
|
* @param ids 需要删除的单据流水号主键 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
|
||||
|
public int deleteCodeRuleSerialByIds(Long[] ids) |
||||
|
{ |
||||
|
return baseMapper.deleteCodeRuleSerialByIds(ids); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除单据流水号信息 |
||||
|
* |
||||
|
* @param id 单据流水号主键 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
|
||||
|
public int deleteCodeRuleSerialById(Long id) |
||||
|
{ |
||||
|
return baseMapper.deleteCodeRuleSerialById(id); |
||||
|
} |
||||
|
} |
@ -1,141 +0,0 @@ |
|||||
<?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.bi.mapper.DcBaseAssetInfoMapper"> |
|
||||
<resultMap type="com.lzbi.bi.domain.DcBaseAssetInfo" id="rmDcBaseAssetInfo"> |
|
||||
<!-- 租户号 --> |
|
||||
<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"/> |
|
||||
<!-- 资产ID --> |
|
||||
<result property="id" column="id"/> |
|
||||
<!-- 资产名称 --> |
|
||||
<result property="assetName" column="asset_name"/> |
|
||||
<!-- 资产编码 --> |
|
||||
<result property="assetCode" column="asset_code"/> |
|
||||
<!-- 资产类别 --> |
|
||||
<result property="assetClass" column="asset_class"/> |
|
||||
<!-- 部门共享 --> |
|
||||
<result property="flagValidateDept" column="flag_validate_dept"/> |
|
||||
<!-- 角色内共享 --> |
|
||||
<result property="flagValidateRole" column="flag_validate_role"/> |
|
||||
<!-- 用户共享 --> |
|
||||
<result property="flagValidateUser" column="flag_validate_user"/> |
|
||||
<!-- 资产状态 --> |
|
||||
<result property="statusAsset" column="status_asset"/> |
|
||||
<!-- 所属公司 --> |
|
||||
<result property="comanyId" column="comany_id"/> |
|
||||
<!-- 所属组织结构 --> |
|
||||
<result property="deptId" column="dept_id"/> |
|
||||
<!-- 生产专业 --> |
|
||||
<result property="workType" column="work_type"/> |
|
||||
</resultMap> |
|
||||
<sql id="baseQuerySql"> |
|
||||
select |
|
||||
TENANT_ID, |
|
||||
REVISION, |
|
||||
CREATED_BY, |
|
||||
CREATED_TIME, |
|
||||
UPDATED_BY, |
|
||||
UPDATED_TIME, |
|
||||
DELETE_BY, |
|
||||
DELETE_TIME, |
|
||||
id, |
|
||||
asset_name, |
|
||||
asset_code, |
|
||||
asset_class, |
|
||||
flag_validate_dept, |
|
||||
flag_validate_role, |
|
||||
flag_validate_user, |
|
||||
status_asset, |
|
||||
comany_id, |
|
||||
dept_id, |
|
||||
work_type, |
|
||||
from dc_base_asset_info |
|
||||
</sql> |
|
||||
<select id="selectByVo" resultMap="rmDcBaseAssetInfo" parameterType="com.lzbi.bi.domain.DcBaseAssetInfo"> |
|
||||
<include refid="baseQuerySql"/> |
|
||||
<where> |
|
||||
<if test="tenantId != null "> and TENANT_ID = #{tenantId}</if> |
|
||||
<if test="revision != null"> and REVISION = #{revision}</if> |
|
||||
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if> |
|
||||
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if> |
|
||||
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if> |
|
||||
<if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</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="assetName != null and assetName != ''"> and asset_name = #{assetName}</if> |
|
||||
<if test="assetCode != null and assetCode != ''"> and asset_code = #{assetCode}</if> |
|
||||
<if test="assetClass != null and assetClass != ''"> and asset_class = #{assetClass}</if> |
|
||||
<if test="flagValidateDept != null and flagValidateDept != ''"> and flag_validate_dept = #{flagValidateDept}</if> |
|
||||
<if test="flagValidateRole != null and flagValidateRole != ''"> and flag_validate_role = #{flagValidateRole}</if> |
|
||||
<if test="flagValidateUser != null and flagValidateUser != ''"> and flag_validate_user = #{flagValidateUser}</if> |
|
||||
<if test="statusAsset != null and statusAsset != ''"> and status_asset = #{statusAsset}</if> |
|
||||
<if test="comanyId != null "> and comany_id = #{comanyId}</if> |
|
||||
<if test="deptId != null "> and dept_id = #{deptId}</if> |
|
||||
<if test="workType != null and workType != ''"> and work_type = #{workType}</if> |
|
||||
|
|
||||
</where> |
|
||||
</select> |
|
||||
<insert id="insertByVo" parameterType="com.lzbi.bi.domain.DcBaseAssetInfo"> |
|
||||
insert into dc_base_asset_info |
|
||||
<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="assetId != null and assetId != ''">asset_id,</if> |
|
||||
<if test="assetName != null and assetName != ''">asset_name,</if> |
|
||||
<if test="assetCode != null and assetCode != ''">asset_code,</if> |
|
||||
<if test="assetClass != null and assetClass != ''">asset_class,</if> |
|
||||
<if test="flagValidateDept != null and flagValidateDept != ''">flag_validate_dept,</if> |
|
||||
<if test="flagValidateRole != null and flagValidateRole != ''">flag_validate_role,</if> |
|
||||
<if test="flagValidateUser != null and flagValidateUser != ''">flag_validate_user,</if> |
|
||||
<if test="statusAsset != null and statusAsset != ''">status_asset,</if> |
|
||||
<if test="comanyId != null and comanyId != ''">comany_id,</if> |
|
||||
<if test="deptId != null and deptId != ''">dept_id,</if> |
|
||||
<if test="workType != null and workType != ''">work_type,</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="assetId != null and assetId != ''">#{assetId},</if> |
|
||||
<if test="assetName != null and assetName != ''">#{assetName},</if> |
|
||||
<if test="assetCode != null and assetCode != ''">#{assetCode},</if> |
|
||||
<if test="assetClass != null and assetClass != ''">#{assetClass},</if> |
|
||||
<if test="flagValidateDept != null and flagValidateDept != ''">#{flagValidateDept},</if> |
|
||||
<if test="flagValidateRole != null and flagValidateRole != ''">#{flagValidateRole},</if> |
|
||||
<if test="flagValidateUser != null and flagValidateUser != ''">#{flagValidateUser},</if> |
|
||||
<if test="statusAsset != null and statusAsset != ''">#{statusAsset},</if> |
|
||||
<if test="comanyId != null and comanyId != ''">#{comanyId},</if> |
|
||||
<if test="deptId != null and deptId != ''">#{deptId},</if> |
|
||||
<if test="workType != null and workType != ''">#{workType},</if> |
|
||||
|
|
||||
</trim> |
|
||||
</insert> |
|
||||
</mapper> |
|
@ -1,141 +0,0 @@ |
|||||
<?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.bi.mapper.DcBusiTargetAdjustMapper"> |
|
||||
<resultMap type="com.lzbi.bi.domain.DcBusiTargetAdjust" id="rmDcBusiTargetAdjust"> |
|
||||
<!-- 租户号 --> |
|
||||
<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="billSerial" column="bill_serial"/> |
|
||||
<!-- 单据类别 --> |
|
||||
<result property="biilType" column="biil_type"/> |
|
||||
<!-- 指标编码 --> |
|
||||
<result property="targetCode" column="target_code"/> |
|
||||
<!-- 资产ID --> |
|
||||
<result property="assetId" column="asset_id"/> |
|
||||
<!-- 原始值 --> |
|
||||
<result property="valOrginal" column="val_orginal"/> |
|
||||
<!-- 调整值 --> |
|
||||
<result property="valAdjust" column="val_adjust"/> |
|
||||
<!-- 结果值 --> |
|
||||
<result property="valResult" column="val_result"/> |
|
||||
<!-- 主键 --> |
|
||||
<result property="id" column="id"/> |
|
||||
<!-- 调整目标日期 --> |
|
||||
<result property="dateAdjust" column="date_adjust"/> |
|
||||
<!-- 调整目标时间 --> |
|
||||
<result property="hourAdjust" column="hour_adjust"/> |
|
||||
<!-- 调整目标日期字符串 --> |
|
||||
<result property="dateAdjustStr" column="date_adjust_str"/> |
|
||||
</resultMap> |
|
||||
<sql id="baseQuerySql"> |
|
||||
select |
|
||||
TENANT_ID, |
|
||||
REVISION, |
|
||||
CREATED_BY, |
|
||||
CREATED_TIME, |
|
||||
UPDATED_BY, |
|
||||
UPDATED_TIME, |
|
||||
DELETE_BY, |
|
||||
DELETE_TIME, |
|
||||
bill_serial, |
|
||||
biil_type, |
|
||||
target_code, |
|
||||
asset_id, |
|
||||
val_orginal, |
|
||||
val_adjust, |
|
||||
val_result, |
|
||||
id, |
|
||||
date_adjust, |
|
||||
hour_adjust, |
|
||||
date_adjust_str |
|
||||
from dc_busi_target_adjust |
|
||||
</sql> |
|
||||
<select id="selectByVo" resultMap="rmDcBusiTargetAdjust" parameterType="com.lzbi.bi.domain.DcBusiTargetAdjust"> |
|
||||
<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="billSerial != null and billSerial != ''"> and bill_serial = #{billSerial}</if> |
|
||||
<if test="biilType != null and biilType != ''"> and biil_type = #{biilType}</if> |
|
||||
<if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if> |
|
||||
<if test="assetId != null and assetId != ''"> and asset_id = #{assetId}</if> |
|
||||
<if test="valOrginal != null and valOrginal != ''"> and val_orginal = #{valOrginal}</if> |
|
||||
<if test="valAdjust != null and valAdjust != ''"> and val_adjust = #{valAdjust}</if> |
|
||||
<if test="valResult != null and valResult != ''"> and val_result = #{valResult}</if> |
|
||||
<if test="id != null and id != ''"> and id = #{id}</if> |
|
||||
<if test="dateAdjust != null and dateAdjust != ''"> and date_adjust = #{dateAdjust}</if> |
|
||||
<if test="hourAdjust != null and hourAdjust != ''"> and hour_adjust = #{hourAdjust}</if> |
|
||||
<if test="dateAdjustStr != null and dateAdjustStr != ''"> and date_adjust_str = #{dateAdjustStr}</if> |
|
||||
|
|
||||
</where> |
|
||||
</select> |
|
||||
<insert id="insertByVo" parameterType="com.lzbi.bi.domain.DcBusiTargetAdjust"> |
|
||||
insert into dc_busi_target_adjust |
|
||||
<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="billSerial != null and billSerial != ''">bill_serial,</if> |
|
||||
<if test="biilType != null and biilType != ''">biil_type,</if> |
|
||||
<if test="targetCode != null and targetCode != ''">target_code,</if> |
|
||||
<if test="assetId != null and assetId != ''">asset_id,</if> |
|
||||
<if test="valOrginal != null and valOrginal != ''">val_orginal,</if> |
|
||||
<if test="valAdjust != null and valAdjust != ''">val_adjust,</if> |
|
||||
<if test="valResult != null and valResult != ''">val_result,</if> |
|
||||
<if test="id != null and id != ''">id,</if> |
|
||||
<if test="dateAdjust != null and dateAdjust != ''">date_adjust,</if> |
|
||||
<if test="hourAdjust != null and hourAdjust != ''">hour_adjust,</if> |
|
||||
<if test="dateAdjustStr != null and dateAdjustStr != ''">date_adjust_str,</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="billSerial != null and billSerial != ''">#{billSerial},</if> |
|
||||
<if test="biilType != null and biilType != ''">#{biilType},</if> |
|
||||
<if test="targetCode != null and targetCode != ''">#{targetCode},</if> |
|
||||
<if test="assetId != null and assetId != ''">#{assetId},</if> |
|
||||
<if test="valOrginal != null and valOrginal != ''">#{valOrginal},</if> |
|
||||
<if test="valAdjust != null and valAdjust != ''">#{valAdjust},</if> |
|
||||
<if test="valResult != null and valResult != ''">#{valResult},</if> |
|
||||
<if test="id != null and id != ''">#{id},</if> |
|
||||
<if test="dateAdjust != null and dateAdjust != ''">#{dateAdjust},</if> |
|
||||
<if test="hourAdjust != null and hourAdjust != ''">#{hourAdjust},</if> |
|
||||
<if test="dateAdjustStr != null and dateAdjustStr != ''">#{dateAdjustStr},</if> |
|
||||
|
|
||||
</trim> |
|
||||
</insert> |
|
||||
</mapper> |
|
@ -1,327 +0,0 @@ |
|||||
<?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.bi.mapper.DcBusiTargetDraftMapper"> |
|
||||
<resultMap type="com.lzbi.bi.domain.DcBusiTargetDraft" id="rmDcBusiTargetDraft"> |
|
||||
<!-- 租户号 --> |
|
||||
<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="id" column="id"/> |
|
||||
<!-- 指标主键 --> |
|
||||
<result property="targetId" column="target_id"/> |
|
||||
<!-- 指标编码 --> |
|
||||
<result property="targetCode" column="target_code"/> |
|
||||
<!-- 年份 --> |
|
||||
<result property="countYear" column="count_year"/> |
|
||||
<!-- 月份 --> |
|
||||
<result property="countMonth" column="count_month"/> |
|
||||
<!-- 日 --> |
|
||||
<result property="countDay" column="count_day"/> |
|
||||
<!-- 1时 --> |
|
||||
<result property="val01" column="val01"/> |
|
||||
<!-- 2时 --> |
|
||||
<result property="val02" column="val02"/> |
|
||||
<!-- 3时 --> |
|
||||
<result property="val03" column="val03"/> |
|
||||
<!-- 4时 --> |
|
||||
<result property="val04" column="val04"/> |
|
||||
<!-- 5时 --> |
|
||||
<result property="val05" column="val05"/> |
|
||||
<!-- 6时 --> |
|
||||
<result property="val06" column="val06"/> |
|
||||
<!-- 7时 --> |
|
||||
<result property="val07" column="val07"/> |
|
||||
<!-- 8时 --> |
|
||||
<result property="val08" column="val08"/> |
|
||||
<!-- 9时 --> |
|
||||
<result property="val09" column="val09"/> |
|
||||
<!-- 10时 --> |
|
||||
<result property="val10" column="val10"/> |
|
||||
<!-- 11时 --> |
|
||||
<result property="val11" column="val11"/> |
|
||||
<!-- 12时 --> |
|
||||
<result property="val12" column="val12"/> |
|
||||
<!-- 13时 --> |
|
||||
<result property="val13" column="val13"/> |
|
||||
<!-- 14时 --> |
|
||||
<result property="val14" column="val14"/> |
|
||||
<!-- 15时 --> |
|
||||
<result property="val15" column="val15"/> |
|
||||
<!-- 16时 --> |
|
||||
<result property="val16" column="val16"/> |
|
||||
<!-- 17时 --> |
|
||||
<result property="val17" column="val17"/> |
|
||||
<!-- 18时 --> |
|
||||
<result property="val18" column="val18"/> |
|
||||
<!-- 18时 --> |
|
||||
<result property="val19" column="val19"/> |
|
||||
<!-- 20时 --> |
|
||||
<result property="val20" column="val20"/> |
|
||||
<!-- 21时 --> |
|
||||
<result property="val21" column="val21"/> |
|
||||
<!-- 22时 --> |
|
||||
<result property="val22" column="val22"/> |
|
||||
<!-- 23时 --> |
|
||||
<result property="val23" column="val23"/> |
|
||||
<!-- 24时 --> |
|
||||
<result property="val24" column="val24"/> |
|
||||
<!-- 公司 --> |
|
||||
<result property="companyCode" column="company_code"/> |
|
||||
<!-- 公司名称 --> |
|
||||
<result property="companyName" column="company_name"/> |
|
||||
<!-- 组织机构代码 --> |
|
||||
<result property="orgCode" column="org_code"/> |
|
||||
<!-- 组织机构名称 --> |
|
||||
<result property="orgName" column="org_name"/> |
|
||||
<!-- 生产专业 --> |
|
||||
<result property="workType" column="work_type"/> |
|
||||
<!-- 统计单元名称 --> |
|
||||
<result property="countUnitName" column="count_unit_name"/> |
|
||||
<!-- 资产ID --> |
|
||||
<result property="assetId" column="asset_id"/> |
|
||||
<!-- 上线 --> |
|
||||
<result property="valUpLimit" column="val_up_limit"/> |
|
||||
<!-- 下线 --> |
|
||||
<result property="valDownLimit" column="val_down_limit"/> |
|
||||
<!-- 均值 --> |
|
||||
<result property="valAvg" column="val_avg"/> |
|
||||
<!-- 合值 --> |
|
||||
<result property="valTotal" column="val_total"/> |
|
||||
<!-- 积算 --> |
|
||||
<result property="valCompute" column="val_compute"/> |
|
||||
</resultMap> |
|
||||
<sql id="baseQuerySql"> |
|
||||
select |
|
||||
TENANT_ID, |
|
||||
REVISION, |
|
||||
CREATED_BY, |
|
||||
CREATED_TIME, |
|
||||
UPDATED_BY, |
|
||||
UPDATED_TIME, |
|
||||
DELETE_BY, |
|
||||
DELETE_TIME, |
|
||||
id, |
|
||||
target_id, |
|
||||
target_code, |
|
||||
count_year, |
|
||||
count_month, |
|
||||
count_day, |
|
||||
val01, |
|
||||
val02, |
|
||||
val03, |
|
||||
val04, |
|
||||
val05, |
|
||||
val06, |
|
||||
val07, |
|
||||
val08, |
|
||||
val09, |
|
||||
val10, |
|
||||
val11, |
|
||||
val12, |
|
||||
val13, |
|
||||
val14, |
|
||||
val15, |
|
||||
val16, |
|
||||
val17, |
|
||||
val18, |
|
||||
val19, |
|
||||
val20, |
|
||||
val21, |
|
||||
val22, |
|
||||
val23, |
|
||||
val24, |
|
||||
company_code, |
|
||||
company_name, |
|
||||
org_code, |
|
||||
org_name, |
|
||||
work_type, |
|
||||
count_unit_name, |
|
||||
asset_id, |
|
||||
val_up_limit, |
|
||||
val_down_limit, |
|
||||
val_avg, |
|
||||
val_total, |
|
||||
val_compute, |
|
||||
from dc_busi_target_draft |
|
||||
</sql> |
|
||||
<select id="selectByVo" resultMap="rmDcBusiTargetDraft" parameterType="com.lzbi.bi.domain.DcBusiTargetDraft"> |
|
||||
<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="id != null and id != ''"> and id = #{id}</if> |
|
||||
<if test="targetId != null and targetId != ''"> and target_id = #{targetId}</if> |
|
||||
<if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if> |
|
||||
<if test="countYear != null and countYear != ''"> and count_year = #{countYear}</if> |
|
||||
<if test="countMonth != null and countMonth != ''"> and count_month = #{countMonth}</if> |
|
||||
<if test="countDay != null and countDay != ''"> and count_day = #{countDay}</if> |
|
||||
<if test="val01 != null and val01 != ''"> and val01 = #{val01}</if> |
|
||||
<if test="val02 != null and val02 != ''"> and val02 = #{val02}</if> |
|
||||
<if test="val03 != null and val03 != ''"> and val03 = #{val03}</if> |
|
||||
<if test="val04 != null and val04 != ''"> and val04 = #{val04}</if> |
|
||||
<if test="val05 != null and val05 != ''"> and val05 = #{val05}</if> |
|
||||
<if test="val06 != null and val06 != ''"> and val06 = #{val06}</if> |
|
||||
<if test="val07 != null and val07 != ''"> and val07 = #{val07}</if> |
|
||||
<if test="val08 != null and val08 != ''"> and val08 = #{val08}</if> |
|
||||
<if test="val09 != null and val09 != ''"> and val09 = #{val09}</if> |
|
||||
<if test="val10 != null and val10 != ''"> and val10 = #{val10}</if> |
|
||||
<if test="val11 != null and val11 != ''"> and val11 = #{val11}</if> |
|
||||
<if test="val12 != null and val12 != ''"> and val12 = #{val12}</if> |
|
||||
<if test="val13 != null and val13 != ''"> and val13 = #{val13}</if> |
|
||||
<if test="val14 != null and val14 != ''"> and val14 = #{val14}</if> |
|
||||
<if test="val15 != null and val15 != ''"> and val15 = #{val15}</if> |
|
||||
<if test="val16 != null and val16 != ''"> and val16 = #{val16}</if> |
|
||||
<if test="val17 != null and val17 != ''"> and val17 = #{val17}</if> |
|
||||
<if test="val18 != null and val18 != ''"> and val18 = #{val18}</if> |
|
||||
<if test="val19 != null and val19 != ''"> and val19 = #{val19}</if> |
|
||||
<if test="val20 != null and val20 != ''"> and val20 = #{val20}</if> |
|
||||
<if test="val21 != null and val21 != ''"> and val21 = #{val21}</if> |
|
||||
<if test="val22 != null and val22 != ''"> and val22 = #{val22}</if> |
|
||||
<if test="val23 != null and val23 != ''"> and val23 = #{val23}</if> |
|
||||
<if test="val24 != null and val24 != ''"> and val24 = #{val24}</if> |
|
||||
<if test="companyCode != null and companyCode != ''"> and company_code = #{companyCode}</if> |
|
||||
<if test="companyName != null and companyName != ''"> and company_name = #{companyName}</if> |
|
||||
<if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
|
||||
<if test="orgName != null and orgName != ''"> and org_name = #{orgName}</if> |
|
||||
<if test="workType != null and workType != ''"> and work_type = #{workType}</if> |
|
||||
<if test="countUnitName != null and countUnitName != ''"> and count_unit_name = #{countUnitName}</if> |
|
||||
<if test="assetId != null and assetId != ''"> and asset_id = #{assetId}</if> |
|
||||
<if test="valUpLimit != null and valUpLimit != ''"> and val_up_limit = #{valUpLimit}</if> |
|
||||
<if test="valDownLimit != null and valDownLimit != ''"> and val_down_limit = #{valDownLimit}</if> |
|
||||
<if test="valAvg != null and valAvg != ''"> and val_avg = #{valAvg}</if> |
|
||||
<if test="valTotal != null and valTotal != ''"> and val_total = #{valTotal}</if> |
|
||||
<if test="valCompute != null and valCompute != ''"> and val_compute = #{valCompute}</if> |
|
||||
|
|
||||
</where> |
|
||||
</select> |
|
||||
<insert id="insertByVo" parameterType="com.lzbi.bi.domain.DcBusiTargetDraft"> |
|
||||
insert into dc_busi_target_draft |
|
||||
<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="id != null and id != ''">id,</if> |
|
||||
<if test="targetId != null and targetId != ''">target_id,</if> |
|
||||
<if test="targetCode != null and targetCode != ''">target_code,</if> |
|
||||
<if test="countYear != null and countYear != ''">count_year,</if> |
|
||||
<if test="countMonth != null and countMonth != ''">count_month,</if> |
|
||||
<if test="countDay != null and countDay != ''">count_day,</if> |
|
||||
<if test="val01 != null and val01 != ''">val01,</if> |
|
||||
<if test="val02 != null and val02 != ''">val02,</if> |
|
||||
<if test="val03 != null and val03 != ''">val03,</if> |
|
||||
<if test="val04 != null and val04 != ''">val04,</if> |
|
||||
<if test="val05 != null and val05 != ''">val05,</if> |
|
||||
<if test="val06 != null and val06 != ''">val06,</if> |
|
||||
<if test="val07 != null and val07 != ''">val07,</if> |
|
||||
<if test="val08 != null and val08 != ''">val08,</if> |
|
||||
<if test="val09 != null and val09 != ''">val09,</if> |
|
||||
<if test="val10 != null and val10 != ''">val10,</if> |
|
||||
<if test="val11 != null and val11 != ''">val11,</if> |
|
||||
<if test="val12 != null and val12 != ''">val12,</if> |
|
||||
<if test="val13 != null and val13 != ''">val13,</if> |
|
||||
<if test="val14 != null and val14 != ''">val14,</if> |
|
||||
<if test="val15 != null and val15 != ''">val15,</if> |
|
||||
<if test="val16 != null and val16 != ''">val16,</if> |
|
||||
<if test="val17 != null and val17 != ''">val17,</if> |
|
||||
<if test="val18 != null and val18 != ''">val18,</if> |
|
||||
<if test="val19 != null and val19 != ''">val19,</if> |
|
||||
<if test="val20 != null and val20 != ''">val20,</if> |
|
||||
<if test="val21 != null and val21 != ''">val21,</if> |
|
||||
<if test="val22 != null and val22 != ''">val22,</if> |
|
||||
<if test="val23 != null and val23 != ''">val23,</if> |
|
||||
<if test="val24 != null and val24 != ''">val24,</if> |
|
||||
<if test="companyCode != null and companyCode != ''">company_code,</if> |
|
||||
<if test="companyName != null and companyName != ''">company_name,</if> |
|
||||
<if test="orgCode != null and orgCode != ''">org_code,</if> |
|
||||
<if test="orgName != null and orgName != ''">org_name,</if> |
|
||||
<if test="workType != null and workType != ''">work_type,</if> |
|
||||
<if test="countUnitName != null and countUnitName != ''">count_unit_name,</if> |
|
||||
<if test="assetId != null and assetId != ''">asset_id,</if> |
|
||||
<if test="valUpLimit != null and valUpLimit != ''">val_up_limit,</if> |
|
||||
<if test="valDownLimit != null and valDownLimit != ''">val_down_limit,</if> |
|
||||
<if test="valAvg != null and valAvg != ''">val_avg,</if> |
|
||||
<if test="valTotal != null and valTotal != ''">val_total,</if> |
|
||||
<if test="valCompute != null and valCompute != ''">val_compute,</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="id != null and id != ''">#{id},</if> |
|
||||
<if test="targetId != null and targetId != ''">#{targetId},</if> |
|
||||
<if test="targetCode != null and targetCode != ''">#{targetCode},</if> |
|
||||
<if test="countYear != null and countYear != ''">#{countYear},</if> |
|
||||
<if test="countMonth != null and countMonth != ''">#{countMonth},</if> |
|
||||
<if test="countDay != null and countDay != ''">#{countDay},</if> |
|
||||
<if test="val01 != null and val01 != ''">#{val01},</if> |
|
||||
<if test="val02 != null and val02 != ''">#{val02},</if> |
|
||||
<if test="val03 != null and val03 != ''">#{val03},</if> |
|
||||
<if test="val04 != null and val04 != ''">#{val04},</if> |
|
||||
<if test="val05 != null and val05 != ''">#{val05},</if> |
|
||||
<if test="val06 != null and val06 != ''">#{val06},</if> |
|
||||
<if test="val07 != null and val07 != ''">#{val07},</if> |
|
||||
<if test="val08 != null and val08 != ''">#{val08},</if> |
|
||||
<if test="val09 != null and val09 != ''">#{val09},</if> |
|
||||
<if test="val10 != null and val10 != ''">#{val10},</if> |
|
||||
<if test="val11 != null and val11 != ''">#{val11},</if> |
|
||||
<if test="val12 != null and val12 != ''">#{val12},</if> |
|
||||
<if test="val13 != null and val13 != ''">#{val13},</if> |
|
||||
<if test="val14 != null and val14 != ''">#{val14},</if> |
|
||||
<if test="val15 != null and val15 != ''">#{val15},</if> |
|
||||
<if test="val16 != null and val16 != ''">#{val16},</if> |
|
||||
<if test="val17 != null and val17 != ''">#{val17},</if> |
|
||||
<if test="val18 != null and val18 != ''">#{val18},</if> |
|
||||
<if test="val19 != null and val19 != ''">#{val19},</if> |
|
||||
<if test="val20 != null and val20 != ''">#{val20},</if> |
|
||||
<if test="val21 != null and val21 != ''">#{val21},</if> |
|
||||
<if test="val22 != null and val22 != ''">#{val22},</if> |
|
||||
<if test="val23 != null and val23 != ''">#{val23},</if> |
|
||||
<if test="val24 != null and val24 != ''">#{val24},</if> |
|
||||
<if test="companyCode != null and companyCode != ''">#{companyCode},</if> |
|
||||
<if test="companyName != null and companyName != ''">#{companyName},</if> |
|
||||
<if test="orgCode != null and orgCode != ''">#{orgCode},</if> |
|
||||
<if test="orgName != null and orgName != ''">#{orgName},</if> |
|
||||
<if test="workType != null and workType != ''">#{workType},</if> |
|
||||
<if test="countUnitName != null and countUnitName != ''">#{countUnitName},</if> |
|
||||
<if test="assetId != null and assetId != ''">#{assetId},</if> |
|
||||
<if test="valUpLimit != null and valUpLimit != ''">#{valUpLimit},</if> |
|
||||
<if test="valDownLimit != null and valDownLimit != ''">#{valDownLimit},</if> |
|
||||
<if test="valAvg != null and valAvg != ''">#{valAvg},</if> |
|
||||
<if test="valTotal != null and valTotal != ''">#{valTotal},</if> |
|
||||
<if test="valCompute != null and valCompute != ''">#{valCompute},</if> |
|
||||
|
|
||||
</trim> |
|
||||
</insert> |
|
||||
</mapper> |
|
@ -0,0 +1,114 @@ |
|||||
|
<?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.DcBaseParamModelMapper"> |
||||
|
<resultMap type="com.lzbi.asset.domain.DcBaseParamModel" id="rmDcBaseParamModel"> |
||||
|
<!-- 租户号 --> |
||||
|
<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="id" column="id"/> |
||||
|
<!-- 参数模型编码 --> |
||||
|
<result property="paramModelCode" column="param_model_code"/> |
||||
|
<!-- 参数模型名称 --> |
||||
|
<result property="paramModelName" column="param_model_name"/> |
||||
|
<!-- 所属专业 --> |
||||
|
<result property="paramModelField" column="param_model_field"/> |
||||
|
<!-- 参数模型分组 --> |
||||
|
<result property="paramModelGroup" column="param_model_group"/> |
||||
|
<!-- 参数来源 --> |
||||
|
<result property="paramModelSource" column="param_model_source"/> |
||||
|
<!-- 状态标识 --> |
||||
|
<result property="flagStatus" column="flag_status"/> |
||||
|
</resultMap> |
||||
|
<sql id="baseQuerySql"> |
||||
|
select |
||||
|
TENANT_ID, |
||||
|
REVISION, |
||||
|
CREATED_BY, |
||||
|
CREATED_TIME, |
||||
|
UPDATED_BY, |
||||
|
UPDATED_TIME, |
||||
|
DELETE_BY, |
||||
|
DELETE_TIME, |
||||
|
id, |
||||
|
param_model_code, |
||||
|
param_model_name, |
||||
|
param_model_field, |
||||
|
param_model_group, |
||||
|
param_model_source, |
||||
|
flag_status |
||||
|
from dc_base_param_model |
||||
|
</sql> |
||||
|
<select id="selectByVo" resultMap="rmDcBaseParamModel" parameterType="com.lzbi.asset.domain.DcBaseParamModel"> |
||||
|
<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="paramModelCode != null and paramModelCode != ''"> and param_model_code = #{paramModelCode}</if> |
||||
|
<if test="paramModelName != null and paramModelName != ''"> and param_model_name = #{paramModelName}</if> |
||||
|
<if test="paramModelField != null and paramModelField != ''"> and param_model_field = #{paramModelField}</if> |
||||
|
<if test="paramModelGroup != null and paramModelGroup != ''"> and param_model_group = #{paramModelGroup}</if> |
||||
|
<if test="paramModelSource != null and paramModelSource != ''"> and param_model_source = #{paramModelSource}</if> |
||||
|
<if test="flagStatus != null and flagStatus != ''"> and flag_status = #{flagStatus}</if> |
||||
|
|
||||
|
</where> |
||||
|
</select> |
||||
|
<insert id="insertByVo" parameterType="com.lzbi.asset.domain.DcBaseParamModel"> |
||||
|
insert into dc_base_param_model |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="tenantId != null ">TENANT_ID,</if> |
||||
|
<if test="revision != null ">REVISION,</if> |
||||
|
<if test="createdBy != null and createdBy != ''">CREATED_BY,</if> |
||||
|
<if test="createdTime != null ">CREATED_TIME,</if> |
||||
|
<if test="updatedBy != null and updatedBy != ''">UPDATED_BY,</if> |
||||
|
<if test="updatedTime != null ">UPDATED_TIME,</if> |
||||
|
<if test="deleteBy != null and deleteBy != ''">DELETE_BY,</if> |
||||
|
<if test="deleteTime != null ">DELETE_TIME,</if> |
||||
|
<if test="paramModelCode != null and paramModelCode != ''">param_model_code,</if> |
||||
|
<if test="paramModelName != null and paramModelName != ''">param_model_name,</if> |
||||
|
<if test="paramModelField != null and paramModelField != ''">param_model_field,</if> |
||||
|
<if test="paramModelGroup != null and paramModelGroup != ''">param_model_group,</if> |
||||
|
<if test="paramModelSource != null and paramModelSource != ''">param_model_source,</if> |
||||
|
<if test="flagStatus != null and flagStatus != ''">flag_status,</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="tenantId != null ">#{tenantId},</if> |
||||
|
<if test="revision != null ">#{revision},</if> |
||||
|
<if test="createdBy != null and createdBy != ''">#{createdBy},</if> |
||||
|
<if test="createdTime != null ">#{createdTime},</if> |
||||
|
<if test="updatedBy != null and updatedBy != ''">#{updatedBy},</if> |
||||
|
<if test="updatedTime != null ">#{updatedTime},</if> |
||||
|
<if test="deleteBy != null and deleteBy != ''">#{deleteBy},</if> |
||||
|
<if test="deleteTime != null ">#{deleteTime},</if> |
||||
|
<if test="paramModelCode != null and paramModelCode != ''">#{paramModelCode},</if> |
||||
|
<if test="paramModelName != null and paramModelName != ''">#{paramModelName},</if> |
||||
|
<if test="paramModelField != null and paramModelField != ''">#{paramModelField},</if> |
||||
|
<if test="paramModelGroup != null and paramModelGroup != ''">#{paramModelGroup},</if> |
||||
|
<if test="paramModelSource != null and paramModelSource != ''">#{paramModelSource},</if> |
||||
|
<if test="flagStatus != null and flagStatus != ''">#{flagStatus},</if> |
||||
|
|
||||
|
</trim> |
||||
|
</insert> |
||||
|
</mapper> |
@ -1,141 +0,0 @@ |
|||||
<?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.bi.mapper.DcBusiTargetAdjustMapper"> |
|
||||
|
|
||||
<resultMap type="DcBusiTargetAdjust" id="DcBusiTargetAdjustResult"> |
|
||||
<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="billSerial" column="bill_serial" /> |
|
||||
<result property="biilType" column="biil_type" /> |
|
||||
<result property="targetCode" column="target_code" /> |
|
||||
<result property="assetId" column="asset_id" /> |
|
||||
<result property="valOrginal" column="val_orginal" /> |
|
||||
<result property="valAdjust" column="val_adjust" /> |
|
||||
<result property="valResult" column="val_result" /> |
|
||||
<result property="id" column="id" /> |
|
||||
<result property="dateAdjust" column="date_adjust" /> |
|
||||
<result property="hourAdjust" column="hour_adjust" /> |
|
||||
<result property="dateAdjustStr" column="date_adjust_str" /> |
|
||||
</resultMap> |
|
||||
|
|
||||
<sql id="selectDcBusiTargetAdjustVo"> |
|
||||
select TENANT_ID, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETE_BY, DELETE_TIME, bill_serial, biil_type, target_code, asset_id, val_orginal, val_adjust, val_result, id, date_adjust, hour_adjust, date_adjust_str from dc_busi_target_adjust |
|
||||
</sql> |
|
||||
|
|
||||
<select id="selectDcBusiTargetAdjustList" parameterType="DcBusiTargetAdjust" resultMap="DcBusiTargetAdjustResult"> |
|
||||
<include refid="selectDcBusiTargetAdjustVo"/> |
|
||||
<where> |
|
||||
<if test="tenantId != null and tenantId != ''"> and TENANT_ID = #{tenantId}</if> |
|
||||
<if test="REVISION != null "> and REVISION = #{REVISION}</if> |
|
||||
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if> |
|
||||
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if> |
|
||||
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if> |
|
||||
<if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if> |
|
||||
<if test="deleteBy != null and deleteBy != ''"> and DELETE_BY = #{deleteBy}</if> |
|
||||
<if test="deleteTime != null "> and DELETE_TIME = #{deleteTime}</if> |
|
||||
<if test="billSerial != null and billSerial != ''"> and bill_serial = #{billSerial}</if> |
|
||||
<if test="biilType != null and biilType != ''"> and biil_type = #{biilType}</if> |
|
||||
<if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if> |
|
||||
<if test="assetId != null "> and asset_id = #{assetId}</if> |
|
||||
<if test="valOrginal != null "> and val_orginal = #{valOrginal}</if> |
|
||||
<if test="valAdjust != null "> and val_adjust = #{valAdjust}</if> |
|
||||
<if test="valResult != null "> and val_result = #{valResult}</if> |
|
||||
<if test="dateAdjust != null "> and date_adjust = #{dateAdjust}</if> |
|
||||
<if test="hourAdjust != null and hourAdjust != ''"> and hour_adjust = #{hourAdjust}</if> |
|
||||
<if test="dateAdjustStr != null and dateAdjustStr != ''"> and date_adjust_str = #{dateAdjustStr}</if> |
|
||||
</where> |
|
||||
</select> |
|
||||
|
|
||||
<select id="selectDcBusiTargetAdjustById" parameterType="Long" resultMap="DcBusiTargetAdjustResult"> |
|
||||
<include refid="selectDcBusiTargetAdjustVo"/> |
|
||||
where id = #{id} |
|
||||
</select> |
|
||||
|
|
||||
<insert id="insertDcBusiTargetAdjust" parameterType="DcBusiTargetAdjust" useGeneratedKeys="true" keyProperty="id"> |
|
||||
insert into dc_busi_target_adjust |
|
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
||||
<if test="tenantId != null">TENANT_ID,</if> |
|
||||
<if test="REVISION != null">REVISION,</if> |
|
||||
<if test="createdBy != null">CREATED_BY,</if> |
|
||||
<if test="createdTime != null">CREATED_TIME,</if> |
|
||||
<if test="updatedBy != null">UPDATED_BY,</if> |
|
||||
<if test="updatedTime != null">UPDATED_TIME,</if> |
|
||||
<if test="deleteBy != null">DELETE_BY,</if> |
|
||||
<if test="deleteTime != null">DELETE_TIME,</if> |
|
||||
<if test="billSerial != null">bill_serial,</if> |
|
||||
<if test="biilType != null">biil_type,</if> |
|
||||
<if test="targetCode != null">target_code,</if> |
|
||||
<if test="assetId != null">asset_id,</if> |
|
||||
<if test="valOrginal != null">val_orginal,</if> |
|
||||
<if test="valAdjust != null">val_adjust,</if> |
|
||||
<if test="valResult != null">val_result,</if> |
|
||||
<if test="dateAdjust != null">date_adjust,</if> |
|
||||
<if test="hourAdjust != null">hour_adjust,</if> |
|
||||
<if test="dateAdjustStr != null">date_adjust_str,</if> |
|
||||
</trim> |
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
||||
<if test="tenantId != null">#{tenantId},</if> |
|
||||
<if test="REVISION != null">#{REVISION},</if> |
|
||||
<if test="createdBy != null">#{createdBy},</if> |
|
||||
<if test="createdTime != null">#{createdTime},</if> |
|
||||
<if test="updatedBy != null">#{updatedBy},</if> |
|
||||
<if test="updatedTime != null">#{updatedTime},</if> |
|
||||
<if test="deleteBy != null">#{deleteBy},</if> |
|
||||
<if test="deleteTime != null">#{deleteTime},</if> |
|
||||
<if test="billSerial != null">#{billSerial},</if> |
|
||||
<if test="biilType != null">#{biilType},</if> |
|
||||
<if test="targetCode != null">#{targetCode},</if> |
|
||||
<if test="assetId != null">#{assetId},</if> |
|
||||
<if test="valOrginal != null">#{valOrginal},</if> |
|
||||
<if test="valAdjust != null">#{valAdjust},</if> |
|
||||
<if test="valResult != null">#{valResult},</if> |
|
||||
<if test="dateAdjust != null">#{dateAdjust},</if> |
|
||||
<if test="hourAdjust != null">#{hourAdjust},</if> |
|
||||
<if test="dateAdjustStr != null">#{dateAdjustStr},</if> |
|
||||
</trim> |
|
||||
</insert> |
|
||||
|
|
||||
<update id="updateDcBusiTargetAdjust" parameterType="DcBusiTargetAdjust"> |
|
||||
update dc_busi_target_adjust |
|
||||
<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="billSerial != null">bill_serial = #{billSerial},</if> |
|
||||
<if test="biilType != null">biil_type = #{biilType},</if> |
|
||||
<if test="targetCode != null">target_code = #{targetCode},</if> |
|
||||
<if test="assetId != null">asset_id = #{assetId},</if> |
|
||||
<if test="valOrginal != null">val_orginal = #{valOrginal},</if> |
|
||||
<if test="valAdjust != null">val_adjust = #{valAdjust},</if> |
|
||||
<if test="valResult != null">val_result = #{valResult},</if> |
|
||||
<if test="dateAdjust != null">date_adjust = #{dateAdjust},</if> |
|
||||
<if test="hourAdjust != null">hour_adjust = #{hourAdjust},</if> |
|
||||
<if test="dateAdjustStr != null">date_adjust_str = #{dateAdjustStr},</if> |
|
||||
</trim> |
|
||||
where id = #{id} |
|
||||
</update> |
|
||||
|
|
||||
<delete id="deleteDcBusiTargetAdjustById" parameterType="Long"> |
|
||||
delete from dc_busi_target_adjust where id = #{id} |
|
||||
</delete> |
|
||||
|
|
||||
<delete id="deleteDcBusiTargetAdjustByIds" parameterType="String"> |
|
||||
delete from dc_busi_target_adjust where id in |
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|
||||
#{id} |
|
||||
</foreach> |
|
||||
</delete> |
|
||||
</mapper> |
|
@ -1,296 +0,0 @@ |
|||||
<?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.bi.mapper.DcBusiTargetDraftMapper"> |
|
||||
|
|
||||
<resultMap type="DcBusiTargetDraft" id="DcBusiTargetDraftResult"> |
|
||||
<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="id" column="id" /> |
|
||||
<result property="targetId" column="target_id" /> |
|
||||
<result property="targetCode" column="target_code" /> |
|
||||
<result property="countYear" column="count_year" /> |
|
||||
<result property="countMonth" column="count_month" /> |
|
||||
<result property="countDay" column="count_day" /> |
|
||||
<result property="val01" column="val01" /> |
|
||||
<result property="val02" column="val02" /> |
|
||||
<result property="val03" column="val03" /> |
|
||||
<result property="val04" column="val04" /> |
|
||||
<result property="val05" column="val05" /> |
|
||||
<result property="val06" column="val06" /> |
|
||||
<result property="val07" column="val07" /> |
|
||||
<result property="val08" column="val08" /> |
|
||||
<result property="val09" column="val09" /> |
|
||||
<result property="val10" column="val10" /> |
|
||||
<result property="val11" column="val11" /> |
|
||||
<result property="val12" column="val12" /> |
|
||||
<result property="val13" column="val13" /> |
|
||||
<result property="val14" column="val14" /> |
|
||||
<result property="val15" column="val15" /> |
|
||||
<result property="val16" column="val16" /> |
|
||||
<result property="val17" column="val17" /> |
|
||||
<result property="val18" column="val18" /> |
|
||||
<result property="val19" column="val19" /> |
|
||||
<result property="val20" column="val20" /> |
|
||||
<result property="val21" column="val21" /> |
|
||||
<result property="val22" column="val22" /> |
|
||||
<result property="val23" column="val23" /> |
|
||||
<result property="val24" column="val24" /> |
|
||||
<result property="companyCode" column="company_code" /> |
|
||||
<result property="companyName" column="company_name" /> |
|
||||
<result property="orgCode" column="org_code" /> |
|
||||
<result property="orgName" column="org_name" /> |
|
||||
<result property="workType" column="work_type" /> |
|
||||
<result property="countUnitName" column="count_unit_name" /> |
|
||||
<result property="assetId" column="asset_id" /> |
|
||||
<result property="valUpLimit" column="val_up_limit" /> |
|
||||
<result property="valDownLimit" column="val_down_limit" /> |
|
||||
<result property="valAvg" column="val_avg" /> |
|
||||
<result property="valTotal" column="val_total" /> |
|
||||
<result property="valCompute" column="val_compute" /> |
|
||||
</resultMap> |
|
||||
|
|
||||
<sql id="selectDcBusiTargetDraftVo"> |
|
||||
select TENANT_ID, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETE_BY, DELETE_TIME, id, target_id, target_code, count_year, count_month, count_day, val01, val02, val03, val04, val05, val06, val07, val08, val09, val10, val11, val12, val13, val14, val15, val16, val17, val18, val19, val20, val21, val22, val23, val24, company_code, company_name, org_code, org_name, work_type, count_unit_name, asset_id, val_up_limit, val_down_limit, val_avg, val_total, val_compute from dc_busi_target_draft |
|
||||
</sql> |
|
||||
|
|
||||
<select id="selectDcBusiTargetDraftList" parameterType="DcBusiTargetDraft" resultMap="DcBusiTargetDraftResult"> |
|
||||
<include refid="selectDcBusiTargetDraftVo"/> |
|
||||
<where> |
|
||||
<if test="tenantId != null and tenantId != ''"> and TENANT_ID = #{tenantId}</if> |
|
||||
<if test="REVISION != null "> and REVISION = #{REVISION}</if> |
|
||||
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if> |
|
||||
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if> |
|
||||
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if> |
|
||||
<if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if> |
|
||||
<if test="deleteBy != null and deleteBy != ''"> and DELETE_BY = #{deleteBy}</if> |
|
||||
<if test="deleteTime != null "> and DELETE_TIME = #{deleteTime}</if> |
|
||||
<if test="targetId != null "> and target_id = #{targetId}</if> |
|
||||
<if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if> |
|
||||
<if test="countYear != null and countYear != ''"> and count_year = #{countYear}</if> |
|
||||
<if test="countMonth != null and countMonth != ''"> and count_month = #{countMonth}</if> |
|
||||
<if test="countDay != null and countDay != ''"> and count_day = #{countDay}</if> |
|
||||
<if test="val01 != null "> and val01 = #{val01}</if> |
|
||||
<if test="val02 != null "> and val02 = #{val02}</if> |
|
||||
<if test="val03 != null "> and val03 = #{val03}</if> |
|
||||
<if test="val04 != null "> and val04 = #{val04}</if> |
|
||||
<if test="val05 != null "> and val05 = #{val05}</if> |
|
||||
<if test="val06 != null "> and val06 = #{val06}</if> |
|
||||
<if test="val07 != null "> and val07 = #{val07}</if> |
|
||||
<if test="val08 != null "> and val08 = #{val08}</if> |
|
||||
<if test="val09 != null "> and val09 = #{val09}</if> |
|
||||
<if test="val10 != null "> and val10 = #{val10}</if> |
|
||||
<if test="val11 != null "> and val11 = #{val11}</if> |
|
||||
<if test="val12 != null "> and val12 = #{val12}</if> |
|
||||
<if test="val13 != null "> and val13 = #{val13}</if> |
|
||||
<if test="val14 != null "> and val14 = #{val14}</if> |
|
||||
<if test="val15 != null "> and val15 = #{val15}</if> |
|
||||
<if test="val16 != null "> and val16 = #{val16}</if> |
|
||||
<if test="val17 != null "> and val17 = #{val17}</if> |
|
||||
<if test="val18 != null "> and val18 = #{val18}</if> |
|
||||
<if test="val19 != null "> and val19 = #{val19}</if> |
|
||||
<if test="val20 != null "> and val20 = #{val20}</if> |
|
||||
<if test="val21 != null "> and val21 = #{val21}</if> |
|
||||
<if test="val22 != null "> and val22 = #{val22}</if> |
|
||||
<if test="val23 != null "> and val23 = #{val23}</if> |
|
||||
<if test="val24 != null "> and val24 = #{val24}</if> |
|
||||
<if test="companyCode != null and companyCode != ''"> and company_code = #{companyCode}</if> |
|
||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if> |
|
||||
<if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
|
||||
<if test="orgName != null and orgName != ''"> and org_name like concat('%', #{orgName}, '%')</if> |
|
||||
<if test="workType != null and workType != ''"> and work_type = #{workType}</if> |
|
||||
<if test="countUnitName != null and countUnitName != ''"> and count_unit_name like concat('%', #{countUnitName}, '%')</if> |
|
||||
<if test="assetId != null "> and asset_id = #{assetId}</if> |
|
||||
<if test="valUpLimit != null "> and val_up_limit = #{valUpLimit}</if> |
|
||||
<if test="valDownLimit != null "> and val_down_limit = #{valDownLimit}</if> |
|
||||
<if test="valAvg != null "> and val_avg = #{valAvg}</if> |
|
||||
<if test="valTotal != null "> and val_total = #{valTotal}</if> |
|
||||
<if test="valCompute != null "> and val_compute = #{valCompute}</if> |
|
||||
</where> |
|
||||
</select> |
|
||||
|
|
||||
<select id="selectDcBusiTargetDraftById" parameterType="Long" resultMap="DcBusiTargetDraftResult"> |
|
||||
<include refid="selectDcBusiTargetDraftVo"/> |
|
||||
where id = #{id} |
|
||||
</select> |
|
||||
|
|
||||
<insert id="insertDcBusiTargetDraft" parameterType="DcBusiTargetDraft" useGeneratedKeys="true" keyProperty="id"> |
|
||||
insert into dc_busi_target_draft |
|
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
||||
<if test="tenantId != null">TENANT_ID,</if> |
|
||||
<if test="REVISION != null">REVISION,</if> |
|
||||
<if test="createdBy != null">CREATED_BY,</if> |
|
||||
<if test="createdTime != null">CREATED_TIME,</if> |
|
||||
<if test="updatedBy != null">UPDATED_BY,</if> |
|
||||
<if test="updatedTime != null">UPDATED_TIME,</if> |
|
||||
<if test="deleteBy != null">DELETE_BY,</if> |
|
||||
<if test="deleteTime != null">DELETE_TIME,</if> |
|
||||
<if test="targetId != null">target_id,</if> |
|
||||
<if test="targetCode != null">target_code,</if> |
|
||||
<if test="countYear != null">count_year,</if> |
|
||||
<if test="countMonth != null">count_month,</if> |
|
||||
<if test="countDay != null">count_day,</if> |
|
||||
<if test="val01 != null">val01,</if> |
|
||||
<if test="val02 != null">val02,</if> |
|
||||
<if test="val03 != null">val03,</if> |
|
||||
<if test="val04 != null">val04,</if> |
|
||||
<if test="val05 != null">val05,</if> |
|
||||
<if test="val06 != null">val06,</if> |
|
||||
<if test="val07 != null">val07,</if> |
|
||||
<if test="val08 != null">val08,</if> |
|
||||
<if test="val09 != null">val09,</if> |
|
||||
<if test="val10 != null">val10,</if> |
|
||||
<if test="val11 != null">val11,</if> |
|
||||
<if test="val12 != null">val12,</if> |
|
||||
<if test="val13 != null">val13,</if> |
|
||||
<if test="val14 != null">val14,</if> |
|
||||
<if test="val15 != null">val15,</if> |
|
||||
<if test="val16 != null">val16,</if> |
|
||||
<if test="val17 != null">val17,</if> |
|
||||
<if test="val18 != null">val18,</if> |
|
||||
<if test="val19 != null">val19,</if> |
|
||||
<if test="val20 != null">val20,</if> |
|
||||
<if test="val21 != null">val21,</if> |
|
||||
<if test="val22 != null">val22,</if> |
|
||||
<if test="val23 != null">val23,</if> |
|
||||
<if test="val24 != null">val24,</if> |
|
||||
<if test="companyCode != null">company_code,</if> |
|
||||
<if test="companyName != null">company_name,</if> |
|
||||
<if test="orgCode != null">org_code,</if> |
|
||||
<if test="orgName != null">org_name,</if> |
|
||||
<if test="workType != null">work_type,</if> |
|
||||
<if test="countUnitName != null">count_unit_name,</if> |
|
||||
<if test="assetId != null">asset_id,</if> |
|
||||
<if test="valUpLimit != null">val_up_limit,</if> |
|
||||
<if test="valDownLimit != null">val_down_limit,</if> |
|
||||
<if test="valAvg != null">val_avg,</if> |
|
||||
<if test="valTotal != null">val_total,</if> |
|
||||
<if test="valCompute != null">val_compute,</if> |
|
||||
</trim> |
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
||||
<if test="tenantId != null">#{tenantId},</if> |
|
||||
<if test="REVISION != null">#{REVISION},</if> |
|
||||
<if test="createdBy != null">#{createdBy},</if> |
|
||||
<if test="createdTime != null">#{createdTime},</if> |
|
||||
<if test="updatedBy != null">#{updatedBy},</if> |
|
||||
<if test="updatedTime != null">#{updatedTime},</if> |
|
||||
<if test="deleteBy != null">#{deleteBy},</if> |
|
||||
<if test="deleteTime != null">#{deleteTime},</if> |
|
||||
<if test="targetId != null">#{targetId},</if> |
|
||||
<if test="targetCode != null">#{targetCode},</if> |
|
||||
<if test="countYear != null">#{countYear},</if> |
|
||||
<if test="countMonth != null">#{countMonth},</if> |
|
||||
<if test="countDay != null">#{countDay},</if> |
|
||||
<if test="val01 != null">#{val01},</if> |
|
||||
<if test="val02 != null">#{val02},</if> |
|
||||
<if test="val03 != null">#{val03},</if> |
|
||||
<if test="val04 != null">#{val04},</if> |
|
||||
<if test="val05 != null">#{val05},</if> |
|
||||
<if test="val06 != null">#{val06},</if> |
|
||||
<if test="val07 != null">#{val07},</if> |
|
||||
<if test="val08 != null">#{val08},</if> |
|
||||
<if test="val09 != null">#{val09},</if> |
|
||||
<if test="val10 != null">#{val10},</if> |
|
||||
<if test="val11 != null">#{val11},</if> |
|
||||
<if test="val12 != null">#{val12},</if> |
|
||||
<if test="val13 != null">#{val13},</if> |
|
||||
<if test="val14 != null">#{val14},</if> |
|
||||
<if test="val15 != null">#{val15},</if> |
|
||||
<if test="val16 != null">#{val16},</if> |
|
||||
<if test="val17 != null">#{val17},</if> |
|
||||
<if test="val18 != null">#{val18},</if> |
|
||||
<if test="val19 != null">#{val19},</if> |
|
||||
<if test="val20 != null">#{val20},</if> |
|
||||
<if test="val21 != null">#{val21},</if> |
|
||||
<if test="val22 != null">#{val22},</if> |
|
||||
<if test="val23 != null">#{val23},</if> |
|
||||
<if test="val24 != null">#{val24},</if> |
|
||||
<if test="companyCode != null">#{companyCode},</if> |
|
||||
<if test="companyName != null">#{companyName},</if> |
|
||||
<if test="orgCode != null">#{orgCode},</if> |
|
||||
<if test="orgName != null">#{orgName},</if> |
|
||||
<if test="workType != null">#{workType},</if> |
|
||||
<if test="countUnitName != null">#{countUnitName},</if> |
|
||||
<if test="assetId != null">#{assetId},</if> |
|
||||
<if test="valUpLimit != null">#{valUpLimit},</if> |
|
||||
<if test="valDownLimit != null">#{valDownLimit},</if> |
|
||||
<if test="valAvg != null">#{valAvg},</if> |
|
||||
<if test="valTotal != null">#{valTotal},</if> |
|
||||
<if test="valCompute != null">#{valCompute},</if> |
|
||||
</trim> |
|
||||
</insert> |
|
||||
|
|
||||
<update id="updateDcBusiTargetDraft" parameterType="DcBusiTargetDraft"> |
|
||||
update dc_busi_target_draft |
|
||||
<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="targetId != null">target_id = #{targetId},</if> |
|
||||
<if test="targetCode != null">target_code = #{targetCode},</if> |
|
||||
<if test="countYear != null">count_year = #{countYear},</if> |
|
||||
<if test="countMonth != null">count_month = #{countMonth},</if> |
|
||||
<if test="countDay != null">count_day = #{countDay},</if> |
|
||||
<if test="val01 != null">val01 = #{val01},</if> |
|
||||
<if test="val02 != null">val02 = #{val02},</if> |
|
||||
<if test="val03 != null">val03 = #{val03},</if> |
|
||||
<if test="val04 != null">val04 = #{val04},</if> |
|
||||
<if test="val05 != null">val05 = #{val05},</if> |
|
||||
<if test="val06 != null">val06 = #{val06},</if> |
|
||||
<if test="val07 != null">val07 = #{val07},</if> |
|
||||
<if test="val08 != null">val08 = #{val08},</if> |
|
||||
<if test="val09 != null">val09 = #{val09},</if> |
|
||||
<if test="val10 != null">val10 = #{val10},</if> |
|
||||
<if test="val11 != null">val11 = #{val11},</if> |
|
||||
<if test="val12 != null">val12 = #{val12},</if> |
|
||||
<if test="val13 != null">val13 = #{val13},</if> |
|
||||
<if test="val14 != null">val14 = #{val14},</if> |
|
||||
<if test="val15 != null">val15 = #{val15},</if> |
|
||||
<if test="val16 != null">val16 = #{val16},</if> |
|
||||
<if test="val17 != null">val17 = #{val17},</if> |
|
||||
<if test="val18 != null">val18 = #{val18},</if> |
|
||||
<if test="val19 != null">val19 = #{val19},</if> |
|
||||
<if test="val20 != null">val20 = #{val20},</if> |
|
||||
<if test="val21 != null">val21 = #{val21},</if> |
|
||||
<if test="val22 != null">val22 = #{val22},</if> |
|
||||
<if test="val23 != null">val23 = #{val23},</if> |
|
||||
<if test="val24 != null">val24 = #{val24},</if> |
|
||||
<if test="companyCode != null">company_code = #{companyCode},</if> |
|
||||
<if test="companyName != null">company_name = #{companyName},</if> |
|
||||
<if test="orgCode != null">org_code = #{orgCode},</if> |
|
||||
<if test="orgName != null">org_name = #{orgName},</if> |
|
||||
<if test="workType != null">work_type = #{workType},</if> |
|
||||
<if test="countUnitName != null">count_unit_name = #{countUnitName},</if> |
|
||||
<if test="assetId != null">asset_id = #{assetId},</if> |
|
||||
<if test="valUpLimit != null">val_up_limit = #{valUpLimit},</if> |
|
||||
<if test="valDownLimit != null">val_down_limit = #{valDownLimit},</if> |
|
||||
<if test="valAvg != null">val_avg = #{valAvg},</if> |
|
||||
<if test="valTotal != null">val_total = #{valTotal},</if> |
|
||||
<if test="valCompute != null">val_compute = #{valCompute},</if> |
|
||||
</trim> |
|
||||
where id = #{id} |
|
||||
</update> |
|
||||
|
|
||||
<delete id="deleteDcBusiTargetDraftById" parameterType="Long"> |
|
||||
delete from dc_busi_target_draft where id = #{id} |
|
||||
</delete> |
|
||||
|
|
||||
<delete id="deleteDcBusiTargetDraftByIds" parameterType="String"> |
|
||||
delete from dc_busi_target_draft where id in |
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|
||||
#{id} |
|
||||
</foreach> |
|
||||
</delete> |
|
||||
</mapper> |
|
@ -0,0 +1,93 @@ |
|||||
|
<?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.serial.mapper.CodeRuleDefineMapper"> |
||||
|
|
||||
|
<resultMap type="CodeRuleDefine" id="codeRuleDefineResult"> |
||||
|
<result property="defineId" column="define_id" /> |
||||
|
<result property="defHeader" column="def_header" /> |
||||
|
<result property="defClass" column="def_class" /> |
||||
|
<result property="deptId" column="dept_id" /> |
||||
|
<result property="createdBy" column="create_by" /> |
||||
|
<result property="createdTime" column="create_time" /> |
||||
|
<result property="updatedBy" column="update_by" /> |
||||
|
<result property="updatedTime" column="update_time" /> |
||||
|
<result property="defHeaderType" column="def_header_type" /> |
||||
|
<result property="serialLength" column="serial_length" /> |
||||
|
|
||||
|
</resultMap> |
||||
|
|
||||
|
<sql id="selectCodeRuleDefineVo"> |
||||
|
select define_id, def_header, def_class, dept_id, create_by, create_time, update_by, update_time,def_header_type,serial_length from sys_billno_define |
||||
|
</sql> |
||||
|
|
||||
|
<select id="selectCodeRuleDefineList" parameterType="CodeRuleDefine" resultMap="codeRuleDefineResult"> |
||||
|
<include refid="selectCodeRuleDefineVo"/> |
||||
|
<where> |
||||
|
<if test="defHeader != null and defHeader != ''"> and def_header = #{defHeader}</if> |
||||
|
<if test="defClass != null and defClass != ''"> and def_class = #{defClass}</if> |
||||
|
<if test="deptId != null "> and dept_id = #{deptId}</if> |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectCodeRuleDefineByDefineId" parameterType="Long" resultMap="codeRuleDefineResult"> |
||||
|
<include refid="selectCodeRuleDefineVo"/> |
||||
|
where define_id = #{defineId} |
||||
|
</select> |
||||
|
|
||||
|
<insert id="insertCodeRuleDefine" parameterType="CodeRuleDefine"> |
||||
|
insert into sys_billno_define |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="defineId != null">define_id,</if> |
||||
|
<if test="defHeader != null">def_header,</if> |
||||
|
<if test="defClass != null">def_class,</if> |
||||
|
<if test="deptId != null">dept_id,</if> |
||||
|
<if test="createBy != null">create_by,</if> |
||||
|
<if test="createTime != null">create_time,</if> |
||||
|
<if test="updateBy != null">update_by,</if> |
||||
|
<if test="updateTime != null">update_time,</if> |
||||
|
<if test="defHeaderType != null">def_header_type,</if> |
||||
|
<if test="serialLength != null">serial_length,</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="defineId != null">#{defineId},</if> |
||||
|
<if test="defHeader != null">#{defHeader},</if> |
||||
|
<if test="defClass != null">#{defClass},</if> |
||||
|
<if test="deptId != null">#{deptId},</if> |
||||
|
<if test="createBy != null">#{createBy},</if> |
||||
|
<if test="createTime != null">#{createTime},</if> |
||||
|
<if test="updateBy != null">#{updateBy},</if> |
||||
|
<if test="updateTime != null">#{updateTime},</if> |
||||
|
<if test="defHeaderType != null">#{defHeaderType},</if> |
||||
|
<if test="serialLength != null">#{serialLength},</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
|
||||
|
<update id="updateCodeRuleDefine" parameterType="CodeRuleDefine"> |
||||
|
update sys_billno_define |
||||
|
<trim prefix="SET" suffixOverrides=","> |
||||
|
<if test="defHeader != null">def_header = #{defHeader},</if> |
||||
|
<if test="defClass != null">def_class = #{defClass},</if> |
||||
|
<if test="deptId != null">dept_id = #{deptId},</if> |
||||
|
<if test="createBy != null">create_by = #{createBy},</if> |
||||
|
<if test="createTime != null">create_time = #{createTime},</if> |
||||
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
||||
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
||||
|
<if test="defHeaderType != null">def_header_type = #{defHeaderType},</if> |
||||
|
<if test="serialLength != null">serial_length = #{serialLength},</if> |
||||
|
</trim> |
||||
|
where define_id = #{defineId} |
||||
|
</update> |
||||
|
|
||||
|
<delete id="deleteCodeRuleDefineByDefineId" parameterType="Long"> |
||||
|
delete from sys_billno_define where define_id = #{defineId} |
||||
|
</delete> |
||||
|
|
||||
|
<delete id="deleteCodeRuleDefineByDefineIds" parameterType="String"> |
||||
|
delete from sys_billno_define where define_id in |
||||
|
<foreach item="defineId" collection="array" open="(" separator="," close=")"> |
||||
|
#{defineId} |
||||
|
</foreach> |
||||
|
</delete> |
||||
|
</mapper> |
@ -0,0 +1,99 @@ |
|||||
|
<?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.serial.mapper.CodeRuleSerialMapper"> |
||||
|
|
||||
|
<resultMap type="CodeRuleSerial" id="CodeRuleSerialResult"> |
||||
|
<result property="id" column="id" /> |
||||
|
<result property="headerBillno" column="header_billno" /> |
||||
|
<result property="lockSerial" column="lock_serial" /> |
||||
|
<result property="serialNo" column="serial_no" /> |
||||
|
<result property="createdBy" column="create_by" /> |
||||
|
<result property="createdTime" column="create_time" /> |
||||
|
<result property="updatedBy" column="update_by" /> |
||||
|
<result property="updatedTime" column="update_time" /> |
||||
|
</resultMap> |
||||
|
|
||||
|
<sql id="selectCodeRuleSerialVo"> |
||||
|
select id, header_billno, lock_serial, seselectCodeRuleSerialListrial_no, create_by, create_time, update_by, update_time from sys_billno_serial |
||||
|
</sql> |
||||
|
|
||||
|
<select id="" parameterType="CodeRuleSerial" resultMap="CodeRuleSerialResult"> |
||||
|
<include refid="selectCodeRuleSerialVo"/> |
||||
|
<where> |
||||
|
<if test="headerBillno != null and headerBillno != ''"> and header_billno = #{headerBillno}</if> |
||||
|
<if test="lockSerial != null "> and lock_serial = #{lockSerial}</if> |
||||
|
<if test="serialNo != null "> and serial_no = #{serialNo}</if> |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectCodeRuleSerialById" parameterType="Long" resultMap="CodeRuleSerialResult"> |
||||
|
<include refid="selectCodeRuleSerialVo"/> |
||||
|
where id = #{id} |
||||
|
</select> |
||||
|
|
||||
|
<insert id="insertCodeRuleSerial" parameterType="CodeRuleSerial" useGeneratedKeys="true" keyProperty="id"> |
||||
|
insert into sys_billno_serial |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="headerBillno != null">header_billno,</if> |
||||
|
<if test="lockSerial != null">lock_serial,</if> |
||||
|
<if test="serialNo != null">serial_no,</if> |
||||
|
<if test="createBy != null">create_by,</if> |
||||
|
<if test="createTime != null">create_time,</if> |
||||
|
<if test="updateBy != null">update_by,</if> |
||||
|
<if test="updateTime != null">update_time,</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="headerBillno != null">#{headerBillno},</if> |
||||
|
<if test="lockSerial != null">#{lockSerial},</if> |
||||
|
<if test="serialNo != null">#{serialNo},</if> |
||||
|
<if test="createBy != null">#{createBy},</if> |
||||
|
<if test="createTime != null">#{createTime},</if> |
||||
|
<if test="updateBy != null">#{updateBy},</if> |
||||
|
<if test="updateTime != null">#{updateTime},</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
|
||||
|
<update id="updateCodeRuleSerial" parameterType="CodeRuleSerial"> |
||||
|
update sys_billno_serial |
||||
|
<trim prefix="SET" suffixOverrides=","> |
||||
|
<if test="headerBillno != null">header_billno = #{headerBillno},</if> |
||||
|
<if test="lockSerial != null">lock_serial = #{lockSerial},</if> |
||||
|
<if test="serialNo != null">serial_no = #{serialNo},</if> |
||||
|
<if test="createBy != null">create_by = #{createBy},</if> |
||||
|
<if test="createTime != null">create_time = #{createTime},</if> |
||||
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
||||
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
||||
|
</trim> |
||||
|
where id = #{id} |
||||
|
</update> |
||||
|
|
||||
|
<delete id="deleteCodeRuleSerialById" parameterType="Long"> |
||||
|
delete from sys_billno_serial where id = #{id} |
||||
|
</delete> |
||||
|
|
||||
|
<delete id="deleteCodeRuleSerialByIds" parameterType="String"> |
||||
|
delete from sys_billno_serial where id in |
||||
|
<foreach item="id" collection="array" open="(" separator="," close=")"> |
||||
|
#{id} |
||||
|
</foreach> |
||||
|
</delete> |
||||
|
|
||||
|
<!-- add by zhousq --> |
||||
|
<update id="updateCodeRuleSerialLock" parameterType="CodeRuleSerial"> |
||||
|
update sys_billno_serial |
||||
|
<trim prefix="SET" suffixOverrides=","> |
||||
|
lock_serial= #{serialNo},serial_no = #{serialNo}, |
||||
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
||||
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
||||
|
</trim> |
||||
|
where header_billno = #{headerBillno} and lock_serial= #{lockSerial} |
||||
|
</update> |
||||
|
|
||||
|
<select id="selectCodeRuleSerialByHeader" parameterType="String" resultMap="CodeRuleSerialResult"> |
||||
|
<include refid="selectCodeRuleSerialVo"/> |
||||
|
where header_billno = #{headerBillno} |
||||
|
</select> |
||||
|
|
||||
|
</mapper> |
Loading…
Reference in new issue