//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.luozhihui.project.mapper;

import com.luozhihui.project.entity.Pact;
import java.util.List;
import org.apache.ibatis.annotations.Select;

public interface PactShowMapper {
    @Select({"select * from  `pact`"})
    List<Pact> FindAllPact();

    @Select({"select * from  `pact` where `UserId`=#{UserId}"})
    List<Pact> FindPactById(String OrderId);

    @Select({"SELECT `pact`.`PactId` , `pact`.`CarId`,`pact`.`UserId`,`pact`.`PactMoney` ,`pact`.`OutTime` , `pact`.`InTime`, `user`.UserName,`car`.CarModel,`car`.CarLicense  FROM `pact` JOIN `car` ON `car`.CarId=`pact`.CarId  JOIN `user` ON `user`.UserId=`pact`.UserId  Where `pact`.`PactId`=#{PactId} "})
    List<Pact> FindPactByPactId(String PactId);
}
