zhousq
1 year ago
3 changed files with 609 additions and 0 deletions
@ -0,0 +1,141 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
|
|||
<mapper namespace="com.lzbi.bi.mapper.DcBaseAssetInfoMapper"> |
|||
<resultMap type="com.lzbi.bi.domain.DcBaseAssetInfo" id="rmDcBaseAssetInfo"> |
|||
<!-- 租户号 --> |
|||
<result property="tenantId" column="TENANT_ID"/> |
|||
<!-- 乐观锁 --> |
|||
<result property="revision" column="REVISION"/> |
|||
<!-- 创建人 --> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<!-- 创建时间 --> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<!-- 更新人 --> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<!-- 更新时间 --> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
<!-- 删除人 --> |
|||
<result property="deleteBy" column="DELETE_BY"/> |
|||
<!-- 删除时间 --> |
|||
<result property="deleteTime" column="DELETE_TIME"/> |
|||
<!-- 资产ID --> |
|||
<result property="id" column="id"/> |
|||
<!-- 资产名称 --> |
|||
<result property="assetName" column="asset_name"/> |
|||
<!-- 资产编码 --> |
|||
<result property="assetCode" column="asset_code"/> |
|||
<!-- 资产类别 --> |
|||
<result property="assetClass" column="asset_class"/> |
|||
<!-- 部门共享 --> |
|||
<result property="flagValidateDept" column="flag_validate_dept"/> |
|||
<!-- 角色内共享 --> |
|||
<result property="flagValidateRole" column="flag_validate_role"/> |
|||
<!-- 用户共享 --> |
|||
<result property="flagValidateUser" column="flag_validate_user"/> |
|||
<!-- 资产状态 --> |
|||
<result property="statusAsset" column="status_asset"/> |
|||
<!-- 所属公司 --> |
|||
<result property="comanyId" column="comany_id"/> |
|||
<!-- 所属组织结构 --> |
|||
<result property="deptId" column="dept_id"/> |
|||
<!-- 生产专业 --> |
|||
<result property="workType" column="work_type"/> |
|||
</resultMap> |
|||
<sql id="baseQuerySql"> |
|||
select |
|||
TENANT_ID, |
|||
REVISION, |
|||
CREATED_BY, |
|||
CREATED_TIME, |
|||
UPDATED_BY, |
|||
UPDATED_TIME, |
|||
DELETE_BY, |
|||
DELETE_TIME, |
|||
id, |
|||
asset_name, |
|||
asset_code, |
|||
asset_class, |
|||
flag_validate_dept, |
|||
flag_validate_role, |
|||
flag_validate_user, |
|||
status_asset, |
|||
comany_id, |
|||
dept_id, |
|||
work_type, |
|||
from dc_base_asset_info |
|||
</sql> |
|||
<select id="selectByVo" resultMap="rmDcBaseAssetInfo" parameterType="com.lzbi.bi.domain.DcBaseAssetInfo"> |
|||
<include refid="baseQuerySql"/> |
|||
<where> |
|||
<if test="tenantId != null "> and TENANT_ID = #{tenantId}</if> |
|||
<if test="revision != null"> and REVISION = #{revision}</if> |
|||
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if> |
|||
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if> |
|||
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if> |
|||
<if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if> |
|||
<if test="deleteBy != null and deleteBy != ''"> and DELETE_BY = #{deleteBy}</if> |
|||
<if test="deleteTime != null "> and DELETE_TIME = #{deleteTime}</if> |
|||
<if test="id != null "> and id = #{id}</if> |
|||
<if test="assetName != null and assetName != ''"> and asset_name = #{assetName}</if> |
|||
<if test="assetCode != null and assetCode != ''"> and asset_code = #{assetCode}</if> |
|||
<if test="assetClass != null and assetClass != ''"> and asset_class = #{assetClass}</if> |
|||
<if test="flagValidateDept != null and flagValidateDept != ''"> and flag_validate_dept = #{flagValidateDept}</if> |
|||
<if test="flagValidateRole != null and flagValidateRole != ''"> and flag_validate_role = #{flagValidateRole}</if> |
|||
<if test="flagValidateUser != null and flagValidateUser != ''"> and flag_validate_user = #{flagValidateUser}</if> |
|||
<if test="statusAsset != null and statusAsset != ''"> and status_asset = #{statusAsset}</if> |
|||
<if test="comanyId != null "> and comany_id = #{comanyId}</if> |
|||
<if test="deptId != null "> and dept_id = #{deptId}</if> |
|||
<if test="workType != null and workType != ''"> and work_type = #{workType}</if> |
|||
|
|||
</where> |
|||
</select> |
|||
<insert id="insertByVo" parameterType="com.lzbi.bi.domain.DcBaseAssetInfo"> |
|||
insert into dc_base_asset_info |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="tenantId != null and tenantId != ''">TENANT_ID,</if> |
|||
<if test="revision != null and revision != ''">REVISION,</if> |
|||
<if test="createdBy != null and createdBy != ''">CREATED_BY,</if> |
|||
<if test="createdTime != null and createdTime != ''">CREATED_TIME,</if> |
|||
<if test="updatedBy != null and updatedBy != ''">UPDATED_BY,</if> |
|||
<if test="updatedTime != null and updatedTime != ''">UPDATED_TIME,</if> |
|||
<if test="deleteBy != null and deleteBy != ''">DELETE_BY,</if> |
|||
<if test="deleteTime != null and deleteTime != ''">DELETE_TIME,</if> |
|||
<if test="assetId != null and assetId != ''">asset_id,</if> |
|||
<if test="assetName != null and assetName != ''">asset_name,</if> |
|||
<if test="assetCode != null and assetCode != ''">asset_code,</if> |
|||
<if test="assetClass != null and assetClass != ''">asset_class,</if> |
|||
<if test="flagValidateDept != null and flagValidateDept != ''">flag_validate_dept,</if> |
|||
<if test="flagValidateRole != null and flagValidateRole != ''">flag_validate_role,</if> |
|||
<if test="flagValidateUser != null and flagValidateUser != ''">flag_validate_user,</if> |
|||
<if test="statusAsset != null and statusAsset != ''">status_asset,</if> |
|||
<if test="comanyId != null and comanyId != ''">comany_id,</if> |
|||
<if test="deptId != null and deptId != ''">dept_id,</if> |
|||
<if test="workType != null and workType != ''">work_type,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="tenantId != null and tenantId != ''">#{tenantId},</if> |
|||
<if test="revision != null and revision != ''">#{revision},</if> |
|||
<if test="createdBy != null and createdBy != ''">#{createdBy},</if> |
|||
<if test="createdTime != null and createdTime != ''">#{createdTime},</if> |
|||
<if test="updatedBy != null and updatedBy != ''">#{updatedBy},</if> |
|||
<if test="updatedTime != null and updatedTime != ''">#{updatedTime},</if> |
|||
<if test="deleteBy != null and deleteBy != ''">#{deleteBy},</if> |
|||
<if test="deleteTime != null and deleteTime != ''">#{deleteTime},</if> |
|||
<if test="assetId != null and assetId != ''">#{assetId},</if> |
|||
<if test="assetName != null and assetName != ''">#{assetName},</if> |
|||
<if test="assetCode != null and assetCode != ''">#{assetCode},</if> |
|||
<if test="assetClass != null and assetClass != ''">#{assetClass},</if> |
|||
<if test="flagValidateDept != null and flagValidateDept != ''">#{flagValidateDept},</if> |
|||
<if test="flagValidateRole != null and flagValidateRole != ''">#{flagValidateRole},</if> |
|||
<if test="flagValidateUser != null and flagValidateUser != ''">#{flagValidateUser},</if> |
|||
<if test="statusAsset != null and statusAsset != ''">#{statusAsset},</if> |
|||
<if test="comanyId != null and comanyId != ''">#{comanyId},</if> |
|||
<if test="deptId != null and deptId != ''">#{deptId},</if> |
|||
<if test="workType != null and workType != ''">#{workType},</if> |
|||
|
|||
</trim> |
|||
</insert> |
|||
</mapper> |
@ -0,0 +1,141 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
|
|||
<mapper namespace="com.lzbi.bi.mapper.DcBusiTargetAdjustMapper"> |
|||
<resultMap type="com.lzbi.bi.domain.DcBusiTargetAdjust" id="rmDcBusiTargetAdjust"> |
|||
<!-- 租户号 --> |
|||
<result property="tenantId" column="TENANT_ID"/> |
|||
<!-- 乐观锁 --> |
|||
<result property="revision" column="REVISION"/> |
|||
<!-- 创建人 --> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<!-- 创建时间 --> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<!-- 更新人 --> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<!-- 更新时间 --> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
<!-- 删除人 --> |
|||
<result property="deleteBy" column="DELETE_BY"/> |
|||
<!-- 删除时间 --> |
|||
<result property="deleteTime" column="DELETE_TIME"/> |
|||
<!-- 单据号 --> |
|||
<result property="billSerial" column="bill_serial"/> |
|||
<!-- 单据类别 --> |
|||
<result property="biilType" column="biil_type"/> |
|||
<!-- 指标编码 --> |
|||
<result property="targetCode" column="target_code"/> |
|||
<!-- 资产ID --> |
|||
<result property="assetId" column="asset_id"/> |
|||
<!-- 原始值 --> |
|||
<result property="valOrginal" column="val_orginal"/> |
|||
<!-- 调整值 --> |
|||
<result property="valAdjust" column="val_adjust"/> |
|||
<!-- 结果值 --> |
|||
<result property="valResult" column="val_result"/> |
|||
<!-- 主键 --> |
|||
<result property="id" column="id"/> |
|||
<!-- 调整目标日期 --> |
|||
<result property="dateAdjust" column="date_adjust"/> |
|||
<!-- 调整目标时间 --> |
|||
<result property="hourAdjust" column="hour_adjust"/> |
|||
<!-- 调整目标日期字符串 --> |
|||
<result property="dateAdjustStr" column="date_adjust_str"/> |
|||
</resultMap> |
|||
<sql id="baseQuerySql"> |
|||
select |
|||
TENANT_ID, |
|||
REVISION, |
|||
CREATED_BY, |
|||
CREATED_TIME, |
|||
UPDATED_BY, |
|||
UPDATED_TIME, |
|||
DELETE_BY, |
|||
DELETE_TIME, |
|||
bill_serial, |
|||
biil_type, |
|||
target_code, |
|||
asset_id, |
|||
val_orginal, |
|||
val_adjust, |
|||
val_result, |
|||
id, |
|||
date_adjust, |
|||
hour_adjust, |
|||
date_adjust_str, |
|||
from dc_busi_target_adjust |
|||
</sql> |
|||
<select id="selectByVo" resultMap="rmDcBusiTargetAdjust" parameterType="com.lzbi.bi.domain.DcBusiTargetAdjust"> |
|||
<include refid="baseQuerySql"/> |
|||
<where> |
|||
<if test="tenantId != null and tenantId != ''"> and TENANT_ID = #{tenantId}</if> |
|||
<if test="revision != null and revision != ''"> and REVISION = #{revision}</if> |
|||
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if> |
|||
<if test="createdTime != null and createdTime != ''"> and CREATED_TIME = #{createdTime}</if> |
|||
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if> |
|||
<if test="updatedTime != null and updatedTime != ''"> and UPDATED_TIME = #{updatedTime}</if> |
|||
<if test="deleteBy != null and deleteBy != ''"> and DELETE_BY = #{deleteBy}</if> |
|||
<if test="deleteTime != null and deleteTime != ''"> and DELETE_TIME = #{deleteTime}</if> |
|||
<if test="billSerial != null and billSerial != ''"> and bill_serial = #{billSerial}</if> |
|||
<if test="biilType != null and biilType != ''"> and biil_type = #{biilType}</if> |
|||
<if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if> |
|||
<if test="assetId != null and assetId != ''"> and asset_id = #{assetId}</if> |
|||
<if test="valOrginal != null and valOrginal != ''"> and val_orginal = #{valOrginal}</if> |
|||
<if test="valAdjust != null and valAdjust != ''"> and val_adjust = #{valAdjust}</if> |
|||
<if test="valResult != null and valResult != ''"> and val_result = #{valResult}</if> |
|||
<if test="id != null and id != ''"> and id = #{id}</if> |
|||
<if test="dateAdjust != null and dateAdjust != ''"> and date_adjust = #{dateAdjust}</if> |
|||
<if test="hourAdjust != null and hourAdjust != ''"> and hour_adjust = #{hourAdjust}</if> |
|||
<if test="dateAdjustStr != null and dateAdjustStr != ''"> and date_adjust_str = #{dateAdjustStr}</if> |
|||
|
|||
</where> |
|||
</select> |
|||
<insert id="insertByVo" parameterType="com.lzbi.bi.domain.DcBusiTargetAdjust"> |
|||
insert into dc_busi_target_adjust |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="tenantId != null and tenantId != ''">TENANT_ID,</if> |
|||
<if test="revision != null and revision != ''">REVISION,</if> |
|||
<if test="createdBy != null and createdBy != ''">CREATED_BY,</if> |
|||
<if test="createdTime != null and createdTime != ''">CREATED_TIME,</if> |
|||
<if test="updatedBy != null and updatedBy != ''">UPDATED_BY,</if> |
|||
<if test="updatedTime != null and updatedTime != ''">UPDATED_TIME,</if> |
|||
<if test="deleteBy != null and deleteBy != ''">DELETE_BY,</if> |
|||
<if test="deleteTime != null and deleteTime != ''">DELETE_TIME,</if> |
|||
<if test="billSerial != null and billSerial != ''">bill_serial,</if> |
|||
<if test="biilType != null and biilType != ''">biil_type,</if> |
|||
<if test="targetCode != null and targetCode != ''">target_code,</if> |
|||
<if test="assetId != null and assetId != ''">asset_id,</if> |
|||
<if test="valOrginal != null and valOrginal != ''">val_orginal,</if> |
|||
<if test="valAdjust != null and valAdjust != ''">val_adjust,</if> |
|||
<if test="valResult != null and valResult != ''">val_result,</if> |
|||
<if test="id != null and id != ''">id,</if> |
|||
<if test="dateAdjust != null and dateAdjust != ''">date_adjust,</if> |
|||
<if test="hourAdjust != null and hourAdjust != ''">hour_adjust,</if> |
|||
<if test="dateAdjustStr != null and dateAdjustStr != ''">date_adjust_str,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="tenantId != null and tenantId != ''">#{tenantId},</if> |
|||
<if test="revision != null and revision != ''">#{revision},</if> |
|||
<if test="createdBy != null and createdBy != ''">#{createdBy},</if> |
|||
<if test="createdTime != null and createdTime != ''">#{createdTime},</if> |
|||
<if test="updatedBy != null and updatedBy != ''">#{updatedBy},</if> |
|||
<if test="updatedTime != null and updatedTime != ''">#{updatedTime},</if> |
|||
<if test="deleteBy != null and deleteBy != ''">#{deleteBy},</if> |
|||
<if test="deleteTime != null and deleteTime != ''">#{deleteTime},</if> |
|||
<if test="billSerial != null and billSerial != ''">#{billSerial},</if> |
|||
<if test="biilType != null and biilType != ''">#{biilType},</if> |
|||
<if test="targetCode != null and targetCode != ''">#{targetCode},</if> |
|||
<if test="assetId != null and assetId != ''">#{assetId},</if> |
|||
<if test="valOrginal != null and valOrginal != ''">#{valOrginal},</if> |
|||
<if test="valAdjust != null and valAdjust != ''">#{valAdjust},</if> |
|||
<if test="valResult != null and valResult != ''">#{valResult},</if> |
|||
<if test="id != null and id != ''">#{id},</if> |
|||
<if test="dateAdjust != null and dateAdjust != ''">#{dateAdjust},</if> |
|||
<if test="hourAdjust != null and hourAdjust != ''">#{hourAdjust},</if> |
|||
<if test="dateAdjustStr != null and dateAdjustStr != ''">#{dateAdjustStr},</if> |
|||
|
|||
</trim> |
|||
</insert> |
|||
</mapper> |
@ -0,0 +1,327 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
|
|||
<mapper namespace="com.lzbi.bi.mapper.DcBusiTargetDraftMapper"> |
|||
<resultMap type="com.lzbi.bi.domain.DcBusiTargetDraft" id="rmDcBusiTargetDraft"> |
|||
<!-- 租户号 --> |
|||
<result property="tenantId" column="TENANT_ID"/> |
|||
<!-- 乐观锁 --> |
|||
<result property="revision" column="REVISION"/> |
|||
<!-- 创建人 --> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<!-- 创建时间 --> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<!-- 更新人 --> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<!-- 更新时间 --> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
<!-- 删除人 --> |
|||
<result property="deleteBy" column="DELETE_BY"/> |
|||
<!-- 删除时间 --> |
|||
<result property="deleteTime" column="DELETE_TIME"/> |
|||
<!-- 主键 --> |
|||
<result property="id" column="id"/> |
|||
<!-- 指标主键 --> |
|||
<result property="targetId" column="target_id"/> |
|||
<!-- 指标编码 --> |
|||
<result property="targetCode" column="target_code"/> |
|||
<!-- 年份 --> |
|||
<result property="countYear" column="count_year"/> |
|||
<!-- 月份 --> |
|||
<result property="countMonth" column="count_month"/> |
|||
<!-- 日 --> |
|||
<result property="countDay" column="count_day"/> |
|||
<!-- 1时 --> |
|||
<result property="val01" column="val01"/> |
|||
<!-- 2时 --> |
|||
<result property="val02" column="val02"/> |
|||
<!-- 3时 --> |
|||
<result property="val03" column="val03"/> |
|||
<!-- 4时 --> |
|||
<result property="val04" column="val04"/> |
|||
<!-- 5时 --> |
|||
<result property="val05" column="val05"/> |
|||
<!-- 6时 --> |
|||
<result property="val06" column="val06"/> |
|||
<!-- 7时 --> |
|||
<result property="val07" column="val07"/> |
|||
<!-- 8时 --> |
|||
<result property="val08" column="val08"/> |
|||
<!-- 9时 --> |
|||
<result property="val09" column="val09"/> |
|||
<!-- 10时 --> |
|||
<result property="val10" column="val10"/> |
|||
<!-- 11时 --> |
|||
<result property="val11" column="val11"/> |
|||
<!-- 12时 --> |
|||
<result property="val12" column="val12"/> |
|||
<!-- 13时 --> |
|||
<result property="val13" column="val13"/> |
|||
<!-- 14时 --> |
|||
<result property="val14" column="val14"/> |
|||
<!-- 15时 --> |
|||
<result property="val15" column="val15"/> |
|||
<!-- 16时 --> |
|||
<result property="val16" column="val16"/> |
|||
<!-- 17时 --> |
|||
<result property="val17" column="val17"/> |
|||
<!-- 18时 --> |
|||
<result property="val18" column="val18"/> |
|||
<!-- 18时 --> |
|||
<result property="val19" column="val19"/> |
|||
<!-- 20时 --> |
|||
<result property="val20" column="val20"/> |
|||
<!-- 21时 --> |
|||
<result property="val21" column="val21"/> |
|||
<!-- 22时 --> |
|||
<result property="val22" column="val22"/> |
|||
<!-- 23时 --> |
|||
<result property="val23" column="val23"/> |
|||
<!-- 24时 --> |
|||
<result property="val24" column="val24"/> |
|||
<!-- 公司 --> |
|||
<result property="companyCode" column="company_code"/> |
|||
<!-- 公司名称 --> |
|||
<result property="companyName" column="company_name"/> |
|||
<!-- 组织机构代码 --> |
|||
<result property="orgCode" column="org_code"/> |
|||
<!-- 组织机构名称 --> |
|||
<result property="orgName" column="org_name"/> |
|||
<!-- 生产专业 --> |
|||
<result property="workType" column="work_type"/> |
|||
<!-- 统计单元名称 --> |
|||
<result property="countUnitName" column="count_unit_name"/> |
|||
<!-- 资产ID --> |
|||
<result property="assetId" column="asset_id"/> |
|||
<!-- 上线 --> |
|||
<result property="valUpLimit" column="val_up_limit"/> |
|||
<!-- 下线 --> |
|||
<result property="valDownLimit" column="val_down_limit"/> |
|||
<!-- 均值 --> |
|||
<result property="valAvg" column="val_avg"/> |
|||
<!-- 合值 --> |
|||
<result property="valTotal" column="val_total"/> |
|||
<!-- 积算 --> |
|||
<result property="valCompute" column="val_compute"/> |
|||
</resultMap> |
|||
<sql id="baseQuerySql"> |
|||
select |
|||
TENANT_ID, |
|||
REVISION, |
|||
CREATED_BY, |
|||
CREATED_TIME, |
|||
UPDATED_BY, |
|||
UPDATED_TIME, |
|||
DELETE_BY, |
|||
DELETE_TIME, |
|||
id, |
|||
target_id, |
|||
target_code, |
|||
count_year, |
|||
count_month, |
|||
count_day, |
|||
val01, |
|||
val02, |
|||
val03, |
|||
val04, |
|||
val05, |
|||
val06, |
|||
val07, |
|||
val08, |
|||
val09, |
|||
val10, |
|||
val11, |
|||
val12, |
|||
val13, |
|||
val14, |
|||
val15, |
|||
val16, |
|||
val17, |
|||
val18, |
|||
val19, |
|||
val20, |
|||
val21, |
|||
val22, |
|||
val23, |
|||
val24, |
|||
company_code, |
|||
company_name, |
|||
org_code, |
|||
org_name, |
|||
work_type, |
|||
count_unit_name, |
|||
asset_id, |
|||
val_up_limit, |
|||
val_down_limit, |
|||
val_avg, |
|||
val_total, |
|||
val_compute, |
|||
from dc_busi_target_draft |
|||
</sql> |
|||
<select id="selectByVo" resultMap="rmDcBusiTargetDraft" parameterType="com.lzbi.bi.domain.DcBusiTargetDraft"> |
|||
<include refid="baseQuerySql"/> |
|||
<where> |
|||
<if test="tenantId != null and tenantId != ''"> and TENANT_ID = #{tenantId}</if> |
|||
<if test="revision != null and revision != ''"> and REVISION = #{revision}</if> |
|||
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if> |
|||
<if test="createdTime != null and createdTime != ''"> and CREATED_TIME = #{createdTime}</if> |
|||
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if> |
|||
<if test="updatedTime != null and updatedTime != ''"> and UPDATED_TIME = #{updatedTime}</if> |
|||
<if test="deleteBy != null and deleteBy != ''"> and DELETE_BY = #{deleteBy}</if> |
|||
<if test="deleteTime != null and deleteTime != ''"> and DELETE_TIME = #{deleteTime}</if> |
|||
<if test="id != null and id != ''"> and id = #{id}</if> |
|||
<if test="targetId != null and targetId != ''"> and target_id = #{targetId}</if> |
|||
<if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if> |
|||
<if test="countYear != null and countYear != ''"> and count_year = #{countYear}</if> |
|||
<if test="countMonth != null and countMonth != ''"> and count_month = #{countMonth}</if> |
|||
<if test="countDay != null and countDay != ''"> and count_day = #{countDay}</if> |
|||
<if test="val01 != null and val01 != ''"> and val01 = #{val01}</if> |
|||
<if test="val02 != null and val02 != ''"> and val02 = #{val02}</if> |
|||
<if test="val03 != null and val03 != ''"> and val03 = #{val03}</if> |
|||
<if test="val04 != null and val04 != ''"> and val04 = #{val04}</if> |
|||
<if test="val05 != null and val05 != ''"> and val05 = #{val05}</if> |
|||
<if test="val06 != null and val06 != ''"> and val06 = #{val06}</if> |
|||
<if test="val07 != null and val07 != ''"> and val07 = #{val07}</if> |
|||
<if test="val08 != null and val08 != ''"> and val08 = #{val08}</if> |
|||
<if test="val09 != null and val09 != ''"> and val09 = #{val09}</if> |
|||
<if test="val10 != null and val10 != ''"> and val10 = #{val10}</if> |
|||
<if test="val11 != null and val11 != ''"> and val11 = #{val11}</if> |
|||
<if test="val12 != null and val12 != ''"> and val12 = #{val12}</if> |
|||
<if test="val13 != null and val13 != ''"> and val13 = #{val13}</if> |
|||
<if test="val14 != null and val14 != ''"> and val14 = #{val14}</if> |
|||
<if test="val15 != null and val15 != ''"> and val15 = #{val15}</if> |
|||
<if test="val16 != null and val16 != ''"> and val16 = #{val16}</if> |
|||
<if test="val17 != null and val17 != ''"> and val17 = #{val17}</if> |
|||
<if test="val18 != null and val18 != ''"> and val18 = #{val18}</if> |
|||
<if test="val19 != null and val19 != ''"> and val19 = #{val19}</if> |
|||
<if test="val20 != null and val20 != ''"> and val20 = #{val20}</if> |
|||
<if test="val21 != null and val21 != ''"> and val21 = #{val21}</if> |
|||
<if test="val22 != null and val22 != ''"> and val22 = #{val22}</if> |
|||
<if test="val23 != null and val23 != ''"> and val23 = #{val23}</if> |
|||
<if test="val24 != null and val24 != ''"> and val24 = #{val24}</if> |
|||
<if test="companyCode != null and companyCode != ''"> and company_code = #{companyCode}</if> |
|||
<if test="companyName != null and companyName != ''"> and company_name = #{companyName}</if> |
|||
<if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
|||
<if test="orgName != null and orgName != ''"> and org_name = #{orgName}</if> |
|||
<if test="workType != null and workType != ''"> and work_type = #{workType}</if> |
|||
<if test="countUnitName != null and countUnitName != ''"> and count_unit_name = #{countUnitName}</if> |
|||
<if test="assetId != null and assetId != ''"> and asset_id = #{assetId}</if> |
|||
<if test="valUpLimit != null and valUpLimit != ''"> and val_up_limit = #{valUpLimit}</if> |
|||
<if test="valDownLimit != null and valDownLimit != ''"> and val_down_limit = #{valDownLimit}</if> |
|||
<if test="valAvg != null and valAvg != ''"> and val_avg = #{valAvg}</if> |
|||
<if test="valTotal != null and valTotal != ''"> and val_total = #{valTotal}</if> |
|||
<if test="valCompute != null and valCompute != ''"> and val_compute = #{valCompute}</if> |
|||
|
|||
</where> |
|||
</select> |
|||
<insert id="insertByVo" parameterType="com.lzbi.bi.domain.DcBusiTargetDraft"> |
|||
insert into dc_busi_target_draft |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="tenantId != null and tenantId != ''">TENANT_ID,</if> |
|||
<if test="revision != null and revision != ''">REVISION,</if> |
|||
<if test="createdBy != null and createdBy != ''">CREATED_BY,</if> |
|||
<if test="createdTime != null and createdTime != ''">CREATED_TIME,</if> |
|||
<if test="updatedBy != null and updatedBy != ''">UPDATED_BY,</if> |
|||
<if test="updatedTime != null and updatedTime != ''">UPDATED_TIME,</if> |
|||
<if test="deleteBy != null and deleteBy != ''">DELETE_BY,</if> |
|||
<if test="deleteTime != null and deleteTime != ''">DELETE_TIME,</if> |
|||
<if test="id != null and id != ''">id,</if> |
|||
<if test="targetId != null and targetId != ''">target_id,</if> |
|||
<if test="targetCode != null and targetCode != ''">target_code,</if> |
|||
<if test="countYear != null and countYear != ''">count_year,</if> |
|||
<if test="countMonth != null and countMonth != ''">count_month,</if> |
|||
<if test="countDay != null and countDay != ''">count_day,</if> |
|||
<if test="val01 != null and val01 != ''">val01,</if> |
|||
<if test="val02 != null and val02 != ''">val02,</if> |
|||
<if test="val03 != null and val03 != ''">val03,</if> |
|||
<if test="val04 != null and val04 != ''">val04,</if> |
|||
<if test="val05 != null and val05 != ''">val05,</if> |
|||
<if test="val06 != null and val06 != ''">val06,</if> |
|||
<if test="val07 != null and val07 != ''">val07,</if> |
|||
<if test="val08 != null and val08 != ''">val08,</if> |
|||
<if test="val09 != null and val09 != ''">val09,</if> |
|||
<if test="val10 != null and val10 != ''">val10,</if> |
|||
<if test="val11 != null and val11 != ''">val11,</if> |
|||
<if test="val12 != null and val12 != ''">val12,</if> |
|||
<if test="val13 != null and val13 != ''">val13,</if> |
|||
<if test="val14 != null and val14 != ''">val14,</if> |
|||
<if test="val15 != null and val15 != ''">val15,</if> |
|||
<if test="val16 != null and val16 != ''">val16,</if> |
|||
<if test="val17 != null and val17 != ''">val17,</if> |
|||
<if test="val18 != null and val18 != ''">val18,</if> |
|||
<if test="val19 != null and val19 != ''">val19,</if> |
|||
<if test="val20 != null and val20 != ''">val20,</if> |
|||
<if test="val21 != null and val21 != ''">val21,</if> |
|||
<if test="val22 != null and val22 != ''">val22,</if> |
|||
<if test="val23 != null and val23 != ''">val23,</if> |
|||
<if test="val24 != null and val24 != ''">val24,</if> |
|||
<if test="companyCode != null and companyCode != ''">company_code,</if> |
|||
<if test="companyName != null and companyName != ''">company_name,</if> |
|||
<if test="orgCode != null and orgCode != ''">org_code,</if> |
|||
<if test="orgName != null and orgName != ''">org_name,</if> |
|||
<if test="workType != null and workType != ''">work_type,</if> |
|||
<if test="countUnitName != null and countUnitName != ''">count_unit_name,</if> |
|||
<if test="assetId != null and assetId != ''">asset_id,</if> |
|||
<if test="valUpLimit != null and valUpLimit != ''">val_up_limit,</if> |
|||
<if test="valDownLimit != null and valDownLimit != ''">val_down_limit,</if> |
|||
<if test="valAvg != null and valAvg != ''">val_avg,</if> |
|||
<if test="valTotal != null and valTotal != ''">val_total,</if> |
|||
<if test="valCompute != null and valCompute != ''">val_compute,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="tenantId != null and tenantId != ''">#{tenantId},</if> |
|||
<if test="revision != null and revision != ''">#{revision},</if> |
|||
<if test="createdBy != null and createdBy != ''">#{createdBy},</if> |
|||
<if test="createdTime != null and createdTime != ''">#{createdTime},</if> |
|||
<if test="updatedBy != null and updatedBy != ''">#{updatedBy},</if> |
|||
<if test="updatedTime != null and updatedTime != ''">#{updatedTime},</if> |
|||
<if test="deleteBy != null and deleteBy != ''">#{deleteBy},</if> |
|||
<if test="deleteTime != null and deleteTime != ''">#{deleteTime},</if> |
|||
<if test="id != null and id != ''">#{id},</if> |
|||
<if test="targetId != null and targetId != ''">#{targetId},</if> |
|||
<if test="targetCode != null and targetCode != ''">#{targetCode},</if> |
|||
<if test="countYear != null and countYear != ''">#{countYear},</if> |
|||
<if test="countMonth != null and countMonth != ''">#{countMonth},</if> |
|||
<if test="countDay != null and countDay != ''">#{countDay},</if> |
|||
<if test="val01 != null and val01 != ''">#{val01},</if> |
|||
<if test="val02 != null and val02 != ''">#{val02},</if> |
|||
<if test="val03 != null and val03 != ''">#{val03},</if> |
|||
<if test="val04 != null and val04 != ''">#{val04},</if> |
|||
<if test="val05 != null and val05 != ''">#{val05},</if> |
|||
<if test="val06 != null and val06 != ''">#{val06},</if> |
|||
<if test="val07 != null and val07 != ''">#{val07},</if> |
|||
<if test="val08 != null and val08 != ''">#{val08},</if> |
|||
<if test="val09 != null and val09 != ''">#{val09},</if> |
|||
<if test="val10 != null and val10 != ''">#{val10},</if> |
|||
<if test="val11 != null and val11 != ''">#{val11},</if> |
|||
<if test="val12 != null and val12 != ''">#{val12},</if> |
|||
<if test="val13 != null and val13 != ''">#{val13},</if> |
|||
<if test="val14 != null and val14 != ''">#{val14},</if> |
|||
<if test="val15 != null and val15 != ''">#{val15},</if> |
|||
<if test="val16 != null and val16 != ''">#{val16},</if> |
|||
<if test="val17 != null and val17 != ''">#{val17},</if> |
|||
<if test="val18 != null and val18 != ''">#{val18},</if> |
|||
<if test="val19 != null and val19 != ''">#{val19},</if> |
|||
<if test="val20 != null and val20 != ''">#{val20},</if> |
|||
<if test="val21 != null and val21 != ''">#{val21},</if> |
|||
<if test="val22 != null and val22 != ''">#{val22},</if> |
|||
<if test="val23 != null and val23 != ''">#{val23},</if> |
|||
<if test="val24 != null and val24 != ''">#{val24},</if> |
|||
<if test="companyCode != null and companyCode != ''">#{companyCode},</if> |
|||
<if test="companyName != null and companyName != ''">#{companyName},</if> |
|||
<if test="orgCode != null and orgCode != ''">#{orgCode},</if> |
|||
<if test="orgName != null and orgName != ''">#{orgName},</if> |
|||
<if test="workType != null and workType != ''">#{workType},</if> |
|||
<if test="countUnitName != null and countUnitName != ''">#{countUnitName},</if> |
|||
<if test="assetId != null and assetId != ''">#{assetId},</if> |
|||
<if test="valUpLimit != null and valUpLimit != ''">#{valUpLimit},</if> |
|||
<if test="valDownLimit != null and valDownLimit != ''">#{valDownLimit},</if> |
|||
<if test="valAvg != null and valAvg != ''">#{valAvg},</if> |
|||
<if test="valTotal != null and valTotal != ''">#{valTotal},</if> |
|||
<if test="valCompute != null and valCompute != ''">#{valCompute},</if> |
|||
|
|||
</trim> |
|||
</insert> |
|||
</mapper> |
Loading…
Reference in new issue