|
@@ -93,7 +93,7 @@
|
|
|
parameterType="cn.com.ty.lift.system.settings.dao.entity.model.MaintenanceCompanyRequest"
|
|
|
resultType="cn.com.ty.lift.system.homepage.dao.model.CountDataModel">
|
|
|
select
|
|
|
- <include refid="companyIdToCountSql"></include>
|
|
|
+ <include refid="companyIdToCountSql"/>
|
|
|
from
|
|
|
project
|
|
|
group by
|
|
@@ -101,7 +101,7 @@
|
|
|
having
|
|
|
1=1
|
|
|
<!-- 判断公司id是否在集合中 -->
|
|
|
- <include refid="setCompanyId"></include>
|
|
|
+ <include refid="setCompanyId"/>
|
|
|
|
|
|
</select>
|
|
|
|
|
@@ -110,7 +110,7 @@
|
|
|
parameterType="cn.com.ty.lift.system.settings.dao.entity.model.MaintenanceCompanyRequest"
|
|
|
resultType="cn.com.ty.lift.system.homepage.dao.model.CountDataModel">
|
|
|
select
|
|
|
- <include refid="companyIdToCountSql"></include>
|
|
|
+ <include refid="companyIdToCountSql"/>
|
|
|
from
|
|
|
maintenance_record
|
|
|
group by
|
|
@@ -118,7 +118,7 @@
|
|
|
having
|
|
|
1=1
|
|
|
<!-- 判断公司id是否在集合中 -->
|
|
|
- <include refid="setCompanyId"></include>
|
|
|
+ <include refid="setCompanyId"/>
|
|
|
</select>
|
|
|
|
|
|
<!-- 获取公司急修记录 -->
|
|
@@ -126,7 +126,7 @@
|
|
|
parameterType="cn.com.ty.lift.system.settings.dao.entity.model.MaintenanceCompanyRequest"
|
|
|
resultType="cn.com.ty.lift.system.homepage.dao.model.CountDataModel">
|
|
|
select
|
|
|
- <include refid="companyIdToCountSql"></include>
|
|
|
+ <include refid="companyIdToCountSql"/>
|
|
|
from
|
|
|
emergency_repair
|
|
|
group by
|
|
@@ -134,7 +134,7 @@
|
|
|
having
|
|
|
1=1
|
|
|
<!-- 判断公司id是否在集合中 -->
|
|
|
- <include refid="setCompanyId"></include>
|
|
|
+ <include refid="setCompanyId"/>
|
|
|
</select>
|
|
|
|
|
|
<!--################################################################################-->
|
|
@@ -146,7 +146,7 @@
|
|
|
parameterType="cn.com.ty.lift.system.homepage.dao.dto.request.PlatformCalendarRequest"
|
|
|
resultType="cn.com.ty.lift.system.homepage.dao.model.MtPlanDataModel">
|
|
|
select
|
|
|
- <include refid="liftInfoSql"></include>
|
|
|
+ <include refid="liftInfoSql"/>
|
|
|
mp.plan_date as planDate,
|
|
|
mp.status as status
|
|
|
from
|
|
@@ -155,7 +155,7 @@
|
|
|
lift l
|
|
|
on
|
|
|
mp.lift_id = l.id
|
|
|
- <include refid="liftInfoJoinSql"></include>
|
|
|
+ <include refid="liftInfoJoinSql"/>
|
|
|
where
|
|
|
mp.mt_company_id = #{mtCompanyId}
|
|
|
and
|
|
@@ -170,7 +170,7 @@
|
|
|
parameterType="cn.com.ty.lift.system.homepage.dao.dto.request.PlatformCalendarRequest"
|
|
|
resultType="cn.com.ty.lift.system.homepage.dao.model.MtRecordDataModel">
|
|
|
select
|
|
|
- <include refid="liftInfoSql"></include>
|
|
|
+ <include refid="liftInfoSql"/>
|
|
|
mr.work_date as workDate,
|
|
|
mr.status as status
|
|
|
from
|
|
@@ -179,7 +179,7 @@
|
|
|
lift l
|
|
|
on
|
|
|
mr.lift_id = l.id
|
|
|
- <include refid="liftInfoJoinSql"></include>
|
|
|
+ <include refid="liftInfoJoinSql"/>
|
|
|
where
|
|
|
mr.mt_company_id = #{mtCompanyId}
|
|
|
and
|
|
@@ -194,7 +194,7 @@
|
|
|
parameterType="cn.com.ty.lift.system.homepage.dao.dto.request.PlatformCalendarRequest"
|
|
|
resultType="cn.com.ty.lift.system.homepage.dao.model.EmergencyRecordDataModel">
|
|
|
select
|
|
|
- <include refid="liftInfoSql"></include>
|
|
|
+ <include refid="liftInfoSql"/>
|
|
|
er.caller_date as callerDate,
|
|
|
er.recovery_date as recoveryDate,
|
|
|
er.status as status
|
|
@@ -204,7 +204,7 @@
|
|
|
lift l
|
|
|
on
|
|
|
er.lift_id = l.id
|
|
|
- <include refid="liftInfoJoinSql"></include>
|
|
|
+ <include refid="liftInfoJoinSql"/>
|
|
|
where
|
|
|
er.mt_company_id = #{mtCompanyId}
|
|
|
and
|
|
@@ -219,7 +219,7 @@
|
|
|
parameterType="cn.com.ty.lift.system.homepage.dao.dto.request.PlatformCalendarRequest"
|
|
|
resultType="cn.com.ty.lift.system.homepage.dao.model.AnnualInspectionDataModel">
|
|
|
select
|
|
|
- <include refid="liftInfoSql"></include>
|
|
|
+ <include refid="liftInfoSql"/>
|
|
|
ai.finish_time as finishTime,
|
|
|
ai.status as status
|
|
|
from
|
|
@@ -228,7 +228,7 @@
|
|
|
lift l
|
|
|
on
|
|
|
ai.lift_id = l.id
|
|
|
- <include refid="liftInfoJoinSql"></include>
|
|
|
+ <include refid="liftInfoJoinSql"/>
|
|
|
where
|
|
|
ai.mt_company_id = #{mtCompanyId}
|
|
|
and
|