|
|
@@ -0,0 +1,45 @@
|
|
|
+<?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.steerinfo.meterwork.meterworkdatacount.mapper.MeterWorkDataCountMapper">
|
|
|
+ <select id="countFirstAndActual" parameterType="java.util.HashMap" resultType="hashmap">
|
|
|
+ select
|
|
|
+ (select count(*) from meter_work_car_actual_first t where t.value_flag !='0') as count_First_Valid,
|
|
|
+ (select count(*) from meter_work_car_actual_first t where t.value_flag ='1') as count_First_Effective_Unclean,
|
|
|
+ (select count(*) from meter_work_car_actual t where t.value_flag != '0') as count_Actual_Valid,
|
|
|
+ (select count(*) from meter_work_car_actual t where t.value_flag != '0' and is_pre_scale = '0') as count_Actual_Effective_Unclean,
|
|
|
+ '汽车衡' as remark
|
|
|
+ from dual
|
|
|
+ union
|
|
|
+ select
|
|
|
+ (select count(*) from meter_work_railway_act_first t where t.railway_type_no in ('001019001') and t.value_flag !='0') as count_First_Valid,
|
|
|
+ (select count(*) from meter_work_railway_act_first t where t.railway_type_no in ('001019001') and t.value_flag ='1') as count_First_Effective_Unclean,
|
|
|
+ (select count(*) from meter_work_railway_actual t where t.railway_type_no in ('001019001') and t.value_flag != '0') as count_Actual_Valid,
|
|
|
+ (select count(*) from meter_work_railway_actual t where t.railway_type_no in ('001019001') and t.value_flag != '0' and is_pre_sacale = '0') as count_Actual_Effective_Unclean,
|
|
|
+ '静态衡' as remark
|
|
|
+ from dual
|
|
|
+ union
|
|
|
+ select
|
|
|
+ (select count(*) from meter_work_railway_act_first t where t.railway_type_no in ('001019002') and t.value_flag !='0') as count_First_Valid,
|
|
|
+ (select count(*) from meter_work_railway_act_first t where t.railway_type_no in ('001019002') and t.value_flag ='1') as count_First_Effective_Unclean,
|
|
|
+ (select count(*) from meter_work_railway_actual t where t.railway_type_no in ('001019002') and t.value_flag != '0') as count_Actual_Valid,
|
|
|
+ (select count(*) from meter_work_railway_actual t where t.railway_type_no in ('001019002') and t.value_flag != '0' and is_pre_sacale = '0') as count_Actual_Effective_Unclean,
|
|
|
+ '动态衡' as remark
|
|
|
+ from dual
|
|
|
+ union
|
|
|
+ select
|
|
|
+ (select count(*) from meter_work_railway_act_first t where t.railway_type_no in ('001019003', '001019004') and t.value_flag !='0') as count_First_Valid,
|
|
|
+ (select count(*) from meter_work_railway_act_first t where t.railway_type_no in ('001019003', '001019004') and t.value_flag ='1') as count_First_Effective_Unclean,
|
|
|
+ (select count(*) from meter_work_railway_actual t where t.railway_type_no in ('001019003', '001019004') and t.value_flag != '0') as count_Actual_Valid,
|
|
|
+ (select count(*) from meter_work_railway_actual t where t.railway_type_no in ('001019003', '001019004') and t.value_flag != '0' and is_pre_sacale = '0') as count_Actual_Effective_Unclean,
|
|
|
+ '铁水衡' as remark
|
|
|
+ from dual
|
|
|
+ union
|
|
|
+ select
|
|
|
+ (select count(*) from meter_work_railway_act_first t where t.railway_type_no in ('001019005') and t.value_flag !='0') as count_First_Valid,
|
|
|
+ (select count(*) from meter_work_railway_act_first t where t.railway_type_no in ('001019005') and t.value_flag ='1') as count_First_Effective_Unclean,
|
|
|
+ (select count(*) from meter_work_railway_actual t where t.railway_type_no in ('001019005') and t.value_flag != '0') as count_Actual_Valid,
|
|
|
+ (select count(*) from meter_work_railway_actual t where t.railway_type_no in ('001019005') and t.value_flag != '0' and is_pre_sacale = '0') as count_Actual_Effective_Unclean,
|
|
|
+ '吊钩秤' as remark
|
|
|
+ from dual
|
|
|
+ </select>
|
|
|
+</mapper>
|