|
@@ -15,6 +15,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
|
|
+import java.time.LocalDate;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -59,6 +60,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 mt_company_id=#{mtCompanyId} and worker_id1 = #{workerId1} and status = '1')")
|
|
|
- boolean selectLiftMaintainableBy(Long workerId1, Long mtCompanyId);
|
|
|
+ " (select count(*) from maintenance_record where mt_company_id=#{mtCompanyId} and worker_id1 = #{workerId1} and status = '1' and work_date = #{today})")
|
|
|
+ boolean selectLiftMaintainableBy(Long workerId1, Long mtCompanyId, LocalDate today);
|
|
|
}
|