|
|
|
@ -196,7 +196,7 @@ |
|
|
|
</foreach> |
|
|
|
</select> |
|
|
|
<select id="getXmMenuAttDist" parameterType="HashMap" resultType="HashMap"> |
|
|
|
select count(*) as value,${groupBy} as name from xm_menu res |
|
|
|
select count(*) as value,${ext.groupBy} as name from xm_menu res |
|
|
|
<where> |
|
|
|
${@com.mdp.Util@trimWhere(ew.customSqlSegment)} |
|
|
|
<!--下面可以添加更多查询条件,正常的if 条件都是支持的--> |
|
|
|
@ -206,7 +206,7 @@ |
|
|
|
${@com.mdp.Util@trimOrderBy(ew.customSqlSegment,'')} |
|
|
|
<!--下面双引号内可以添加默认分组,如果前端没有上传分组,将使用引号内的分组规则--> |
|
|
|
${@com.mdp.Util@trimGroupBy(ew.customSqlSegment,'')} |
|
|
|
group by ${groupBy} |
|
|
|
group by ${ext.groupBy} |
|
|
|
</select> |
|
|
|
<select id="getXmMenuAgeDist" parameterType="HashMap" resultType="HashMap"> |
|
|
|
|
|
|
|
@ -222,18 +222,18 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getXmMenuSort" parameterType="HashMap" resultType="HashMap"> |
|
|
|
select count(*) as value,${groupBy} as id, |
|
|
|
select count(*) as value,${ext.groupBy} as id, |
|
|
|
max( |
|
|
|
<if test="groupBy=='func_id'">func_name</if> |
|
|
|
<if test="groupBy=='proposer_id'">proposer_name</if> |
|
|
|
<if test="groupBy=='mm_userid'">mm_username</if> |
|
|
|
<if test="groupBy=='product_id'">product_id</if> |
|
|
|
<if test="groupBy=='iteration_id'">iteration_name</if> |
|
|
|
<if test="ext.groupBy=='func_id'">func_name</if> |
|
|
|
<if test="ext.groupBy=='proposer_id'">proposer_name</if> |
|
|
|
<if test="ext.groupBy=='mm_userid'">mm_username</if> |
|
|
|
<if test="ext.groupBy=='product_id'">product_id</if> |
|
|
|
<if test="ext.groupBy=='iteration_id'">iteration_name</if> |
|
|
|
) as name from xm_menu res |
|
|
|
<where> |
|
|
|
<include refid="whereForMap"></include> |
|
|
|
</where> |
|
|
|
group by ${groupBy} |
|
|
|
group by ${ext.groupBy} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getUserCanOpMenusByIds" parameterType="HashMap" resultType="com.xm.core.entity.XmMenu"> |
|
|
|
|