|
|
@ -57,10 +57,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="val23" column="val23" /> |
|
|
|
<result property="val24" column="val24" /> |
|
|
|
<result property="assetName" column="asset_name" /> |
|
|
|
<result property="valTotal" column="val_total" /> |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<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 |
|
|
|
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,val_total from dc_busi_param_draft_day |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectDcBusiParamDraftDayList" parameterType="DcBusiParamDraftDay" resultMap="DcBusiParamDraftDayResult"> |
|
|
@ -82,12 +84,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<include refid="selectDcBusiParamDraftDayVo"/> |
|
|
|
where id = #{id} |
|
|
|
</select> |
|
|
|
<select id="selectOneByParam" parameterType="ParamDraftQueryVo" resultMap="DcBusiParamDraftDayResult"> |
|
|
|
<select id="selectOneByParam" parameterType="DcBusiParamDraftDay" resultMap="DcBusiParamDraftDayResult"> |
|
|
|
<include refid="selectDcBusiParamDraftDayVo"/> |
|
|
|
where id = #{id} |
|
|
|
<where> |
|
|
|
<if test="id != null "> and id = #{id}</if> |
|
|
|
<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="paramFieldCode != null and paramFieldCode != ''"> and param_field_code = #{paramFieldCode}</if> |
|
|
|
<if test="paramCode != null and paramCode != ''"> and param_code = #{paramCode}</if> |
|
|
|
<if test="countDate != null and countDate != ''"> and count_date = #{countDate}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
<insert id="insertDcBusiParamDraftDay" parameterType="DcBusiParamDraftDay" useGeneratedKeys="true" keyProperty="id"> |
|
|
@ -144,6 +151,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="val23 != null">val23,</if> |
|
|
|
<if test="val24 != null">val24,</if> |
|
|
|
<if test="assetName != null">asset_name,</if> |
|
|
|
<if test="valTotal != null">val_total,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="tenantId != null">#{tenantId},</if> |
|
|
@ -161,7 +169,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<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="paramFieldCode != null">#{paramFieldCode},</if> |
|
|
|
<if test="paramFieldName != null">#{paramFieldName},</if> |
|
|
|
<if test="targetUint != null">#{targetUint},</if> |
|
|
|
<if test="countDate != null">#{countDate},</if> |
|
|
|
<if test="valAvg != null">#{valAvg},</if> |
|
|
@ -196,6 +205,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="val23 != null">#{val23},</if> |
|
|
|
<if test="val24 != null">#{val24},</if> |
|
|
|
<if test="assetName != null">#{assetName},</if> |
|
|
|
<if test="valTotal != null">#{valTotal},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -253,6 +263,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="val23 != null">val23 = #{val23},</if> |
|
|
|
<if test="val24 != null">val24 = #{val24},</if> |
|
|
|
<if test="assetName != null">asset_name = #{assetName},</if> |
|
|
|
<if test="valTotal != null">val_total=#{valTotal},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|