Browse Source

预算及成本重构

master
陈裕财 4 years ago
parent
commit
02ba09574c
  1. 2
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml
  2. 2
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml

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

@ -11,7 +11,7 @@
( #{item}) ( #{item})
</foreach> </foreach>
</if> </if>
<if test="key != null and key !='' "> and res.product_name like #{key} </if>
<if test="key != null and key !='' "> and res.product_name like concat('%',#{key} ,'%') </if>
<if test=" linkIterationId !=null and linkIterationId!=''"> <if test=" linkIterationId !=null and linkIterationId!=''">
and exists( select 1 from xm_iteration ppl where ppl.product_id=res.id and ppl.id=#{linkIterationId} ) and exists( select 1 from xm_iteration ppl where ppl.product_id=res.id and ppl.id=#{linkIterationId} )
</if> </if>

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

@ -53,7 +53,7 @@
where l.project_id =res.id and ipl.id=#{linkIterationId} where l.project_id =res.id and ipl.id=#{linkIterationId}
) )
</if> </if>
<if test="key != null and key !='' "> and res.name like #{key} </if>
<if test="key != null and key !='' "> and res.name like concat('%',#{key} ,'%') </if>
<if test="isTpl!=null and isTpl=='1'"> <if test="isTpl!=null and isTpl=='1'">
and (res.branch_id in( #{platformBranchId},#{linkBranchId}) and res.is_tpl='1') and (res.branch_id in( #{platformBranchId},#{linkBranchId}) and res.is_tpl='1')
</if> </if>

Loading…
Cancel
Save