From b14b0ed49bcd107fdfdddb118ce87ad72342d5cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Fri, 24 May 2024 17:01:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E6=98=AF=E6=8F=90=E7=A4=BA=E6=94=B9=E4=B8=BA=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kc/zyInfo/controller/ZyInfoController.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfo/controller/ZyInfoController.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfo/controller/ZyInfoController.java index ca47b106..958b6578 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfo/controller/ZyInfoController.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfo/controller/ZyInfoController.java @@ -133,6 +133,20 @@ public class ZyInfoController extends JeecgController { return Result.OK("编辑成功!"); } + /** + * 编辑 + * + * @param zyInfo + * @return + */ + @AutoLog(value = "作业发布-发布") + @ApiOperation(value="作业发布-发布", notes="作业发布-发布") + @RequestMapping(value = "/release", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result release(@RequestBody ZyInfo zyInfo) { + zyInfoService.updateById(zyInfo); + return Result.OK("发布成功!"); + } + @ApiOperation(value="作业发布-通过id查询", notes="作业发布-通过id查询") @GetMapping(value = "/editStudent") public Result editStudent(@RequestParam(name="id",required=true) String id) { From 41d1f68bb026a3db7911c07b6e51055a81f03e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Fri, 24 May 2024 20:42:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/jeecg/modules/kc/zyInfo/entity/ZyInfo.java | 2 ++ .../org/jeecg/modules/kc/zyInfo/mapper/xml/ZyInfoMapper.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfo/entity/ZyInfo.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfo/entity/ZyInfo.java index 8d1b554c..24d67c6e 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfo/entity/ZyInfo.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfo/entity/ZyInfo.java @@ -124,6 +124,8 @@ public class ZyInfo implements Serializable { @TableField(exist = false) private String stuFilePath; @TableField(exist = false) + private String stuPdfPath; + @TableField(exist = false) private String score; @TableField(exist = false) private String wtjnum; diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfo/mapper/xml/ZyInfoMapper.xml b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfo/mapper/xml/ZyInfoMapper.xml index 884dff8b..6ffe2b0b 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfo/mapper/xml/ZyInfoMapper.xml +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfo/mapper/xml/ZyInfoMapper.xml @@ -3,7 +3,7 @@