Browse Source

添加节点类型、标签等

master
陈裕财 4 years ago
parent
commit
7bace752df
  1. 2
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml
  2. 3
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectPhaseMapper.xml
  3. 3
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskMapper.xml

2
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml

@ -25,7 +25,7 @@
exists ( select 1 from xm_task t where t.menu_id=res.menu_id)
</if>
<if test="key != null and key !='' "> and res.menu_name like #{key} </if>
<if test="isTop != null and isTop !='' "> and res.pmenu_id is null</if>
<if test="isTop != null and isTop =='1' "> and (res.pmenu_id is null or res.pmenu_id = '')</if>
</sql>
<select id="selectExistIterationMenus" parameterType="HashMap" resultType="com.xm.core.entity.XmMenu">

3
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectPhaseMapper.xml

@ -18,6 +18,9 @@
and exists( select 1 from xm_task t where t.product_id=#{productId})
</if>
<if test="key != null and key !='' "> </if>
<if test="isTop!=null and isTop=='1'">
and (res.parent_phase_id is null or res.parent_phase_id='')
</if>
</sql>
<select id="selectTotalProjectAndPhaseBudgetCost" parameterType="HashMap" resultType="HashMap">
SELECT

3
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskMapper.xml

@ -52,6 +52,9 @@
</if>
<if test="key != null and key !='' "> and res.name like #{key} </if>
<if test="work != null and work != ''"> and res.rate != '100' </if>
<if test="isTop!=null and isTop=='1'">
and (res.parent_taskid is null or res.parent_taskid='')
</if>
</sql>
<select id="getAvgRate" parameterType="String" resultType="long" >
select avg(res.rate) from xm_task res where res.parent_taskid = #{parentTaskid}

Loading…
Cancel
Save