update code
parent
0dd90e3f7c
commit
8c4f6c2566
|
@ -277,9 +277,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<select id="selectForBigEnginList" parameterType="SurProjectCostOutput" resultMap="SurProjectCostOutputResult">
|
<select id="selectForBigEnginList" parameterType="SurProjectCostOutput" resultMap="SurProjectCostOutputResult">
|
||||||
SELECT a.id, a.project_id, a.money, a.year, a.month, a.cost_type, sp.projectName remark, a.is_del, a.create_by, a.create_time, a.update_by, a.update_time,a.money2,a.date1,a.date2
|
SELECT a.id, a.project_id, a.money, a.year, a.month, a.cost_type, CONCAT(sp.projectName,'(',sd.dept_name,')') remark, a.is_del, a.create_by, a.create_time, a.update_by, a.update_time,a.money2,a.date1,a.date2
|
||||||
FROM sur_project_cost_output a,sur_project sp
|
FROM sur_project_cost_output a,sur_project sp,sys_dept sd
|
||||||
WHERE a.project_id=sp.id AND a.cost_type IN (11,12)
|
WHERE a.project_id=sp.id AND a.cost_type IN (11,12) AND sd.dept_id=a.deptid
|
||||||
and sp.isDel=0 and sp.progressVisible=0
|
and sp.isDel=0 and sp.progressVisible=0
|
||||||
<if test="id!=null and id>0"> and sp.deptId = #{id}</if>
|
<if test="id!=null and id>0"> and sp.deptId = #{id}</if>
|
||||||
<if test="proType != null and proType != ''"> and sp.projectType = #{proType}</if>
|
<if test="proType != null and proType != ''"> and sp.projectType = #{proType}</if>
|
||||||
|
|
Loading…
Reference in New Issue