|
@@ -38,7 +38,7 @@
|
|
|
or
|
|
or
|
|
|
nextChecker LIKE CONCAT(CONCAT('%,',#{condition.userId}), ',%')
|
|
nextChecker LIKE CONCAT(CONCAT('%,',#{condition.userId}), ',%')
|
|
|
)
|
|
)
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
and g.create_time in (select max(CREATE_TIME)from z_approval where del_flag=0 group by APPLY_ID )
|
|
and g.create_time in (select max(CREATE_TIME)from z_approval where del_flag=0 group by APPLY_ID )
|
|
|
and a.approve_status in
|
|
and a.approve_status in
|
|
|
<foreach collection="condition.apply_status" index="index" item="item" open="(" separator="," close=")">
|
|
<foreach collection="condition.apply_status" index="index" item="item" open="(" separator="," close=")">
|
|
@@ -139,9 +139,9 @@
|
|
|
)
|
|
)
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
order by create_time desc
|
|
order by create_time desc
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -171,7 +171,7 @@
|
|
|
approve_status_name,
|
|
approve_status_name,
|
|
|
overTime,
|
|
overTime,
|
|
|
update_time
|
|
update_time
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
from (
|
|
from (
|
|
|
SELECT
|
|
SELECT
|
|
|
a.id,
|
|
a.id,
|
|
@@ -216,14 +216,14 @@
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|
|
|
)
|
|
)
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<if test="condition.applyUserType!=null and condition.applyUserType!=''">
|
|
<if test="condition.applyUserType!=null and condition.applyUserType!=''">
|
|
|
and zUser.user_type = #{condition.applyUserType}
|
|
and zUser.user_type = #{condition.applyUserType}
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
and g.del_flag = 0
|
|
and g.del_flag = 0
|
|
|
)q
|
|
)q
|
|
|
- WHERE 1=1
|
|
|
|
|
|
|
+ WHERE 1=1
|
|
|
<if test="condition.approve_status != null and condition.approve_status!=''">
|
|
<if test="condition.approve_status != null and condition.approve_status!=''">
|
|
|
and q.approve_status=#{condition.approve_status}
|
|
and q.approve_status=#{condition.approve_status}
|
|
|
</if>
|
|
</if>
|
|
@@ -275,10 +275,10 @@
|
|
|
LEFT JOIN z_user zUser on zUser.id = a.create_by
|
|
LEFT JOIN z_user zUser on zUser.id = a.create_by
|
|
|
WHERE
|
|
WHERE
|
|
|
a.del_flag = '0'
|
|
a.del_flag = '0'
|
|
|
- AND
|
|
|
|
|
|
|
+ AND
|
|
|
type.id = #{stockLandId} and type2.id=#{approvedId}
|
|
type.id = #{stockLandId} and type2.id=#{approvedId}
|
|
|
AND
|
|
AND
|
|
|
- a.approve_status in
|
|
|
|
|
|
|
+ a.approve_status in
|
|
|
<foreach collection="statusList" index="index" item="item" open="(" separator="," close=")">
|
|
<foreach collection="statusList" index="index" item="item" open="(" separator="," close=")">
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
@@ -306,13 +306,13 @@
|
|
|
(
|
|
(
|
|
|
select temp.maxTime from (select APPLY_ID,max(CREATE_TIME) maxTime
|
|
select temp.maxTime from (select APPLY_ID,max(CREATE_TIME) maxTime
|
|
|
from z_approval
|
|
from z_approval
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
GROUP BY APPLY_ID
|
|
GROUP BY APPLY_ID
|
|
|
) temp )
|
|
) temp )
|
|
|
)
|
|
)
|
|
|
order by a.create_time desc
|
|
order by a.create_time desc
|
|
|
</select>
|
|
</select>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<!-- 查询所有审核状态下的列表 -->
|
|
<!-- 查询所有审核状态下的列表 -->
|
|
|
<select id="findSelectPage" resultType="platform.modules.company.entity.StockLand">
|
|
<select id="findSelectPage" resultType="platform.modules.company.entity.StockLand">
|
|
|
SELECT DISTINCT
|
|
SELECT DISTINCT
|
|
@@ -437,4 +437,28 @@ order by a.create_time desc
|
|
|
<![CDATA[ and DATE_FORMAT(sla.create_time, '%Y-%m-%d')<= DATE_FORMAT(#{condition.end_date}, '%Y-%m-%d') ]]>
|
|
<![CDATA[ and DATE_FORMAT(sla.create_time, '%Y-%m-%d')<= DATE_FORMAT(#{condition.end_date}, '%Y-%m-%d') ]]>
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 审核通过的列表 -->
|
|
|
|
|
+ <select id="findListByStreetId" resultType="platform.modules.company.entity.StockLand">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ stockland.street_id,
|
|
|
|
|
+ stockland.apply_type,
|
|
|
|
|
+ stockland.apply_status,
|
|
|
|
|
+ stockland.approve_status,
|
|
|
|
|
+ stockland.process_status,
|
|
|
|
|
+ zuser.user_type AS applyUserType
|
|
|
|
|
+ FROM
|
|
|
|
|
+ c_stock_land_apply stockland
|
|
|
|
|
+ LEFT JOIN
|
|
|
|
|
+ z_user zuser ON zuser.id = stockland.create_by
|
|
|
|
|
+ WHERE
|
|
|
|
|
+ stockland.del_flag = '0'
|
|
|
|
|
+ <if test="street_id != null and street_id != ''">
|
|
|
|
|
+ AND stockland.street_id = #{street_id}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="apply_user_type!=null and apply_user_type!=''">
|
|
|
|
|
+ AND zuser.user_type = #{apply_user_type}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|