|
|
@ -66,4 +66,250 @@ |
|
|
|
</where> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="terminalStatistics" resultType="com.bellmann.model.vo.TerminalCapabilityStatisticsVO"> |
|
|
|
|
|
|
|
SELECT |
|
|
|
|
|
|
|
t2.groupname AS area, |
|
|
|
|
|
|
|
t1.groupname AS subArea, |
|
|
|
|
|
|
|
t1.dev_vendor_name AS category, |
|
|
|
|
|
|
|
t1.dev_type_name AS deviceName, |
|
|
|
|
|
|
|
CASE |
|
|
|
|
|
|
|
t1.dev_type_name_new |
|
|
|
|
|
|
|
WHEN 'ITMS' THEN |
|
|
|
|
|
|
|
'家庭' |
|
|
|
|
|
|
|
WHEN 'BBMS' THEN |
|
|
|
|
|
|
|
'政企' ELSE'其他' |
|
|
|
|
|
|
|
END AS gateWayType, |
|
|
|
|
|
|
|
t1.dev_type_namea AS deviceType, |
|
|
|
|
|
|
|
t1.dev_access_type AS accessType, |
|
|
|
|
|
|
|
count(*) devCount |
|
|
|
|
|
|
|
FROM |
|
|
|
|
|
|
|
V_ZJ_DEVICE_TOTAL t1 |
|
|
|
|
|
|
|
LEFT JOIN GROUP_INFO_TAB t2 ON t1.parentgroupid = t2.groupid |
|
|
|
|
|
|
|
<where> |
|
|
|
|
|
|
|
<if test="form.area !=0 and form.area!=null"> |
|
|
|
|
|
|
|
and t1.PARENTGROUPID = #{form.area} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.subarea !=null "> |
|
|
|
|
|
|
|
and t1.groupid = #{form.subarea} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.category!=null and form.category!= '' and form.category!= '-1' "> |
|
|
|
|
|
|
|
and UPPER(t1.DEV_VENDOR_NAME) = UPPER(#{form.category}) |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.devName!=null and form.devName!='' and form.devName!='-1' "> |
|
|
|
|
|
|
|
and t1.DEV_TYPE_NAME = #{form.devName} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.accessType!=null and form.accessType!=''"> |
|
|
|
|
|
|
|
and t1.DEV_ACCESS_TYPE = #{form.accessType} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.devType!=null and form.devType!=''"> |
|
|
|
|
|
|
|
and t1.dev_type_namea = #{form.devType} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.gateWayType!=null and form.gateWayType!=''"> |
|
|
|
|
|
|
|
and t1.dev_type_name_new = #{form.gateWayType} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.firstStartTime!=null and form.firstEndTime!=null"> |
|
|
|
|
|
|
|
and t1.dev_create_time >= to_date(#{form.firstStartTime}, 'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
and t1.dev_create_time<= to_date(#{form.firstEndTime},'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.lastStartTime!=null and form.lastEndTime!=null "> |
|
|
|
|
|
|
|
and t1.dev_modify_time >= to_date(#{form.lastStartTime}, 'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
and t1.dev_modify_time<= to_date(#{form.lastEndTime},'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.onLineStartTime!=null and form.onLineEndTime!=null"> |
|
|
|
|
|
|
|
and t1.dev_online_time >= to_date(#{form.onLineStartTime}, 'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
and t1.dev_online_time<= to_date(#{form.onLineEndTime},'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
</where> |
|
|
|
|
|
|
|
GROUP BY |
|
|
|
|
|
|
|
t2.groupname, |
|
|
|
|
|
|
|
t1.groupname, |
|
|
|
|
|
|
|
t1.dev_vendor_name, |
|
|
|
|
|
|
|
t1.dev_type_name, |
|
|
|
|
|
|
|
gateWayType, |
|
|
|
|
|
|
|
t1.dev_type_namea, |
|
|
|
|
|
|
|
t1.dev_access_type |
|
|
|
|
|
|
|
ORDER BY |
|
|
|
|
|
|
|
devCount Desc |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="listExportTerminal" resultType="com.bellmann.model.vo.TerminalExportVO"> |
|
|
|
|
|
|
|
SELECT |
|
|
|
|
|
|
|
t2.groupname AS area, |
|
|
|
|
|
|
|
t1.groupname AS subArea, |
|
|
|
|
|
|
|
t1.dev_vendor_name AS category, |
|
|
|
|
|
|
|
t1.dev_type_name AS deviceName, |
|
|
|
|
|
|
|
CASE |
|
|
|
|
|
|
|
t1.dev_type_name_new |
|
|
|
|
|
|
|
WHEN 'ITMS' THEN |
|
|
|
|
|
|
|
'家庭' |
|
|
|
|
|
|
|
WHEN 'BBMS' THEN |
|
|
|
|
|
|
|
'政企' ELSE'其他' |
|
|
|
|
|
|
|
END AS gateWayType, |
|
|
|
|
|
|
|
t1.dev_type_namea AS deviceType, |
|
|
|
|
|
|
|
t1.dev_access_type AS accessType, |
|
|
|
|
|
|
|
count(*) devCount |
|
|
|
|
|
|
|
FROM |
|
|
|
|
|
|
|
V_ZJ_DEVICE_TOTAL t1 |
|
|
|
|
|
|
|
LEFT JOIN GROUP_INFO_TAB t2 ON t1.parentgroupid = t2.groupid |
|
|
|
|
|
|
|
<where> |
|
|
|
|
|
|
|
<if test="form.area !=0 and form.area!=null"> |
|
|
|
|
|
|
|
and t1.PARENTGROUPID = #{form.area} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.subarea !=null "> |
|
|
|
|
|
|
|
and t1.groupid = #{form.subarea} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.category!=null and form.category!= '' and form.category!= '-1' "> |
|
|
|
|
|
|
|
and UPPER(t1.DEV_VENDOR_NAME) = UPPER(#{form.category}) |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.devName!=null and form.devName!='' and form.devName!='-1' "> |
|
|
|
|
|
|
|
and t1.DEV_TYPE_NAME = #{form.devName} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.accessType!=null and form.accessType!=''"> |
|
|
|
|
|
|
|
and t1.DEV_ACCESS_TYPE = #{form.accessType} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.devType!=null and form.devType!=''"> |
|
|
|
|
|
|
|
and t1.dev_type_namea = #{form.devType} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.gateWayType!=null and form.gateWayType!=''"> |
|
|
|
|
|
|
|
and t1.dev_type_name_new = #{form.gateWayType} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.firstStartTime!=null and form.firstEndTime!=null"> |
|
|
|
|
|
|
|
and t1.dev_create_time >= to_date(#{form.firstStartTime}, 'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
and t1.dev_create_time<= to_date(#{form.firstEndTime},'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.lastStartTime!=null and form.lastEndTime!=null "> |
|
|
|
|
|
|
|
and t1.dev_modify_time >= to_date(#{form.lastStartTime}, 'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
and t1.dev_modify_time<= to_date(#{form.lastEndTime},'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.onLineStartTime!=null and form.onLineEndTime!=null"> |
|
|
|
|
|
|
|
and t1.dev_online_time >= to_date(#{form.onLineStartTime}, 'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
and t1.dev_online_time<= to_date(#{form.onLineEndTime},'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
</where> |
|
|
|
|
|
|
|
GROUP BY |
|
|
|
|
|
|
|
t2.groupname, |
|
|
|
|
|
|
|
t1.groupname, |
|
|
|
|
|
|
|
t1.dev_vendor_name, |
|
|
|
|
|
|
|
t1.dev_type_name, |
|
|
|
|
|
|
|
gateWayType, |
|
|
|
|
|
|
|
t1.dev_type_namea, |
|
|
|
|
|
|
|
t1.dev_access_type |
|
|
|
|
|
|
|
ORDER BY |
|
|
|
|
|
|
|
devCount Desc |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="devTypeSoftVerStatistics" resultType="com.bellmann.model.vo.DeviceTypeHardSoftVerVO"> |
|
|
|
|
|
|
|
SELECT |
|
|
|
|
|
|
|
t2.groupname AS area, |
|
|
|
|
|
|
|
t1.groupname AS subArea, |
|
|
|
|
|
|
|
t1.dev_vendor_name AS category, |
|
|
|
|
|
|
|
t1.dev_type_name AS deviceName, |
|
|
|
|
|
|
|
t1.soft_ver, |
|
|
|
|
|
|
|
t1.dev_hard_ver, |
|
|
|
|
|
|
|
count(*) devCount |
|
|
|
|
|
|
|
FROM |
|
|
|
|
|
|
|
V_ZJ_DEVICE_TOTAL t1 |
|
|
|
|
|
|
|
LEFT JOIN GROUP_INFO_TAB t2 ON t1.parentgroupid = t2.groupid |
|
|
|
|
|
|
|
<where> |
|
|
|
|
|
|
|
<if test="form.area !=0 and form.area!=null"> |
|
|
|
|
|
|
|
and t1.PARENTGROUPID = #{form.area} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.subarea !=null "> |
|
|
|
|
|
|
|
and t1.groupid = #{form.subarea} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.category!=null and form.category!= '' and form.category!= '-1' "> |
|
|
|
|
|
|
|
and UPPER(t1.DEV_VENDOR_NAME) = UPPER(#{form.category}) |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.devName!=null and form.devName!='' and form.devName!='-1' "> |
|
|
|
|
|
|
|
and t1.DEV_TYPE_NAME = #{form.devName} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.softVer!=null and form.softVer!='' and form.softVer!='-1'"> |
|
|
|
|
|
|
|
and t1.soft_ver = #{form.softVer} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.devHardVer!=null and form.devHardVer!='' and form.devHardVer!='-1'"> |
|
|
|
|
|
|
|
and t1.dev_hand_ver = #{form.devHardVer} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.gateWayType!=null and form.gateWayType!=''"> |
|
|
|
|
|
|
|
and t1.dev_type_name_new = #{form.gateWayType} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.firstStartTime!=null and form.firstEndTime!=null"> |
|
|
|
|
|
|
|
and t1.dev_create_time >= to_date(#{form.firstStartTime}, 'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
and t1.dev_create_time<= to_date(#{form.firstEndTime},'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.lastStartTime!=null and form.lastEndTime!=null "> |
|
|
|
|
|
|
|
and t1.dev_modify_time >= to_date(#{form.lastStartTime}, 'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
and t1.dev_modify_time<= to_date(#{form.lastEndTime},'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.onLineStartTime!=null and form.onLineEndTime!=null"> |
|
|
|
|
|
|
|
and t1.dev_online_time >= to_date(#{form.onLineStartTime}, 'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
and t1.dev_online_time<= to_date(#{form.onLineEndTime},'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
</where> |
|
|
|
|
|
|
|
GROUP BY |
|
|
|
|
|
|
|
t2.groupname, |
|
|
|
|
|
|
|
t1.groupname, |
|
|
|
|
|
|
|
t1.dev_vendor_name, |
|
|
|
|
|
|
|
t1.dev_type_name, |
|
|
|
|
|
|
|
t1.soft_ver, |
|
|
|
|
|
|
|
t1.dev_hard_ver |
|
|
|
|
|
|
|
ORDER BY |
|
|
|
|
|
|
|
devCount Desc |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="listExportDeviceTypeHardSoftVer" resultType="com.bellmann.model.vo.DeviceTypeHardSoftVerExportVO"> |
|
|
|
|
|
|
|
SELECT |
|
|
|
|
|
|
|
t2.groupname AS area, |
|
|
|
|
|
|
|
t1.groupname AS subArea, |
|
|
|
|
|
|
|
t1.dev_vendor_name AS category, |
|
|
|
|
|
|
|
t1.dev_type_name AS deviceName, |
|
|
|
|
|
|
|
t1.soft_ver, |
|
|
|
|
|
|
|
t1.dev_hard_ver, |
|
|
|
|
|
|
|
count(*) devCount |
|
|
|
|
|
|
|
FROM |
|
|
|
|
|
|
|
V_ZJ_DEVICE_TOTAL t1 |
|
|
|
|
|
|
|
LEFT JOIN GROUP_INFO_TAB t2 ON t1.parentgroupid = t2.groupid |
|
|
|
|
|
|
|
<where> |
|
|
|
|
|
|
|
<if test="form.area !=0 and form.area!=null"> |
|
|
|
|
|
|
|
and t1.PARENTGROUPID = #{form.area} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.subarea !=null "> |
|
|
|
|
|
|
|
and t1.groupid = #{form.subarea} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.category!=null and form.category!= '' and form.category!= '-1' "> |
|
|
|
|
|
|
|
and UPPER(t1.DEV_VENDOR_NAME) = UPPER(#{form.category}) |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.devName!=null and form.devName!='' and form.devName!='-1' "> |
|
|
|
|
|
|
|
and t1.DEV_TYPE_NAME = #{form.devName} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.softVer!=null and form.softVer!='' and form.softVer!='-1'"> |
|
|
|
|
|
|
|
and t1.soft_ver = #{form.softVer} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.devHardVer!=null and form.devHardVer!='' and form.devHardVer!='-1'"> |
|
|
|
|
|
|
|
and t1.dev_hand_ver = #{form.devHardVer} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.gateWayType!=null and form.gateWayType!=''"> |
|
|
|
|
|
|
|
and t1.dev_type_name_new = #{form.gateWayType} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.firstStartTime!=null and form.firstEndTime!=null"> |
|
|
|
|
|
|
|
and t1.dev_create_time >= to_date(#{form.firstStartTime}, 'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
and t1.dev_create_time<= to_date(#{form.firstEndTime},'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.lastStartTime!=null and form.lastEndTime!=null "> |
|
|
|
|
|
|
|
and t1.dev_modify_time >= to_date(#{form.lastStartTime}, 'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
and t1.dev_modify_time<= to_date(#{form.lastEndTime},'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="form.onLineStartTime!=null and form.onLineEndTime!=null"> |
|
|
|
|
|
|
|
and t1.dev_online_time >= to_date(#{form.onLineStartTime}, 'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
and t1.dev_online_time<= to_date(#{form.onLineEndTime},'yyyy-MM-dd HH24:mi:ss') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
</where> |
|
|
|
|
|
|
|
GROUP BY |
|
|
|
|
|
|
|
t2.groupname, |
|
|
|
|
|
|
|
t1.groupname, |
|
|
|
|
|
|
|
t1.dev_vendor_name, |
|
|
|
|
|
|
|
t1.dev_type_name, |
|
|
|
|
|
|
|
t1.soft_ver, |
|
|
|
|
|
|
|
t1.dev_hard_ver |
|
|
|
|
|
|
|
ORDER BY |
|
|
|
|
|
|
|
devCount Desc |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
</mapper> |
|
|
|
</mapper> |
|
|
|