Browse Source

Merge branch 'develop' of https://gitee.com/lmlz_0/manage into develop

develop
ljlong_2630 12 months ago
parent
commit
87171a1e36
  1. 2
      lzbi-generator/src/main/java/com/lzbi/generator/util/GenUtils.java
  2. 4
      lzbi-generator/src/main/java/com/lzbi/generator/util/VelocityUtils.java
  3. 57
      lzbi-generator/src/main/resources/vm/java/controller.java.vm
  4. 4
      lzbi-generator/src/main/resources/vm/java/domain.java.vm
  5. 30
      lzbi-generator/src/main/resources/vm/java/mapper.java.vm
  6. 58
      lzbi-generator/src/main/resources/vm/java/service.java.vm
  7. 2
      lzbi-generator/src/main/resources/vm/java/sub-domain.java.vm
  8. 20
      lzbi-generator/src/main/resources/vm/xml/mapper.xml.vm
  9. 8
      lzbi-module/src/main/java/com/lzbi/asset/mapper/DcBaseAssetInfoMapper.java
  10. 131
      lzbi-module/src/main/java/com/lzbi/code/controller/DcBusiCoderuleConfigController.java
  11. 62
      lzbi-module/src/main/java/com/lzbi/code/domain/DcBaseCoderuleDefine.java
  12. 53
      lzbi-module/src/main/java/com/lzbi/code/domain/DcBusiCoderuleConfig.java
  13. 63
      lzbi-module/src/main/java/com/lzbi/code/mapper/DcBusiCoderuleConfigMapper.java
  14. 1
      lzbi-module/src/main/java/com/lzbi/code/service/CodeNoGenerater.java
  15. 91
      lzbi-module/src/main/java/com/lzbi/code/service/DcBusiCoderuleConfigService.java
  16. 40
      lzbi-module/src/main/java/com/lzbi/common/SelectOptionsControl.java
  17. 131
      lzbi-module/src/main/java/com/lzbi/draft/controller/DcBusiParamDraftDayController.java
  18. 143
      lzbi-module/src/main/java/com/lzbi/draft/controller/DcBusiTargetAdjustDayMasterController.java
  19. 26
      lzbi-module/src/main/java/com/lzbi/draft/controller/DcBusiTargetDraftDayController.java
  20. 133
      lzbi-module/src/main/java/com/lzbi/draft/controller/DcBusiTargetDraftMonthController.java
  21. 262
      lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiParamDraftDay.java
  22. 170
      lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetAdjustDayMasterDao.java
  23. 118
      lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetAdjustDaySubDao.java
  24. 23
      lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetDraftDay.java
  25. 230
      lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetDraftMonth.java
  26. 68
      lzbi-module/src/main/java/com/lzbi/draft/mapper/DcBusiParamDraftDayMapper.java
  27. 63
      lzbi-module/src/main/java/com/lzbi/draft/mapper/DcBusiTargetAdjustDayMasterMapper.java
  28. 63
      lzbi-module/src/main/java/com/lzbi/draft/mapper/DcBusiTargetAdjustDaySubMapper.java
  29. 20
      lzbi-module/src/main/java/com/lzbi/draft/mapper/DcBusiTargetDraftDayMapper.java
  30. 63
      lzbi-module/src/main/java/com/lzbi/draft/mapper/DcBusiTargetDraftMonthMapper.java
  31. 97
      lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiParamDraftDayService.java
  32. 235
      lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiTargetAdjustDayMasterService.java
  33. 96
      lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiTargetAdjustDaySubService.java
  34. 38
      lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiTargetDraftDayService.java
  35. 91
      lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiTargetDraftMonthService.java
  36. 8
      lzbi-module/src/main/java/com/lzbi/special/mapper/DcBaseWorkSpecialMapper.java
  37. 2
      lzbi-module/src/main/java/com/lzbi/task/TaskParamDfratProcess.java
  38. 5
      lzbi-module/src/main/resources/mapper/asset/DcBaseAssetInfoMapper.xml
  39. 6
      lzbi-module/src/main/resources/mapper/asset/DcBaseWorkSpecialMapper.xml
  40. 101
      lzbi-module/src/main/resources/mapper/asset/DcBusiCoderuleConfigMapper.xml
  41. 484
      lzbi-module/src/main/resources/mapper/asset/DcBusiParamDraftDayMapper.xml
  42. 179
      lzbi-module/src/main/resources/mapper/asset/DcBusiTargetAdjustDayMasterMapper.xml
  43. 128
      lzbi-module/src/main/resources/mapper/asset/DcBusiTargetAdjustDaySubMapper.xml
  44. 130
      lzbi-module/src/main/resources/mapper/asset/DcBusiTargetDraftDayMapper.xml
  45. 288
      lzbi-module/src/main/resources/mapper/draft/DcBusiTargetDraftMonthMapper.xml

2
lzbi-generator/src/main/java/com/lzbi/generator/util/GenUtils.java

@ -217,7 +217,7 @@ public class GenUtils
*/
public static String replaceText(String text)
{
return RegExUtils.replaceAll(text, "(?:表|若依)", "");
return RegExUtils.replaceAll(text, "(?:表|联美)", "");
}
/**

4
lzbi-generator/src/main/java/com/lzbi/generator/util/VelocityUtils.java

@ -175,11 +175,11 @@ public class VelocityUtils
if (template.contains("domain.java.vm"))
{
fileName = StringUtils.format("{}/domain/{}Dao.java", javaPath, className);
fileName = StringUtils.format("{}/domain/{}.java", javaPath, className);
}
if (template.contains("sub-domain.java.vm") && StringUtils.equals(GenConstants.TPL_SUB, genTable.getTplCategory()))
{
fileName = StringUtils.format("{}/domain/{}Dao.java", javaPath, genTable.getSubTable().getClassName());
fileName = StringUtils.format("{}/domain/{}.java", javaPath, genTable.getSubTable().getClassName());
}
else if (template.contains("mapper.java.vm"))
{

57
lzbi-generator/src/main/resources/vm/java/controller.java.vm

@ -1,5 +1,7 @@
package ${packageName}.controller;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
@ -16,7 +18,7 @@ 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 ${packageName}.domain.${ClassName}Dao;
import ${packageName}.domain. ${ClassName};
import ${packageName}.service.${ClassName}Service;
import com.lzbi.common.utils.poi.ExcelUtil;
#if($table.crud || $table.sub)
@ -40,19 +42,23 @@ public class ${ClassName}Controller extends BaseController
/**
* 查询${functionName}列表
*/
@ApiOperation("查询${functionName}列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "${ClassName}", value = "", dataType = "${ClassName}", dataTypeClass = ${ClassName}.class),
})
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')")
@GetMapping("/list")
#if($table.crud || $table.sub)
public TableDataInfo list(${ClassName}Dao ${className}Dao)
public TableDataInfo list(${ClassName} ${ClassName})
{
startPage();
List<${ClassName}Dao> list = ${className}Service.select${ClassName}DaoList(${className}Dao);
List< ${ClassName}> list = ${className}Service.select${ClassName}List(${ClassName});
return getDataTable(list);
}
#elseif($table.tree)
public AjaxResult list(${ClassName}Dao ${className}Dao)
public AjaxResult list(${ClassName} ${ClassName})
{
List<${ClassName}Dao> list = ${className}Service.select${ClassName}DaoList(${className}Dao);
List< ${ClassName}> list = ${className}Service.select${ClassName}List(${ClassName});
return success(list);
}
#end
@ -60,56 +66,77 @@ public class ${ClassName}Controller extends BaseController
/**
* 导出${functionName}列表
*/
@ApiOperation("导出${functionName}列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "${ClassName}", value = "", dataType = "${ClassName}", dataTypeClass = ${ClassName}.class),
})
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')")
@Log(title = "${functionName}", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ${ClassName}Dao ${className}Dao)
public void export(HttpServletResponse response,${ClassName} ${ClassName})
{
List<${ClassName}Dao> list = ${className}Service.select${ClassName}DaoList(${className}Dao);
ExcelUtil<${ClassName}Dao> util = new ExcelUtil<${ClassName}Dao>(${ClassName}Dao.class);
List<${ClassName}> list = ${className}Service.select${ClassName}List(${ClassName});
ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class);
util.exportExcel(response, list, "${functionName}数据");
}
/**
* 获取${functionName}详细信息
*/
@ApiOperation("获取${functionName}详细信息")
@ApiImplicitParams({
@ApiImplicitParam(name = "${pkColumn.javaField}", value = "", dataType = "${pkColumn.javaType}", dataTypeClass = ${pkColumn.javaType}.class),
})
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')")
@GetMapping(value = "/{${pkColumn.javaField}}")
public AjaxResult getInfo(@PathVariable("${pkColumn.javaField}") ${pkColumn.javaType} ${pkColumn.javaField})
{
return success(${className}Service.select${ClassName}DaoBy${pkColumn.capJavaField}(${pkColumn.javaField}));
return success(${className}Service.select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaField}));
}
/**
* 新增${functionName}
*/
@ApiOperation("新增${functionName}")
@ApiImplicitParams({
@ApiImplicitParam(name = "${ClassName}", value = "", dataType = "${ClassName}", dataTypeClass = ${ClassName}.class),
})
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')")
@Log(title = "${functionName}", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ${ClassName}Dao ${className}Dao)
public AjaxResult add(@RequestBody ${ClassName} ${ClassName})
{
return toAjax(${className}Service.insert${ClassName}Dao(${className}Dao));
return toAjax(${className}Service.insert${ClassName}(${ClassName}));
}
/**
* 修改${functionName}
*/
@ApiOperation("修改${functionName}")
@ApiImplicitParams({
@ApiImplicitParam(name = "${ClassName}", value = "", dataType = "${ClassName}", dataTypeClass = ${ClassName}.class),
})
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')")
@Log(title = "${functionName}", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ${ClassName}Dao ${className}Dao)
public AjaxResult edit(@RequestBody ${ClassName} ${ClassName})
{
return toAjax(${className}Service.update${ClassName}Dao(${className}Dao));
return toAjax(${className}Service.update${ClassName}(${ClassName}));
}
/**
* 删除${functionName}
*/
@ApiOperation("删除${functionName}")
@ApiImplicitParams({
@ApiImplicitParam(name = "${pkColumn.javaField}s", value = "", dataType = "${pkColumn.javaType}", dataTypeClass =${pkColumn.javaType}.class),
})
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')")
@Log(title = "${functionName}", businessType = BusinessType.DELETE)
@DeleteMapping("/{${pkColumn.javaField}s}")
public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s)
{
return toAjax(${className}Service.delete${ClassName}DaoBy${pkColumn.capJavaField}s(${pkColumn.javaField}s));
return toAjax(${className}Service.delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaField}s));
}
}

4
lzbi-generator/src/main/resources/vm/java/domain.java.vm

@ -24,8 +24,8 @@ import com.lzbi.common.core.domain.TreeEntity;
#elseif($table.tree)
#set($Entity="TreeEntity")
#end
@Data
public class ${ClassName}Dao extends ${Entity}
@Data
public class ${ClassName} extends ${Entity}
{
private static final long serialVersionUID = 1L;

30
lzbi-generator/src/main/resources/vm/java/mapper.java.vm

@ -1,10 +1,10 @@
package ${packageName}.mapper;
import java.util.List;
import ${packageName}.domain.${ClassName}Dao;
import ${packageName}.domain.${ClassName};
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
#if($table.sub)
import ${packageName}.domain.${subClassName}Dao;
import ${packageName}.domain.${subClassName};
#end
/**
@ -14,7 +14,7 @@ import ${packageName}.domain.${subClassName}Dao;
* @date ${datetime}
*/
public interface ${ClassName}Mapper extends BaseMapper<${ClassName}Dao>
public interface ${ClassName}Mapper extends BaseMapper<${ClassName}>
{
/**
* 查询${functionName}
@ -22,23 +22,23 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}Dao>
* @param ${pkColumn.javaField} ${functionName}主键
* @return ${functionName}
*/
public ${ClassName}Dao select${ClassName}DaoBy${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
public ${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
/**
* 查询${functionName}列表
*
* @param ${className}Dao ${functionName}
* @param ${className} ${functionName}
* @return ${functionName}集合
*/
public List<${ClassName}Dao> select${ClassName}DaoList(${ClassName}Dao ${className}Dao);
public List<${ClassName}> select${ClassName}List(${ClassName} ${className});
/**
* 新增${functionName}
*
* @param ${className}Dao ${functionName}
* @param ${className} ${functionName}
* @return 结果
*/
public int insert${ClassName}Dao(${ClassName}Dao ${className}Dao);
public int insert${ClassName}(${ClassName} ${className});
/**
* 修改${functionName}
@ -46,7 +46,7 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}Dao>
* @param ${className} ${functionName}
* @return 结果
*/
public int update${ClassName}Dao(${ClassName}Dao ${className}Dao);
public int update${ClassName}(${ClassName} ${className});
/**
* 删除${functionName}
@ -54,7 +54,7 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}Dao>
* @param ${pkColumn.javaField} ${functionName}主键
* @return 结果
*/
public int delete${ClassName}DaoBy${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
public int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
/**
* 批量删除${functionName}
@ -62,7 +62,7 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}Dao>
* @param ${pkColumn.javaField}s 需要删除的数据主键集合
* @return 结果
*/
public int delete${ClassName}DaoBy${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s);
public int delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s);
#if($table.sub)
/**
@ -71,15 +71,15 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}Dao>
* @param ${pkColumn.javaField}s 需要删除的数据主键集合
* @return 结果
*/
public int delete${subClassName}DaoBy${subTableFkClassName}Daos(${pkColumn.javaType}[] ${pkColumn.javaField}s);
public int delete${subClassName}By${subTableFkClassName}s(${pkColumn.javaType}[] ${pkColumn.javaField}s);
/**
* 批量新增${subTable.functionName}
*
* @param ${subclassName}DaoList ${subTable.functionName}列表
* @param ${subclassName}List ${subTable.functionName}列表
* @return 结果
*/
public int batch${subClassName}Dao(List<${subClassName}Dao> ${subclassName}DaoList);
public int batch${subClassName}(List<${subClassName}> ${subclassName}List);
/**
@ -88,6 +88,6 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}Dao>
* @param ${pkColumn.javaField} ${functionName}ID
* @return 结果
*/
public int delete${subClassName}DaoBy${subTableFkClassName}Dao(${pkColumn.javaType} ${pkColumn.javaField});
public int delete${subClassName}By${subTableFkClassName}(${pkColumn.javaType} ${pkColumn.javaField});
#end
}

58
lzbi-generator/src/main/resources/vm/java/service.java.vm

@ -12,9 +12,9 @@ import org.springframework.stereotype.Service;
import java.util.ArrayList;
import com.lzbi.common.utils.DateUtils;
import org.springframework.transaction.annotation.Transactional;
import ${packageName}.domain.${subClassName}Dao;
import ${packageName}.domain.${subClassName};
#end
import ${packageName}.domain.${ClassName}Dao;
import ${packageName}.domain.${ClassName};
import ${packageName}.mapper.${ClassName}Mapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@ -25,7 +25,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
* @date ${datetime}
*/
@Service
public class ${ClassName}Service extends ServiceImpl<${ClassName}Mapper, ${ClassName}Dao> implements IService<${ClassName}Dao>
public class ${ClassName}Service extends ServiceImpl<${ClassName}Mapper, ${ClassName}> implements IService<${ClassName}>
{
/**
@ -34,70 +34,70 @@ public class ${ClassName}Service extends ServiceImpl<${ClassName}Mapper, ${Class
* @param ${pkColumn.javaField} ${functionName}主键
* @return ${functionName}
*/
public ${ClassName}Dao select${ClassName}DaoBy${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField})
public ${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField})
{
return baseMapper.select${ClassName}DaoBy${pkColumn.capJavaField}(${pkColumn.javaField});
return baseMapper.select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaField});
}
/**
* 查询${functionName}列表
*
* @param ${className}Dao ${functionName}
* @param ${className} ${functionName}
* @return ${functionName}
*/
public List<${ClassName}Dao> select${ClassName}DaoList(${ClassName}Dao ${className}Dao)
public List<${ClassName}> select${ClassName}List(${ClassName} ${className})
{
return baseMapper.select${ClassName}DaoList(${className}Dao);
return baseMapper.select${ClassName}List(${className});
}
/**
* 新增${functionName}
*
* @param ${className}Dao ${functionName}
* @param ${className} ${functionName}
* @return 结果
*/
#if($table.sub)
@Transactional
#end
public int insert${ClassName}Dao(${ClassName}Dao ${className}Dao)
public int insert${ClassName}(${ClassName} ${className})
{
#foreach ($column in $columns)
#if($column.javaField == 'createdTime')
${className}Dao.setCreatedTime(DateUtils.getNowDate());
${className}.setCreatedTime(DateUtils.getNowDate());
#end
#end
#if($table.sub)
int rows = baseMapper.insert${ClassName}Dao(${className}Dao);
insert${subClassName}Dao(${className}Dao);
int rows = baseMapper.insert${ClassName}(${className});
insert${subClassName}(${className});
return rows;
#else
return baseMapper.insert${ClassName}Dao(${className}Dao);
return baseMapper.insert${ClassName}(${className});
#end
}
/**
* 修改${functionName}
*
* @param ${className}Dao ${functionName}
* @param ${className} ${functionName}
* @return 结果
*/
#if($table.sub)
@Transactional
#end
public int update${ClassName}Dao(${ClassName}Dao ${className}Dao)
public int update${ClassName}(${ClassName} ${className})
{
#foreach ($column in $columns)
#if($column.javaField == 'updatedTime')
${className}Dao.setUpdatedTime(DateUtils.getNowDate());
${className}.setUpdatedTime(DateUtils.getNowDate());
#end
#end
#if($table.sub)
baseMapper.delete${subClassName}By${subTableFkClassName}(${className}Dao.get${pkColumn.capJavaField}());
insert${subClassName}Dao(${className}Dao);
baseMapper.delete${subClassName}By${subTableFkClassName}(${className}.get${pkColumn.capJavaField}());
insert${subClassName}(${className});
#end
return baseMapper.update${ClassName}Dao(${className}Dao);
return baseMapper.update${ClassName}(${className});
}
/**
@ -110,12 +110,12 @@ public class ${ClassName}Service extends ServiceImpl<${ClassName}Mapper, ${Class
@Transactional
#end
public int delete${ClassName}DaoBy${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s)
public int delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s)
{
#if($table.sub)
baseMapper.delete${subClassName}By${subTableFkClassName}s(${pkColumn.javaField}s);
#end
return baseMapper.delete${ClassName}DaoBy${pkColumn.capJavaField}s(${pkColumn.javaField}s);
return baseMapper.delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaField}s);
}
/**
@ -128,28 +128,28 @@ public class ${ClassName}Service extends ServiceImpl<${ClassName}Mapper, ${Class
@Transactional
#end
public int delete${ClassName}DaoBy${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField})
public int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField})
{
#if($table.sub)
baseMapper.delete${subClassName}By${subTableFkClassName}(${pkColumn.javaField});
#end
return baseMapper.delete${ClassName}DaoBy${pkColumn.capJavaField}(${pkColumn.javaField});
return baseMapper.delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaField});
}
#if($table.sub)
/**
* 新增${subTable.functionName}信息
*
* @param ${className}Dao ${functionName}对象
* @param ${className} ${functionName}对象
*/
public void insert${subClassName}Dao(${ClassName}Dao ${className}Dao)
public void insert${subClassName}(${ClassName} ${className})
{
List<${subClassName}Dao> ${subclassName}DaoList = ${className}Dao.get${subClassName}DaoList();
List<${subClassName}> ${subclassName}DaoList = ${className}.get${subClassName}List();
${pkColumn.javaType} ${pkColumn.javaField} = ${className}.get${pkColumn.capJavaField}();
if (StringUtils.isNotNull(${subclassName}DaoList))
{
List<${subClassName}Dao> list = new ArrayList<${subClassName}Dao>();
for (${subClassName}Dao ${subclassName}Dao : ${subclassName}DaoList)
List<${subClassName}> list = new ArrayList<${subClassName}>();
for (${subClassName} ${subclassName}Dao : ${subclassName}DaoList)
{
${subclassName}Dao.set${subTableFkClassName}(${pkColumn.javaField});
list.add(${subclassName}Dao);

2
lzbi-generator/src/main/resources/vm/java/sub-domain.java.vm

@ -14,7 +14,7 @@ import com.lzbi.module.base.BaseModuleEntity;
* @author ${author}
* @date ${datetime}
*/
public class ${subClassName}Dao extends BaseModuleEntity
public class ${subClassName} extends BaseModuleEntity
{
private static final long serialVersionUID = 1L;

20
lzbi-generator/src/main/resources/vm/xml/mapper.xml.vm

@ -4,18 +4,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${packageName}.mapper.${ClassName}Mapper">
<resultMap type="${packageName}.domain.${ClassName}Dao" id="${ClassName}Result">
<resultMap type="${packageName}.domain.${ClassName}" id="${ClassName}Result">
#foreach ($column in $columns)
<result property="${column.javaField}" column="${column.columnName}" />
#end
</resultMap>
#if($table.sub)
<resultMap id="${ClassName}${subClassName}DaoResult" type="${ClassName}Dao" extends="${ClassName}Result">
<collection property="${subclassName}DaoList" notNullColumn="sub_${subTable.pkColumn.columnName}" javaType="java.util.List" resultMap="${subClassName}Result" />
<resultMap id="${ClassName}${subClassName}Result" type="${ClassName}" extends="${ClassName}Result">
<collection property="${subclassName}List" notNullColumn="sub_${subTable.pkColumn.columnName}" javaType="java.util.List" resultMap="${subClassName}Result" />
</resultMap>
<resultMap type="${subClassName}Dao" id="${subClassName}Result">
<resultMap type="${subClassName}" id="${subClassName}Result">
#foreach ($column in $subTable.columns)
<result property="${column.javaField}" column="sub_${column.columnName}" />
#end
@ -26,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select#foreach($column in $columns) $column.columnName#if($foreach.count != $columns.size()),#end#end from ${tableName}
</sql>
<select id="select${ClassName}DaoList" parameterType="${ClassName}Dao" resultMap="${ClassName}Result">
<select id="select${ClassName}List" parameterType="${ClassName}" resultMap="${ClassName}Result">
<include refid="select${ClassName}Vo"/>
<where>
#foreach($column in $columns)
@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="select${ClassName}DaoBy${pkColumn.capJavaField}" parameterType="${pkColumn.javaType}" resultMap="#if($table.sub)${ClassName}${subClassName}DaoResult#else${ClassName}Result#end">
<select id="select${ClassName}By${pkColumn.capJavaField}" parameterType="${pkColumn.javaType}" resultMap="#if($table.sub)${ClassName}${subClassName}Result#else${ClassName}Result#end">
#if($table.crud || $table.tree)
<include refid="select${ClassName}Vo"/>
where ${pkColumn.columnName} = #{${pkColumn.javaField}}
@ -72,7 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#end
</select>
<insert id="insert${ClassName}Dao" parameterType="${ClassName}Dao"#if($pkColumn.increment) useGeneratedKeys="true" keyProperty="$pkColumn.javaField"#end>
<insert id="insert${ClassName}" parameterType="${ClassName}"#if($pkColumn.increment) useGeneratedKeys="true" keyProperty="$pkColumn.javaField"#end>
insert into ${tableName}
<trim prefix="(" suffix=")" suffixOverrides=",">
#foreach($column in $columns)
@ -90,7 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</trim>
</insert>
<update id="update${ClassName}Dao" parameterType="${ClassName}Dao">
<update id="update${ClassName}" parameterType="${ClassName}">
update ${tableName}
<trim prefix="SET" suffixOverrides=",">
#foreach($column in $columns)
@ -102,11 +102,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where ${pkColumn.columnName} = #{${pkColumn.javaField}}
</update>
<delete id="delete${ClassName}DaoBy${pkColumn.capJavaField}" parameterType="${pkColumn.javaType}">
<delete id="delete${ClassName}By${pkColumn.capJavaField}" parameterType="${pkColumn.javaType}">
delete from ${tableName} where ${pkColumn.columnName} = #{${pkColumn.javaField}}
</delete>
<delete id="delete${ClassName}DaoBy${pkColumn.capJavaField}s" parameterType="String">
<delete id="delete${ClassName}By${pkColumn.capJavaField}s" parameterType="String">
delete from ${tableName} where ${pkColumn.columnName} in
<foreach item="${pkColumn.javaField}" collection="array" open="(" separator="," close=")">
#{${pkColumn.javaField}}

8
lzbi-module/src/main/java/com/lzbi/asset/mapper/DcBaseAssetInfoMapper.java

@ -28,6 +28,14 @@ public interface DcBaseAssetInfoMapper {
*/
public List<DcBaseAssetInfo> selectDcBaseAssetInfoList(DcBaseAssetInfo dcBaseAssetInfo);
/**
* 根据资产编码查询资产信息
*
* @param assetCode 资产编码
* @return 资产信息
*/
DcBaseAssetInfo selectDcBaseAssetInfoByAssetCode(String assetCode);
/**
* 新增资产信息
*

131
lzbi-module/src/main/java/com/lzbi/code/controller/DcBusiCoderuleConfigController.java

@ -0,0 +1,131 @@
package com.lzbi.code.controller;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
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.code.domain. DcBusiCoderuleConfig;
import com.lzbi.code.service.DcBusiCoderuleConfigService;
import com.lzbi.common.utils.poi.ExcelUtil;
import com.lzbi.common.core.page.TableDataInfo;
/**
* 业务编码配置Controller
*
* @author zhousq
* @date 2023-12-06
*/
@RestController
@RequestMapping("/asset/busiCodeConfig")
public class DcBusiCoderuleConfigController extends BaseController
{
@Autowired
private DcBusiCoderuleConfigService dcBusiCoderuleConfigService;
/**
* 查询业务编码配置列表
*/
@ApiOperation("查询业务编码配置列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBusiCoderuleConfig", value = "", dataType = "DcBusiCoderuleConfig", dataTypeClass = DcBusiCoderuleConfig.class),
})
@PreAuthorize("@ss.hasPermi('asset:busiCodeConfig:list')")
@GetMapping("/list")
public TableDataInfo list(DcBusiCoderuleConfig DcBusiCoderuleConfig)
{
startPage();
List< DcBusiCoderuleConfig> list = dcBusiCoderuleConfigService.selectDcBusiCoderuleConfigList(DcBusiCoderuleConfig);
return getDataTable(list);
}
/**
* 导出业务编码配置列表
*/
@ApiOperation("导出业务编码配置列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBusiCoderuleConfig", value = "", dataType = "DcBusiCoderuleConfig", dataTypeClass = DcBusiCoderuleConfig.class),
})
@PreAuthorize("@ss.hasPermi('asset:busiCodeConfig:export')")
@Log(title = "业务编码配置", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response,DcBusiCoderuleConfig DcBusiCoderuleConfig)
{
List<DcBusiCoderuleConfig> list = dcBusiCoderuleConfigService.selectDcBusiCoderuleConfigList(DcBusiCoderuleConfig);
ExcelUtil<DcBusiCoderuleConfig> util = new ExcelUtil<DcBusiCoderuleConfig>(DcBusiCoderuleConfig.class);
util.exportExcel(response, list, "业务编码配置数据");
}
/**
* 获取业务编码配置详细信息
*/
@ApiOperation("获取业务编码配置详细信息")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "", dataType = "Long", dataTypeClass = Long.class),
})
@PreAuthorize("@ss.hasPermi('asset:busiCodeConfig:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(dcBusiCoderuleConfigService.selectDcBusiCoderuleConfigById(id));
}
/**
* 新增业务编码配置
*/
@ApiOperation("新增业务编码配置")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBusiCoderuleConfig", value = "", dataType = "DcBusiCoderuleConfig", dataTypeClass = DcBusiCoderuleConfig.class),
})
@PreAuthorize("@ss.hasPermi('asset:busiCodeConfig:add')")
@Log(title = "业务编码配置", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcBusiCoderuleConfig DcBusiCoderuleConfig)
{
return toAjax(dcBusiCoderuleConfigService.insertDcBusiCoderuleConfig(DcBusiCoderuleConfig));
}
/**
* 修改业务编码配置
*/
@ApiOperation("修改业务编码配置")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBusiCoderuleConfig", value = "", dataType = "DcBusiCoderuleConfig", dataTypeClass = DcBusiCoderuleConfig.class),
})
@PreAuthorize("@ss.hasPermi('asset:busiCodeConfig:edit')")
@Log(title = "业务编码配置", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcBusiCoderuleConfig DcBusiCoderuleConfig)
{
return toAjax(dcBusiCoderuleConfigService.updateDcBusiCoderuleConfig(DcBusiCoderuleConfig));
}
/**
* 删除业务编码配置
*/
@ApiOperation("删除业务编码配置")
@ApiImplicitParams({
@ApiImplicitParam(name = "ids", value = "", dataType = "Long", dataTypeClass =Long.class),
})
@PreAuthorize("@ss.hasPermi('asset:busiCodeConfig:remove')")
@Log(title = "业务编码配置", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(dcBusiCoderuleConfigService.deleteDcBusiCoderuleConfigByIds(ids));
}
}

62
lzbi-module/src/main/java/com/lzbi/code/domain/DcBaseCoderuleDefine.java

@ -0,0 +1,62 @@
package com.lzbi.code.domain;
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 lombok.Data;
import com.lzbi.common.annotation.Excel;
import com.lzbi.module.base.BaseModuleEntity;
/**
* 编码规则定义对象 dc_base_coderule_define
*
* @author zhousq
* @date 2023-12-06
*/
@Data
public class DcBaseCoderuleDefine extends BaseModuleEntity
{
private static final long serialVersionUID = 1L;
/** 创建人 */
private String createdBy;
/** 创建时间 */
private Date createdTime;
/** 更新人 */
private String updatedBy;
/** 更新时间 */
private Date updatedTime;
/** 配置ID */
@Excel(name = "配置ID")
private Long id;
/** 配置名称 */
@Excel(name = "配置名称")
private String codeConfigName;
/** 编码头 */
@Excel(name = "编码头")
private String codeHeader;
/** 编码体 */
@Excel(name = "编码体")
private String codeBody;
/** 编码体类型 */
@Excel(name = "编码体类型")
private String codeBodyType;
/** 流水号长度 */
@Excel(name = "流水号长度")
private Long codeSerialLength;
/** 分割符 */
@Excel(name = "分割符")
private String codeSplitFlag;
}

53
lzbi-module/src/main/java/com/lzbi/code/domain/DcBusiCoderuleConfig.java

@ -0,0 +1,53 @@
package com.lzbi.code.domain;
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 lombok.Data;
import com.lzbi.common.annotation.Excel;
import com.lzbi.module.base.BaseModuleEntity;
/**
* 业务编码配置对象 dc_busi_coderule_config
*
* @author zhousq
* @date 2023-12-06
*/
@Data
public class DcBusiCoderuleConfig extends BaseModuleEntity
{
private static final long serialVersionUID = 1L;
/** 创建人 */
private String createdBy;
/** 创建时间 */
private Date createdTime;
/** 更新人 */
private String updatedBy;
/** 更新时间 */
private Date updatedTime;
/** 主键 */
private Long id;
/** 配置名称 */
@Excel(name = "配置名称")
private String configName;
/** 业务代码 */
@Excel(name = "业务代码")
private String nodeCode;
/** 字段名称 */
@Excel(name = "字段名称")
private String columnName;
/** 规则ID */
@Excel(name = "规则ID")
private Long ruleId;
}

63
lzbi-module/src/main/java/com/lzbi/code/mapper/DcBusiCoderuleConfigMapper.java

@ -0,0 +1,63 @@
package com.lzbi.code.mapper;
import java.util.List;
import com.lzbi.code.domain.DcBusiCoderuleConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* 业务编码配置Mapper接口
*
* @author zhousq
* @date 2023-12-06
*/
public interface DcBusiCoderuleConfigMapper extends BaseMapper<DcBusiCoderuleConfig>
{
/**
* 查询业务编码配置
*
* @param id 业务编码配置主键
* @return 业务编码配置
*/
public DcBusiCoderuleConfig selectDcBusiCoderuleConfigById(Long id);
/**
* 查询业务编码配置列表
*
* @param dcBusiCoderuleConfig 业务编码配置
* @return 业务编码配置集合
*/
public List<DcBusiCoderuleConfig> selectDcBusiCoderuleConfigList(DcBusiCoderuleConfig dcBusiCoderuleConfig);
/**
* 新增业务编码配置
*
* @param dcBusiCoderuleConfig 业务编码配置
* @return 结果
*/
public int insertDcBusiCoderuleConfig(DcBusiCoderuleConfig dcBusiCoderuleConfig);
/**
* 修改业务编码配置
*
* @param dcBusiCoderuleConfig 业务编码配置
* @return 结果
*/
public int updateDcBusiCoderuleConfig(DcBusiCoderuleConfig dcBusiCoderuleConfig);
/**
* 删除业务编码配置
*
* @param id 业务编码配置主键
* @return 结果
*/
public int deleteDcBusiCoderuleConfigById(Long id);
/**
* 批量删除业务编码配置
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDcBusiCoderuleConfigByIds(Long[] ids);
}

1
lzbi-module/src/main/java/com/lzbi/code/service/CodeNoGenerater.java

@ -35,6 +35,7 @@ public class CodeNoGenerater {
StringBuilder codeBuffer=new StringBuilder();
//
String spitChar= Optional.ofNullable(ruleDao.getCodeSplitFlag()).orElse("");
spitChar=spitChar.equals("*")?"":spitChar;
codeBuffer.append(ruleDao.getCodeHeader()).append(spitChar).append(getBody(ruleDao)).append(spitChar).append(StringUtils.leftPad(serial,serialLen,'0'));
return codeBuffer.toString();
}

91
lzbi-module/src/main/java/com/lzbi/code/service/DcBusiCoderuleConfigService.java

@ -0,0 +1,91 @@
package com.lzbi.code.service;
import java.util.List;
import com.lzbi.common.utils.DateUtils;
import org.springframework.stereotype.Service;
import com.lzbi.code.domain.DcBusiCoderuleConfig;
import com.lzbi.code.mapper.DcBusiCoderuleConfigMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* 业务编码配置Service业务层处理
*
* @author zhousq
* @date 2023-12-06
*/
@Service
public class DcBusiCoderuleConfigService extends ServiceImpl<DcBusiCoderuleConfigMapper, DcBusiCoderuleConfig> implements IService<DcBusiCoderuleConfig>
{
/**
* 查询业务编码配置
*
* @param id 业务编码配置主键
* @return 业务编码配置
*/
public DcBusiCoderuleConfig selectDcBusiCoderuleConfigById(Long id)
{
return baseMapper.selectDcBusiCoderuleConfigById(id);
}
/**
* 查询业务编码配置列表
*
* @param dcBusiCoderuleConfig 业务编码配置
* @return 业务编码配置
*/
public List<DcBusiCoderuleConfig> selectDcBusiCoderuleConfigList(DcBusiCoderuleConfig dcBusiCoderuleConfig)
{
return baseMapper.selectDcBusiCoderuleConfigList(dcBusiCoderuleConfig);
}
/**
* 新增业务编码配置
*
* @param dcBusiCoderuleConfig 业务编码配置
* @return 结果
*/
public int insertDcBusiCoderuleConfig(DcBusiCoderuleConfig dcBusiCoderuleConfig)
{
dcBusiCoderuleConfig.setCreatedTime(DateUtils.getNowDate());
return baseMapper.insertDcBusiCoderuleConfig(dcBusiCoderuleConfig);
}
/**
* 修改业务编码配置
*
* @param dcBusiCoderuleConfig 业务编码配置
* @return 结果
*/
public int updateDcBusiCoderuleConfig(DcBusiCoderuleConfig dcBusiCoderuleConfig)
{
dcBusiCoderuleConfig.setUpdatedTime(DateUtils.getNowDate());
return baseMapper.updateDcBusiCoderuleConfig(dcBusiCoderuleConfig);
}
/**
* 批量删除业务编码配置
*
* @param ids 需要删除的业务编码配置主键
* @return 结果
*/
public int deleteDcBusiCoderuleConfigByIds(Long[] ids)
{
return baseMapper.deleteDcBusiCoderuleConfigByIds(ids);
}
/**
* 删除业务编码配置信息
*
* @param id 业务编码配置主键
* @return 结果
*/
public int deleteDcBusiCoderuleConfigById(Long id)
{
return baseMapper.deleteDcBusiCoderuleConfigById(id);
}
}

40
lzbi-module/src/main/java/com/lzbi/common/SelectOptionsControl.java

@ -11,7 +11,9 @@ import com.lzbi.common.core.domain.entity.SysDept;
import com.lzbi.special.domain.DcBaseWorkSpecial;
import com.lzbi.special.service.DcBaseWorkSpecialService;
import com.lzbi.system.service.impl.SysDeptServiceImpl;
import io.swagger.annotations.ApiModel;
import com.lzbi.targetFolder.domain.DcBaseAssetTargetDao;
import com.lzbi.targetFolder.service.DcBaseAssetTargetService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.lang.Nullable;
import org.springframework.web.bind.annotation.*;
@ -23,7 +25,7 @@ import java.util.List;
* @date 2023/12/5
* SelectOptionsControl
*/
@ApiModel("通用选择接口")
@Api("公用下拉列表接口")
@RestController
@RequestMapping("/tool")
public class SelectOptionsControl extends BaseController {
@ -35,7 +37,13 @@ public class SelectOptionsControl extends BaseController {
IDcBaseAssetInfoService dcBaseAssetInfoService;
@Autowired
DcBusiParamSourceService dcBusiParamSourceService;
@Autowired
private DcBaseAssetTargetService dcBaseAssetTargetService;
///获取部门类型为公司的列表,树形选择
@ApiOperation("获取公司选择树形列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "depId", value = "上级部门编码默认0", dataType = "Long", dataTypeClass = Long.class),
})
@GetMapping("/company/tree/{depId}")
public AjaxResult getCompanyTreeList(@Nullable @PathVariable Long depId){
if(depId==0){
@ -46,6 +54,10 @@ public class SelectOptionsControl extends BaseController {
return AjaxResult.success( treeSelects) ;
}
//普通列表
@ApiOperation("获取公司选择普通列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "depId", value = "上级部门编码默认0", dataType = "Long", dataTypeClass = Long.class),
})
@GetMapping("/company/list/{depId}")
public AjaxResult getCompanyList(@Nullable @PathVariable Long depId){
if(depId==0){
@ -54,6 +66,10 @@ public class SelectOptionsControl extends BaseController {
return AjaxResult.success(sysDeptService.selectCompany(depId)) ;
}
///获取部门类型为组织的列表
@ApiOperation("获取部门选择普通列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "depId", value = "上级部门编码默认0", dataType = "Long", dataTypeClass = Long.class),
})
@GetMapping("/org/list/{depId}")
public AjaxResult getOrgList(@Nullable @PathVariable Long depId){
if(depId==0){
@ -61,7 +77,10 @@ public class SelectOptionsControl extends BaseController {
}
return AjaxResult.success(sysDeptService.selectOrg(depId)) ;
}
///获取部门类型为组织的树形选择
@ApiOperation("获取公司选选择树形列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "depId", value = "上级部门编码默认0", dataType = "Long", dataTypeClass = Long.class),
})
@GetMapping("/org/tree/{depId}")
public AjaxResult getOrgTreeList(@Nullable @PathVariable Long depId){
if(depId==0){
@ -70,7 +89,8 @@ public class SelectOptionsControl extends BaseController {
List<SysDept> lsysDept = sysDeptService.selectOrg(depId);
return AjaxResult.success(sysDeptService.buildDeptTreeSelect(lsysDept)) ;
}
//获取生产专业的列表
//
@ApiOperation("获取生产专业的列表")
@GetMapping("/special/list")
public AjaxResult getSepcialSelectList()
{
@ -78,6 +98,7 @@ public class SelectOptionsControl extends BaseController {
return AjaxResult.success( dcBaseWorkSpecialService.selectDcBaseWorkSpecialDictList(dcBaseWorkSpecialDao));
}
//根据条件获取统计单元列表
@ApiOperation("获取统计单元列表")
@PostMapping("/assetInfo/list")
public AjaxResult getAssetSelectList(@RequestBody AssetQueryParams assetQueryParams)
{
@ -88,14 +109,23 @@ public class SelectOptionsControl extends BaseController {
return AjaxResult.success(dcBaseAssetInfoService.selectDcBaseAssetInfoList(dcBaseAssetInfo));
}
//根据条件获取统计单元指标列表
@ApiOperation("获取统计单元指标列表")
@PostMapping("/assetTaget/list")
public AjaxResult getAssetTargetSelectList(@RequestBody AssetQueryParams assetQueryParams)
{
DcBaseAssetTargetDao dcBaseAssetTargetDao=new DcBaseAssetTargetDao();
dcBaseAssetTargetDao.setAssetCode(assetQueryParams.getAssetCode());
dcBaseAssetTargetDao.setAssetId(assetQueryParams.getAssetId());
dcBaseAssetTargetService.selectDcBaseAssetTargetDaoList(dcBaseAssetTargetDao);
return AjaxResult.success(null);
}
//
//获取IOT参数列表
//fcode 惨胡
@ApiOperation("获取采集参数列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "fcode", value = "生产专业编码", dataType = "String", dataTypeClass = String.class),
})
@GetMapping("/iotParam/list/{fcode}")
public AjaxResult getAssetIotParamList(@PathVariable String fcode)
{

131
lzbi-module/src/main/java/com/lzbi/draft/controller/DcBusiParamDraftDayController.java

@ -0,0 +1,131 @@
package com.lzbi.draft.controller;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
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.draft.domain. DcBusiParamDraftDay;
import com.lzbi.draft.service.DcBusiParamDraftDayService;
import com.lzbi.common.utils.poi.ExcelUtil;
import com.lzbi.common.core.page.TableDataInfo;
/**
* 参数数据底稿Controller
*
* @author zhousq
* @date 2023-12-06
*/
@RestController
@RequestMapping("/asset/paramDayDraft")
public class DcBusiParamDraftDayController extends BaseController
{
@Autowired
private DcBusiParamDraftDayService dcBusiParamDraftDayService;
/**
* 查询参数数据底稿列表
*/
@ApiOperation("查询参数数据底稿(日)列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBusiParamDraftDay", value = "", dataType = "DcBusiParamDraftDay", dataTypeClass = DcBusiParamDraftDay.class),
})
@PreAuthorize("@ss.hasPermi('asset:paramDayDraft:list')")
@GetMapping("/list")
public TableDataInfo list(DcBusiParamDraftDay DcBusiParamDraftDay)
{
startPage();
List< DcBusiParamDraftDay> list = dcBusiParamDraftDayService.selectDcBusiParamDraftDayList(DcBusiParamDraftDay);
return getDataTable(list);
}
/**
* 导出参数数据底稿列表
*/
@ApiOperation("导出参数数据底稿(日)列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBusiParamDraftDay", value = "", dataType = "DcBusiParamDraftDay", dataTypeClass = DcBusiParamDraftDay.class),
})
@PreAuthorize("@ss.hasPermi('asset:paramDayDraft:export')")
@Log(title = "参数数据底稿(日)", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response,DcBusiParamDraftDay DcBusiParamDraftDay)
{
List<DcBusiParamDraftDay> list = dcBusiParamDraftDayService.selectDcBusiParamDraftDayList(DcBusiParamDraftDay);
ExcelUtil<DcBusiParamDraftDay> util = new ExcelUtil<DcBusiParamDraftDay>(DcBusiParamDraftDay.class);
util.exportExcel(response, list, "参数数据底稿(日)数据");
}
/**
* 获取参数数据底稿详细信息
*/
@ApiOperation("获取参数数据底稿(日)详细信息")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "", dataType = "String", dataTypeClass = String.class),
})
@PreAuthorize("@ss.hasPermi('asset:paramDayDraft:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
return success(dcBusiParamDraftDayService.selectDcBusiParamDraftDayById(id));
}
/**
* 新增参数数据底稿
*/
@ApiOperation("新增参数数据底稿(日)")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBusiParamDraftDay", value = "", dataType = "DcBusiParamDraftDay", dataTypeClass = DcBusiParamDraftDay.class),
})
@PreAuthorize("@ss.hasPermi('asset:paramDayDraft:add')")
@Log(title = "参数数据底稿(日)", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcBusiParamDraftDay DcBusiParamDraftDay)
{
return toAjax(dcBusiParamDraftDayService.insertDcBusiParamDraftDay(DcBusiParamDraftDay));
}
/**
* 修改参数数据底稿
*/
@ApiOperation("修改参数数据底稿(日)")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBusiParamDraftDay", value = "", dataType = "DcBusiParamDraftDay", dataTypeClass = DcBusiParamDraftDay.class),
})
@PreAuthorize("@ss.hasPermi('asset:paramDayDraft:edit')")
@Log(title = "参数数据底稿(日)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcBusiParamDraftDay DcBusiParamDraftDay)
{
return toAjax(dcBusiParamDraftDayService.updateDcBusiParamDraftDay(DcBusiParamDraftDay));
}
/**
* 删除参数数据底稿
*/
@ApiOperation("删除参数数据底稿(日)")
@ApiImplicitParams({
@ApiImplicitParam(name = "ids", value = "", dataType = "String", dataTypeClass =String.class),
})
@PreAuthorize("@ss.hasPermi('asset:paramDayDraft:remove')")
@Log(title = "参数数据底稿(日)", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)
{
return toAjax(dcBusiParamDraftDayService.deleteDcBusiParamDraftDayByIds(ids));
}
}

143
lzbi-module/src/main/java/com/lzbi/draft/controller/DcBusiTargetAdjustDayMasterController.java

@ -0,0 +1,143 @@
package com.lzbi.draft.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.lzbi.draft.domain.DcBusiTargetAdjustDayMasterDao;
import com.lzbi.draft.domain.DcBusiTargetAdjustDaySubDao;
import com.lzbi.draft.service.DcBusiTargetAdjustDayMasterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.lzbi.common.annotation.Log;
import com.lzbi.common.core.controller.BaseController;
import com.lzbi.common.core.domain.AjaxResult;
import com.lzbi.common.enums.BusinessType;
import com.lzbi.common.utils.poi.ExcelUtil;
import com.lzbi.common.core.page.TableDataInfo;
/**
* 资产指标调整单主()Controller
*
* @author lienbo
* @date 2023-12-05
*/
@Api(value = "资产指标调整单",tags = "资产指标调整单")
@RestController
@RequestMapping("/asset/target/adjust")
public class DcBusiTargetAdjustDayMasterController extends BaseController
{
@Autowired
private DcBusiTargetAdjustDayMasterService dcBusiTargetAdjustDayMasterService;
/**
* 查询资产指标调整单主()列表
*/
@PreAuthorize("@ss.hasPermi('lzbi:master:list')")
@GetMapping("/list")
public TableDataInfo list(DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao)
{
startPage();
List<DcBusiTargetAdjustDayMasterDao> list = dcBusiTargetAdjustDayMasterService.selectDcBusiTargetAdjustDayMasterDaoList(dcBusiTargetAdjustDayMasterDao);
return getDataTable(list);
}
/**
* 导出资产指标调整单主()列表
*/
@PreAuthorize("@ss.hasPermi('lzbi:master:export')")
@Log(title = "资产指标调整单主(日)", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao)
{
List<DcBusiTargetAdjustDayMasterDao> list = dcBusiTargetAdjustDayMasterService.selectDcBusiTargetAdjustDayMasterDaoList(dcBusiTargetAdjustDayMasterDao);
ExcelUtil<DcBusiTargetAdjustDayMasterDao> util = new ExcelUtil<DcBusiTargetAdjustDayMasterDao>(DcBusiTargetAdjustDayMasterDao.class);
util.exportExcel(response, list, "资产指标调整单主(日)数据");
}
/**
* 获取资产指标调整单主()详细信息
*/
@PreAuthorize("@ss.hasPermi('lzbi:master:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(dcBusiTargetAdjustDayMasterService.selectDcBusiTargetAdjustDayMasterDaoById(id));
}
/**
* 新增资产指标调整单主()
*/
@ApiOperation("新增资产指标调整单")
@PreAuthorize("@ss.hasPermi('lzbi:master:add')")
@Log(title = "资产指标调整单主(日)", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcBusiTargetAdjustDayMasterDao<DcBusiTargetAdjustDaySubDao> dcBusiTargetAdjustDayMasterDao)
{
return toAjax(dcBusiTargetAdjustDayMasterService.insertDcBusiTargetAdjustDayMasterDao(dcBusiTargetAdjustDayMasterDao));
}
/**
* 修改资产指标调整单主()
*/
@PreAuthorize("@ss.hasPermi('lzbi:master:edit')")
@Log(title = "资产指标调整单主(日)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao)
{
return toAjax(dcBusiTargetAdjustDayMasterService.updateDcBusiTargetAdjustDayMasterDao(dcBusiTargetAdjustDayMasterDao));
}
/**
* 删除资产指标调整单主()
*/
@PreAuthorize("@ss.hasPermi('lzbi:master:remove')")
@Log(title = "资产指标调整单主(日)", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(dcBusiTargetAdjustDayMasterService.deleteDcBusiTargetAdjustDayMasterDaoByIds(ids));
}
/**
* 审核资产指标调整单()
*/
@ApiOperation("审核资产指标调整单")
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", dataTypeClass = Long.class, paramType = "path", required = true)
@PreAuthorize("@ss.hasPermi('lzbi:master:add')")
@Log(title = "资产指标调整单主(日)", businessType = BusinessType.OTHER)
@PostMapping("/audit/{id}")
public AjaxResult audit(@PathVariable("id") Long id)
{
return toAjax(dcBusiTargetAdjustDayMasterService.audit(id));
}
/**
* 处理资产指标调整单主()
*/
@ApiOperation("处理资产指标调整单")
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", dataTypeClass = Long.class, paramType = "path", required = true)
@PreAuthorize("@ss.hasPermi('lzbi:master:add')")
@Log(title = "资产指标调整单主(日)", businessType = BusinessType.OTHER)
@PostMapping("/dispose/{id}")
public AjaxResult dispose(@PathVariable("id") Long id)
{
try{
return toAjax(dcBusiTargetAdjustDayMasterService.dispose(id));
} catch (RuntimeException e) {
return error(e.getMessage());
}
}
}

26
lzbi-module/src/main/java/com/lzbi/draft/controller/DcBusiTargetDraftDayController.java

@ -16,7 +16,7 @@ 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.draft.domain.DcBusiTargetDraftDayDao;
import com.lzbi.draft.domain.DcBusiTargetDraftDay;
import com.lzbi.draft.service.DcBusiTargetDraftDayService;
import com.lzbi.common.utils.poi.ExcelUtil;
import com.lzbi.common.core.page.TableDataInfo;
@ -28,7 +28,7 @@ import com.lzbi.common.core.page.TableDataInfo;
* @date 2023-11-28
*/
@RestController
@RequestMapping("/asset/targetDay")
@RequestMapping("/draft/targetDayDraft")
public class DcBusiTargetDraftDayController extends BaseController
{
@Autowired
@ -39,10 +39,10 @@ public class DcBusiTargetDraftDayController extends BaseController
*/
@PreAuthorize("@ss.hasPermi('target:targetDay:list')")
@GetMapping("/list")
public TableDataInfo list(DcBusiTargetDraftDayDao dcBusiTargetDraftDayDao)
public TableDataInfo list(DcBusiTargetDraftDay dcBusiTargetDraftDay)
{
startPage();
List<DcBusiTargetDraftDayDao> list = dcBusiTargetDraftDayService.selectDcBusiTargetDraftDayDaoList(dcBusiTargetDraftDayDao);
List<DcBusiTargetDraftDay> list = dcBusiTargetDraftDayService.selectDcBusiTargetDraftDayList(dcBusiTargetDraftDay);
return getDataTable(list);
}
@ -52,10 +52,10 @@ public class DcBusiTargetDraftDayController extends BaseController
@PreAuthorize("@ss.hasPermi('target:targetDay:export')")
@Log(title = "指标数据底稿(日)", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcBusiTargetDraftDayDao dcBusiTargetDraftDayDao)
public void export(HttpServletResponse response, DcBusiTargetDraftDay dcBusiTargetDraftDay)
{
List<DcBusiTargetDraftDayDao> list = dcBusiTargetDraftDayService.selectDcBusiTargetDraftDayDaoList(dcBusiTargetDraftDayDao);
ExcelUtil<DcBusiTargetDraftDayDao> util = new ExcelUtil<DcBusiTargetDraftDayDao>(DcBusiTargetDraftDayDao.class);
List<DcBusiTargetDraftDay> list = dcBusiTargetDraftDayService.selectDcBusiTargetDraftDayList(dcBusiTargetDraftDay);
ExcelUtil<DcBusiTargetDraftDay> util = new ExcelUtil<DcBusiTargetDraftDay>(DcBusiTargetDraftDay.class);
util.exportExcel(response, list, "指标数据底稿(日)数据");
}
@ -66,7 +66,7 @@ public class DcBusiTargetDraftDayController extends BaseController
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(dcBusiTargetDraftDayService.selectDcBusiTargetDraftDayDaoById(id));
return success(dcBusiTargetDraftDayService.selectDcBusiTargetDraftDayById(id));
}
/**
@ -75,9 +75,9 @@ public class DcBusiTargetDraftDayController extends BaseController
@PreAuthorize("@ss.hasPermi('target:targetDay:add')")
@Log(title = "指标数据底稿(日)", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcBusiTargetDraftDayDao dcBusiTargetDraftDayDao)
public AjaxResult add(@RequestBody DcBusiTargetDraftDay dcBusiTargetDraftDay)
{
return toAjax(dcBusiTargetDraftDayService.insertDcBusiTargetDraftDayDao(dcBusiTargetDraftDayDao));
return toAjax(dcBusiTargetDraftDayService.insertDcBusiTargetDraftDay(dcBusiTargetDraftDay));
}
/**
@ -86,9 +86,9 @@ public class DcBusiTargetDraftDayController extends BaseController
@PreAuthorize("@ss.hasPermi('target:targetDay:edit')")
@Log(title = "指标数据底稿(日)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcBusiTargetDraftDayDao dcBusiTargetDraftDayDao)
public AjaxResult edit(@RequestBody DcBusiTargetDraftDay dcBusiTargetDraftDay)
{
return toAjax(dcBusiTargetDraftDayService.updateDcBusiTargetDraftDayDao(dcBusiTargetDraftDayDao));
return toAjax(dcBusiTargetDraftDayService.updateDcBusiTargetDraftDay(dcBusiTargetDraftDay));
}
/**
@ -99,6 +99,6 @@ public class DcBusiTargetDraftDayController extends BaseController
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(dcBusiTargetDraftDayService.deleteDcBusiTargetDraftDayDaoByIds(ids));
return toAjax(dcBusiTargetDraftDayService.deleteDcBusiTargetDraftDayByIds(ids));
}
}

133
lzbi-module/src/main/java/com/lzbi/draft/controller/DcBusiTargetDraftMonthController.java

@ -0,0 +1,133 @@
package com.lzbi.draft.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
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.draft.domain. DcBusiTargetDraftMonth;
import com.lzbi.draft.service.DcBusiTargetDraftMonthService;
import com.lzbi.common.utils.poi.ExcelUtil;
import com.lzbi.common.core.page.TableDataInfo;
/**
* 指标数据底稿()Controller
*
* @author zhousq
* @date 2023-12-06
*/
@RestController
@RequestMapping("/draft/targetMonthDraft")
public class DcBusiTargetDraftMonthController extends BaseController
{
@Autowired
private DcBusiTargetDraftMonthService dcBusiTargetDraftMonthService;
/**
* 查询指标数据底稿()列表
*/
@ApiOperation("查询指标数据底稿(月)列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBusiTargetDraftMonth", value = "", dataType = "DcBusiTargetDraftMonth", dataTypeClass = DcBusiTargetDraftMonth.class),
})
@PreAuthorize("@ss.hasPermi('draft:targetMonthDraft:list')")
@GetMapping("/list")
public TableDataInfo list(DcBusiTargetDraftMonth DcBusiTargetDraftMonth)
{
startPage();
List< DcBusiTargetDraftMonth> list = dcBusiTargetDraftMonthService.selectDcBusiTargetDraftMonthList(DcBusiTargetDraftMonth);
return getDataTable(list);
}
/**
* 导出指标数据底稿()列表
*/
@ApiOperation("导出指标数据底稿(月)列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBusiTargetDraftMonth", value = "", dataType = "DcBusiTargetDraftMonth", dataTypeClass = DcBusiTargetDraftMonth.class),
})
@PreAuthorize("@ss.hasPermi('draft:targetMonthDraft:export')")
@Log(title = "指标数据底稿(月)", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcBusiTargetDraftMonth DcBusiTargetDraftMonth)
{
List< DcBusiTargetDraftMonth> list = dcBusiTargetDraftMonthService.selectDcBusiTargetDraftMonthList(DcBusiTargetDraftMonth);
ExcelUtil< DcBusiTargetDraftMonth> util = new ExcelUtil<DcBusiTargetDraftMonth>(DcBusiTargetDraftMonth.class);
util.exportExcel(response, list, "指标数据底稿(月)数据");
}
/**
* 获取指标数据底稿()详细信息
*/
@ApiOperation("获取指标数据底稿(月)详细信息")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "", dataType = "Long", dataTypeClass = Long.class),
})
@PreAuthorize("@ss.hasPermi('draft:targetMonthDraft:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(dcBusiTargetDraftMonthService.selectDcBusiTargetDraftMonthById(id));
}
/**
* 新增指标数据底稿()
*/
@ApiOperation("新增指标数据底稿(月)")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBusiTargetDraftMonth", value = "", dataType = "DcBusiTargetDraftMonth", dataTypeClass = DcBusiTargetDraftMonth.class),
})
@PreAuthorize("@ss.hasPermi('draft:targetMonthDraft:add')")
@Log(title = "指标数据底稿(月)", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcBusiTargetDraftMonth DcBusiTargetDraftMonth)
{
return toAjax(dcBusiTargetDraftMonthService.insertDcBusiTargetDraftMonth(DcBusiTargetDraftMonth));
}
/**
* 修改指标数据底稿()
*/
@ApiOperation("修改指标数据底稿(月)")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBusiTargetDraftMonth", value = "", dataType = "DcBusiTargetDraftMonth", dataTypeClass = DcBusiTargetDraftMonth.class),
})
@PreAuthorize("@ss.hasPermi('draft:targetMonthDraft:edit')")
@Log(title = "指标数据底稿(月)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcBusiTargetDraftMonth DcBusiTargetDraftMonth)
{
return toAjax(dcBusiTargetDraftMonthService.updateDcBusiTargetDraftMonth(DcBusiTargetDraftMonth));
}
/**
* 删除指标数据底稿()
*/
@ApiOperation("删除指标数据底稿(月)")
@ApiImplicitParams({
@ApiImplicitParam(name = "ids", value = "", dataType = "Long", dataTypeClass =Long.class),
})
@PreAuthorize("@ss.hasPermi('draft:targetMonthDraft:remove')")
@Log(title = "指标数据底稿(月)", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(dcBusiTargetDraftMonthService.deleteDcBusiTargetDraftMonthByIds(ids));
}
}

262
lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiParamDraftDay.java

@ -1,157 +1,203 @@
package com.lzbi.draft.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.lzbi.common.annotation.Excel;
import com.lzbi.module.base.BaseModuleEntity;
/**
* 参数数据底稿表;
* @author : zhousq
* @date : 2023-12-1
* 参数数据底稿对象 dc_busi_param_draft_day
*
* @author zhousq
* @date 2023-12-06
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "参数数据底稿表(日)",description = "")
@TableName("dc_busi_param_draft_day")
public class DcBusiParamDraftDay extends BaseModuleEntity{
public class DcBusiParamDraftDay extends BaseModuleEntity
{
private static final long serialVersionUID = 1L;
/** 创建人 */
private String createdBy;
/** 创建时间 */
private Date createdTime;
/** 更新人 */
private String updatedBy;
/** 更新时间 */
private Date updatedTime;
/** 主键 */
@ApiModelProperty(name = "主键",notes = "")
@TableId(type = IdType.AUTO)
private Integer id ;
@Excel(name = "主键")
private String id;
/** 公司编码 */
@ApiModelProperty(name = "公司编码",notes = "")
private String companyCode ;
private Integer companyId;
/** 生产组织机构名称 */
@ApiModelProperty(name = "生产组织机构名称",notes = "")
private String organizeName ;
@Excel(name = "生产组织机构名称")
private String organizeName;
/** 生产组织机构编号 */
@ApiModelProperty(name = "生产组织机构编号",notes = "")
private String organizeCode ;
private Integer organizeId;
/** 公司名称 */
@ApiModelProperty(name = "公司名称",notes = "")
private String companyName ;
/** 统计单元 */
@ApiModelProperty(name = "统计单元",notes = "")
private String assetCode ;
@ApiModelProperty(name = "统计单元",notes = "")
private String assetName ;
@Excel(name = "公司名称")
private String companyName;
/** 统计单元编码 */
@Excel(name = "统计单元编码")
private String assetCode;
/** 参数编码 */
@ApiModelProperty(name = "参数编码",notes = "")
private String paramCode ;
@Excel(name = "参数编码")
private String paramCode;
/** 参数名称 */
@ApiModelProperty(name = "参数名称",notes = "")
private String paramName ;
/** 生产专业 */
@ApiModelProperty(name = "生产专业",notes = "")
private String paramField ;
@Excel(name = "参数名称")
private String paramName;
/** 生产专业编码 */
@Excel(name = "生产专业编码")
private String paramFieldCode;
@Excel(name = "生产专业名称")
private String paramFieldName;
/** 指标单位 */
@ApiModelProperty(name = "指标单位",notes = "")
private String targetUint ;
/** 统计日期[yyyy-mm-dd] */
@ApiModelProperty(name = "统计日期[yyyy-mm-dd]",notes = "")
private String countDate ;
@Excel(name = "指标单位")
private String targetUint;
/** 统计日期[ */
@Excel(name = "统计日期[")
private String countDate;
/** 均值 */
@ApiModelProperty(name = "均值",notes = "")
private Double valAvg ;
@Excel(name = "均值")
private double valAvg;
/** 当日最大值 */
@ApiModelProperty(name = "当日最大值",notes = "")
private Double valMax ;
@Excel(name = "当日最大值")
private double valMax;
/** 和值 */
@ApiModelProperty(name = "和值",notes = "")
private String valSum ;
@Excel(name = "和值")
private String valSum;
/** 当日最小值 */
@ApiModelProperty(name = "当日最小值",notes = "")
private Double valMin ;
@Excel(name = "当日最小值")
private double valMin;
/** 积算值 */
@ApiModelProperty(name = "积算值",notes = "")
private Double valIntegrating ;
@Excel(name = "积算值")
private double valIntegrating;
/** 上限 */
@ApiModelProperty(name = "上限",notes = "")
private Double valLimitUp ;
@Excel(name = "上限")
private double valLimitUp;
/** 下限 */
@ApiModelProperty(name = "下限",notes = "")
private Double valLimitDown ;
/** 1时;[00:00:00,00:59:59] */
@ApiModelProperty(name = "1时",notes = "[00:00:00,00:59:59]")
private Double val01 ;
@Excel(name = "下限")
private double valLimitDown;
/** 1时 */
@Excel(name = "1时")
private double val01;
/** 2时;[01:00:00,01:59:59] */
@ApiModelProperty(name = "2时",notes = "[01:00:00,01:59:59]")
private Double val02 ;
@Excel(name = "2时;[01:00:00,01:59:59]")
private double val02;
/** 3时;[02:00:00,02:59:59] */
@ApiModelProperty(name = "3时",notes = "[02:00:00,02:59:59]")
private Double val03 ;
@Excel(name = "3时;[02:00:00,02:59:59]")
private double val03;
/** 4时 */
@ApiModelProperty(name = "4时",notes = "")
private Double val04 ;
@Excel(name = "4时")
private double val04;
/** 5时 */
@ApiModelProperty(name = "5时",notes = "")
private Double val05 ;
@Excel(name = "5时")
private double val05;
/** 6时 */
@ApiModelProperty(name = "6时",notes = "")
private Double val06 ;
@Excel(name = "6时")
private double val06;
/** 7时 */
@ApiModelProperty(name = "7时",notes = "")
private Double val07 ;
@Excel(name = "7时")
private double val07;
/** 8时 */
@ApiModelProperty(name = "8时",notes = "")
private Double val08 ;
@Excel(name = "8时")
private double val08;
/** 9时 */
@ApiModelProperty(name = "9时",notes = "")
private Double val09 ;
@Excel(name = "9时")
private double val09;
/** 10时 */
@ApiModelProperty(name = "10时",notes = "")
private Double val10 ;
@Excel(name = "10时")
private double val10;
/** 11时 */
@ApiModelProperty(name = "11时",notes = "")
private Double val11 ;
@Excel(name = "11时")
private double val11;
/** 12时 */
@ApiModelProperty(name = "12时",notes = "")
private Double val12 ;
@Excel(name = "12时")
private double val12;
/** 13时 */
@ApiModelProperty(name = "13时",notes = "")
private Double val13 ;
@Excel(name = "13时")
private double val13;
/** 14时 */
@ApiModelProperty(name = "14时",notes = "")
private Double val14 ;
@Excel(name = "14时")
private double val14;
/** 15时 */
@ApiModelProperty(name = "15时",notes = "")
private Double val15 ;
@Excel(name = "15时")
private double val15;
/** 16时 */
@ApiModelProperty(name = "16时",notes = "")
private Double val16 ;
@Excel(name = "16时")
private double val16;
/** 17时 */
@ApiModelProperty(name = "17时",notes = "")
private Double val17 ;
@Excel(name = "17时")
private double val17;
/** 18时 */
@ApiModelProperty(name = "18时",notes = "")
private Double val18 ;
@Excel(name = "18时")
private double val18;
/** 18时 */
@ApiModelProperty(name = "18时",notes = "")
private Double val19 ;
@Excel(name = "18时")
private double val19;
/** 20时 */
@ApiModelProperty(name = "20时",notes = "")
private Double val20 ;
@Excel(name = "20时")
private double val20;
/** 21时 */
@ApiModelProperty(name = "21时",notes = "")
private Double val21 ;
@Excel(name = "21时")
private double val21;
/** 22时 */
@ApiModelProperty(name = "22时",notes = "")
private Double val22 ;
@Excel(name = "22时")
private double val22;
/** 23时 */
@ApiModelProperty(name = "23时",notes = "")
private Double val23 ;
@Excel(name = "23时")
private double val23;
/** 24时 */
@ApiModelProperty(name = "24时",notes = "")
private Double val24 ;
@Excel(name = "24时")
private double val24;
/** 统计单元名称 */
@Excel(name = "统计单元名称")
private String assetName;
}

170
lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetAdjustDayMasterDao.java

@ -0,0 +1,170 @@
package com.lzbi.draft.domain;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import lombok.Data;
import com.lzbi.common.annotation.Excel;
import com.lzbi.module.base.BaseModuleEntity;
import springfox.documentation.annotations.ApiIgnore;
/**
* 资产指标调整单主()对象 dc_busi_target_adjust_day_master
*
* @author win
* @date 2023-12-05
*/
@ApiModel(value = "DcBusiTargetAdjustDayMasterDao对象", description = "资产指标调整单主表对象")
@Data
public class DcBusiTargetAdjustDayMasterDao<T> extends BaseModuleEntity {
/**
* 待审核状态
*/
public static final String CHECK_STATUS_PENDING_CHECK = "0";
/**
* 已审核状态
*/
public static final String CHECK_STATUS_CHECKED = "1";
/**
* 已审核状态
*/
public static final String CHECK_STATUS_PROCESSED = "2";
/**
* 人工
*/
public static final String CHECK_TYPE_ARTIFICIAL = "0";
private static final long serialVersionUID = 1L;
/**
* 单据号
*/
@ApiModelProperty(name = "billSerial", value = "单据号")
@Excel(name = "单据号")
private String billSerial;
/**
* 单据类别
*/
@ApiModelProperty(name = "biilType", value = "单据类别")
@Excel(name = "单据类别")
private String biilType;
/**
* 公司ID
*/
@ApiModelProperty(name = "companyId", value = "公司ID")
@Excel(name = "公司ID")
private Long companyId;
/**
* 公司名称
*/
@ApiModelProperty(hidden = true)
@Excel(name = "公司名称")
private String companyName;
/**
* 组织机构名称
*/
@ApiModelProperty(hidden = true)
@Excel(name = "组织机构名称")
private String organizeName;
/**
* 组织机构ID
*/
@ApiModelProperty(name = "oragnizeId", value = "组织机构ID")
@Excel(name = "组织机构ID")
private Long oragnizeId;
/**
* 统计单元编码
*/
@ApiModelProperty(name = "assetCode", value = "统计单元编码")
@Excel(name = "统计单元编码")
private String assetCode;
/**
* 统计单元名称
*/
@ApiModelProperty(hidden = true)
@Excel(name = "统计单元名称")
private String assetName;
/**
* 统计专业代码
*/
@ApiModelProperty(name = "fieldCode", value = "统计专业代码")
@Excel(name = "统计专业代码")
private String fieldCode;
/**
* 统计专业名称
*/
@ApiModelProperty(hidden = true)
@Excel(name = "统计专业名称")
private String fieldName;
/**
* 主键
*/
private Long id;
/**
* 调整目标日期
*/
@ApiModelProperty(name = "dateAdjust", value = "调整目标日期")
@Excel(name = "调整目标日期")
private String dateAdjust;
/**
* 创建人
*/
@ApiModelProperty(hidden = true)
private String createdBy;
/**
* 创建时间
*/
@ApiModelProperty(hidden = true)
private Date createdTime;
/**
* 更新人
*/
@ApiModelProperty(hidden = true)
private String updatedBy;
/**
* 更新时间
*/
@ApiModelProperty(hidden = true)
private Date updatedTime;
/**
* 审核状态;0待审核 1 已经审核 2已处理
*/
@ApiModelProperty(hidden = true)
@Excel(name = "审核状态;0待审核 1 已经审核 2已处理")
private String checkStauts;
/**
* 审核类型;1人工2自动
*/
@ApiModelProperty(hidden = true)
@Excel(name = "审核类型;1人工2自动")
private String checkType;
/**
* 统计单元指标调整单子表集合
*/
@ApiModelProperty(name = "children", value = "统计单元指标调整单子表集合")
private List<T> children;
}

118
lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetAdjustDaySubDao.java

@ -0,0 +1,118 @@
package com.lzbi.draft.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import lombok.Data;
import com.lzbi.common.annotation.Excel;
import com.lzbi.module.base.BaseModuleEntity;
/**
* 统计单元指标调整单子()对象 dc_busi_target_adjust_day_sub
*
* @author win
* @date 2023-12-05
*/
@ApiModel(value = "DcBusiTargetAdjustDaySubDao对象", description = "资产指标调整单子表对象")
@Data
public class DcBusiTargetAdjustDaySubDao extends BaseModuleEntity {
private static final long serialVersionUID = 1L;
/**
* 创建人
*/
@ApiModelProperty(hidden = true)
private String createdBy;
/**
* 创建时间
*/
@ApiModelProperty(hidden = true)
private Date createdTime;
/**
* 更新人
*/
@ApiModelProperty(hidden = true)
private String updatedBy;
/**
* 更新时间
*/
@ApiModelProperty(hidden = true)
private Date updatedTime;
/**
* 主键
*/
private Long id;
/**
* 主单据编号
*/
@ApiModelProperty(hidden = true)
@Excel(name = "主单据编号")
private String billNoMaster;
/**
* 指标编码
*/
@ApiModelProperty(name = "targetCode", value = "指标编码")
@Excel(name = "指标编码")
private String targetCode;
/**
* 指标名称
*/
@ApiModelProperty(hidden = true)
@Excel(name = "指标名称")
private String targetName;
/**
* 指标单位
*/
@ApiModelProperty(name = "tagetUnit", value = "指标单位")
@Excel(name = "指标单位")
private String tagetUnit;
/**
* 日期调整日期
*/
@ApiModelProperty(name = "adjustDate", value = "日期调整日期")
@Excel(name = "日期调整日期")
private String adjustDate;
/**
* 调整时间
*/
@ApiModelProperty(name = "adjstTime", value = "调整时间")
@Excel(name = "调整时间")
private Long adjstTime;
/**
* 原值
*/
@ApiModelProperty(name = "valOrigin", value = "原值")
@Excel(name = "原值")
private BigDecimal valOrigin;
/**
* 调整值
*/
@ApiModelProperty(name = "valAdjust", value = "调整值")
@Excel(name = "调整值")
private BigDecimal valAdjust;
/**
* 结果值
*/
@ApiModelProperty(name = "valResult", value = "结果值")
@Excel(name = "结果值")
private BigDecimal valResult;
}

23
lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetDraftDayDao.java → lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetDraftDay.java

@ -1,11 +1,9 @@
package com.lzbi.draft.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lzbi.common.annotation.Excel;
import com.lzbi.module.base.BaseModuleEntity;
@ -16,7 +14,7 @@ import com.lzbi.module.base.BaseModuleEntity;
* @date 2023-11-28
*/
@Data
public class DcBusiTargetDraftDayDao extends BaseModuleEntity
public class DcBusiTargetDraftDay extends BaseModuleEntity
{
private static final long serialVersionUID = 1L;
@ -29,11 +27,11 @@ public class DcBusiTargetDraftDayDao extends BaseModuleEntity
/** 公司编码 */
@Excel(name = "公司编码")
private String companyCode;
private Long companyId;
/** 组织机构代码 */
@Excel(name = "组织机构代码")
private String orgCode;
private Long orgId;
/** 组织机构名称 */
@Excel(name = "组织机构名称")
@ -47,10 +45,15 @@ public class DcBusiTargetDraftDayDao extends BaseModuleEntity
@Excel(name = "统计单元名称")
private String assetName;
/** 所属专业 */
@Excel(name = "所属专业")
private String fieldType;
@Excel(name = "所属专业编码")
private String fieldCode ;
/** 所属专业名称 */
@Excel(name = "所属专业名称")
private String fieldName ;
/** 指标别名 */
@Excel(name = "指标别名")
private String targetNameAlias ;
/** 指标名称 */
@Excel(name = "指标名称")
private String targetName;

230
lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetDraftMonth.java

@ -0,0 +1,230 @@
package com.lzbi.draft.domain;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import com.lzbi.common.annotation.Excel;
import com.lzbi.module.base.BaseModuleEntity;
/**
* 指标数据底稿()对象 dc_busi_target_draft_month
*
* @author zhousq
* @date 2023-12-06
*/
@Data
public class DcBusiTargetDraftMonth extends BaseModuleEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 公司名称 */
@Excel(name = "公司名称")
private String companyName;
/** 公司ID */
private Long companyId;
/** 组织机构ID */
private Long orgId;
/** 组织机构名称 */
@Excel(name = "组织机构名称")
private String orgName;
/** 统计单元编码 */
@Excel(name = "统计单元编码")
private String assetCode;
/** 统计单元名称 */
@Excel(name = "统计单元名称")
private String assetName;
/** 所属专业编码 */
@Excel(name = "所属专业编码")
private String fieldCode;
/** 所属专业名称 */
@Excel(name = "所属专业名称")
private String fieldName;
/** 指标别名 */
@Excel(name = "指标别名")
private String targetNameAlias;
/** 指标名称 */
@Excel(name = "指标名称")
private String targetName;
/** 指标编码 */
@Excel(name = "指标编码")
private String targetCode;
/** 指标单位 */
@Excel(name = "指标单位")
private String targetUint;
/** 年 */
@Excel(name = "年")
private String countYear;
/** 月 */
@Excel(name = "月")
private String countMonth;
/** 和值 */
@Excel(name = "和值")
private BigDecimal valSum;
/** 均值 */
@Excel(name = "均值")
private BigDecimal valAvgAll;
/** 非空均值 */
@Excel(name = "非空均值")
private BigDecimal valAvgNull;
/** 计划值 */
@Excel(name = "计划值")
private BigDecimal valPlan;
/** 创建人 */
private String createdBy;
/** 创建时间 */
private Date createdTime;
/** 更新人 */
private String updatedBy;
/** 更新时间 */
private Date updatedTime;
/** 1日 */
@Excel(name = "1日")
private BigDecimal valP1;
/** 2日 */
@Excel(name = "2日")
private BigDecimal valP2;
/** 3日 */
@Excel(name = "3日")
private BigDecimal valP3;
/** 4日 */
@Excel(name = "4日")
private BigDecimal valP4;
/** 5日 */
@Excel(name = "5日")
private BigDecimal valP5;
/** 6日 */
@Excel(name = "6日")
private BigDecimal valP6;
/** 7日 */
@Excel(name = "7日")
private BigDecimal valP7;
/** 8日 */
@Excel(name = "8日")
private BigDecimal valP8;
/** 9日 */
@Excel(name = "9日")
private BigDecimal valP9;
/** 10日 */
@Excel(name = "10日")
private BigDecimal valP10;
/** 11日 */
@Excel(name = "11日")
private BigDecimal valP11;
/** 12日 */
@Excel(name = "12日")
private BigDecimal valP12;
/** 13日 */
@Excel(name = "13日")
private BigDecimal valP13;
/** 14日 */
@Excel(name = "14日")
private BigDecimal valP14;
/** 15日 */
@Excel(name = "15日")
private BigDecimal valP15;
/** 16日 */
@Excel(name = "16日")
private BigDecimal valP16;
/** 17日 */
@Excel(name = "17日")
private BigDecimal valP17;
/** 18日 */
@Excel(name = "18日")
private BigDecimal valP18;
/** 19日 */
@Excel(name = "19日")
private BigDecimal valP19;
/** 20日 */
@Excel(name = "20日")
private BigDecimal valP20;
/** 21日 */
@Excel(name = "21日")
private BigDecimal valP21;
/** 22日 */
@Excel(name = "22日")
private BigDecimal valP22;
/** 23日 */
@Excel(name = "23日")
private BigDecimal valP23;
/** 24日 */
@Excel(name = "24日")
private BigDecimal valP24;
/** 25日 */
@Excel(name = "25日")
private BigDecimal valP25;
/** 26日 */
@Excel(name = "26日")
private BigDecimal valP26;
/** 27日 */
@Excel(name = "27日")
private BigDecimal valP27;
/** 28日 */
@Excel(name = "28日")
private BigDecimal valP28;
/** 29日 */
@Excel(name = "29日")
private BigDecimal valP29;
/** 30日 */
@Excel(name = "30日")
private BigDecimal valP30;
/** 31日 */
@Excel(name = "31日")
private BigDecimal valP31;
}

68
lzbi-module/src/main/java/com/lzbi/draft/mapper/DcBusiParamDraftDayMapper.java

@ -1,21 +1,65 @@
package com.lzbi.draft.mapper;
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import com.lzbi.draft.domain.DcBusiParamDraftDay;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzbi.draft.domain.ParamDraftQueryVo;
import java.util.List;
/**
* 参数数据底稿表;(dc_busi_param_draft_day)表数据库访问层
* @author : zhousq
* @date : 2023-12-1
* 参数数据底稿Mapper接口
*
* @author zhousq
* @date 2023-12-06
*/
@InterceptorIgnore(tenantLine = "true")
public interface DcBusiParamDraftDayMapper extends BaseMapper<DcBusiParamDraftDay>{
List<DcBusiParamDraftDay> selectByVo( DcBusiParamDraftDay beanVo);
int insertByVo( DcBusiParamDraftDay beanVo);
DcBusiParamDraftDay selectOneByParam( ParamDraftQueryVo beanVo);
public interface DcBusiParamDraftDayMapper extends BaseMapper<DcBusiParamDraftDay>
{
/**
* 查询参数数据底稿
*
* @param id 参数数据底稿主键
* @return 参数数据底稿
*/
public DcBusiParamDraftDay selectDcBusiParamDraftDayById(String id);
public DcBusiParamDraftDay selectOneByParam(ParamDraftQueryVo queryVo);
/**
* 查询参数数据底稿列表
*
* @param dcBusiParamDraftDay 参数数据底稿
* @return 参数数据底稿集合
*/
public List<DcBusiParamDraftDay> selectDcBusiParamDraftDayList(DcBusiParamDraftDay dcBusiParamDraftDay);
/**
* 新增参数数据底稿
*
* @param dcBusiParamDraftDay 参数数据底稿
* @return 结果
*/
public int insertDcBusiParamDraftDay(DcBusiParamDraftDay dcBusiParamDraftDay);
/**
* 修改参数数据底稿
*
* @param dcBusiParamDraftDay 参数数据底稿
* @return 结果
*/
public int updateDcBusiParamDraftDay(DcBusiParamDraftDay dcBusiParamDraftDay);
/**
* 删除参数数据底稿
*
* @param id 参数数据底稿主键
* @return 结果
*/
public int deleteDcBusiParamDraftDayById(String id);
/**
* 批量删除参数数据底稿
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDcBusiParamDraftDayByIds(String[] ids);
}

63
lzbi-module/src/main/java/com/lzbi/draft/mapper/DcBusiTargetAdjustDayMasterMapper.java

@ -0,0 +1,63 @@
package com.lzbi.draft.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzbi.draft.domain.DcBusiTargetAdjustDayMasterDao;
/**
* 资产指标调整单主()Mapper接口
*
* @author lienbo
* @date 2023-12-05
*/
public interface DcBusiTargetAdjustDayMasterMapper extends BaseMapper<DcBusiTargetAdjustDayMasterDao>
{
/**
* 查询资产指标调整单主()
*
* @param id 资产指标调整单主()主键
* @return 资产指标调整单主()
*/
public DcBusiTargetAdjustDayMasterDao selectDcBusiTargetAdjustDayMasterDaoById(Long id);
/**
* 查询资产指标调整单主()列表
*
* @param dcBusiTargetAdjustDayMasterDao 资产指标调整单主()
* @return 资产指标调整单主()集合
*/
public List<DcBusiTargetAdjustDayMasterDao> selectDcBusiTargetAdjustDayMasterDaoList(DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao);
/**
* 新增资产指标调整单主()
*
* @param dcBusiTargetAdjustDayMasterDao 资产指标调整单主()
* @return 结果
*/
public int insertDcBusiTargetAdjustDayMasterDao(DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao);
/**
* 修改资产指标调整单主()
*
* @param dcBusiTargetAdjustDayMasterDao 资产指标调整单主()
* @return 结果
*/
public int updateDcBusiTargetAdjustDayMasterDao(DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao);
/**
* 删除资产指标调整单主()
*
* @param id 资产指标调整单主()主键
* @return 结果
*/
public int deleteDcBusiTargetAdjustDayMasterDaoById(Long id);
/**
* 批量删除资产指标调整单主()
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDcBusiTargetAdjustDayMasterDaoByIds(Long[] ids);
}

63
lzbi-module/src/main/java/com/lzbi/draft/mapper/DcBusiTargetAdjustDaySubMapper.java

@ -0,0 +1,63 @@
package com.lzbi.draft.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzbi.draft.domain.DcBusiTargetAdjustDaySubDao;
/**
* 统计单元指标调整单子()Mapper接口
*
* @author lienbo
* @date 2023-12-05
*/
public interface DcBusiTargetAdjustDaySubMapper extends BaseMapper<DcBusiTargetAdjustDaySubDao>
{
/**
* 查询统计单元指标调整单子()
*
* @param id 统计单元指标调整单子()主键
* @return 统计单元指标调整单子()
*/
public DcBusiTargetAdjustDaySubDao selectDcBusiTargetAdjustDaySubDaoById(Long id);
/**
* 查询统计单元指标调整单子()列表
*
* @param dcBusiTargetAdjustDaySubDao 统计单元指标调整单子()
* @return 统计单元指标调整单子()集合
*/
public List<DcBusiTargetAdjustDaySubDao> selectDcBusiTargetAdjustDaySubDaoList(DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao);
/**
* 新增统计单元指标调整单子()
*
* @param dcBusiTargetAdjustDaySubDao 统计单元指标调整单子()
* @return 结果
*/
public int insertDcBusiTargetAdjustDaySubDao(DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao);
/**
* 修改统计单元指标调整单子()
*
* @param dcBusiTargetAdjustDaySubDao 统计单元指标调整单子()
* @return 结果
*/
public int updateDcBusiTargetAdjustDaySubDao(DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao);
/**
* 删除统计单元指标调整单子()
*
* @param id 统计单元指标调整单子()主键
* @return 结果
*/
public int deleteDcBusiTargetAdjustDaySubDaoById(Long id);
/**
* 批量删除统计单元指标调整单子()
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDcBusiTargetAdjustDaySubDaoByIds(Long[] ids);
}

20
lzbi-module/src/main/java/com/lzbi/draft/mapper/DcBusiTargetDraftDayMapper.java

@ -2,7 +2,7 @@ package com.lzbi.draft.mapper;
import java.util.List;
import com.lzbi.draft.domain.DcBusiTargetDraftDayDao;
import com.lzbi.draft.domain.DcBusiTargetDraftDay;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
@ -12,7 +12,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* @date 2023-11-28
*/
public interface DcBusiTargetDraftDayMapper extends BaseMapper<DcBusiTargetDraftDayDao>
public interface DcBusiTargetDraftDayMapper extends BaseMapper<DcBusiTargetDraftDay>
{
/**
* 查询指标数据底稿()
@ -20,23 +20,23 @@ public interface DcBusiTargetDraftDayMapper extends BaseMapper<DcBusiTargetDraft
* @param id 指标数据底稿()主键
* @return 指标数据底稿()
*/
public DcBusiTargetDraftDayDao selectDcBusiTargetDraftDayDaoById(Long id);
public DcBusiTargetDraftDay selectDcBusiTargetDraftDayById(Long id);
/**
* 查询指标数据底稿()列表
*
* @param dcBusiTargetDraftDayDao 指标数据底稿()
* @param dcBusiTargetDraftDay 指标数据底稿()
* @return 指标数据底稿()集合
*/
public List<DcBusiTargetDraftDayDao> selectDcBusiTargetDraftDayDaoList(DcBusiTargetDraftDayDao dcBusiTargetDraftDayDao);
public List<DcBusiTargetDraftDay> selectDcBusiTargetDraftDayList(DcBusiTargetDraftDay dcBusiTargetDraftDay);
/**
* 新增指标数据底稿()
*
* @param dcBusiTargetDraftDayDao 指标数据底稿()
* @param dcBusiTargetDraftDay 指标数据底稿()
* @return 结果
*/
public int insertDcBusiTargetDraftDayDao(DcBusiTargetDraftDayDao dcBusiTargetDraftDayDao);
public int insertDcBusiTargetDraftDay(DcBusiTargetDraftDay dcBusiTargetDraftDay);
/**
* 修改指标数据底稿()
@ -44,7 +44,7 @@ public interface DcBusiTargetDraftDayMapper extends BaseMapper<DcBusiTargetDraft
* @param dcBusiTargetDraftDay 指标数据底稿()
* @return 结果
*/
public int updateDcBusiTargetDraftDayDao(DcBusiTargetDraftDayDao dcBusiTargetDraftDayDao);
public int updateDcBusiTargetDraftDay(DcBusiTargetDraftDay dcBusiTargetDraftDay);
/**
* 删除指标数据底稿()
@ -52,7 +52,7 @@ public interface DcBusiTargetDraftDayMapper extends BaseMapper<DcBusiTargetDraft
* @param id 指标数据底稿()主键
* @return 结果
*/
public int deleteDcBusiTargetDraftDayDaoById(Long id);
public int deleteDcBusiTargetDraftDayById(Long id);
/**
* 批量删除指标数据底稿()
@ -60,5 +60,5 @@ public interface DcBusiTargetDraftDayMapper extends BaseMapper<DcBusiTargetDraft
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDcBusiTargetDraftDayDaoByIds(Long[] ids);
public int deleteDcBusiTargetDraftDayByIds(Long[] ids);
}

63
lzbi-module/src/main/java/com/lzbi/draft/mapper/DcBusiTargetDraftMonthMapper.java

@ -0,0 +1,63 @@
package com.lzbi.draft.mapper;
import java.util.List;
import com.lzbi.draft.domain.DcBusiTargetDraftMonth;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* 指标数据底稿()Mapper接口
*
* @author zhousq
* @date 2023-12-06
*/
public interface DcBusiTargetDraftMonthMapper extends BaseMapper<DcBusiTargetDraftMonth>
{
/**
* 查询指标数据底稿()
*
* @param id 指标数据底稿()主键
* @return 指标数据底稿()
*/
public DcBusiTargetDraftMonth selectDcBusiTargetDraftMonthById(Long id);
/**
* 查询指标数据底稿()列表
*
* @param dcBusiTargetDraftMonth 指标数据底稿()
* @return 指标数据底稿()集合
*/
public List<DcBusiTargetDraftMonth> selectDcBusiTargetDraftMonthList(DcBusiTargetDraftMonth dcBusiTargetDraftMonth);
/**
* 新增指标数据底稿()
*
* @param dcBusiTargetDraftMonth 指标数据底稿()
* @return 结果
*/
public int insertDcBusiTargetDraftMonth(DcBusiTargetDraftMonth dcBusiTargetDraftMonth);
/**
* 修改指标数据底稿()
*
* @param dcBusiTargetDraftMonth 指标数据底稿()
* @return 结果
*/
public int updateDcBusiTargetDraftMonth(DcBusiTargetDraftMonth dcBusiTargetDraftMonth);
/**
* 删除指标数据底稿()
*
* @param id 指标数据底稿()主键
* @return 结果
*/
public int deleteDcBusiTargetDraftMonthById(Long id);
/**
* 批量删除指标数据底稿()
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDcBusiTargetDraftMonthByIds(Long[] ids);
}

97
lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiParamDraftDayService.java

@ -1,29 +1,96 @@
package com.lzbi.draft.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import com.lzbi.common.utils.DateUtils;
import com.lzbi.draft.domain.ParamDraftQueryVo;
import com.lzbi.draft.mapper.DcBusiParamDraftDayMapper;
import org.springframework.stereotype.Service;
import com.lzbi.draft.domain.DcBusiParamDraftDay;
import java.util.List;
import com.lzbi.draft.mapper.DcBusiParamDraftDayMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* 参数数据底稿表;(dc_busi_param_draft_day)表服务接口
* @author : zhousq
* @date : 2023-12-1
* 参数数据底稿Service业务层处理
*
* @author zhousq
* @date 2023-12-06
*/
@Service
public class DcBusiParamDraftDayService extends ServiceImpl<DcBusiParamDraftDayMapper, DcBusiParamDraftDay> implements IService<DcBusiParamDraftDay> {
public class DcBusiParamDraftDayService extends ServiceImpl<DcBusiParamDraftDayMapper, DcBusiParamDraftDay> implements IService<DcBusiParamDraftDay>
{
public List<DcBusiParamDraftDay> selectByVo( DcBusiParamDraftDay dcBusiParamDraftDay){
return baseMapper.selectByVo(dcBusiParamDraftDay);
/**
* 查询参数数据底稿
*
* @param id 参数数据底稿主键
* @return 参数数据底稿
*/
public DcBusiParamDraftDay selectDcBusiParamDraftDayById(String id)
{
return baseMapper.selectDcBusiParamDraftDayById(id);
}
public int insertByVo( DcBusiParamDraftDay dcBusiParamDraftDay){
return baseMapper.insertByVo(dcBusiParamDraftDay);
}
public DcBusiParamDraftDay selectOneByParam(ParamDraftQueryVo queryVo){
public DcBusiParamDraftDay selectOneByParam(ParamDraftQueryVo queryVo)
{
return baseMapper.selectOneByParam(queryVo);
}
/**
* 查询参数数据底稿列表
*
* @param dcBusiParamDraftDay 参数数据底稿
* @return 参数数据底稿
*/
public List<DcBusiParamDraftDay> selectDcBusiParamDraftDayList(DcBusiParamDraftDay dcBusiParamDraftDay)
{
return baseMapper.selectDcBusiParamDraftDayList(dcBusiParamDraftDay);
}
/**
* 新增参数数据底稿
*
* @param dcBusiParamDraftDay 参数数据底稿
* @return 结果
*/
public int insertDcBusiParamDraftDay(DcBusiParamDraftDay dcBusiParamDraftDay)
{
dcBusiParamDraftDay.setCreatedTime(DateUtils.getNowDate());
return baseMapper.insertDcBusiParamDraftDay(dcBusiParamDraftDay);
}
/**
* 修改参数数据底稿
*
* @param dcBusiParamDraftDay 参数数据底稿
* @return 结果
*/
public int updateDcBusiParamDraftDay(DcBusiParamDraftDay dcBusiParamDraftDay)
{
dcBusiParamDraftDay.setUpdatedTime(DateUtils.getNowDate());
return baseMapper.updateDcBusiParamDraftDay(dcBusiParamDraftDay);
}
/**
* 批量删除参数数据底稿
*
* @param ids 需要删除的参数数据底稿主键
* @return 结果
*/
public int deleteDcBusiParamDraftDayByIds(String[] ids)
{
return baseMapper.deleteDcBusiParamDraftDayByIds(ids);
}
/**
* 删除参数数据底稿信息
*
* @param id 参数数据底稿主键
* @return 结果
*/
public int deleteDcBusiParamDraftDayById(String id)
{
return baseMapper.deleteDcBusiParamDraftDayById(id);
}
}

235
lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiTargetAdjustDayMasterService.java

@ -0,0 +1,235 @@
package com.lzbi.draft.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lzbi.asset.domain.DcBaseAssetInfo;
import com.lzbi.asset.mapper.DcBaseAssetInfoMapper;
import com.lzbi.common.core.domain.entity.SysDept;
import com.lzbi.common.utils.DateUtils;
import com.lzbi.draft.domain.DcBusiTargetAdjustDayMasterDao;
import com.lzbi.draft.domain.DcBusiTargetAdjustDaySubDao;
import com.lzbi.draft.domain.DcBusiTargetDraftDay;
import com.lzbi.draft.mapper.DcBusiTargetAdjustDayMasterMapper;
import com.lzbi.draft.mapper.DcBusiTargetAdjustDaySubMapper;
import com.lzbi.draft.mapper.DcBusiTargetDraftDayMapper;
import com.lzbi.special.domain.DcBaseWorkSpecial;
import com.lzbi.special.mapper.DcBaseWorkSpecialMapper;
import com.lzbi.system.service.impl.SysDeptServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* 资产指标调整单主()Service业务层处理
*
* @author lienbo
* @date 2023-12-05
*/
@Slf4j
@Service
public class DcBusiTargetAdjustDayMasterService extends ServiceImpl<DcBusiTargetAdjustDayMasterMapper, DcBusiTargetAdjustDayMasterDao> implements IService<DcBusiTargetAdjustDayMasterDao> {
@Resource
private DcBaseAssetInfoMapper dcBaseAssetInfoMapper;
@Autowired
private SysDeptServiceImpl sysDeptService;
@Autowired
private DcBusiTargetAdjustDaySubService dcBusiTargetAdjustDaySubService;
@Resource
private DcBusiTargetAdjustDaySubMapper dcBusiTargetAdjustDaySubMapper;
@Resource
private DcBaseWorkSpecialMapper dcBaseWorkSpecialMapper;
@Resource
private DcBusiTargetDraftDayMapper dcBusiTargetDraftDayMapper;
private static final Lock lock = new ReentrantLock();
/**
* 查询资产指标调整单主()
*
* @param id 资产指标调整单主()主键
* @return 资产指标调整单主()
*/
public DcBusiTargetAdjustDayMasterDao selectDcBusiTargetAdjustDayMasterDaoById(Long id) {
return baseMapper.selectDcBusiTargetAdjustDayMasterDaoById(id);
}
/**
* 查询资产指标调整单主()列表
*
* @param dcBusiTargetAdjustDayMasterDao 资产指标调整单主()
* @return 资产指标调整单主()
*/
public List<DcBusiTargetAdjustDayMasterDao> selectDcBusiTargetAdjustDayMasterDaoList(DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao) {
return baseMapper.selectDcBusiTargetAdjustDayMasterDaoList(dcBusiTargetAdjustDayMasterDao);
}
/**
* 新增资产指标调整单主()
*
* @param dcBusiTargetAdjustDayMasterDao 资产指标调整单主()
* @return 结果
*/
@Transactional(rollbackFor = Exception.class)
public int insertDcBusiTargetAdjustDayMasterDao(DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao) {
String assetCode = dcBusiTargetAdjustDayMasterDao.getAssetCode();
// 查询公司
SysDept company = sysDeptService.selectDeptById(dcBusiTargetAdjustDayMasterDao.getCompanyId());
if (ObjectUtils.isNotEmpty(company)) {
dcBusiTargetAdjustDayMasterDao.setCompanyName(company.getDeptName());
}
// 查询组织
SysDept organize = sysDeptService.selectDeptById(dcBusiTargetAdjustDayMasterDao.getOragnizeId());
if (ObjectUtils.isNotEmpty(organize)) {
dcBusiTargetAdjustDayMasterDao.setOrganizeName(organize.getDeptName());
}
// 查询统计单元
DcBaseAssetInfo dcBaseAssetInfo = dcBaseAssetInfoMapper.selectDcBaseAssetInfoByAssetCode(assetCode);
if (ObjectUtils.isNotEmpty(dcBaseAssetInfo)) {
dcBusiTargetAdjustDayMasterDao.setAssetName(dcBaseAssetInfo.getAssetName());
}
// 查询生产专业
DcBaseWorkSpecial dcBaseWorkSpecial = dcBaseWorkSpecialMapper.selectDcBaseWorkSpecialBySpecialCode(dcBusiTargetAdjustDayMasterDao.getFieldCode());
if (ObjectUtils.isNotEmpty(dcBaseWorkSpecial)) {
dcBusiTargetAdjustDayMasterDao.setFieldName(dcBaseWorkSpecial.getSpecialName());
}
dcBusiTargetAdjustDayMasterDao.setCheckStauts(DcBusiTargetAdjustDayMasterDao.CHECK_STATUS_PENDING_CHECK);
dcBusiTargetAdjustDayMasterDao.setCheckType(DcBusiTargetAdjustDayMasterDao.CHECK_TYPE_ARTIFICIAL);
dcBusiTargetAdjustDayMasterDao.setCreatedTime(DateUtils.getNowDate());
// 新增子表数据
List<DcBusiTargetAdjustDaySubDao> children = dcBusiTargetAdjustDayMasterDao.getChildren();
for (DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao : children) {
dcBusiTargetAdjustDaySubDao.setBillNoMaster(dcBusiTargetAdjustDayMasterDao.getBillSerial());
dcBusiTargetAdjustDaySubService.insertDcBusiTargetAdjustDaySubDao(dcBusiTargetAdjustDaySubDao, assetCode);
}
return baseMapper.insertDcBusiTargetAdjustDayMasterDao(dcBusiTargetAdjustDayMasterDao);
}
/**
* 修改资产指标调整单主()
*
* @param dcBusiTargetAdjustDayMasterDao 资产指标调整单主()
* @return 结果
*/
public int updateDcBusiTargetAdjustDayMasterDao(DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao) {
dcBusiTargetAdjustDayMasterDao.setUpdatedTime(DateUtils.getNowDate());
return baseMapper.updateDcBusiTargetAdjustDayMasterDao(dcBusiTargetAdjustDayMasterDao);
}
/**
* 批量删除资产指标调整单主()
*
* @param ids 需要删除的资产指标调整单主()主键
* @return 结果
*/
public int deleteDcBusiTargetAdjustDayMasterDaoByIds(Long[] ids) {
return baseMapper.deleteDcBusiTargetAdjustDayMasterDaoByIds(ids);
}
/**
* 删除资产指标调整单主()信息
*
* @param id 资产指标调整单主()主键
* @return 结果
*/
public int deleteDcBusiTargetAdjustDayMasterDaoById(Long id) {
return baseMapper.deleteDcBusiTargetAdjustDayMasterDaoById(id);
}
/**
* 审核资产指标调整单
*
* @param id 资产指标调整单主()主键
* @return
*/
public int audit(Long id) {
DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao = new DcBusiTargetAdjustDayMasterDao();
dcBusiTargetAdjustDayMasterDao.setId(id);
dcBusiTargetAdjustDayMasterDao.setCheckStauts(DcBusiTargetAdjustDayMasterDao.CHECK_STATUS_CHECKED);
return this.updateDcBusiTargetAdjustDayMasterDao(dcBusiTargetAdjustDayMasterDao);
}
/**
* 审核资产指标调整单
*
* @param id
* @return
*/
@Transactional(rollbackFor = Exception.class)
public int dispose(Long id) throws RuntimeException {
lock.lock();
try {
// 查询审核资产指标调整单主表数据
DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao = baseMapper.selectDcBusiTargetAdjustDayMasterDaoById(id);
// 调整单未审核不能处理
if (DcBusiTargetAdjustDayMasterDao.CHECK_STATUS_PENDING_CHECK.equals(dcBusiTargetAdjustDayMasterDao.getCheckStauts())) {
throw new RuntimeException("调整单未审核不能处理");
}
// 调整单已处理
if (DcBusiTargetAdjustDayMasterDao.CHECK_STATUS_PROCESSED.equals(dcBusiTargetAdjustDayMasterDao.getCheckStauts())) {
throw new RuntimeException("调整单已处理");
}
// 查询审核资产指标调整单子表集合
DcBusiTargetAdjustDaySubDao params = new DcBusiTargetAdjustDaySubDao();
params.setBillNoMaster(dcBusiTargetAdjustDayMasterDao.getBillSerial());
List<DcBusiTargetAdjustDaySubDao> dcBusiTargetAdjustDaySubDaoList = dcBusiTargetAdjustDaySubMapper.selectDcBusiTargetAdjustDaySubDaoList(params);
// 遍历子表集合,向指标数据底稿表(日)中同步数据
for (DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao : dcBusiTargetAdjustDaySubDaoList) {
DcBusiTargetDraftDay dcBusiTargetDraftDay = new DcBusiTargetDraftDay();
dcBusiTargetDraftDay.setCompanyId(dcBusiTargetAdjustDayMasterDao.getCompanyId());
dcBusiTargetDraftDay.setOrgId(dcBusiTargetAdjustDayMasterDao.getOragnizeId());
dcBusiTargetDraftDay.setAssetCode(dcBusiTargetAdjustDayMasterDao.getAssetCode());
dcBusiTargetDraftDay.setFieldCode(dcBusiTargetAdjustDayMasterDao.getFieldCode());
dcBusiTargetDraftDay.setTargetCode(dcBusiTargetDraftDay.getTargetCode());
List<DcBusiTargetDraftDay> dcBusiTargetDraftDayList = dcBusiTargetDraftDayMapper.selectDcBusiTargetDraftDayList(dcBusiTargetDraftDay);
// 如果未查询出来指标数据底稿数据,就新增,否则修改
if (CollectionUtils.isEmpty(dcBusiTargetDraftDayList)) {
dcBusiTargetDraftDay.setCompanyName(dcBusiTargetAdjustDayMasterDao.getCompanyName());
dcBusiTargetDraftDay.setOrgName(dcBusiTargetAdjustDayMasterDao.getOrganizeName());
dcBusiTargetDraftDay.setAssetName(dcBusiTargetAdjustDayMasterDao.getAssetName());
dcBusiTargetDraftDay.setFieldName(dcBusiTargetAdjustDayMasterDao.getFieldName());
dcBusiTargetDraftDay.setTargetName(dcBusiTargetAdjustDaySubDao.getTargetName());
dcBusiTargetDraftDay.setTargetUint(dcBusiTargetAdjustDaySubDao.getTagetUnit());
dcBusiTargetDraftDay.setCountDate(dcBusiTargetAdjustDayMasterDao.getDateAdjust());
dcBusiTargetDraftDay.setValOriginal(dcBusiTargetAdjustDaySubDao.getValOrigin());
dcBusiTargetDraftDay.setValAdjust(dcBusiTargetAdjustDaySubDao.getValAdjust());
dcBusiTargetDraftDay.setValResult(dcBusiTargetAdjustDaySubDao.getValResult());
dcBusiTargetDraftDayMapper.insertDcBusiTargetDraftDay(dcBusiTargetDraftDay);
} else {
dcBusiTargetDraftDay = dcBusiTargetDraftDayList.get(0);
BigDecimal valResult = dcBusiTargetDraftDay.getValResult().add(new BigDecimal(0));
dcBusiTargetDraftDay.setValOriginal(valResult);
dcBusiTargetDraftDay.setValAdjust(dcBusiTargetAdjustDaySubDao.getValAdjust());
dcBusiTargetDraftDay.setValResult(valResult.add(dcBusiTargetAdjustDaySubDao.getValAdjust()));
dcBusiTargetDraftDayMapper.updateDcBusiTargetDraftDay(dcBusiTargetDraftDay);
}
}
// 修改审核状态为已处理
dcBusiTargetAdjustDayMasterDao.setCheckStauts(DcBusiTargetAdjustDayMasterDao.CHECK_STATUS_PROCESSED);
return this.updateDcBusiTargetAdjustDayMasterDao(dcBusiTargetAdjustDayMasterDao);
} catch (RuntimeException e) {
log.error("处理异常", e);
throw e;
}finally {
lock.unlock();
}
}
}

96
lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiTargetAdjustDaySubService.java

@ -0,0 +1,96 @@
package com.lzbi.draft.service;
import java.util.List;
import com.lzbi.common.utils.DateUtils;
import com.lzbi.draft.domain.DcBusiTargetAdjustDaySubDao;
import com.lzbi.draft.mapper.DcBusiTargetAdjustDaySubMapper;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;
/**
* 统计单元指标调整单子()Service业务层处理
*
* @author lienbo
* @date 2023-12-05
*/
@Service
public class DcBusiTargetAdjustDaySubService extends ServiceImpl<DcBusiTargetAdjustDaySubMapper, DcBusiTargetAdjustDaySubDao> implements IService<DcBusiTargetAdjustDaySubDao>
{
/**
* 查询统计单元指标调整单子()
*
* @param id 统计单元指标调整单子()主键
* @return 统计单元指标调整单子()
*/
public DcBusiTargetAdjustDaySubDao selectDcBusiTargetAdjustDaySubDaoById(Long id)
{
return baseMapper.selectDcBusiTargetAdjustDaySubDaoById(id);
}
/**
* 查询统计单元指标调整单子()列表
*
* @param dcBusiTargetAdjustDaySubDao 统计单元指标调整单子()
* @return 统计单元指标调整单子()
*/
public List<DcBusiTargetAdjustDaySubDao> selectDcBusiTargetAdjustDaySubDaoList(DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao)
{
return baseMapper.selectDcBusiTargetAdjustDaySubDaoList(dcBusiTargetAdjustDaySubDao);
}
/**
* 新增统计单元指标调整单子()
*
* @param dcBusiTargetAdjustDaySubDao 统计单元指标调整单子()
* @param assetId 资产ID
* @return 结果
*/
@Transactional(rollbackFor = Exception.class)
public int insertDcBusiTargetAdjustDaySubDao(DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao, String assetId)
{
String targetName = "123"; //TODO 从service获取
dcBusiTargetAdjustDaySubDao.setTargetName(targetName);
dcBusiTargetAdjustDaySubDao.setCreatedTime(DateUtils.getNowDate());
return baseMapper.insertDcBusiTargetAdjustDaySubDao(dcBusiTargetAdjustDaySubDao);
}
/**
* 修改统计单元指标调整单子()
*
* @param dcBusiTargetAdjustDaySubDao 统计单元指标调整单子()
* @return 结果
*/
public int updateDcBusiTargetAdjustDaySubDao(DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao)
{
dcBusiTargetAdjustDaySubDao.setUpdatedTime(DateUtils.getNowDate());
return baseMapper.updateDcBusiTargetAdjustDaySubDao(dcBusiTargetAdjustDaySubDao);
}
/**
* 批量删除统计单元指标调整单子()
*
* @param ids 需要删除的统计单元指标调整单子()主键
* @return 结果
*/
public int deleteDcBusiTargetAdjustDaySubDaoByIds(Long[] ids)
{
return baseMapper.deleteDcBusiTargetAdjustDaySubDaoByIds(ids);
}
/**
* 删除统计单元指标调整单子()信息
*
* @param id 统计单元指标调整单子()主键
* @return 结果
*/
public int deleteDcBusiTargetAdjustDaySubDaoById(Long id)
{
return baseMapper.deleteDcBusiTargetAdjustDaySubDaoById(id);
}
}

38
lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiTargetDraftDayService.java

@ -2,7 +2,7 @@ package com.lzbi.draft.service;
import java.util.List;
import com.lzbi.draft.domain.DcBusiTargetDraftDayDao;
import com.lzbi.draft.domain.DcBusiTargetDraftDay;
import com.lzbi.common.utils.DateUtils;
import org.springframework.stereotype.Service;
import com.lzbi.draft.mapper.DcBusiTargetDraftDayMapper;
@ -15,7 +15,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
* @date 2023-11-28
*/
@Service
public class DcBusiTargetDraftDayService extends ServiceImpl<DcBusiTargetDraftDayMapper, DcBusiTargetDraftDayDao> implements IService<DcBusiTargetDraftDayDao>
public class DcBusiTargetDraftDayService extends ServiceImpl<DcBusiTargetDraftDayMapper, DcBusiTargetDraftDay> implements IService<DcBusiTargetDraftDay>
{
/**
@ -24,46 +24,46 @@ public class DcBusiTargetDraftDayService extends ServiceImpl<DcBusiTargetDraftDa
* @param id 指标数据底稿()主键
* @return 指标数据底稿()
*/
public DcBusiTargetDraftDayDao selectDcBusiTargetDraftDayDaoById(Long id)
public DcBusiTargetDraftDay selectDcBusiTargetDraftDayById(Long id)
{
return baseMapper.selectDcBusiTargetDraftDayDaoById(id);
return baseMapper.selectDcBusiTargetDraftDayById(id);
}
/**
* 查询指标数据底稿()列表
*
* @param dcBusiTargetDraftDayDao 指标数据底稿()
* @param dcBusiTargetDraftDay 指标数据底稿()
* @return 指标数据底稿()
*/
public List<DcBusiTargetDraftDayDao> selectDcBusiTargetDraftDayDaoList(DcBusiTargetDraftDayDao dcBusiTargetDraftDayDao)
public List<DcBusiTargetDraftDay> selectDcBusiTargetDraftDayList(DcBusiTargetDraftDay dcBusiTargetDraftDay)
{
return baseMapper.selectDcBusiTargetDraftDayDaoList(dcBusiTargetDraftDayDao);
return baseMapper.selectDcBusiTargetDraftDayList(dcBusiTargetDraftDay);
}
/**
* 新增指标数据底稿()
*
* @param dcBusiTargetDraftDayDao 指标数据底稿()
* @param dcBusiTargetDraftDay 指标数据底稿()
* @return 结果
*/
public int insertDcBusiTargetDraftDayDao(DcBusiTargetDraftDayDao dcBusiTargetDraftDayDao)
public int insertDcBusiTargetDraftDay(DcBusiTargetDraftDay dcBusiTargetDraftDay)
{
dcBusiTargetDraftDayDao.setCreatedTime(DateUtils.getNowDate());
return baseMapper.insertDcBusiTargetDraftDayDao(dcBusiTargetDraftDayDao);
dcBusiTargetDraftDay.setCreatedTime(DateUtils.getNowDate());
return baseMapper.insertDcBusiTargetDraftDay(dcBusiTargetDraftDay);
}
/**
* 修改指标数据底稿()
*
* @param dcBusiTargetDraftDayDao 指标数据底稿()
* @param dcBusiTargetDraftDay 指标数据底稿()
* @return 结果
*/
public int updateDcBusiTargetDraftDayDao(DcBusiTargetDraftDayDao dcBusiTargetDraftDayDao)
public int updateDcBusiTargetDraftDay(DcBusiTargetDraftDay dcBusiTargetDraftDay)
{
dcBusiTargetDraftDayDao.setUpdatedTime(DateUtils.getNowDate());
return baseMapper.updateDcBusiTargetDraftDayDao(dcBusiTargetDraftDayDao);
dcBusiTargetDraftDay.setUpdatedTime(DateUtils.getNowDate());
return baseMapper.updateDcBusiTargetDraftDay(dcBusiTargetDraftDay);
}
/**
@ -73,9 +73,9 @@ public class DcBusiTargetDraftDayService extends ServiceImpl<DcBusiTargetDraftDa
* @return 结果
*/
public int deleteDcBusiTargetDraftDayDaoByIds(Long[] ids)
public int deleteDcBusiTargetDraftDayByIds(Long[] ids)
{
return baseMapper.deleteDcBusiTargetDraftDayDaoByIds(ids);
return baseMapper.deleteDcBusiTargetDraftDayByIds(ids);
}
/**
@ -85,8 +85,8 @@ public class DcBusiTargetDraftDayService extends ServiceImpl<DcBusiTargetDraftDa
* @return 结果
*/
public int deleteDcBusiTargetDraftDayDaoById(Long id)
public int deleteDcBusiTargetDraftDayById(Long id)
{
return baseMapper.deleteDcBusiTargetDraftDayDaoById(id);
return baseMapper.deleteDcBusiTargetDraftDayById(id);
}
}

91
lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiTargetDraftMonthService.java

@ -0,0 +1,91 @@
package com.lzbi.draft.service;
import java.util.List;
import com.lzbi.common.utils.DateUtils;
import org.springframework.stereotype.Service;
import com.lzbi.draft.domain.DcBusiTargetDraftMonth;
import com.lzbi.draft.mapper.DcBusiTargetDraftMonthMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* 指标数据底稿()Service业务层处理
*
* @author zhousq
* @date 2023-12-06
*/
@Service
public class DcBusiTargetDraftMonthService extends ServiceImpl<DcBusiTargetDraftMonthMapper, DcBusiTargetDraftMonth> implements IService<DcBusiTargetDraftMonth>
{
/**
* 查询指标数据底稿()
*
* @param id 指标数据底稿()主键
* @return 指标数据底稿()
*/
public DcBusiTargetDraftMonth selectDcBusiTargetDraftMonthById(Long id)
{
return baseMapper.selectDcBusiTargetDraftMonthById(id);
}
/**
* 查询指标数据底稿()列表
*
* @param dcBusiTargetDraftMonth 指标数据底稿()
* @return 指标数据底稿()
*/
public List<DcBusiTargetDraftMonth> selectDcBusiTargetDraftMonthList(DcBusiTargetDraftMonth dcBusiTargetDraftMonth)
{
return baseMapper.selectDcBusiTargetDraftMonthList(dcBusiTargetDraftMonth);
}
/**
* 新增指标数据底稿()
*
* @param dcBusiTargetDraftMonth 指标数据底稿()
* @return 结果
*/
public int insertDcBusiTargetDraftMonth(DcBusiTargetDraftMonth dcBusiTargetDraftMonth)
{
dcBusiTargetDraftMonth.setCreatedTime(DateUtils.getNowDate());
return baseMapper.insertDcBusiTargetDraftMonth(dcBusiTargetDraftMonth);
}
/**
* 修改指标数据底稿()
*
* @param dcBusiTargetDraftMonth 指标数据底稿()
* @return 结果
*/
public int updateDcBusiTargetDraftMonth(DcBusiTargetDraftMonth dcBusiTargetDraftMonth)
{
dcBusiTargetDraftMonth.setUpdatedTime(DateUtils.getNowDate());
return baseMapper.updateDcBusiTargetDraftMonth(dcBusiTargetDraftMonth);
}
/**
* 批量删除指标数据底稿()
*
* @param ids 需要删除的指标数据底稿()主键
* @return 结果
*/
public int deleteDcBusiTargetDraftMonthByIds(Long[] ids)
{
return baseMapper.deleteDcBusiTargetDraftMonthByIds(ids);
}
/**
* 删除指标数据底稿()信息
*
* @param id 指标数据底稿()主键
* @return 结果
*/
public int deleteDcBusiTargetDraftMonthById(Long id)
{
return baseMapper.deleteDcBusiTargetDraftMonthById(id);
}
}

8
lzbi-module/src/main/java/com/lzbi/special/mapper/DcBaseWorkSpecialMapper.java

@ -23,6 +23,14 @@ public interface DcBaseWorkSpecialMapper extends BaseMapper<DcBaseWorkSpecial>
*/
public DcBaseWorkSpecial selectDcBaseWorkSpecialById(Long id);
/**
* 查询生产专业管理
*
* @param specialCode 专业编码
* @return 生产专业管理
*/
public DcBaseWorkSpecial selectDcBaseWorkSpecialBySpecialCode(String specialCode);
/**
* 查询生产专业管理列表
*

2
lzbi-module/src/main/java/com/lzbi/task/TaskParamDfratProcess.java

@ -50,7 +50,7 @@ public class TaskParamDfratProcess {
if(StringUtils.isNull(dcBusiParamDraftDay.getId())){
dcBusiParamDraftDay.setCreatedTime(DateUtil.date());
dcBusiParamDraftDay.setCreatedBy("task");
dcBusiParamDraftDay.setParamField(val.getFieldType());
dcBusiParamDraftDay.setParamFieldCode(val.getFieldType());
dcBusiParamDraftDay.setParamCode(val.getParamCode());
dcBusiParamDraftDay.setCountDate(val.getCountDate());
dcBusiParamDraftDay.setAssetCode(val.getAssetCode());

5
lzbi-module/src/main/resources/mapper/asset/DcBaseAssetInfoMapper.xml

@ -71,6 +71,11 @@
where id = #{id}
</select>
<select id="selectDcBaseAssetInfoByAssetCode" parameterType="String" resultMap="DcBaseAssetInfoResult">
<include refid="selectDcBaseAssetInfoVo"/>
where asset_code = #{assetCode}
</select>
<insert id="insertDcBaseAssetInfo" parameterType="DcBaseAssetInfo" useGeneratedKeys="true" keyProperty="id">
insert into dc_base_asset_info
<trim prefix="(" suffix=")" suffixOverrides=",">

6
lzbi-module/src/main/resources/mapper/asset/DcBaseWorkSpecialMapper.xml

@ -38,11 +38,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="specialName != null and specialName != ''"> and special_name like concat('%', #{specialName}, '%')</if>
</where>
</select>
<select id="selectDcBaseWorkSpecialById" parameterType="Long" resultMap="DcBaseWorkSpecialResult">
<include refid="selectDcBaseWorkSpecialVo"/>
where id = #{id}
</select>
<select id="selectDcBaseWorkSpecialBySpecialCode" parameterType="String" resultMap="DcBaseWorkSpecialResult">
<include refid="selectDcBaseWorkSpecialVo"/>
where special_code = #{specialCode}
</select>
<insert id="insertDcBaseWorkSpecial" parameterType="DcBaseWorkSpecial" useGeneratedKeys="true" keyProperty="id">
insert into dc_base_work_special
<trim prefix="(" suffix=")" suffixOverrides=",">

101
lzbi-module/src/main/resources/mapper/asset/DcBusiCoderuleConfigMapper.xml

@ -0,0 +1,101 @@
<?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.code.mapper.DcBusiCoderuleConfigMapper">
<resultMap type="com.lzbi.code.domain.DcBusiCoderuleConfig" id="DcBusiCoderuleConfigResult">
<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="configName" column="config_name" />
<result property="nodeCode" column="node_code" />
<result property="columnName" column="column_name" />
<result property="ruleId" column="rule_id" />
</resultMap>
<sql id="selectDcBusiCoderuleConfigVo">
select tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time, id, config_name, node_code, column_name, rule_id from dc_busi_coderule_config
</sql>
<select id="selectDcBusiCoderuleConfigList" parameterType="DcBusiCoderuleConfig" resultMap="DcBusiCoderuleConfigResult">
<include refid="selectDcBusiCoderuleConfigVo"/>
<where>
<if test="configName != null and configName != ''"> and config_name like concat('%', #{configName}, '%')</if>
<if test="nodeCode != null and nodeCode != ''"> and node_code = #{nodeCode}</if>
</where>
</select>
<select id="selectDcBusiCoderuleConfigById" parameterType="Long" resultMap="DcBusiCoderuleConfigResult">
<include refid="selectDcBusiCoderuleConfigVo"/>
where id = #{id}
</select>
<insert id="insertDcBusiCoderuleConfig" parameterType="DcBusiCoderuleConfig" useGeneratedKeys="true" keyProperty="id">
insert into dc_busi_coderule_config
<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="configName != null">config_name,</if>
<if test="nodeCode != null">node_code,</if>
<if test="columnName != null">column_name,</if>
<if test="ruleId != null">rule_id,</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="configName != null">#{configName},</if>
<if test="nodeCode != null">#{nodeCode},</if>
<if test="columnName != null">#{columnName},</if>
<if test="ruleId != null">#{ruleId},</if>
</trim>
</insert>
<update id="updateDcBusiCoderuleConfig" parameterType="DcBusiCoderuleConfig">
update dc_busi_coderule_config
<trim prefix="SET" suffixOverrides=",">
<if test="tenantId != null">tenant_id = #{tenantId},</if>
<if test="revision != null">revision = #{revision},</if>
<if test="createdBy != null">created_by = #{createdBy},</if>
<if test="createdTime != null">created_time = #{createdTime},</if>
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
<if test="deleteBy != null">delete_by = #{deleteBy},</if>
<if test="deleteTime != null">delete_time = #{deleteTime},</if>
<if test="configName != null">config_name = #{configName},</if>
<if test="nodeCode != null">node_code = #{nodeCode},</if>
<if test="columnName != null">column_name = #{columnName},</if>
<if test="ruleId != null">rule_id = #{ruleId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcBusiCoderuleConfigById" parameterType="Long">
delete from dc_busi_coderule_config where id = #{id}
</delete>
<delete id="deleteDcBusiCoderuleConfigByIds" parameterType="String">
delete from dc_busi_coderule_config where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

484
lzbi-module/src/main/resources/mapper/asset/DcBusiParamDraftDayMapper.xml

@ -1,254 +1,124 @@
<?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">
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.lzbi.draft.mapper.DcBusiParamDraftDayMapper">
<resultMap type="com.lzbi.draft.domain.DcBusiParamDraftDay" id="rmDcBusiParamDraftDay">
<!-- 租户号 -->
<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="companyCode" column="company_code"/>
<!-- 生产组织机构名称 -->
<result property="organizeName" column="organize_name"/>
<!-- 生产组织机构编号 -->
<result property="organizeCode" column="organize_code"/>
<!-- 公司名称 -->
<result property="companyName" column="company_name"/>
<!-- 统计单元 -->
<result property="assetCode" column="asset_code"/>
<!-- 统计单元 -->
<result property="assetName" column="asset_name"/>
<!-- 参数编码 -->
<result property="paramCode" column="param_code"/>
<!-- 参数名称 -->
<result property="paramName" column="param_name"/>
<!-- 生产专业 -->
<result property="paramField" column="param_field"/>
<!-- 指标单位 -->
<result property="targetUint" column="target_uint"/>
<!-- 统计日期[yyyy-mm-dd] -->
<result property="countDate" column="count_date"/>
<!-- 均值 -->
<result property="valAvg" column="val_avg"/>
<!-- 当日最大值 -->
<result property="valMax" column="val_max"/>
<!-- 和值 -->
<result property="valSum" column="val_sum"/>
<!-- 当日最小值 -->
<result property="valMin" column="val_min"/>
<!-- 积算值 -->
<result property="valIntegrating" column="val_integrating"/>
<!-- 上限 -->
<result property="valLimitUp" column="val_limit_up"/>
<!-- 下限 -->
<result property="valLimitDown" column="val_limit_down"/>
<!-- 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"/>
<resultMap type="com.lzbi.draft.domain.DcBusiParamDraftDay" id="DcBusiParamDraftDayResult">
<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="companyId" column="company_id" />
<result property="organizeName" column="organize_name" />
<result property="organizeId" column="organize_id" />
<result property="companyName" column="company_name" />
<result property="assetCode" column="asset_code" />
<result property="paramCode" column="param_code" />
<result property="paramName" column="param_name" />
<result property="paramFieldCode" column="param_field_code" />
<result property="paramFieldName" column="param_field_name" />
<result property="targetUint" column="target_uint" />
<result property="countDate" column="count_date" />
<result property="valAvg" column="val_avg" />
<result property="valMax" column="val_max" />
<result property="valSum" column="val_sum" />
<result property="valMin" column="val_min" />
<result property="valIntegrating" column="val_integrating" />
<result property="valLimitUp" column="val_limit_up" />
<result property="valLimitDown" column="val_limit_down" />
<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="assetName" column="asset_name" />
</resultMap>
<sql id="baseQuerySql">
select
tenant_id,
revision,
created_by,
created_time,
updated_by,
updated_time,
delete_by,
delete_time,
id,
company_code,
organize_name,
organize_code,
company_name,
asset_code,
asset_name,
param_code,
param_name,
param_field,
target_uint,
count_date,
val_avg,
val_max,
val_sum,
val_min,
val_integrating,
val_limit_up,
val_limit_down,
val01,
val02,
val03,
val04,
val05,
val06,
val07,
val08,
val09,
val10,
val11,
val12,
val13,
val14,
val15,
val16,
val17,
val18,
val19,
val20,
val21,
val22,
val23,
val24
from dc_busi_param_draft_day
<sql id="selectDcBusiParamDraftDayVo">
select tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time, id, company_id, organize_name, organize_id, company_name, asset_code, param_code, param_name, param_field_code,param_field_name, target_uint, count_date, val_avg, val_max, val_sum, val_min, val_integrating, val_limit_up, val_limit_down, val01, val02, val03, val04, val05, val06, val07, val08, val09, val10, val11, val12, val13, val14, val15, val16, val17, val18, val19, val20, val21, val22, val23, val24, asset_name from dc_busi_param_draft_day
</sql>
<select id="selectByVo" resultMap="rmDcBusiParamDraftDay" parameterType="com.lzbi.draft.domain.DcBusiParamDraftDay">
<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 != ''"> and id = #{id}</if>
<if test="companyCode != null and companyCode != ''"> and company_code = #{companyCode}</if>
<if test="organizeName != null and organizeName != ''"> and organize_name = #{organizeName}</if>
<if test="organizeCode != null and organizeCode != ''"> and organize_code = #{organizeCode}</if>
<if test="companyName != null and companyName != ''"> and company_name = #{companyName}</if>
<if test="assetCode != null and assetCode != ''"> and asset_code = #{assetCode}</if>
<if test="assetName != null and assetCode != ''"> and asset_name = #{assetName}</if>
<if test="paramCode != null and paramCode != ''"> and param_code = #{paramCode}</if>
<if test="paramName != null and paramName != ''"> and param_name = #{paramName}</if>
<if test="paramField != null and paramField != ''"> and param_field = #{paramField}</if>
<if test="targetUint != null and targetUint != ''"> and target_uint = #{targetUint}</if>
<if test="countDate != null and countDate != ''"> and count_date = #{countDate}</if>
<if test="valAvg != null"> and val_avg = #{valAvg}</if>
<if test="valMax != null"> and val_max = #{valMax}</if>
<if test="valSum != null"> and val_sum = #{valSum}</if>
<if test="valMin != null"> and val_min = #{valMin}</if>
<if test="valIntegrating != null "> and val_integrating = #{valIntegrating}</if>
<if test="valLimitUp != null "> and val_limit_up = #{valLimitUp}</if>
<if test="valLimitDown != null"> and val_limit_down = #{valLimitDown}</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>
<select id="selectDcBusiParamDraftDayList" parameterType="DcBusiParamDraftDay" resultMap="DcBusiParamDraftDayResult">
<include refid="selectDcBusiParamDraftDayVo"/>
<where>
<if test="companyId != null "> and company_id = #{companyId}</if>
<if test="organizeId != null "> and organize_id = #{organizeId}</if>
<if test="assetCode != null and assetCode != ''"> and asset_code = #{assetCode}</if>
<if test="paramCode != null and paramCode != ''"> and param_code = #{paramCode}</if>
<if test="paramName != null and paramName != ''"> and param_name like concat('%', #{paramName}, '%')</if>
<if test="paramFieldCode != null and paramFieldCode != ''"> and param_field_code = #{paramFieldCode}</if>
<if test="paramFieldName != null and paramFieldName != ''"> and param_field_name like concat('%', #{paramFieldName}, '%')</if>
<if test="targetUint != null and targetUint != ''"> and target_uint = #{targetUint}</if>
<if test="countDate != null and countDate != ''"> and count_date = #{countDate}</if>
</where>
</select>
<insert id="insertByVo" parameterType="com.lzbi.draft.domain.DcBusiParamDraftDay">
<select id="selectDcBusiParamDraftDayById" parameterType="String" resultMap="DcBusiParamDraftDayResult">
<include refid="selectDcBusiParamDraftDayVo"/>
where id = #{id}
</select>
<select id="selectOneByParam" parameterType="ParamDraftQueryVo" resultMap="DcBusiParamDraftDayResult">
<include refid="selectDcBusiParamDraftDayVo"/>
where id = #{id}
<if test="companyId != null "> and company_id = #{companyId}</if>
<if test="organizeId != null "> and organize_id = #{organizeId}</if>
<if test="assetCode != null and assetCode != ''"> and asset_code = #{assetCode}</if>
</select>
<insert id="insertDcBusiParamDraftDay" parameterType="DcBusiParamDraftDay" useGeneratedKeys="true" keyProperty="id">
insert into dc_busi_param_draft_day
<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="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="companyCode != null and companyCode != ''">company_code,</if>
<if test="organizeName != null and organizeName != ''">organize_name,</if>
<if test="organizeCode != null and organizeCode != ''">organize_code,</if>
<if test="companyName != null and companyName != ''">company_name,</if>
<if test="assetCode != null and assetCode != ''">asset_code,</if>
<if test="assetName != null and assetName != ''">asset_name,</if>
<if test="paramCode != null and paramCode != ''">param_code,</if>
<if test="paramName != null and paramName != ''">param_name,</if>
<if test="paramField != null and paramField != ''">param_field,</if>
<if test="targetUint != null and targetUint != ''">target_uint,</if>
<if test="countDate != null and countDate != ''">count_date,</if>
<if test="valAvg != null ">val_avg,</if>
<if test="valMax != null ">val_max,</if>
<if test="valSum != null ">val_sum,</if>
<if test="valMin != null ">val_min,</if>
<if test="companyId != null">company_id,</if>
<if test="organizeName != null">organize_name,</if>
<if test="organizeId != null">organize_id,</if>
<if test="companyName != null">company_name,</if>
<if test="assetCode != null">asset_code,</if>
<if test="paramCode != null">param_code,</if>
<if test="paramName != null">param_name,</if>
<if test="paramFieldCode != null">param_field_code,</if>
<if test="paramFieldName != null">param_field_name,</if>
<if test="targetUint != null">target_uint,</if>
<if test="countDate != null">count_date,</if>
<if test="valAvg != null">val_avg,</if>
<if test="valMax != null">val_max,</if>
<if test="valSum != null">val_sum,</if>
<if test="valMin != null">val_min,</if>
<if test="valIntegrating != null">val_integrating,</if>
<if test="valLimitUp != null ">val_limit_up,</if>
<if test="valLimitDown != null ">val_limit_down,</if>
<if test="valLimitUp != null">val_limit_up,</if>
<if test="valLimitDown != null">val_limit_down,</if>
<if test="val01 != null">val01,</if>
<if test="val02 != null">val02,</if>
<if test="val03 != null">val03,</if>
@ -273,35 +143,35 @@
<if test="val22 != null">val22,</if>
<if test="val23 != null">val23,</if>
<if test="val24 != null">val24,</if>
</trim>
<if test="assetName != null">asset_name,</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="companyCode != null and companyCode != ''">#{companyCode},</if>
<if test="organizeName != null and organizeName != ''">#{organizeName},</if>
<if test="organizeCode != null and organizeCode != ''">#{organizeCode},</if>
<if test="companyName != null and companyName != ''">#{companyName},</if>
<if test="assetCode != null and assetCode != ''">#{assetCode},</if>
<if test="assetName != null and assetName != ''">#{assetName},</if>
<if test="paramCode != null and paramCode != ''">#{paramCode},</if>
<if test="paramName != null and paramName != ''">#{paramName},</if>
<if test="paramField != null and paramField != ''">#{paramField},</if>
<if test="targetUint != null and targetUint != ''">#{targetUint},</if>
<if test="countDate != null and countDate != ''">#{countDate},</if>
<if test="valAvg != null ">#{valAvg},</if>
<if test="valMax != null ">#{valMax},</if>
<if test="valSum != null ">#{valSum},</if>
<if test="valMin != null ">#{valMin},</if>
<if test="valIntegrating != null ">#{valIntegrating},</if>
<if test="valLimitUp != null ">#{valLimitUp},</if>
<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="companyId != null">#{companyId},</if>
<if test="organizeName != null">#{organizeName},</if>
<if test="organizeId != null">#{organizeId},</if>
<if test="companyName != null">#{companyName},</if>
<if test="assetCode != null">#{assetCode},</if>
<if test="paramCode != null">#{paramCode},</if>
<if test="paramName != null">#{paramName},</if>
<if test="paramField != null">#{paramField},</if>
<if test="targetUint != null">#{targetUint},</if>
<if test="countDate != null">#{countDate},</if>
<if test="valAvg != null">#{valAvg},</if>
<if test="valMax != null">#{valMax},</if>
<if test="valSum != null">#{valSum},</if>
<if test="valMin != null">#{valMin},</if>
<if test="valIntegrating != null">#{valIntegrating},</if>
<if test="valLimitUp != null">#{valLimitUp},</if>
<if test="valLimitDown != null">#{valLimitDown},</if>
<if test="val01 != null ">#{val01},</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>
@ -325,16 +195,76 @@
<if test="val22 != null">#{val22},</if>
<if test="val23 != null">#{val23},</if>
<if test="val24 != null">#{val24},</if>
</trim>
<if test="assetName != null">#{assetName},</if>
</trim>
</insert>
<select id="selectOneByParam" resultMap="rmDcBusiParamDraftDay" parameterType="ParamDraftQueryVo">
<include refid="baseQuerySql"></include>
<where>
<if test="assetCode != null and assetCode != ''"> and asset_code = #{assetCode}</if>
<if test="assetParamCode != null and assetParamCode != ''"> and param_code = #{assetParamCode}</if>
<if test="specialCode != null and specialCode != ''"> and param_field = #{specialCode}</if>
<if test="countDate != null and countDate != ''"> and count_date = #{countDate}</if>
</where>
limit 1
</select>
<update id="updateDcBusiParamDraftDay" parameterType="DcBusiParamDraftDay">
update dc_busi_param_draft_day
<trim prefix="SET" suffixOverrides=",">
<if test="tenantId != null">tenant_id = #{tenantId},</if>
<if test="revision != null">revision = #{revision},</if>
<if test="createdBy != null">created_by = #{createdBy},</if>
<if test="createdTime != null">created_time = #{createdTime},</if>
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
<if test="deleteBy != null">delete_by = #{deleteBy},</if>
<if test="deleteTime != null">delete_time = #{deleteTime},</if>
<if test="companyId != null">company_id = #{companyId},</if>
<if test="organizeName != null">organize_name = #{organizeName},</if>
<if test="organizeId != null">organize_id = #{organizeId},</if>
<if test="companyName != null">company_name = #{companyName},</if>
<if test="assetCode != null">asset_code = #{assetCode},</if>
<if test="paramCode != null">param_code = #{paramCode},</if>
<if test="paramName != null">param_name = #{paramName},</if>
<if test="paramFieldCode != null">param_field_code = #{paramFieldCode},</if>
<if test="paramFieldName != null">param_field_name = #{paramFieldName},</if>
<if test="targetUint != null">target_uint = #{targetUint},</if>
<if test="countDate != null">count_date = #{countDate},</if>
<if test="valAvg != null">val_avg = #{valAvg},</if>
<if test="valMax != null">val_max = #{valMax},</if>
<if test="valSum != null">val_sum = #{valSum},</if>
<if test="valMin != null">val_min = #{valMin},</if>
<if test="valIntegrating != null">val_integrating = #{valIntegrating},</if>
<if test="valLimitUp != null">val_limit_up = #{valLimitUp},</if>
<if test="valLimitDown != null">val_limit_down = #{valLimitDown},</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="assetName != null">asset_name = #{assetName},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcBusiParamDraftDayById" parameterType="String">
delete from dc_busi_param_draft_day where id = #{id}
</delete>
<delete id="deleteDcBusiParamDraftDayByIds" parameterType="String">
delete from dc_busi_param_draft_day where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

179
lzbi-module/src/main/resources/mapper/asset/DcBusiTargetAdjustDayMasterMapper.xml

@ -0,0 +1,179 @@
<?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.draft.mapper.DcBusiTargetAdjustDayMasterMapper">
<resultMap type="com.lzbi.draft.domain.DcBusiTargetAdjustDayMasterDao" id="DcBusiTargetAdjustDayMasterResult">
<result property="billSerial" column="bill_serial"/>
<result property="biilType" column="biil_type"/>
<result property="companyId" column="company_id"/>
<result property="companyName" column="company_name"/>
<result property="organizeName" column="organize_name"/>
<result property="oragnizeId" column="oragnize_id"/>
<result property="assetCode" column="asset_code"/>
<result property="assetName" column="asset_name"/>
<result property="fieldCode" column="field_code"/>
<result property="fieldName" column="field_name"/>
<result property="id" column="id"/>
<result property="dateAdjust" column="date_adjust"/>
<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="checkStauts" column="check_stauts"/>
<result property="checkType" column="check_type"/>
</resultMap>
<sql id="selectDcBusiTargetAdjustDayMasterVo">
select bill_serial,
biil_type,
company_id,
company_name,
organize_name,
oragnize_id,
asset_code,
asset_name,
field_code,
field_name,
id,
date_adjust,
tenant_id,
revision,
created_by,
created_time,
updated_by,
updated_time,
delete_by,
delete_time,
check_stauts,
check_type
from dc_busi_target_adjust_day_master
</sql>
<select id="selectDcBusiTargetAdjustDayMasterDaoList" parameterType="DcBusiTargetAdjustDayMasterDao"
resultMap="DcBusiTargetAdjustDayMasterResult">
<include refid="selectDcBusiTargetAdjustDayMasterVo"/>
<where>
<if test="billSerial != null and billSerial != ''">and bill_serial = #{billSerial}</if>
<if test="biilType != null and biilType != ''">and biil_type = #{biilType}</if>
<if test="companyId != null ">and company_id = #{companyId}</if>
<if test="companyName != null and companyName != ''">and company_name like concat('%', #{companyName},
'%')
</if>
<if test="organizeName != null and organizeName != ''">and organize_name like concat('%', #{organizeName},
'%')
</if>
<if test="oragnizeId != null ">and oragnize_id = #{oragnizeId}</if>
<if test="assetCode != null and assetCode != ''">and asset_code = #{assetCode}</if>
<if test="assetName != null and assetName != ''">and asset_name like concat('%', #{assetName}, '%')</if>
<if test="fieldCode != null and fieldCode != ''">and field_code = #{fieldCode}</if>
<if test="fieldName != null and fieldName != ''">and field_name like concat('%', #{fieldName}, '%')</if>
<if test="dateAdjust != null and dateAdjust != ''">and date_adjust = #{dateAdjust}</if>
<if test="checkStauts != null and checkStauts != ''">and check_stauts = #{checkStauts}</if>
<if test="checkType != null and checkType != ''">and check_type = #{checkType}</if>
</where>
</select>
<select id="selectDcBusiTargetAdjustDayMasterDaoById" parameterType="Long"
resultMap="DcBusiTargetAdjustDayMasterResult">
<include refid="selectDcBusiTargetAdjustDayMasterVo"/>
where id = #{id}
</select>
<insert id="insertDcBusiTargetAdjustDayMasterDao" parameterType="DcBusiTargetAdjustDayMasterDao" useGeneratedKeys="true"
keyProperty="id">
insert into dc_busi_target_adjust_day_master
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="billSerial != null">bill_serial,</if>
<if test="biilType != null">biil_type,</if>
<if test="companyId != null">company_id,</if>
<if test="companyName != null">company_name,</if>
<if test="organizeName != null">organize_name,</if>
<if test="oragnizeId != null">oragnize_id,</if>
<if test="assetCode != null">asset_code,</if>
<if test="assetName != null">asset_name,</if>
<if test="fieldCode != null">field_code,</if>
<if test="fieldName != null">field_name,</if>
<if test="dateAdjust != null">date_adjust,</if>
<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="checkStauts != null">check_stauts,</if>
<if test="checkType != null">check_type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="billSerial != null">#{billSerial},</if>
<if test="biilType != null">#{biilType},</if>
<if test="companyId != null">#{companyId},</if>
<if test="companyName != null">#{companyName},</if>
<if test="organizeName != null">#{organizeName},</if>
<if test="oragnizeId != null">#{oragnizeId},</if>
<if test="assetCode != null">#{assetCode},</if>
<if test="assetName != null">#{assetName},</if>
<if test="fieldCode != null">#{fieldCode},</if>
<if test="fieldName != null">#{fieldName},</if>
<if test="dateAdjust != null">#{dateAdjust},</if>
<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="checkStauts != null">#{checkStauts},</if>
<if test="checkType != null">#{checkType},</if>
</trim>
</insert>
<update id="updateDcBusiTargetAdjustDayMasterDao" parameterType="DcBusiTargetAdjustDayMasterDao">
update dc_busi_target_adjust_day_master
<trim prefix="SET" suffixOverrides=",">
<if test="billSerial != null">bill_serial = #{billSerial},</if>
<if test="biilType != null">biil_type = #{biilType},</if>
<if test="companyId != null">company_id = #{companyId},</if>
<if test="companyName != null">company_name = #{companyName},</if>
<if test="organizeName != null">organize_name = #{organizeName},</if>
<if test="oragnizeId != null">oragnize_id = #{oragnizeId},</if>
<if test="assetCode != null">asset_code = #{assetCode},</if>
<if test="assetName != null">asset_name = #{assetName},</if>
<if test="fieldCode != null">field_code = #{fieldCode},</if>
<if test="fieldName != null">field_name = #{fieldName},</if>
<if test="dateAdjust != null">date_adjust = #{dateAdjust},</if>
<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="checkStauts != null">check_stauts = #{checkStauts},</if>
<if test="checkType != null">check_type = #{checkType},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcBusiTargetAdjustDayMasterDaoById" parameterType="Long">
delete
from dc_busi_target_adjust_day_master
where id = #{id}
</delete>
<delete id="deleteDcBusiTargetAdjustDayMasterDaoByIds" parameterType="String">
delete from dc_busi_target_adjust_day_master where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

128
lzbi-module/src/main/resources/mapper/asset/DcBusiTargetAdjustDaySubMapper.xml

@ -0,0 +1,128 @@
<?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.draft.mapper.DcBusiTargetAdjustDaySubMapper">
<resultMap type="com.lzbi.draft.domain.DcBusiTargetAdjustDaySubDao" id="DcBusiTargetAdjustDaySubResult">
<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="billNoMaster" column="bill_no_master" />
<result property="targetCode" column="target_code" />
<result property="targetName" column="target_name" />
<result property="tagetUnit" column="taget_unit" />
<result property="adjustDate" column="adjust_date" />
<result property="adjstTime" column="adjst_time" />
<result property="valOrigin" column="val_origin" />
<result property="valAdjust" column="val_adjust" />
<result property="valResult" column="val_result" />
</resultMap>
<sql id="selectDcBusiTargetAdjustDaySubVo">
select tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time, id, bill_no_master, target_code, target_name, taget_unit, adjust_date, adjst_time, val_origin, val_adjust, val_result from dc_busi_target_adjust_day_sub
</sql>
<select id="selectDcBusiTargetAdjustDaySubDaoList" parameterType="DcBusiTargetAdjustDaySubDao" resultMap="DcBusiTargetAdjustDaySubResult">
<include refid="selectDcBusiTargetAdjustDaySubVo"/>
<where>
<if test="billNoMaster != null and billNoMaster != ''"> and bill_no_master = #{billNoMaster}</if>
<if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if>
<if test="targetName != null and targetName != ''"> and target_name like concat('%', #{targetName}, '%')</if>
<if test="tagetUnit != null and tagetUnit != ''"> and taget_unit = #{tagetUnit}</if>
<if test="adjustDate != null and adjustDate != ''"> and adjust_date = #{adjustDate}</if>
<if test="adjstTime != null "> and adjst_time = #{adjstTime}</if>
<if test="valOrigin != null "> and val_origin = #{valOrigin}</if>
<if test="valAdjust != null "> and val_adjust = #{valAdjust}</if>
<if test="valResult != null "> and val_result = #{valResult}</if>
</where>
</select>
<select id="selectDcBusiTargetAdjustDaySubDaoById" parameterType="Long" resultMap="DcBusiTargetAdjustDaySubResult">
<include refid="selectDcBusiTargetAdjustDaySubVo"/>
where id = #{id}
</select>
<insert id="insertDcBusiTargetAdjustDaySubDao" parameterType="DcBusiTargetAdjustDaySubDao" useGeneratedKeys="true" keyProperty="id">
insert into dc_busi_target_adjust_day_sub
<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="billNoMaster != null">bill_no_master,</if>
<if test="targetCode != null">target_code,</if>
<if test="targetName != null">target_name,</if>
<if test="tagetUnit != null">taget_unit,</if>
<if test="adjustDate != null">adjust_date,</if>
<if test="adjstTime != null">adjst_time,</if>
<if test="valOrigin != null">val_origin,</if>
<if test="valAdjust != null">val_adjust,</if>
<if test="valResult != null">val_result,</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="billNoMaster != null">#{billNoMaster},</if>
<if test="targetCode != null">#{targetCode},</if>
<if test="targetName != null">#{targetName},</if>
<if test="tagetUnit != null">#{tagetUnit},</if>
<if test="adjustDate != null">#{adjustDate},</if>
<if test="adjstTime != null">#{adjstTime},</if>
<if test="valOrigin != null">#{valOrigin},</if>
<if test="valAdjust != null">#{valAdjust},</if>
<if test="valResult != null">#{valResult},</if>
</trim>
</insert>
<update id="updateDcBusiTargetAdjustDaySubDao" parameterType="DcBusiTargetAdjustDaySubDao">
update dc_busi_target_adjust_day_sub
<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="billNoMaster != null">bill_no_master = #{billNoMaster},</if>
<if test="targetCode != null">target_code = #{targetCode},</if>
<if test="targetName != null">target_name = #{targetName},</if>
<if test="tagetUnit != null">taget_unit = #{tagetUnit},</if>
<if test="adjustDate != null">adjust_date = #{adjustDate},</if>
<if test="adjstTime != null">adjst_time = #{adjstTime},</if>
<if test="valOrigin != null">val_origin = #{valOrigin},</if>
<if test="valAdjust != null">val_adjust = #{valAdjust},</if>
<if test="valResult != null">val_result = #{valResult},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcBusiTargetAdjustDaySubDaoById" parameterType="Long">
delete from dc_busi_target_adjust_day_sub where id = #{id}
</delete>
<delete id="deleteDcBusiTargetAdjustDaySubDaoByIds" parameterType="String">
delete from dc_busi_target_adjust_day_sub where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

130
lzbi-module/src/main/resources/mapper/asset/DcBusiTargetDraftDayMapper.xml

@ -4,23 +4,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.lzbi.draft.mapper.DcBusiTargetDraftDayMapper">
<resultMap type="com.lzbi.draft.domain.DcBusiTargetDraftDayDao" id="DcBusiTargetDraftDayDaoResult">
<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" />
<resultMap type="com.lzbi.draft.domain.DcBusiTargetDraftDay" id="DcBusiTargetDraftDayResult">
<result property="id" column="id" />
<result property="companyName" column="company_name" />
<result property="companyCode" column="company_code" />
<result property="orgCode" column="org_code" />
<result property="companyId" column="company_id" />
<result property="orgId" column="org_id" />
<result property="orgName" column="org_name" />
<result property="assetCode" column="asset_code" />
<result property="assetName" column="asset_name" />
<result property="fieldType" column="field_type" />
<result property="fieldCode" column="field_code" />
<result property="fieldName" column="field_name" />
<result property="targetNameAlias" column="target_name_alias" />
<result property="targetName" column="target_name" />
<result property="targetCode" column="target_code" />
<result property="targetUint" column="target_uint" />
@ -28,57 +22,50 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="valOriginal" column="val_original" />
<result property="valAdjust" column="val_adjust" />
<result property="valResult" column="val_result" />
<result property="valPlan" column="val_plan" />
<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" />
</resultMap>
<sql id="selectDcBusiTargetDraftDayVo">
select TENANT_ID, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETE_BY, DELETE_TIME, id, company_name, company_code, org_code, org_name, asset_code, asset_name, field_type, target_name, target_code, target_uint, count_date, val_original, val_adjust, val_result, val_plan from dc_busi_target_draft_day
select id, company_name, company_id, org_id, org_name, asset_code, asset_name, field_code, field_name, target_name_alias, target_name, target_code, target_uint, count_date, val_original, val_adjust, val_result, tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time from dc_busi_target_draft_day
</sql>
<select id="selectDcBusiTargetDraftDayDaoList" parameterType="DcBusiTargetDraftDayDao" resultMap="DcBusiTargetDraftDayDaoResult">
<select id="selectDcBusiTargetDraftDayList" parameterType="DcBusiTargetDraftDay" resultMap="DcBusiTargetDraftDayResult">
<include refid="selectDcBusiTargetDraftDayVo"/>
<where>
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
<if test="companyCode != null and companyCode != ''"> and company_code = #{companyCode}</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="companyId != null "> and company_id = #{companyId}</if>
<if test="orgId != null "> and org_id = #{orgId}</if>
<if test="assetCode != null and assetCode != ''"> and asset_code = #{assetCode}</if>
<if test="assetName != null and assetName != ''"> and asset_name like concat('%', #{assetName}, '%')</if>
<if test="fieldType != null and fieldType != ''"> and field_type = #{fieldType}</if>
<if test="fieldCode != null and fieldCode != ''"> and field_code = #{fieldCode}</if>
<if test="targetName != null and targetName != ''"> and target_name like concat('%', #{targetName}, '%')</if>
<if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if>
<if test="targetUint != null and targetUint != ''"> and target_uint = #{targetUint}</if>
<if test="countDate != null and countDate != ''"> and count_date = #{countDate}</if>
<if test="valOriginal != null "> and val_original = #{valOriginal}</if>
<if test="valAdjust != null "> and val_adjust = #{valAdjust}</if>
<if test="valResult != null "> and val_result = #{valResult}</if>
<if test="valPlan != null and valPlan != ''"> and val_plan = #{valPlan}</if>
</where>
</select>
<select id="selectDcBusiTargetDraftDayDaoById" parameterType="Long" resultMap="DcBusiTargetDraftDayDaoResult">
<select id="selectDcBusiTargetDraftDayById" parameterType="Long" resultMap="DcBusiTargetDraftDayResult">
<include refid="selectDcBusiTargetDraftDayVo"/>
where id = #{id}
</select>
<insert id="insertDcBusiTargetDraftDayDao" parameterType="DcBusiTargetDraftDayDao" useGeneratedKeys="true" keyProperty="id">
<insert id="insertDcBusiTargetDraftDay" parameterType="DcBusiTargetDraftDay" useGeneratedKeys="true" keyProperty="id">
insert into dc_busi_target_draft_day
<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="companyName != null">company_name,</if>
<if test="companyCode != null">company_code,</if>
<if test="orgCode != null">org_code,</if>
<if test="companyId != null">company_id,</if>
<if test="orgId != null">org_id,</if>
<if test="orgName != null">org_name,</if>
<if test="assetCode != null">asset_code,</if>
<if test="assetName != null">asset_name,</if>
<if test="fieldType != null">field_type,</if>
<if test="fieldCode != null">field_code,</if>
<if test="fieldName != null">field_name,</if>
<if test="targetNameAlias != null">target_name_alias,</if>
<if test="targetName != null">target_name,</if>
<if test="targetCode != null">target_code,</if>
<if test="targetUint != null">target_uint,</if>
@ -86,24 +73,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="valOriginal != null">val_original,</if>
<if test="valAdjust != null">val_adjust,</if>
<if test="valResult != null">val_result,</if>
<if test="valPlan != null">val_plan,</if>
<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>
</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="companyName != null">#{companyName},</if>
<if test="companyCode != null">#{companyCode},</if>
<if test="orgCode != null">#{orgCode},</if>
<if test="companyId != null">#{companyId},</if>
<if test="orgId != null">#{orgId},</if>
<if test="orgName != null">#{orgName},</if>
<if test="assetCode != null">#{assetCode},</if>
<if test="assetName != null">#{assetName},</if>
<if test="fieldType != null">#{fieldType},</if>
<if test="fieldCode != null">#{fieldCode},</if>
<if test="fieldName != null">#{fieldName},</if>
<if test="targetNameAlias != null">#{targetNameAlias},</if>
<if test="targetName != null">#{targetName},</if>
<if test="targetCode != null">#{targetCode},</if>
<if test="targetUint != null">#{targetUint},</if>
@ -111,28 +99,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="valOriginal != null">#{valOriginal},</if>
<if test="valAdjust != null">#{valAdjust},</if>
<if test="valResult != null">#{valResult},</if>
<if test="valPlan != null">#{valPlan},</if>
<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>
</trim>
</insert>
<update id="updateDcBusiTargetDraftDayDao" parameterType="DcBusiTargetDraftDayDao">
<update id="updateDcBusiTargetDraftDay" parameterType="DcBusiTargetDraftDay">
update dc_busi_target_draft_day
<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="companyName != null">company_name = #{companyName},</if>
<if test="companyCode != null">company_code = #{companyCode},</if>
<if test="orgCode != null">org_code = #{orgCode},</if>
<if test="companyId != null">company_id = #{companyId},</if>
<if test="orgId != null">org_id = #{orgId},</if>
<if test="orgName != null">org_name = #{orgName},</if>
<if test="assetCode != null">asset_code = #{assetCode},</if>
<if test="assetName != null">asset_name = #{assetName},</if>
<if test="fieldType != null">field_type = #{fieldType},</if>
<if test="fieldCode != null">field_code = #{fieldCode},</if>
<if test="fieldName != null">field_name = #{fieldName},</if>
<if test="targetNameAlias != null">target_name_alias = #{targetNameAlias},</if>
<if test="targetName != null">target_name = #{targetName},</if>
<if test="targetCode != null">target_code = #{targetCode},</if>
<if test="targetUint != null">target_uint = #{targetUint},</if>
@ -140,16 +129,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="valOriginal != null">val_original = #{valOriginal},</if>
<if test="valAdjust != null">val_adjust = #{valAdjust},</if>
<if test="valResult != null">val_result = #{valResult},</if>
<if test="valPlan != null">val_plan = #{valPlan},</if>
<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>
</trim>
where id = #{id}
</update>
<delete id="deleteDcBusiTargetDraftDayDaoById" parameterType="Long">
<delete id="deleteDcBusiTargetDraftDayById" parameterType="Long">
delete from dc_busi_target_draft_day where id = #{id}
</delete>
<delete id="deleteDcBusiTargetDraftDayDaoByIds" parameterType="String">
<delete id="deleteDcBusiTargetDraftDayByIds" parameterType="String">
delete from dc_busi_target_draft_day where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}

288
lzbi-module/src/main/resources/mapper/draft/DcBusiTargetDraftMonthMapper.xml

@ -0,0 +1,288 @@
<?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.draft.mapper.DcBusiTargetDraftMonthMapper">
<resultMap type="com.lzbi.draft.domain.DcBusiTargetDraftMonth" id="DcBusiTargetDraftMonthResult">
<result property="id" column="id" />
<result property="companyName" column="company_name" />
<result property="companyId" column="company_id" />
<result property="orgId" column="org_id" />
<result property="orgName" column="org_name" />
<result property="assetCode" column="asset_code" />
<result property="assetName" column="asset_name" />
<result property="fieldCode" column="field_code" />
<result property="fieldName" column="field_name" />
<result property="targetNameAlias" column="target_name_alias" />
<result property="targetName" column="target_name" />
<result property="targetCode" column="target_code" />
<result property="targetUint" column="target_uint" />
<result property="countYear" column="count_year" />
<result property="countMonth" column="count_month" />
<result property="valSum" column="val_sum" />
<result property="valAvgAll" column="val_avg_all" />
<result property="valAvgNull" column="val_avg_null" />
<result property="valPlan" column="val_plan" />
<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="valP1" column="val_p1" />
<result property="valP2" column="val_p2" />
<result property="valP3" column="val_p3" />
<result property="valP4" column="val_p4" />
<result property="valP5" column="val_p5" />
<result property="valP6" column="val_p6" />
<result property="valP7" column="val_p7" />
<result property="valP8" column="val_p8" />
<result property="valP9" column="val_p9" />
<result property="valP10" column="val_p10" />
<result property="valP11" column="val_p11" />
<result property="valP12" column="val_p12" />
<result property="valP13" column="val_p13" />
<result property="valP14" column="val_p14" />
<result property="valP15" column="val_p15" />
<result property="valP16" column="val_p16" />
<result property="valP17" column="val_p17" />
<result property="valP18" column="val_p18" />
<result property="valP19" column="val_p19" />
<result property="valP20" column="val_p20" />
<result property="valP21" column="val_p21" />
<result property="valP22" column="val_p22" />
<result property="valP23" column="val_p23" />
<result property="valP24" column="val_p24" />
<result property="valP25" column="val_p25" />
<result property="valP26" column="val_p26" />
<result property="valP27" column="val_p27" />
<result property="valP28" column="val_p28" />
<result property="valP29" column="val_p29" />
<result property="valP30" column="val_p30" />
<result property="valP31" column="val_p31" />
</resultMap>
<sql id="selectDcBusiTargetDraftMonthVo">
select id, company_name, company_id, org_id, org_name, asset_code, asset_name, field_code, field_name, target_name_alias, target_name, target_code, target_uint, count_year, count_month, val_sum, val_avg_all, val_avg_null, val_plan, tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time, val_p1, val_p2, val_p3, val_p4, val_p5, val_p6, val_p7, val_p8, val_p9, val_p10, val_p11, val_p12, val_p13, val_p14, val_p15, val_p16, val_p17, val_p18, val_p19, val_p20, val_p21, val_p22, val_p23, val_p24, val_p25, val_p26, val_p27, val_p28, val_p29, val_p30, val_p31 from dc_busi_target_draft_month
</sql>
<select id="selectDcBusiTargetDraftMonthList" parameterType="DcBusiTargetDraftMonth" resultMap="DcBusiTargetDraftMonthResult">
<include refid="selectDcBusiTargetDraftMonthVo"/>
<where>
<if test="companyId != null "> and company_id = #{companyId}</if>
<if test="orgId != null "> and org_id = #{orgId}</if>
<if test="assetCode != null and assetCode != ''"> and asset_code = #{assetCode}</if>
<if test="fieldCode != null and fieldCode != ''"> and field_code = #{fieldCode}</if>
<if test="targetName != null and targetName != ''"> and target_name like concat('%', #{targetName}, '%')</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="valP1 != null "> and val_p1 = #{valP1}</if>
</where>
</select>
<select id="selectDcBusiTargetDraftMonthById" parameterType="Long" resultMap="DcBusiTargetDraftMonthResult">
<include refid="selectDcBusiTargetDraftMonthVo"/>
where id = #{id}
</select>
<insert id="insertDcBusiTargetDraftMonth" parameterType="DcBusiTargetDraftMonth" useGeneratedKeys="true" keyProperty="id">
insert into dc_busi_target_draft_month
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="companyName != null">company_name,</if>
<if test="companyId != null">company_id,</if>
<if test="orgId != null">org_id,</if>
<if test="orgName != null">org_name,</if>
<if test="assetCode != null">asset_code,</if>
<if test="assetName != null">asset_name,</if>
<if test="fieldCode != null">field_code,</if>
<if test="fieldName != null">field_name,</if>
<if test="targetNameAlias != null">target_name_alias,</if>
<if test="targetName != null">target_name,</if>
<if test="targetCode != null">target_code,</if>
<if test="targetUint != null">target_uint,</if>
<if test="countYear != null">count_year,</if>
<if test="countMonth != null">count_month,</if>
<if test="valSum != null">val_sum,</if>
<if test="valAvgAll != null">val_avg_all,</if>
<if test="valAvgNull != null">val_avg_null,</if>
<if test="valPlan != null">val_plan,</if>
<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="valP1 != null">val_p1,</if>
<if test="valP2 != null">val_p2,</if>
<if test="valP3 != null">val_p3,</if>
<if test="valP4 != null">val_p4,</if>
<if test="valP5 != null">val_p5,</if>
<if test="valP6 != null">val_p6,</if>
<if test="valP7 != null">val_p7,</if>
<if test="valP8 != null">val_p8,</if>
<if test="valP9 != null">val_p9,</if>
<if test="valP10 != null">val_p10,</if>
<if test="valP11 != null">val_p11,</if>
<if test="valP12 != null">val_p12,</if>
<if test="valP13 != null">val_p13,</if>
<if test="valP14 != null">val_p14,</if>
<if test="valP15 != null">val_p15,</if>
<if test="valP16 != null">val_p16,</if>
<if test="valP17 != null">val_p17,</if>
<if test="valP18 != null">val_p18,</if>
<if test="valP19 != null">val_p19,</if>
<if test="valP20 != null">val_p20,</if>
<if test="valP21 != null">val_p21,</if>
<if test="valP22 != null">val_p22,</if>
<if test="valP23 != null">val_p23,</if>
<if test="valP24 != null">val_p24,</if>
<if test="valP25 != null">val_p25,</if>
<if test="valP26 != null">val_p26,</if>
<if test="valP27 != null">val_p27,</if>
<if test="valP28 != null">val_p28,</if>
<if test="valP29 != null">val_p29,</if>
<if test="valP30 != null">val_p30,</if>
<if test="valP31 != null">val_p31,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="companyName != null">#{companyName},</if>
<if test="companyId != null">#{companyId},</if>
<if test="orgId != null">#{orgId},</if>
<if test="orgName != null">#{orgName},</if>
<if test="assetCode != null">#{assetCode},</if>
<if test="assetName != null">#{assetName},</if>
<if test="fieldCode != null">#{fieldCode},</if>
<if test="fieldName != null">#{fieldName},</if>
<if test="targetNameAlias != null">#{targetNameAlias},</if>
<if test="targetName != null">#{targetName},</if>
<if test="targetCode != null">#{targetCode},</if>
<if test="targetUint != null">#{targetUint},</if>
<if test="countYear != null">#{countYear},</if>
<if test="countMonth != null">#{countMonth},</if>
<if test="valSum != null">#{valSum},</if>
<if test="valAvgAll != null">#{valAvgAll},</if>
<if test="valAvgNull != null">#{valAvgNull},</if>
<if test="valPlan != null">#{valPlan},</if>
<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="valP1 != null">#{valP1},</if>
<if test="valP2 != null">#{valP2},</if>
<if test="valP3 != null">#{valP3},</if>
<if test="valP4 != null">#{valP4},</if>
<if test="valP5 != null">#{valP5},</if>
<if test="valP6 != null">#{valP6},</if>
<if test="valP7 != null">#{valP7},</if>
<if test="valP8 != null">#{valP8},</if>
<if test="valP9 != null">#{valP9},</if>
<if test="valP10 != null">#{valP10},</if>
<if test="valP11 != null">#{valP11},</if>
<if test="valP12 != null">#{valP12},</if>
<if test="valP13 != null">#{valP13},</if>
<if test="valP14 != null">#{valP14},</if>
<if test="valP15 != null">#{valP15},</if>
<if test="valP16 != null">#{valP16},</if>
<if test="valP17 != null">#{valP17},</if>
<if test="valP18 != null">#{valP18},</if>
<if test="valP19 != null">#{valP19},</if>
<if test="valP20 != null">#{valP20},</if>
<if test="valP21 != null">#{valP21},</if>
<if test="valP22 != null">#{valP22},</if>
<if test="valP23 != null">#{valP23},</if>
<if test="valP24 != null">#{valP24},</if>
<if test="valP25 != null">#{valP25},</if>
<if test="valP26 != null">#{valP26},</if>
<if test="valP27 != null">#{valP27},</if>
<if test="valP28 != null">#{valP28},</if>
<if test="valP29 != null">#{valP29},</if>
<if test="valP30 != null">#{valP30},</if>
<if test="valP31 != null">#{valP31},</if>
</trim>
</insert>
<update id="updateDcBusiTargetDraftMonth" parameterType="DcBusiTargetDraftMonth">
update dc_busi_target_draft_month
<trim prefix="SET" suffixOverrides=",">
<if test="companyName != null">company_name = #{companyName},</if>
<if test="companyId != null">company_id = #{companyId},</if>
<if test="orgId != null">org_id = #{orgId},</if>
<if test="orgName != null">org_name = #{orgName},</if>
<if test="assetCode != null">asset_code = #{assetCode},</if>
<if test="assetName != null">asset_name = #{assetName},</if>
<if test="fieldCode != null">field_code = #{fieldCode},</if>
<if test="fieldName != null">field_name = #{fieldName},</if>
<if test="targetNameAlias != null">target_name_alias = #{targetNameAlias},</if>
<if test="targetName != null">target_name = #{targetName},</if>
<if test="targetCode != null">target_code = #{targetCode},</if>
<if test="targetUint != null">target_uint = #{targetUint},</if>
<if test="countYear != null">count_year = #{countYear},</if>
<if test="countMonth != null">count_month = #{countMonth},</if>
<if test="valSum != null">val_sum = #{valSum},</if>
<if test="valAvgAll != null">val_avg_all = #{valAvgAll},</if>
<if test="valAvgNull != null">val_avg_null = #{valAvgNull},</if>
<if test="valPlan != null">val_plan = #{valPlan},</if>
<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="valP1 != null">val_p1 = #{valP1},</if>
<if test="valP2 != null">val_p2 = #{valP2},</if>
<if test="valP3 != null">val_p3 = #{valP3},</if>
<if test="valP4 != null">val_p4 = #{valP4},</if>
<if test="valP5 != null">val_p5 = #{valP5},</if>
<if test="valP6 != null">val_p6 = #{valP6},</if>
<if test="valP7 != null">val_p7 = #{valP7},</if>
<if test="valP8 != null">val_p8 = #{valP8},</if>
<if test="valP9 != null">val_p9 = #{valP9},</if>
<if test="valP10 != null">val_p10 = #{valP10},</if>
<if test="valP11 != null">val_p11 = #{valP11},</if>
<if test="valP12 != null">val_p12 = #{valP12},</if>
<if test="valP13 != null">val_p13 = #{valP13},</if>
<if test="valP14 != null">val_p14 = #{valP14},</if>
<if test="valP15 != null">val_p15 = #{valP15},</if>
<if test="valP16 != null">val_p16 = #{valP16},</if>
<if test="valP17 != null">val_p17 = #{valP17},</if>
<if test="valP18 != null">val_p18 = #{valP18},</if>
<if test="valP19 != null">val_p19 = #{valP19},</if>
<if test="valP20 != null">val_p20 = #{valP20},</if>
<if test="valP21 != null">val_p21 = #{valP21},</if>
<if test="valP22 != null">val_p22 = #{valP22},</if>
<if test="valP23 != null">val_p23 = #{valP23},</if>
<if test="valP24 != null">val_p24 = #{valP24},</if>
<if test="valP25 != null">val_p25 = #{valP25},</if>
<if test="valP26 != null">val_p26 = #{valP26},</if>
<if test="valP27 != null">val_p27 = #{valP27},</if>
<if test="valP28 != null">val_p28 = #{valP28},</if>
<if test="valP29 != null">val_p29 = #{valP29},</if>
<if test="valP30 != null">val_p30 = #{valP30},</if>
<if test="valP31 != null">val_p31 = #{valP31},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcBusiTargetDraftMonthById" parameterType="Long">
delete from dc_busi_target_draft_month where id = #{id}
</delete>
<delete id="deleteDcBusiTargetDraftMonthByIds" parameterType="String">
delete from dc_busi_target_draft_month where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save