|
@@ -0,0 +1,52 @@
|
|
|
+<?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="cn.com.ty.lift.system.homepage.dao.mapper.CommonDataMapper">
|
|
|
+ <!-- 获取维保计划数据 -->
|
|
|
+ <select id="getMtPlanData" parameterType="cn.com.ty.lift.system.homepage.dao.dto.request.LiftDataRequest"
|
|
|
+ resultType="cn.com.ty.lift.system.homepage.dao.model.MtPlanDataModel">
|
|
|
+ select
|
|
|
+ mp.lift_id as liftId,
|
|
|
+ mp.status as status
|
|
|
+ from
|
|
|
+ maintenance_plan mp
|
|
|
+ where
|
|
|
+ mp.mt_company_id = #{mtCompanyId}
|
|
|
+ and
|
|
|
+ mp.plan_date <![CDATA[ >= ]]> #{startDateStr}
|
|
|
+ and
|
|
|
+ mp.plan_date <![CDATA[ <= ]]> #{endDateStr}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 获取急修记录数据 -->
|
|
|
+ <select id="getEmergencyRecordData" parameterType="cn.com.ty.lift.system.homepage.dao.dto.request.LiftDataRequest"
|
|
|
+ resultType="cn.com.ty.lift.system.homepage.dao.model.EmergencyRecordDataModel">
|
|
|
+ select
|
|
|
+ er.lift_id as liftId,
|
|
|
+ er.status as status
|
|
|
+ from
|
|
|
+ emergency_repair er
|
|
|
+ where
|
|
|
+ er.mt_company_id = #{mtCompanyId}
|
|
|
+ and
|
|
|
+ er.caller_date <![CDATA[ >= ]]> #{startDateStr}
|
|
|
+ and
|
|
|
+ er.caller_date <![CDATA[ <= ]]> #{endDateStr}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 获取电梯维保记录 -->
|
|
|
+ <select id="getMtRecordData" parameterType="cn.com.ty.lift.system.homepage.dao.dto.request.LiftDataRequest"
|
|
|
+ resultType="cn.com.ty.lift.system.homepage.dao.model.MtRecordDataModel">
|
|
|
+ select
|
|
|
+ mr.lift_id as liftId,
|
|
|
+ mr.status as stats
|
|
|
+ from
|
|
|
+ maintenance_record mr
|
|
|
+ where
|
|
|
+ mr.mt_company_id = #{mtCompanyId}
|
|
|
+ and
|
|
|
+ mr.create_date <![CDATA[ >= ]]> #{startDateStr}
|
|
|
+ and
|
|
|
+ mr.create_date <![CDATA[ <= ]]> #{endDateStr}
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|