|
@ -11,6 +11,7 @@ |
|
|
<result property="assetCode" column="asset_code" /> |
|
|
<result property="assetCode" column="asset_code" /> |
|
|
<result property="targetModelCode" column="target_model_code" /> |
|
|
<result property="targetModelCode" column="target_model_code" /> |
|
|
<result property="targetName" column="target_name" /> |
|
|
<result property="targetName" column="target_name" /> |
|
|
|
|
|
<result property="targetNameAlias" column="target_name_alias" /> |
|
|
<result property="targetCode" column="target_code" /> |
|
|
<result property="targetCode" column="target_code" /> |
|
|
<result property="targetField" column="target_field" /> |
|
|
<result property="targetField" column="target_field" /> |
|
|
<result property="limitUp" column="limit_up" /> |
|
|
<result property="limitUp" column="limit_up" /> |
|
@ -30,7 +31,7 @@ |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectDcBaseAssetTargetVo"> |
|
|
<sql id="selectDcBaseAssetTargetVo"> |
|
|
select id, asset_id,asset_code, target_model_code, target_name, target_code, target_field, limit_up, limit_down, value_base, flag_avg, flag_sum, flag_compute, sort, tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time from dc_base_asset_target |
|
|
select id, asset_id,asset_code, target_model_code, target_name, target_name_alias, target_code, target_field, limit_up, limit_down, value_base, flag_avg, flag_sum, flag_compute, sort, tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time from dc_base_asset_target |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="selectDcBaseAssetTargetDaoList" parameterType="DcBaseAssetTargetDao" resultMap="DcBaseAssetTargetResult"> |
|
|
<select id="selectDcBaseAssetTargetDaoList" parameterType="DcBaseAssetTargetDao" resultMap="DcBaseAssetTargetResult"> |
|
@ -40,6 +41,7 @@ |
|
|
<if test="assetId != null "> and asset_id = #{assetId}</if> |
|
|
<if test="assetId != null "> and asset_id = #{assetId}</if> |
|
|
<if test="targetModelCode != null and targetModelCode != ''"> and target_model_code = #{targetModelCode}</if> |
|
|
<if test="targetModelCode != null and targetModelCode != ''"> and target_model_code = #{targetModelCode}</if> |
|
|
<if test="targetName != null and targetName != ''"> and target_name like concat('%', #{targetName}, '%')</if> |
|
|
<if test="targetName != null and targetName != ''"> and target_name like concat('%', #{targetName}, '%')</if> |
|
|
|
|
|
<if test="targetNameAlias != null and targetNameAlias != ''"> and target_name_alias like concat('%', #{targetNameAlias}, '%')</if> |
|
|
<if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if> |
|
|
<if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if> |
|
|
<if test="targetField != null and targetField != ''"> and target_field = #{targetField}</if> |
|
|
<if test="targetField != null and targetField != ''"> and target_field = #{targetField}</if> |
|
|
<if test="assetCode != null "> and asset_code = #{assetCode}</if> |
|
|
<if test="assetCode != null "> and asset_code = #{assetCode}</if> |
|
@ -69,6 +71,7 @@ |
|
|
<if test="assetId != null">asset_id,</if> |
|
|
<if test="assetId != null">asset_id,</if> |
|
|
<if test="targetModelCode != null">target_model_code,</if> |
|
|
<if test="targetModelCode != null">target_model_code,</if> |
|
|
<if test="targetName != null">target_name,</if> |
|
|
<if test="targetName != null">target_name,</if> |
|
|
|
|
|
<if test="targetNameAlias != null and targetNameAlias != ''">target_name_alias,</if> |
|
|
<if test="targetCode != null">target_code,</if> |
|
|
<if test="targetCode != null">target_code,</if> |
|
|
<if test="targetField != null">target_field,</if> |
|
|
<if test="targetField != null">target_field,</if> |
|
|
<if test="limitUp != null">limit_up,</if> |
|
|
<if test="limitUp != null">limit_up,</if> |
|
@ -91,6 +94,7 @@ |
|
|
<if test="assetId != null">#{assetId},</if> |
|
|
<if test="assetId != null">#{assetId},</if> |
|
|
<if test="targetModelCode != null">#{targetModelCode},</if> |
|
|
<if test="targetModelCode != null">#{targetModelCode},</if> |
|
|
<if test="targetName != null">#{targetName},</if> |
|
|
<if test="targetName != null">#{targetName},</if> |
|
|
|
|
|
<if test="targetNameAlias != null and targetNameAlias != ''">#{targetNameAlias},</if> |
|
|
<if test="targetCode != null">#{targetCode},</if> |
|
|
<if test="targetCode != null">#{targetCode},</if> |
|
|
<if test="targetField != null">#{targetField},</if> |
|
|
<if test="targetField != null">#{targetField},</if> |
|
|
<if test="limitUp != null">#{limitUp},</if> |
|
|
<if test="limitUp != null">#{limitUp},</if> |
|
@ -117,6 +121,7 @@ |
|
|
<if test="assetId != null">asset_id = #{assetId},</if> |
|
|
<if test="assetId != null">asset_id = #{assetId},</if> |
|
|
<if test="targetModelCode != null">target_model_code = #{targetModelCode},</if> |
|
|
<if test="targetModelCode != null">target_model_code = #{targetModelCode},</if> |
|
|
<if test="targetName != null">target_name = #{targetName},</if> |
|
|
<if test="targetName != null">target_name = #{targetName},</if> |
|
|
|
|
|
<if test="targetNameAlias != null and targetNameAlias != ''">target_name_alias = #{targetNameAlias},</if> |
|
|
<if test="targetCode != null">target_code = #{targetCode},</if> |
|
|
<if test="targetCode != null">target_code = #{targetCode},</if> |
|
|
<if test="targetField != null">target_field = #{targetField},</if> |
|
|
<if test="targetField != null">target_field = #{targetField},</if> |
|
|
<if test="limitUp != null">limit_up = #{limitUp},</if> |
|
|
<if test="limitUp != null">limit_up = #{limitUp},</if> |
|
|