update code
parent
0915a8d283
commit
89e25def13
|
@ -209,6 +209,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
FROM sur_project_cost_output a,sur_project sp
|
||||
WHERE a.project_id=sp.id AND a.cost_type in (11,12)
|
||||
and sp.isDel=0 and sp.progressVisible=0
|
||||
<if test="createTime!=null "> and a.date1 >= #{createTime}</if>
|
||||
<if test="updateTime!=null "> and a.date1 <= #{updateTime}</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="projectId!=null and projectId>0">
|
||||
|
@ -228,6 +230,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
FROM sur_project_cost_output a,sur_project sp
|
||||
WHERE a.project_id=sp.id AND a.cost_type in (11)
|
||||
and sp.isDel=0 and sp.progressVisible=0
|
||||
<if test="createTime!=null "> and a.date1 >= #{createTime}</if>
|
||||
<if test="updateTime!=null "> and a.date1 <= #{updateTime}</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="projectId!=null and projectId>0">
|
||||
|
@ -246,6 +250,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
FROM sur_project_cost_output a,sur_project sp
|
||||
WHERE a.project_id=sp.id AND a.cost_type IN (12)
|
||||
and sp.isDel=0 and sp.progressVisible=0
|
||||
<if test="createTime!=null "> and a.date1 >= #{createTime}</if>
|
||||
<if test="updateTime!=null "> and a.date1 <= #{updateTime}</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="projectId!=null and projectId>0">
|
||||
|
@ -263,6 +269,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
FROM sur_project_cost_output a,sur_project sp
|
||||
WHERE a.project_id=sp.id AND a.cost_type IN (11,12)
|
||||
and sp.isDel=0 and sp.progressVisible=0
|
||||
<if test="createTime!=null "> and a.date1 >= #{createTime}</if>
|
||||
<if test="updateTime!=null "> and a.date1 <= #{updateTime}</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="projectId!=null and projectId>0">
|
||||
|
|
|
@ -115,6 +115,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
from (
|
||||
select a.* from sur_project_working_committee a,sur_project b
|
||||
where a.projectId=b.id
|
||||
<if test="createTime!=null "> and a.applicationDate >= #{createTime}</if>
|
||||
<if test="updateTime!=null "> and a.applicationDate <= #{updateTime}</if>
|
||||
<if test="committeeId!=null and committeeId!='0' and committeeId > 0">
|
||||
and a.committeeId=#{committeeId}
|
||||
</if>
|
||||
|
@ -142,6 +144,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
select a.id,a.costName,a.money,b.projectName remark,a.committeeid,a.workingType,a.projectId,a.create_by,a.create_time,a.update_time,c.name update_by,a.applicationDate
|
||||
from sur_project_working_committee a,sur_project b ,base_working_committee c
|
||||
where a.projectId=b.id and a.committeeid=c.id
|
||||
<if test="createTime!=null "> and a.applicationDate >= #{createTime}</if>
|
||||
<if test="updateTime!=null "> and a.applicationDate <= #{updateTime}</if>
|
||||
<if test="committeeId!=null and committeeId!='0' and committeeId > 0">
|
||||
and a.committeeId=#{committeeId}
|
||||
</if>
|
||||
|
|
Loading…
Reference in New Issue