修改权重和实验报告得分

master
whb 7 months ago
parent 9a5b36bdf2
commit 87ada6b10c

@ -1,6 +1,7 @@
package com.sztzjy.marketing.controller.stu;
import com.sztzjy.marketing.annotation.AnonymousAccess;
import com.sztzjy.marketing.config.security.TokenProvider;
import com.sztzjy.marketing.entity.StuUploadImgAi;
import com.sztzjy.marketing.entity.StuUploadImgAiExample;
import com.sztzjy.marketing.entity.dto.StuCreateArticleDTO;
@ -30,7 +31,9 @@ import org.yaml.snakeyaml.reader.StreamReader;
import reactor.core.publisher.Flux;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
@ -54,7 +57,8 @@ public class QianFanBigModuleController {
@Autowired
private QianFanBigModuleService qianFanBigModuleService;
@Autowired
private IFileUtil fileUtil;
@ApiOperation("AI文生图")
//@AnonymousAccess
@ -186,4 +190,28 @@ public class QianFanBigModuleController {
}
@GetMapping("/download")
@ApiOperation("AI修图图片下载")
@AnonymousAccess
public void download(@ApiParam("用户Token")String TOKEN, HttpServletResponse response,String name) {
TokenProvider.getJWTUser(TOKEN);
if ("AI扩图".equals(name))
{
fileUtil.download(response, "jnaAI扩图--金鱼", "jnaAI扩图--金鱼.png");
}
if ("AI抠图".equals(name))
{
fileUtil.download(response, "jna人物照--AI抠图", "jna人物照--AI抠图.jpg");
}
if ("AI消除".equals(name))
{
fileUtil.download(response, "jna商品照片", "jna商品照片.png");
}
if ("AI数据分析".equals(name))
{
fileUtil.download(response, "jnacustomer_shopping_data", "jnacustomer_shopping_data.csv");
}
}
}

@ -52,14 +52,14 @@ public class TchModuleWeith {
this.id=(UUID.randomUUID().toString());
this.schoolId=schoolId;
this.summaryOfKnowledgeScore=(BigDecimal.valueOf(20.00));
this.summaryOfKnowledgeWeight=(BigDecimal.valueOf(0.15));
this.summaryOfKnowledgeWeight=(BigDecimal.valueOf(0.1));
this.resourceLearningScore=(BigDecimal.valueOf(20.00));
this.resourceLearningWeight=(BigDecimal.valueOf(0.15));
this.resourceLearningWeight=(BigDecimal.valueOf(0.1));
this.learningAssessmentScore=(BigDecimal.valueOf(10.00));
this.learningAssessmentWeight=(BigDecimal.valueOf(0.30));
this.experimentalTrainingScore=(BigDecimal.valueOf(2.00));
this.experimentalTrainingWeight=(BigDecimal.valueOf(0.20));
this.reportWeight=(BigDecimal.valueOf(0.20));
this.learningAssessmentWeight=(BigDecimal.valueOf(0.1));
this.experimentalTrainingScore=(BigDecimal.valueOf(1.00));
this.experimentalTrainingWeight=(BigDecimal.valueOf(0.30));
this.reportWeight=(BigDecimal.valueOf(0.40));
}

Loading…
Cancel
Save