Browse Source

小组更新

master
陈裕财 5 years ago
parent
commit
16b57e53a1
  1. 2
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMCostUserMapper.xml

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

@ -96,7 +96,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> --> <!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="listSum" parameterType="HashMap" resultType="HashMap"> <select id="listSum" parameterType="HashMap" resultType="HashMap">
select res.project_id,res.userid,res.username,subject_id,subject_name,biz_month,sum(res.act_cost_amount) as act_cost_amount from XM.xm_project_m_cost_user res
select res.project_id,res.userid,max(res.username) as username,subject_id,max(subject_name) as subject_name,biz_month,sum(res.act_cost_amount) as act_cost_amount from XM.xm_project_m_cost_user res
<where> <where>
and res.project_id=#{projectId} and res.project_id=#{projectId}
<if test="subjectId != null and subjectId !='' "> and res.subject_id =#{subjectId} </if> <if test="subjectId != null and subjectId !='' "> and res.subject_id =#{subjectId} </if>

Loading…
Cancel
Save