|
@@ -99,5 +99,24 @@
|
|
|
from d_project_invest_plan pip
|
|
|
where is_deleted = 0
|
|
|
</select>
|
|
|
+ <select id="getBuildTotal" resultType="java.lang.Long">
|
|
|
+ select ifnull(sum(build_scale),0)
|
|
|
+ from d_project_info dpi where is_deleted = 0 and build_scale_unit = 1
|
|
|
+ <if test="dto.projectStage != null">
|
|
|
+ and project_stage = #{dto.projectStage}
|
|
|
+ </if>
|
|
|
+ <if test="dto.projectType != null">
|
|
|
+ and project_type = #{dto.projectType}
|
|
|
+ </if>
|
|
|
+ <if test="dto.searchValue != null and dto.searchValue != ''">
|
|
|
+ and name like concat('%', #{dto.searchValue}),'%')
|
|
|
+ </if>
|
|
|
+ <if test="dto.startYear != null">
|
|
|
+ and start_year >= #{dto.startYear}
|
|
|
+ </if>
|
|
|
+ <if test="dto.endYear != null ">
|
|
|
+ and end_year <= #{dto.endYear}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|