bigscreen 添加逻辑删除
This commit is contained in:
parent
f768a5b3f6
commit
ae71df9edc
|
|
@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
JOIN bm_company_info c ON m.own_co = c.company_id
|
JOIN bm_company_info c ON m.own_co = c.company_id
|
||||||
JOIN gps_real_info g ON m.gps_code = g.gps_code
|
JOIN gps_real_info g ON m.gps_code = g.gps_code
|
||||||
WHERE
|
WHERE
|
||||||
m.ma_status IN ('在租', '自有', '待租')
|
m.ma_status IN ('在租', '自有', '待租') and m.is_active = '1'
|
||||||
GROUP BY
|
GROUP BY
|
||||||
c.company_ltd, m.ma_status, g.lon, g.lat,maId
|
c.company_ltd, m.ma_status, g.lon, g.lat,maId
|
||||||
|
|
||||||
|
|
@ -43,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="maId != null and maId != '' ">
|
<if test="maId != null and maId != '' ">
|
||||||
and md.ma_id = #{maId}
|
and md.ma_id = #{maId}
|
||||||
</if>
|
</if>
|
||||||
|
and md.is_active = '1'
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
@ -9,7 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
SELECT bc.company_ltd AS coType, COUNT(*) AS Count
|
SELECT bc.company_ltd AS coType, COUNT(*) AS Count
|
||||||
FROM ma_dev_info md
|
FROM ma_dev_info md
|
||||||
JOIN bm_company_info bc ON md.own_co = bc.company_id
|
JOIN bm_company_info bc ON md.own_co = bc.company_id
|
||||||
WHERE md.ma_status = '自有'
|
WHERE md.ma_status = '自有' and md.is_active = '1'
|
||||||
GROUP BY bc.company_ltd
|
GROUP BY bc.company_ltd
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -19,26 +19,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
SELECT mti.type_name as ownCo, COUNT(*) as count
|
SELECT mti.type_name as ownCo, COUNT(*) as count
|
||||||
FROM ma_type_info mti
|
FROM ma_type_info mti
|
||||||
INNER JOIN ma_dev_info mdi ON mti.type_id = mdi.type_id
|
INNER JOIN ma_dev_info mdi ON mti.type_id = mdi.type_id
|
||||||
WHERE mdi.ma_status = '在租'
|
WHERE mdi.ma_status = '在租' and mdi.is_active = '1'
|
||||||
GROUP BY mti.type_name
|
GROUP BY mti.type_name
|
||||||
ORDER BY count DESC
|
ORDER BY count DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectList" resultType="java.lang.Integer">
|
<select id="selectList" resultType="java.lang.Integer">
|
||||||
SELECT COUNT(*) AS count FROM ma_dev_info
|
SELECT COUNT(*) AS count FROM ma_dev_info m
|
||||||
|
WHERE m.is_active = '1'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectTypeList" resultType="com.bonus.zlpt.bigscreen.domain.vo.TypeVo">
|
<select id="selectTypeList" resultType="com.bonus.zlpt.bigscreen.domain.vo.TypeVo">
|
||||||
SELECT ma_status as maStatus, COUNT(*) AS count
|
SELECT ma_status as maStatus, COUNT(*) AS count
|
||||||
FROM ma_dev_info
|
FROM ma_dev_info
|
||||||
WHERE ma_status IN ('自有', '待租')
|
WHERE ma_status IN ('自有', '待租') and is_active = '1'
|
||||||
GROUP BY ma_status
|
GROUP BY ma_status
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMaTypeList" resultType="com.bonus.zlpt.bigscreen.domain.vo.TypeVo">
|
<select id="selectMaTypeList" resultType="com.bonus.zlpt.bigscreen.domain.vo.TypeVo">
|
||||||
SELECT ma_status as maStatus, COUNT(*) AS count
|
SELECT ma_status as maStatus, COUNT(*) AS count
|
||||||
FROM ma_dev_info
|
FROM ma_dev_info
|
||||||
WHERE ma_status IN ('在租', '待租')
|
WHERE ma_status IN ('在租', '待租') and is_active = '1'
|
||||||
GROUP BY ma_status
|
GROUP BY ma_status
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
@ -47,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
FROM ma_hot_search hs
|
FROM ma_hot_search hs
|
||||||
LEFT JOIN ma_dev_info md ON hs.ma_id = md.ma_id
|
LEFT JOIN ma_dev_info md ON hs.ma_id = md.ma_id
|
||||||
LEFT JOIN bm_company_info bc ON md.own_co = bc.company_id
|
LEFT JOIN bm_company_info bc ON md.own_co = bc.company_id
|
||||||
|
WHERE md.is_active = '1'
|
||||||
GROUP BY bc.company_name
|
GROUP BY bc.company_name
|
||||||
ORDER BY count DESC
|
ORDER BY count DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -60,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
FROM ma_dev_info md
|
FROM ma_dev_info md
|
||||||
LEFT JOIN ma_type_info mt ON md.type_id = mt.type_id
|
LEFT JOIN ma_type_info mt ON md.type_id = mt.type_id
|
||||||
LEFT JOIN ma_order_details mo ON md.ma_id = mo.ma_id
|
LEFT JOIN ma_order_details mo ON md.ma_id = mo.ma_id
|
||||||
where md.ma_id = #{maId}
|
where md.ma_id = #{maId} and md.is_active = '1'
|
||||||
GROUP BY maName,maStatus,needCompany,planStartTime,duration
|
GROUP BY maName,maStatus,needCompany,planStartTime,duration
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue