|
@@ -84,10 +84,7 @@
|
|
|
<select id="queryByClassCodes" resultType="com.persagy.dmp.define.entity.ObjectInfoDefine" resultMap="BaseResultMap">
|
|
|
select ${ew.sqlSelect}
|
|
|
from ( <include refid="InfoTableSQL"/> ) dt_define_info
|
|
|
- WHERE 1=1
|
|
|
- <if test="ew.expression.sqlSegment!=null and ew.expression.sqlSegment.length>0">
|
|
|
- AND ${ew.expression.sqlSegment}
|
|
|
- </if>
|
|
|
+ <where>${ew.expression.sqlSegment}</where>
|
|
|
</select>
|
|
|
<select id="queryCollectInfos" resultType="java.util.Map">
|
|
|
select dt_object.id, dt_object.local_id, dt_object.local_name, dt_define_info.class_code, dt_define_type.name as class_name,
|
|
@@ -96,7 +93,7 @@
|
|
|
from ( <include refid="InfoTableSQL"/> ) dt_define_info
|
|
|
inner join dt_define_type on dt_define_info.class_code = dt_define_type.code and dt_define_type.valid = 1
|
|
|
inner join dt_object on dt_object.class_code = dt_define_info.class_code and dt_object.valid = 1 and dt_define_info.code not in ('localId','localName')
|
|
|
- WHERE ${ew.expression.sqlSegment}
|
|
|
+ <where>${ew.expression.sqlSegment}</where>
|
|
|
</select>
|
|
|
<select id="queryCollectReport" resultType="java.util.Map">
|
|
|
select count(1) as all_num, sum(case when category = 'STATIC' then 1 else 0 end) as static_num,
|
|
@@ -110,7 +107,7 @@
|
|
|
from ( <include refid="InfoTableSQL"/> ) dt_define_info
|
|
|
inner join dt_define_type on dt_define_info.class_code = dt_define_type.code and dt_define_type.valid = 1
|
|
|
inner join dt_object on dt_object.class_code = dt_define_info.class_code and dt_object.valid = 1 and dt_define_info.code not in ('localId','localName')
|
|
|
- WHERE ${ew.expression.sqlSegment}
|
|
|
+ <where>${ew.expression.sqlSegment}</where>
|
|
|
) R
|
|
|
</select>
|
|
|
|