zhousq
1 year ago
7 changed files with 745 additions and 0 deletions
@ -0,0 +1,61 @@ |
|||
package com.lzbi.bi.service; |
|||
|
|||
import java.util.List; |
|||
import com.lzbi.bi.domain.DcBusiTargetAdjust; |
|||
|
|||
/** |
|||
* 资产指标调整单Service接口 |
|||
* |
|||
* @author zhousq |
|||
* @date 2023-11-23 |
|||
*/ |
|||
public interface IDcBusiTargetAdjustService |
|||
{ |
|||
/** |
|||
* 查询资产指标调整单 |
|||
* |
|||
* @param id 资产指标调整单主键 |
|||
* @return 资产指标调整单 |
|||
*/ |
|||
public DcBusiTargetAdjust selectDcBusiTargetAdjustById(Long id); |
|||
|
|||
/** |
|||
* 查询资产指标调整单列表 |
|||
* |
|||
* @param dcBusiTargetAdjust 资产指标调整单 |
|||
* @return 资产指标调整单集合 |
|||
*/ |
|||
public List<DcBusiTargetAdjust> selectDcBusiTargetAdjustList(DcBusiTargetAdjust dcBusiTargetAdjust); |
|||
|
|||
/** |
|||
* 新增资产指标调整单 |
|||
* |
|||
* @param dcBusiTargetAdjust 资产指标调整单 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertDcBusiTargetAdjust(DcBusiTargetAdjust dcBusiTargetAdjust); |
|||
|
|||
/** |
|||
* 修改资产指标调整单 |
|||
* |
|||
* @param dcBusiTargetAdjust 资产指标调整单 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateDcBusiTargetAdjust(DcBusiTargetAdjust dcBusiTargetAdjust); |
|||
|
|||
/** |
|||
* 批量删除资产指标调整单 |
|||
* |
|||
* @param ids 需要删除的资产指标调整单主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDcBusiTargetAdjustByIds(Long[] ids); |
|||
|
|||
/** |
|||
* 删除资产指标调整单信息 |
|||
* |
|||
* @param id 资产指标调整单主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDcBusiTargetAdjustById(Long id); |
|||
} |
@ -0,0 +1,61 @@ |
|||
package com.lzbi.bi.service; |
|||
|
|||
import java.util.List; |
|||
import com.lzbi.bi.domain.DcBusiTargetDraft; |
|||
|
|||
/** |
|||
* 指标数据底稿Service接口 |
|||
* |
|||
* @author zhousq |
|||
* @date 2023-11-23 |
|||
*/ |
|||
public interface IDcBusiTargetDraftService |
|||
{ |
|||
/** |
|||
* 查询指标数据底稿 |
|||
* |
|||
* @param id 指标数据底稿主键 |
|||
* @return 指标数据底稿 |
|||
*/ |
|||
public DcBusiTargetDraft selectDcBusiTargetDraftById(Long id); |
|||
|
|||
/** |
|||
* 查询指标数据底稿列表 |
|||
* |
|||
* @param dcBusiTargetDraft 指标数据底稿 |
|||
* @return 指标数据底稿集合 |
|||
*/ |
|||
public List<DcBusiTargetDraft> selectDcBusiTargetDraftList(DcBusiTargetDraft dcBusiTargetDraft); |
|||
|
|||
/** |
|||
* 新增指标数据底稿 |
|||
* |
|||
* @param dcBusiTargetDraft 指标数据底稿 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertDcBusiTargetDraft(DcBusiTargetDraft dcBusiTargetDraft); |
|||
|
|||
/** |
|||
* 修改指标数据底稿 |
|||
* |
|||
* @param dcBusiTargetDraft 指标数据底稿 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateDcBusiTargetDraft(DcBusiTargetDraft dcBusiTargetDraft); |
|||
|
|||
/** |
|||
* 批量删除指标数据底稿 |
|||
* |
|||
* @param ids 需要删除的指标数据底稿主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDcBusiTargetDraftByIds(Long[] ids); |
|||
|
|||
/** |
|||
* 删除指标数据底稿信息 |
|||
* |
|||
* @param id 指标数据底稿主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDcBusiTargetDraftById(Long id); |
|||
} |
@ -0,0 +1,93 @@ |
|||
package com.lzbi.bi.service.impl; |
|||
|
|||
import java.util.List; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.lzbi.bi.mapper.DcBusiTargetAdjustMapper; |
|||
import com.lzbi.bi.domain.DcBusiTargetAdjust; |
|||
import com.lzbi.bi.service.IDcBusiTargetAdjustService; |
|||
|
|||
/** |
|||
* 资产指标调整单Service业务层处理 |
|||
* |
|||
* @author zhousq |
|||
* @date 2023-11-23 |
|||
*/ |
|||
@Service |
|||
public class DcBusiTargetAdjustServiceImpl implements IDcBusiTargetAdjustService |
|||
{ |
|||
@Autowired |
|||
private DcBusiTargetAdjustMapper dcBusiTargetAdjustMapper; |
|||
|
|||
/** |
|||
* 查询资产指标调整单 |
|||
* |
|||
* @param id 资产指标调整单主键 |
|||
* @return 资产指标调整单 |
|||
*/ |
|||
@Override |
|||
public DcBusiTargetAdjust selectDcBusiTargetAdjustById(Long id) |
|||
{ |
|||
return dcBusiTargetAdjustMapper.selectDcBusiTargetAdjustById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询资产指标调整单列表 |
|||
* |
|||
* @param dcBusiTargetAdjust 资产指标调整单 |
|||
* @return 资产指标调整单 |
|||
*/ |
|||
@Override |
|||
public List<DcBusiTargetAdjust> selectDcBusiTargetAdjustList(DcBusiTargetAdjust dcBusiTargetAdjust) |
|||
{ |
|||
return dcBusiTargetAdjustMapper.selectDcBusiTargetAdjustList(dcBusiTargetAdjust); |
|||
} |
|||
|
|||
/** |
|||
* 新增资产指标调整单 |
|||
* |
|||
* @param dcBusiTargetAdjust 资产指标调整单 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertDcBusiTargetAdjust(DcBusiTargetAdjust dcBusiTargetAdjust) |
|||
{ |
|||
return dcBusiTargetAdjustMapper.insertDcBusiTargetAdjust(dcBusiTargetAdjust); |
|||
} |
|||
|
|||
/** |
|||
* 修改资产指标调整单 |
|||
* |
|||
* @param dcBusiTargetAdjust 资产指标调整单 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateDcBusiTargetAdjust(DcBusiTargetAdjust dcBusiTargetAdjust) |
|||
{ |
|||
return dcBusiTargetAdjustMapper.updateDcBusiTargetAdjust(dcBusiTargetAdjust); |
|||
} |
|||
|
|||
/** |
|||
* 批量删除资产指标调整单 |
|||
* |
|||
* @param ids 需要删除的资产指标调整单主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteDcBusiTargetAdjustByIds(Long[] ids) |
|||
{ |
|||
return dcBusiTargetAdjustMapper.deleteDcBusiTargetAdjustByIds(ids); |
|||
} |
|||
|
|||
/** |
|||
* 删除资产指标调整单信息 |
|||
* |
|||
* @param id 资产指标调整单主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteDcBusiTargetAdjustById(Long id) |
|||
{ |
|||
return dcBusiTargetAdjustMapper.deleteDcBusiTargetAdjustById(id); |
|||
} |
|||
} |
@ -0,0 +1,93 @@ |
|||
package com.lzbi.bi.service.impl; |
|||
|
|||
import java.util.List; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.lzbi.bi.mapper.DcBusiTargetDraftMapper; |
|||
import com.lzbi.bi.domain.DcBusiTargetDraft; |
|||
import com.lzbi.bi.service.IDcBusiTargetDraftService; |
|||
|
|||
/** |
|||
* 指标数据底稿Service业务层处理 |
|||
* |
|||
* @author zhousq |
|||
* @date 2023-11-23 |
|||
*/ |
|||
@Service |
|||
public class DcBusiTargetDraftServiceImpl implements IDcBusiTargetDraftService |
|||
{ |
|||
@Autowired |
|||
private DcBusiTargetDraftMapper dcBusiTargetDraftMapper; |
|||
|
|||
/** |
|||
* 查询指标数据底稿 |
|||
* |
|||
* @param id 指标数据底稿主键 |
|||
* @return 指标数据底稿 |
|||
*/ |
|||
@Override |
|||
public DcBusiTargetDraft selectDcBusiTargetDraftById(Long id) |
|||
{ |
|||
return dcBusiTargetDraftMapper.selectDcBusiTargetDraftById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询指标数据底稿列表 |
|||
* |
|||
* @param dcBusiTargetDraft 指标数据底稿 |
|||
* @return 指标数据底稿 |
|||
*/ |
|||
@Override |
|||
public List<DcBusiTargetDraft> selectDcBusiTargetDraftList(DcBusiTargetDraft dcBusiTargetDraft) |
|||
{ |
|||
return dcBusiTargetDraftMapper.selectDcBusiTargetDraftList(dcBusiTargetDraft); |
|||
} |
|||
|
|||
/** |
|||
* 新增指标数据底稿 |
|||
* |
|||
* @param dcBusiTargetDraft 指标数据底稿 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertDcBusiTargetDraft(DcBusiTargetDraft dcBusiTargetDraft) |
|||
{ |
|||
return dcBusiTargetDraftMapper.insertDcBusiTargetDraft(dcBusiTargetDraft); |
|||
} |
|||
|
|||
/** |
|||
* 修改指标数据底稿 |
|||
* |
|||
* @param dcBusiTargetDraft 指标数据底稿 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateDcBusiTargetDraft(DcBusiTargetDraft dcBusiTargetDraft) |
|||
{ |
|||
return dcBusiTargetDraftMapper.updateDcBusiTargetDraft(dcBusiTargetDraft); |
|||
} |
|||
|
|||
/** |
|||
* 批量删除指标数据底稿 |
|||
* |
|||
* @param ids 需要删除的指标数据底稿主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteDcBusiTargetDraftByIds(Long[] ids) |
|||
{ |
|||
return dcBusiTargetDraftMapper.deleteDcBusiTargetDraftByIds(ids); |
|||
} |
|||
|
|||
/** |
|||
* 删除指标数据底稿信息 |
|||
* |
|||
* @param id 指标数据底稿主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteDcBusiTargetDraftById(Long id) |
|||
{ |
|||
return dcBusiTargetDraftMapper.deleteDcBusiTargetDraftById(id); |
|||
} |
|||
} |
@ -0,0 +1,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="DcBusiTargetAdjust" id="DcBusiTargetAdjustResult"> |
|||
<result property="tenantId" column="TENANT_ID" /> |
|||
<result property="REVISION" column="REVISION" /> |
|||
<result property="createdBy" column="CREATED_BY" /> |
|||
<result property="createdTime" column="CREATED_TIME" /> |
|||
<result property="updatedBy" column="UPDATED_BY" /> |
|||
<result property="updatedTime" column="UPDATED_TIME" /> |
|||
<result property="deleteBy" column="DELETE_BY" /> |
|||
<result property="deleteTime" column="DELETE_TIME" /> |
|||
<result property="billSerial" column="bill_serial" /> |
|||
<result property="biilType" column="biil_type" /> |
|||
<result property="targetCode" column="target_code" /> |
|||
<result property="assetId" column="asset_id" /> |
|||
<result property="valOrginal" column="val_orginal" /> |
|||
<result property="valAdjust" column="val_adjust" /> |
|||
<result property="valResult" column="val_result" /> |
|||
<result property="id" column="id" /> |
|||
<result property="dateAdjust" column="date_adjust" /> |
|||
<result property="hourAdjust" column="hour_adjust" /> |
|||
<result property="dateAdjustStr" column="date_adjust_str" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectDcBusiTargetAdjustVo"> |
|||
select TENANT_ID, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETE_BY, DELETE_TIME, bill_serial, biil_type, target_code, asset_id, val_orginal, val_adjust, val_result, id, date_adjust, hour_adjust, date_adjust_str from dc_busi_target_adjust |
|||
</sql> |
|||
|
|||
<select id="selectDcBusiTargetAdjustList" parameterType="DcBusiTargetAdjust" resultMap="DcBusiTargetAdjustResult"> |
|||
<include refid="selectDcBusiTargetAdjustVo"/> |
|||
<where> |
|||
<if test="tenantId != null and tenantId != ''"> and TENANT_ID = #{tenantId}</if> |
|||
<if test="REVISION != null "> and REVISION = #{REVISION}</if> |
|||
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if> |
|||
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if> |
|||
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if> |
|||
<if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if> |
|||
<if test="deleteBy != null and deleteBy != ''"> and DELETE_BY = #{deleteBy}</if> |
|||
<if test="deleteTime != null "> and DELETE_TIME = #{deleteTime}</if> |
|||
<if test="billSerial != null and billSerial != ''"> and bill_serial = #{billSerial}</if> |
|||
<if test="biilType != null and biilType != ''"> and biil_type = #{biilType}</if> |
|||
<if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if> |
|||
<if test="assetId != null "> and asset_id = #{assetId}</if> |
|||
<if test="valOrginal != null "> and val_orginal = #{valOrginal}</if> |
|||
<if test="valAdjust != null "> and val_adjust = #{valAdjust}</if> |
|||
<if test="valResult != null "> and val_result = #{valResult}</if> |
|||
<if test="dateAdjust != null "> and date_adjust = #{dateAdjust}</if> |
|||
<if test="hourAdjust != null and hourAdjust != ''"> and hour_adjust = #{hourAdjust}</if> |
|||
<if test="dateAdjustStr != null and dateAdjustStr != ''"> and date_adjust_str = #{dateAdjustStr}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectDcBusiTargetAdjustById" parameterType="Long" resultMap="DcBusiTargetAdjustResult"> |
|||
<include refid="selectDcBusiTargetAdjustVo"/> |
|||
where id = #{id} |
|||
</select> |
|||
|
|||
<insert id="insertDcBusiTargetAdjust" parameterType="DcBusiTargetAdjust" useGeneratedKeys="true" keyProperty="id"> |
|||
insert into dc_busi_target_adjust |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="tenantId != null">TENANT_ID,</if> |
|||
<if test="REVISION != null">REVISION,</if> |
|||
<if test="createdBy != null">CREATED_BY,</if> |
|||
<if test="createdTime != null">CREATED_TIME,</if> |
|||
<if test="updatedBy != null">UPDATED_BY,</if> |
|||
<if test="updatedTime != null">UPDATED_TIME,</if> |
|||
<if test="deleteBy != null">DELETE_BY,</if> |
|||
<if test="deleteTime != null">DELETE_TIME,</if> |
|||
<if test="billSerial != null">bill_serial,</if> |
|||
<if test="biilType != null">biil_type,</if> |
|||
<if test="targetCode != null">target_code,</if> |
|||
<if test="assetId != null">asset_id,</if> |
|||
<if test="valOrginal != null">val_orginal,</if> |
|||
<if test="valAdjust != null">val_adjust,</if> |
|||
<if test="valResult != null">val_result,</if> |
|||
<if test="dateAdjust != null">date_adjust,</if> |
|||
<if test="hourAdjust != null">hour_adjust,</if> |
|||
<if test="dateAdjustStr != null">date_adjust_str,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="tenantId != null">#{tenantId},</if> |
|||
<if test="REVISION != null">#{REVISION},</if> |
|||
<if test="createdBy != null">#{createdBy},</if> |
|||
<if test="createdTime != null">#{createdTime},</if> |
|||
<if test="updatedBy != null">#{updatedBy},</if> |
|||
<if test="updatedTime != null">#{updatedTime},</if> |
|||
<if test="deleteBy != null">#{deleteBy},</if> |
|||
<if test="deleteTime != null">#{deleteTime},</if> |
|||
<if test="billSerial != null">#{billSerial},</if> |
|||
<if test="biilType != null">#{biilType},</if> |
|||
<if test="targetCode != null">#{targetCode},</if> |
|||
<if test="assetId != null">#{assetId},</if> |
|||
<if test="valOrginal != null">#{valOrginal},</if> |
|||
<if test="valAdjust != null">#{valAdjust},</if> |
|||
<if test="valResult != null">#{valResult},</if> |
|||
<if test="dateAdjust != null">#{dateAdjust},</if> |
|||
<if test="hourAdjust != null">#{hourAdjust},</if> |
|||
<if test="dateAdjustStr != null">#{dateAdjustStr},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateDcBusiTargetAdjust" parameterType="DcBusiTargetAdjust"> |
|||
update dc_busi_target_adjust |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="tenantId != null">TENANT_ID = #{tenantId},</if> |
|||
<if test="REVISION != null">REVISION = #{REVISION},</if> |
|||
<if test="createdBy != null">CREATED_BY = #{createdBy},</if> |
|||
<if test="createdTime != null">CREATED_TIME = #{createdTime},</if> |
|||
<if test="updatedBy != null">UPDATED_BY = #{updatedBy},</if> |
|||
<if test="updatedTime != null">UPDATED_TIME = #{updatedTime},</if> |
|||
<if test="deleteBy != null">DELETE_BY = #{deleteBy},</if> |
|||
<if test="deleteTime != null">DELETE_TIME = #{deleteTime},</if> |
|||
<if test="billSerial != null">bill_serial = #{billSerial},</if> |
|||
<if test="biilType != null">biil_type = #{biilType},</if> |
|||
<if test="targetCode != null">target_code = #{targetCode},</if> |
|||
<if test="assetId != null">asset_id = #{assetId},</if> |
|||
<if test="valOrginal != null">val_orginal = #{valOrginal},</if> |
|||
<if test="valAdjust != null">val_adjust = #{valAdjust},</if> |
|||
<if test="valResult != null">val_result = #{valResult},</if> |
|||
<if test="dateAdjust != null">date_adjust = #{dateAdjust},</if> |
|||
<if test="hourAdjust != null">hour_adjust = #{hourAdjust},</if> |
|||
<if test="dateAdjustStr != null">date_adjust_str = #{dateAdjustStr},</if> |
|||
</trim> |
|||
where id = #{id} |
|||
</update> |
|||
|
|||
<delete id="deleteDcBusiTargetAdjustById" parameterType="Long"> |
|||
delete from dc_busi_target_adjust where id = #{id} |
|||
</delete> |
|||
|
|||
<delete id="deleteDcBusiTargetAdjustByIds" parameterType="String"> |
|||
delete from dc_busi_target_adjust where id in |
|||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|||
#{id} |
|||
</foreach> |
|||
</delete> |
|||
</mapper> |
@ -0,0 +1,296 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.lzbi.bi.mapper.DcBusiTargetDraftMapper"> |
|||
|
|||
<resultMap type="DcBusiTargetDraft" id="DcBusiTargetDraftResult"> |
|||
<result property="tenantId" column="TENANT_ID" /> |
|||
<result property="REVISION" column="REVISION" /> |
|||
<result property="createdBy" column="CREATED_BY" /> |
|||
<result property="createdTime" column="CREATED_TIME" /> |
|||
<result property="updatedBy" column="UPDATED_BY" /> |
|||
<result property="updatedTime" column="UPDATED_TIME" /> |
|||
<result property="deleteBy" column="DELETE_BY" /> |
|||
<result property="deleteTime" column="DELETE_TIME" /> |
|||
<result property="id" column="id" /> |
|||
<result property="targetId" column="target_id" /> |
|||
<result property="targetCode" column="target_code" /> |
|||
<result property="countYear" column="count_year" /> |
|||
<result property="countMonth" column="count_month" /> |
|||
<result property="countDay" column="count_day" /> |
|||
<result property="val01" column="val01" /> |
|||
<result property="val02" column="val02" /> |
|||
<result property="val03" column="val03" /> |
|||
<result property="val04" column="val04" /> |
|||
<result property="val05" column="val05" /> |
|||
<result property="val06" column="val06" /> |
|||
<result property="val07" column="val07" /> |
|||
<result property="val08" column="val08" /> |
|||
<result property="val09" column="val09" /> |
|||
<result property="val10" column="val10" /> |
|||
<result property="val11" column="val11" /> |
|||
<result property="val12" column="val12" /> |
|||
<result property="val13" column="val13" /> |
|||
<result property="val14" column="val14" /> |
|||
<result property="val15" column="val15" /> |
|||
<result property="val16" column="val16" /> |
|||
<result property="val17" column="val17" /> |
|||
<result property="val18" column="val18" /> |
|||
<result property="val19" column="val19" /> |
|||
<result property="val20" column="val20" /> |
|||
<result property="val21" column="val21" /> |
|||
<result property="val22" column="val22" /> |
|||
<result property="val23" column="val23" /> |
|||
<result property="val24" column="val24" /> |
|||
<result property="companyCode" column="company_code" /> |
|||
<result property="companyName" column="company_name" /> |
|||
<result property="orgCode" column="org_code" /> |
|||
<result property="orgName" column="org_name" /> |
|||
<result property="workType" column="work_type" /> |
|||
<result property="countUnitName" column="count_unit_name" /> |
|||
<result property="assetId" column="asset_id" /> |
|||
<result property="valUpLimit" column="val_up_limit" /> |
|||
<result property="valDownLimit" column="val_down_limit" /> |
|||
<result property="valAvg" column="val_avg" /> |
|||
<result property="valTotal" column="val_total" /> |
|||
<result property="valCompute" column="val_compute" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectDcBusiTargetDraftVo"> |
|||
select TENANT_ID, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETE_BY, DELETE_TIME, id, target_id, target_code, count_year, count_month, count_day, val01, val02, val03, val04, val05, val06, val07, val08, val09, val10, val11, val12, val13, val14, val15, val16, val17, val18, val19, val20, val21, val22, val23, val24, company_code, company_name, org_code, org_name, work_type, count_unit_name, asset_id, val_up_limit, val_down_limit, val_avg, val_total, val_compute from dc_busi_target_draft |
|||
</sql> |
|||
|
|||
<select id="selectDcBusiTargetDraftList" parameterType="DcBusiTargetDraft" resultMap="DcBusiTargetDraftResult"> |
|||
<include refid="selectDcBusiTargetDraftVo"/> |
|||
<where> |
|||
<if test="tenantId != null and tenantId != ''"> and TENANT_ID = #{tenantId}</if> |
|||
<if test="REVISION != null "> and REVISION = #{REVISION}</if> |
|||
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if> |
|||
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if> |
|||
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if> |
|||
<if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if> |
|||
<if test="deleteBy != null and deleteBy != ''"> and DELETE_BY = #{deleteBy}</if> |
|||
<if test="deleteTime != null "> and DELETE_TIME = #{deleteTime}</if> |
|||
<if test="targetId != null "> and target_id = #{targetId}</if> |
|||
<if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if> |
|||
<if test="countYear != null and countYear != ''"> and count_year = #{countYear}</if> |
|||
<if test="countMonth != null and countMonth != ''"> and count_month = #{countMonth}</if> |
|||
<if test="countDay != null and countDay != ''"> and count_day = #{countDay}</if> |
|||
<if test="val01 != null "> and val01 = #{val01}</if> |
|||
<if test="val02 != null "> and val02 = #{val02}</if> |
|||
<if test="val03 != null "> and val03 = #{val03}</if> |
|||
<if test="val04 != null "> and val04 = #{val04}</if> |
|||
<if test="val05 != null "> and val05 = #{val05}</if> |
|||
<if test="val06 != null "> and val06 = #{val06}</if> |
|||
<if test="val07 != null "> and val07 = #{val07}</if> |
|||
<if test="val08 != null "> and val08 = #{val08}</if> |
|||
<if test="val09 != null "> and val09 = #{val09}</if> |
|||
<if test="val10 != null "> and val10 = #{val10}</if> |
|||
<if test="val11 != null "> and val11 = #{val11}</if> |
|||
<if test="val12 != null "> and val12 = #{val12}</if> |
|||
<if test="val13 != null "> and val13 = #{val13}</if> |
|||
<if test="val14 != null "> and val14 = #{val14}</if> |
|||
<if test="val15 != null "> and val15 = #{val15}</if> |
|||
<if test="val16 != null "> and val16 = #{val16}</if> |
|||
<if test="val17 != null "> and val17 = #{val17}</if> |
|||
<if test="val18 != null "> and val18 = #{val18}</if> |
|||
<if test="val19 != null "> and val19 = #{val19}</if> |
|||
<if test="val20 != null "> and val20 = #{val20}</if> |
|||
<if test="val21 != null "> and val21 = #{val21}</if> |
|||
<if test="val22 != null "> and val22 = #{val22}</if> |
|||
<if test="val23 != null "> and val23 = #{val23}</if> |
|||
<if test="val24 != null "> and val24 = #{val24}</if> |
|||
<if test="companyCode != null and companyCode != ''"> and company_code = #{companyCode}</if> |
|||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if> |
|||
<if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
|||
<if test="orgName != null and orgName != ''"> and org_name like concat('%', #{orgName}, '%')</if> |
|||
<if test="workType != null and workType != ''"> and work_type = #{workType}</if> |
|||
<if test="countUnitName != null and countUnitName != ''"> and count_unit_name like concat('%', #{countUnitName}, '%')</if> |
|||
<if test="assetId != null "> and asset_id = #{assetId}</if> |
|||
<if test="valUpLimit != null "> and val_up_limit = #{valUpLimit}</if> |
|||
<if test="valDownLimit != null "> and val_down_limit = #{valDownLimit}</if> |
|||
<if test="valAvg != null "> and val_avg = #{valAvg}</if> |
|||
<if test="valTotal != null "> and val_total = #{valTotal}</if> |
|||
<if test="valCompute != null "> and val_compute = #{valCompute}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectDcBusiTargetDraftById" parameterType="Long" resultMap="DcBusiTargetDraftResult"> |
|||
<include refid="selectDcBusiTargetDraftVo"/> |
|||
where id = #{id} |
|||
</select> |
|||
|
|||
<insert id="insertDcBusiTargetDraft" parameterType="DcBusiTargetDraft" useGeneratedKeys="true" keyProperty="id"> |
|||
insert into dc_busi_target_draft |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="tenantId != null">TENANT_ID,</if> |
|||
<if test="REVISION != null">REVISION,</if> |
|||
<if test="createdBy != null">CREATED_BY,</if> |
|||
<if test="createdTime != null">CREATED_TIME,</if> |
|||
<if test="updatedBy != null">UPDATED_BY,</if> |
|||
<if test="updatedTime != null">UPDATED_TIME,</if> |
|||
<if test="deleteBy != null">DELETE_BY,</if> |
|||
<if test="deleteTime != null">DELETE_TIME,</if> |
|||
<if test="targetId != null">target_id,</if> |
|||
<if test="targetCode != null">target_code,</if> |
|||
<if test="countYear != null">count_year,</if> |
|||
<if test="countMonth != null">count_month,</if> |
|||
<if test="countDay != null">count_day,</if> |
|||
<if test="val01 != null">val01,</if> |
|||
<if test="val02 != null">val02,</if> |
|||
<if test="val03 != null">val03,</if> |
|||
<if test="val04 != null">val04,</if> |
|||
<if test="val05 != null">val05,</if> |
|||
<if test="val06 != null">val06,</if> |
|||
<if test="val07 != null">val07,</if> |
|||
<if test="val08 != null">val08,</if> |
|||
<if test="val09 != null">val09,</if> |
|||
<if test="val10 != null">val10,</if> |
|||
<if test="val11 != null">val11,</if> |
|||
<if test="val12 != null">val12,</if> |
|||
<if test="val13 != null">val13,</if> |
|||
<if test="val14 != null">val14,</if> |
|||
<if test="val15 != null">val15,</if> |
|||
<if test="val16 != null">val16,</if> |
|||
<if test="val17 != null">val17,</if> |
|||
<if test="val18 != null">val18,</if> |
|||
<if test="val19 != null">val19,</if> |
|||
<if test="val20 != null">val20,</if> |
|||
<if test="val21 != null">val21,</if> |
|||
<if test="val22 != null">val22,</if> |
|||
<if test="val23 != null">val23,</if> |
|||
<if test="val24 != null">val24,</if> |
|||
<if test="companyCode != null">company_code,</if> |
|||
<if test="companyName != null">company_name,</if> |
|||
<if test="orgCode != null">org_code,</if> |
|||
<if test="orgName != null">org_name,</if> |
|||
<if test="workType != null">work_type,</if> |
|||
<if test="countUnitName != null">count_unit_name,</if> |
|||
<if test="assetId != null">asset_id,</if> |
|||
<if test="valUpLimit != null">val_up_limit,</if> |
|||
<if test="valDownLimit != null">val_down_limit,</if> |
|||
<if test="valAvg != null">val_avg,</if> |
|||
<if test="valTotal != null">val_total,</if> |
|||
<if test="valCompute != null">val_compute,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="tenantId != null">#{tenantId},</if> |
|||
<if test="REVISION != null">#{REVISION},</if> |
|||
<if test="createdBy != null">#{createdBy},</if> |
|||
<if test="createdTime != null">#{createdTime},</if> |
|||
<if test="updatedBy != null">#{updatedBy},</if> |
|||
<if test="updatedTime != null">#{updatedTime},</if> |
|||
<if test="deleteBy != null">#{deleteBy},</if> |
|||
<if test="deleteTime != null">#{deleteTime},</if> |
|||
<if test="targetId != null">#{targetId},</if> |
|||
<if test="targetCode != null">#{targetCode},</if> |
|||
<if test="countYear != null">#{countYear},</if> |
|||
<if test="countMonth != null">#{countMonth},</if> |
|||
<if test="countDay != null">#{countDay},</if> |
|||
<if test="val01 != null">#{val01},</if> |
|||
<if test="val02 != null">#{val02},</if> |
|||
<if test="val03 != null">#{val03},</if> |
|||
<if test="val04 != null">#{val04},</if> |
|||
<if test="val05 != null">#{val05},</if> |
|||
<if test="val06 != null">#{val06},</if> |
|||
<if test="val07 != null">#{val07},</if> |
|||
<if test="val08 != null">#{val08},</if> |
|||
<if test="val09 != null">#{val09},</if> |
|||
<if test="val10 != null">#{val10},</if> |
|||
<if test="val11 != null">#{val11},</if> |
|||
<if test="val12 != null">#{val12},</if> |
|||
<if test="val13 != null">#{val13},</if> |
|||
<if test="val14 != null">#{val14},</if> |
|||
<if test="val15 != null">#{val15},</if> |
|||
<if test="val16 != null">#{val16},</if> |
|||
<if test="val17 != null">#{val17},</if> |
|||
<if test="val18 != null">#{val18},</if> |
|||
<if test="val19 != null">#{val19},</if> |
|||
<if test="val20 != null">#{val20},</if> |
|||
<if test="val21 != null">#{val21},</if> |
|||
<if test="val22 != null">#{val22},</if> |
|||
<if test="val23 != null">#{val23},</if> |
|||
<if test="val24 != null">#{val24},</if> |
|||
<if test="companyCode != null">#{companyCode},</if> |
|||
<if test="companyName != null">#{companyName},</if> |
|||
<if test="orgCode != null">#{orgCode},</if> |
|||
<if test="orgName != null">#{orgName},</if> |
|||
<if test="workType != null">#{workType},</if> |
|||
<if test="countUnitName != null">#{countUnitName},</if> |
|||
<if test="assetId != null">#{assetId},</if> |
|||
<if test="valUpLimit != null">#{valUpLimit},</if> |
|||
<if test="valDownLimit != null">#{valDownLimit},</if> |
|||
<if test="valAvg != null">#{valAvg},</if> |
|||
<if test="valTotal != null">#{valTotal},</if> |
|||
<if test="valCompute != null">#{valCompute},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateDcBusiTargetDraft" parameterType="DcBusiTargetDraft"> |
|||
update dc_busi_target_draft |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="tenantId != null">TENANT_ID = #{tenantId},</if> |
|||
<if test="REVISION != null">REVISION = #{REVISION},</if> |
|||
<if test="createdBy != null">CREATED_BY = #{createdBy},</if> |
|||
<if test="createdTime != null">CREATED_TIME = #{createdTime},</if> |
|||
<if test="updatedBy != null">UPDATED_BY = #{updatedBy},</if> |
|||
<if test="updatedTime != null">UPDATED_TIME = #{updatedTime},</if> |
|||
<if test="deleteBy != null">DELETE_BY = #{deleteBy},</if> |
|||
<if test="deleteTime != null">DELETE_TIME = #{deleteTime},</if> |
|||
<if test="targetId != null">target_id = #{targetId},</if> |
|||
<if test="targetCode != null">target_code = #{targetCode},</if> |
|||
<if test="countYear != null">count_year = #{countYear},</if> |
|||
<if test="countMonth != null">count_month = #{countMonth},</if> |
|||
<if test="countDay != null">count_day = #{countDay},</if> |
|||
<if test="val01 != null">val01 = #{val01},</if> |
|||
<if test="val02 != null">val02 = #{val02},</if> |
|||
<if test="val03 != null">val03 = #{val03},</if> |
|||
<if test="val04 != null">val04 = #{val04},</if> |
|||
<if test="val05 != null">val05 = #{val05},</if> |
|||
<if test="val06 != null">val06 = #{val06},</if> |
|||
<if test="val07 != null">val07 = #{val07},</if> |
|||
<if test="val08 != null">val08 = #{val08},</if> |
|||
<if test="val09 != null">val09 = #{val09},</if> |
|||
<if test="val10 != null">val10 = #{val10},</if> |
|||
<if test="val11 != null">val11 = #{val11},</if> |
|||
<if test="val12 != null">val12 = #{val12},</if> |
|||
<if test="val13 != null">val13 = #{val13},</if> |
|||
<if test="val14 != null">val14 = #{val14},</if> |
|||
<if test="val15 != null">val15 = #{val15},</if> |
|||
<if test="val16 != null">val16 = #{val16},</if> |
|||
<if test="val17 != null">val17 = #{val17},</if> |
|||
<if test="val18 != null">val18 = #{val18},</if> |
|||
<if test="val19 != null">val19 = #{val19},</if> |
|||
<if test="val20 != null">val20 = #{val20},</if> |
|||
<if test="val21 != null">val21 = #{val21},</if> |
|||
<if test="val22 != null">val22 = #{val22},</if> |
|||
<if test="val23 != null">val23 = #{val23},</if> |
|||
<if test="val24 != null">val24 = #{val24},</if> |
|||
<if test="companyCode != null">company_code = #{companyCode},</if> |
|||
<if test="companyName != null">company_name = #{companyName},</if> |
|||
<if test="orgCode != null">org_code = #{orgCode},</if> |
|||
<if test="orgName != null">org_name = #{orgName},</if> |
|||
<if test="workType != null">work_type = #{workType},</if> |
|||
<if test="countUnitName != null">count_unit_name = #{countUnitName},</if> |
|||
<if test="assetId != null">asset_id = #{assetId},</if> |
|||
<if test="valUpLimit != null">val_up_limit = #{valUpLimit},</if> |
|||
<if test="valDownLimit != null">val_down_limit = #{valDownLimit},</if> |
|||
<if test="valAvg != null">val_avg = #{valAvg},</if> |
|||
<if test="valTotal != null">val_total = #{valTotal},</if> |
|||
<if test="valCompute != null">val_compute = #{valCompute},</if> |
|||
</trim> |
|||
where id = #{id} |
|||
</update> |
|||
|
|||
<delete id="deleteDcBusiTargetDraftById" parameterType="Long"> |
|||
delete from dc_busi_target_draft where id = #{id} |
|||
</delete> |
|||
|
|||
<delete id="deleteDcBusiTargetDraftByIds" parameterType="String"> |
|||
delete from dc_busi_target_draft where id in |
|||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|||
#{id} |
|||
</foreach> |
|||
</delete> |
|||
</mapper> |
Binary file not shown.
Loading…
Reference in new issue