53 lines
1.8 KiB
XML
53 lines
1.8 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
|
<!DOCTYPE mapper
|
||
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||
|
|
<mapper namespace="com.bonus.zlpt.bigscreen.mapper.MaDevInfoMapper">
|
||
|
|
|
||
|
|
<select id="selectMaDevInfoList" resultType="com.bonus.zlpt.bigscreen.domain.vo.CoTypeVo">
|
||
|
|
|
||
|
|
SELECT bc.company_ltd AS title, COUNT(*) AS Count
|
||
|
|
FROM ma_dev_info md
|
||
|
|
JOIN bm_company_info bc ON md.own_co = bc.company_id
|
||
|
|
WHERE md.ma_status = '自有'
|
||
|
|
GROUP BY bc.company_ltd
|
||
|
|
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="selectmaList" resultType="com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo">
|
||
|
|
|
||
|
|
SELECT mti.type_name as maName, COUNT(*) as count
|
||
|
|
FROM ma_type_info mti
|
||
|
|
INNER JOIN ma_dev_info mdi ON mti.type_id = mdi.type_id
|
||
|
|
WHERE mdi.ma_status = '在租'
|
||
|
|
GROUP BY mti.type_name
|
||
|
|
ORDER BY count DESC
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="selectList" resultType="java.lang.Integer">
|
||
|
|
SELECT COUNT(*) AS count FROM ma_dev_info
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="selectTypeList" resultType="com.bonus.zlpt.bigscreen.domain.vo.TypeVo">
|
||
|
|
SELECT ma_status as maStatus, COUNT(*) AS count
|
||
|
|
FROM ma_dev_info
|
||
|
|
WHERE ma_status IN ('自有', '待租')
|
||
|
|
GROUP BY ma_status
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="selectMaTypeList" resultType="com.bonus.zlpt.bigscreen.domain.vo.TypeVo">
|
||
|
|
SELECT ma_status as maStatus, COUNT(*) AS count
|
||
|
|
FROM ma_dev_info
|
||
|
|
WHERE ma_status IN ('在租', '待租')
|
||
|
|
GROUP BY ma_status
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="selecthotList" resultType="com.bonus.zlpt.bigscreen.domain.vo.CompanyInfoVo">
|
||
|
|
SELECT md.own_co AS ownCo, COUNT(*) AS count
|
||
|
|
FROM ma_hot_search hs
|
||
|
|
LEFT JOIN ma_dev_info md ON hs.ma_id = md.ma_id
|
||
|
|
GROUP BY md.own_co
|
||
|
|
ORDER BY count DESC
|
||
|
|
</select>
|
||
|
|
|
||
|
|
</mapper>
|