Browse Source

根据全局设置判断当前维保工是否可以继续维保电梯

wanghaicheng 4 years ago
parent
commit
c768006ec3

+ 1 - 1
lift-business-service/src/main/java/cn/com/ty/lift/business/maintenance/dao/mapper/MaintenancePlanMapper.java

@@ -59,6 +59,6 @@ public interface MaintenancePlanMapper extends BaseMapper<MaintenancePlan> {
     Long getCountByPlanId(Long planId);
 
     @Select("select (select value from global_set where company_id = #{mtCompanyId}  and code = 'sameUnits') >" +
-            "       (select count(*) from maintenance_record where worker_id1 = #{workerId1} and status = '1')")
+            "       (select count(*) from maintenance_record where mt_company_id=#{mtCompanyId} and worker_id1 = #{workerId1} and status = '1')")
     boolean selectLiftMaintainableBy(Long workerId1, Long mtCompanyId);
 }