package com.example.cinema.blImpl; import com.example.cinema.bl.HallService; import com.example.cinema.data.HallMapper; import com.example.cinema.vo.ResponseVO; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * @author fjj * @date 2019/4/12 2:01 PM */ @Service public class HallServiceImpl implements HallService { @Autowired private HallMapper hallMapper; @Override public ResponseVO searchAllHall() { try { return ResponseVO.buildSuccess(hallMapper.selectAllHall()); } catch (Exception e) { e.printStackTrace(); return ResponseVO.buildFailure("失败"); } } }