- package com.zksy.api.mapper;
- import org.apache.ibatis.annotations.Param;
- import org.apache.ibatis.annotations.Select;
- import java.util.List;
- public interface DeviceContactApiMapper {
- /** 按台账编码查询维护记录联系人和台账负责人电话,状态表不存储负责人。 */
- @Select("SELECT m.maintain_person_phone FROM app_user.equipment_base b "
- + "JOIN app_user.equipment_maintain m ON m.equipment_id = b.equipment_id "
- + "WHERE b.equipment_code = #{deviceCode} "
- + "UNION SELECT b.maintainer_phone FROM app_user.equipment_base b "
- + "WHERE b.equipment_code = #{deviceCode}")
- List<String> selectPhonesByDeviceCode(@Param("deviceCode") String deviceCode);
- }
|