MsReportMapper.java 942 B

1234567891011121314151617181920212223242526272829
  1. package com.bofeng.dao;
  2. import com.baomidou.mybatisplus.mapper.BaseMapper;
  3. import com.bofeng.entity.MsReport;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import org.apache.ibatis.annotations.Select;
  7. import org.springframework.stereotype.Repository;
  8. import java.util.List;
  9. /**
  10. * @Author: xielianghe
  11. * @Date: 2020/2/4 15:45
  12. */
  13. @Mapper
  14. @Repository
  15. public interface MsReportMapper extends BaseMapper<MsReport> {
  16. List<MsReport> selectByReportDate(@Param("reportDate") String reportDate,@Param("userCreate") Long userCreate);
  17. @Select("select property_id from sys_user_role where user_id=#{userId} and role_id=1")
  18. long selectHouseIdByUserId(@Param("userId") Long userId);
  19. //
  20. @Select("select count(*) from ms_suspected where report_id=#{reportId} and medical=#{medical}")
  21. Integer selectSuspectedNum(@Param("reportId") Long reportId,@Param("medical") Integer medical);
  22. }