From 2f5db364278a7994927fe62aa5ba0c1cf9499a32 Mon Sep 17 00:00:00 2001 From: Himit_ZH <372347736@qq.com> Date: Sat, 14 Aug 2021 23:01:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=AF=94=E8=B5=9BAC=E5=8A=A9?= =?UTF-8?q?=E6=89=8B=E9=A6=96AC=E6=9C=AA=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/use/spj.md | 2 +- .../hcode/hoj/dao/ContestRecordMapper.java | 3 +- .../hcode/hoj/dao/xml/ContestRecordMapper.xml | 6 +-- .../impl/ContestRecordServiceImpl.java | 52 ++++++++++++++++--- 4 files changed, 50 insertions(+), 13 deletions(-) diff --git a/docs/docs/use/spj.md b/docs/docs/use/spj.md index c6bdd8e1..87419db6 100644 --- a/docs/docs/use/spj.md +++ b/docs/docs/use/spj.md @@ -35,7 +35,7 @@ int main(int argc, char *args[]){ ouf: 选手输出流 ans: 标准答案流 **/ - registerTestlibCmd(argc, argv); + registerTestlibCmd(argc, args); double pans = ouf.readDouble(); double jans = ans.readDouble(); if (fabs(pans - jans)<0.01) diff --git a/hoj-springboot/DataBackup/src/main/java/top/hcode/hoj/dao/ContestRecordMapper.java b/hoj-springboot/DataBackup/src/main/java/top/hcode/hoj/dao/ContestRecordMapper.java index c49c759c..8dcd5184 100644 --- a/hoj-springboot/DataBackup/src/main/java/top/hcode/hoj/dao/ContestRecordMapper.java +++ b/hoj-springboot/DataBackup/src/main/java/top/hcode/hoj/dao/ContestRecordMapper.java @@ -1,6 +1,5 @@ package top.hcode.hoj.dao; -import com.baomidou.mybatisplus.core.metadata.IPage; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; @@ -21,7 +20,7 @@ import java.util.List; @Mapper @Repository public interface ContestRecordMapper extends BaseMapper { - List getACInfo(IPage iPage, @Param("status") Integer status, @Param("cid") Long cid); + List getACInfo(@Param("status") Integer status, @Param("cid") Long cid); List getOIContestRecord(@Param("cid") Long cid, @Param("contestAuthor") String contestAuthor, @Param("isOpenSealRank") Boolean isOpenSealRank, diff --git a/hoj-springboot/DataBackup/src/main/java/top/hcode/hoj/dao/xml/ContestRecordMapper.xml b/hoj-springboot/DataBackup/src/main/java/top/hcode/hoj/dao/xml/ContestRecordMapper.xml index 3dd149ac..1b695734 100644 --- a/hoj-springboot/DataBackup/src/main/java/top/hcode/hoj/dao/xml/ContestRecordMapper.xml +++ b/hoj-springboot/DataBackup/src/main/java/top/hcode/hoj/dao/xml/ContestRecordMapper.xml @@ -4,11 +4,10 @@