Commit 45b99080 authored by zhouxudong's avatar zhouxudong

更新代码

parent e2105d3e
......@@ -175,49 +175,7 @@
</select>
<select id="pagePersonList" parameterType="com.postcard.service.moudle.development.dto.DevelopmentPagePersonDto"
resultType="com.postcard.service.moudle.development.vo.DevelopmentPagePersonVo">
SELECT id,name,is_system,status,create_time,update_time
FROM development_info
<where>
user_id = #{param.userId}
<if test="param.name != null and param.name != ''">
AND name like concat('%', #{param.name}, '%')
</if>
<if test="param.isSystem != null ">
AND is_system=#{param.isSystem}
</if>
<if test="param.startCreateTime != null and param.startCreateTime != ''">
AND DATE_FORMAT(create_time,'%Y-%m-%d') <![CDATA[ >= ]]> #{param.startCreateTime}
</if>
<if test="param.endCreateTime != null and param.endCreateTime != ''">
AND DATE_FORMAT(create_time,'%Y-%m-%d') <![CDATA[ <= ]]> #{param.endCreateTime}
</if>
<!-- <if test="param.status != null ">-->
<!-- AND status = #{param.status}-->
<!-- </if>-->
<if test="param.statusList != null and param.statusList.size() > 0 ">
AND `status` IN
<foreach item="status" collection="param.statusList" open="(" separator="," close=")">
#{status}
</foreach>
</if>
and status in (2,3,4,9)
</where>
order by create_time desc
</select>
<select id="countById" parameterType="Integer" resultType="com.postcard.service.moudle.development.vo.DevelopmentCountVo">
SELECT SUM(park_count) park_count,SUM(carrier_count) carrier_count,SUM(land_count) land_count FROM (
SELECT count(1) park_count, 0 carrier_count, 0 land_count FROM park_info WHERE zone_id = #{id}
UNION ALL
SELECT 0 park_count, count(1) carrier_count, 0 land_count FROM park_info pi,carrier_info ci WHERE ci.park_id = pi.id AND pi.zone_id = #{id}
UNION ALL
SELECT 0 park_count, 0 carrier_count, count(1) land_count FROM development_industrial_land_info WHERE development_id = #{id}
) t
</select>
<select id="carrierNum" resultType="java.lang.Integer">
SELECT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment