Ver código fonte

更改指标参数

ywx
王宁 1 mês atrás
pai
commit
6c5aa75057

+ 6
- 6
smarking/src/main/java/com/xhkjedu/smarking/controller/wholeparam/MspGradeparamController.java Ver arquivo

@@ -1,6 +1,6 @@
1 1
 package com.xhkjedu.smarking.controller.wholeparam;
2 2
 
3
-import com.xhkjedu.smarking.model.wholeparam.MspGradeparam;
3
+import com.xhkjedu.smarking.model.wholeparam.MspReportparam;
4 4
 import com.xhkjedu.smarking.service.wholeparam.MspGradeparamService;
5 5
 import com.xhkjedu.smarking.vo.wholeparam.GradeParams;
6 6
 import com.xhkjedu.utils.N_Utils;
@@ -14,12 +14,12 @@ import javax.annotation.Resource;
14 14
 import java.util.List;
15 15
 
16 16
 /**
17
- * @Description:阅卷指标参数-等级类
17
+ * @Description:阅卷指标参数-报告参数
18 18
  * @Author: WN
19 19
  * @Date: 2024/12/2 16:46:46
20 20
  **/
21 21
 @RestController
22
-@RequestMapping("/gparam")
22
+@RequestMapping("/rparam")
23 23
 public class MspGradeparamController {
24 24
     @Resource
25 25
     private MspGradeparamService mspGradeparamService;
@@ -33,7 +33,7 @@ public class MspGradeparamController {
33 33
      **/
34 34
     @PostMapping("/save")
35 35
     public ResultVo save(@RequestBody GradeParams gradeparam) {
36
-        N_Utils.validation(new Object[]{gradeparam.getSchoolid(), "学校id", 1,gradeparam.getGpbelong(),"归属菜单",2});
36
+        N_Utils.validation(new Object[]{gradeparam.getSchoolid(), "学校id", 1,gradeparam.getRpbelong(),"归属菜单",2});
37 37
         if(gradeparam.getGradeid() == null){
38 38
             return new ResultVo(1, "年级不能为空");
39 39
         }
@@ -54,11 +54,11 @@ public class MspGradeparamController {
54 54
      **/
55 55
     @PostMapping("/detail")
56 56
     public ResultVo detail(@RequestBody GradeParams gradeparam) {
57
-        N_Utils.validation(new Object[]{gradeparam.getSchoolid(), "学校id", 1,gradeparam.getGpbelong(),"归属菜单",2});
57
+        N_Utils.validation(new Object[]{gradeparam.getSchoolid(), "学校id", 1,gradeparam.getRpbelong(),"归属菜单",2});
58 58
         if(gradeparam.getGradeid() == null){
59 59
             return new ResultVo(1, "年级不能为空");
60 60
         }
61
-        List<MspGradeparam> rtnParams = mspGradeparamService.getMspGradeparam(gradeparam);
61
+        List<MspReportparam> rtnParams = mspGradeparamService.getMspGradeparam(gradeparam);
62 62
         return new ResultVo(0, "保存成功",rtnParams);
63 63
     }
64 64
 

+ 3
- 3
smarking/src/main/java/com/xhkjedu/smarking/mapper/wholeparam/MspGradeparamMapper.java Ver arquivo

@@ -1,7 +1,7 @@
1 1
 package com.xhkjedu.smarking.mapper.wholeparam;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.smarking.model.wholeparam.MspGradeparam;
4
+import com.xhkjedu.smarking.model.wholeparam.MspReportparam;
5 5
 import com.xhkjedu.smarking.vo.wholeparam.GradeParams;
6 6
 import org.apache.ibatis.annotations.Param;
7 7
 
@@ -12,10 +12,10 @@ import java.util.List;
12 12
  * @Author: WN
13 13
  * @Date: 2024/12/2 16:14:48
14 14
  **/
15
-public interface MspGradeparamMapper extends TkMapper<MspGradeparam> {
15
+public interface MspGradeparamMapper extends TkMapper<MspReportparam> {
16 16
 
17 17
     //获取学校年级下指定模块参数
18
-    List<MspGradeparam> getGradeParamByGradeAndBelong(@Param("gp") GradeParams gp);
18
+    List<MspReportparam> getGradeParamByGradeAndBelong(@Param("gp") GradeParams gp);
19 19
     //删除
20 20
     int deleteGradeparam(@Param("gp")GradeParams gp);
21 21
 }

smarking/src/main/java/com/xhkjedu/smarking/model/wholeparam/MspGradeparam.java → smarking/src/main/java/com/xhkjedu/smarking/model/wholeparam/MspReportparam.java Ver arquivo

@@ -7,23 +7,23 @@ import javax.persistence.Id;
7 7
 import javax.persistence.Table;
8 8
 
9 9
 /**
10
- * @Description 阅卷指标参数-等级类参数表
10
+ * @Description 阅卷指标参数-报考参数表
11 11
  * @Author auto
12 12
  * @Date 2024-12-02
13 13
  */
14 14
 @Data
15
-@Table(name = "msp_gradeparam")
16
-public class MspGradeparam extends BaseBean {
15
+@Table(name = "msp_reportparam")
16
+public class MspReportparam extends BaseBean {
17 17
     @Id
18 18
     //等级类参数ID
19
-    private Integer gpid;
19
+    private Integer rpid;
20 20
     //年级 0通用
21 21
     private Integer gradeid;
22 22
     //归属:allrate班级对比表综合率  gradescore分档分数线 nearline临界生群体分析 subjectshow学科考试表现
23 23
     //  keystu重点学生信息
24
-    private String gpbelong;
24
+    private String rpbelong;
25 25
     //类型
26
-    private Integer gptype;
26
+    private Integer rptype;
27 27
     //等级值
28 28
     private Integer gradenum;
29 29
     //科目ID

+ 10
- 10
smarking/src/main/java/com/xhkjedu/smarking/service/wholeparam/MspGradeparamService.java Ver arquivo

@@ -1,7 +1,7 @@
1 1
 package com.xhkjedu.smarking.service.wholeparam;
2 2
 
3 3
 import com.xhkjedu.smarking.mapper.wholeparam.MspGradeparamMapper;
4
-import com.xhkjedu.smarking.model.wholeparam.MspGradeparam;
4
+import com.xhkjedu.smarking.model.wholeparam.MspReportparam;
5 5
 import com.xhkjedu.smarking.vo.wholeparam.GradeParams;
6 6
 import com.xhkjedu.utils.N_Utils;
7 7
 import org.springframework.stereotype.Service;
@@ -11,7 +11,7 @@ import javax.annotation.Resource;
11 11
 import java.util.List;
12 12
 
13 13
 /**
14
- * @Description:阅卷指标参数-等级类
14
+ * @Description:阅卷指标参数-报考参数表
15 15
  * @Author: WN
16 16
  * @Date: 2024/12/2 16:19:44
17 17
  **/
@@ -21,7 +21,7 @@ public class MspGradeparamService {
21 21
     private MspGradeparamMapper mspGradeparamMapper;
22 22
 
23 23
     /*
24
-     * @Description 保存等级参数
24
+     * @Description 保存参数
25 25
      * @Date 2024/12/2 16:46:10
26 26
      * @Author WN
27 27
      * @Param [mspGradeparam]
@@ -29,21 +29,21 @@ public class MspGradeparamService {
29 29
      **/
30 30
     @Transactional(rollbackFor = Exception.class)
31 31
     public void saveGradeparam(GradeParams gradeParams) {
32
-        List<MspGradeparam> originalParams = mspGradeparamMapper.getGradeParamByGradeAndBelong(gradeParams);
32
+        List<MspReportparam> originalParams = mspGradeparamMapper.getGradeParamByGradeAndBelong(gradeParams);
33 33
 
34 34
         if(originalParams!= null && originalParams.size() > 0) {
35 35
             mspGradeparamMapper.deleteGradeparam(gradeParams);
36 36
         }
37 37
 
38 38
         Integer timestamp = N_Utils.getSecondTimestamp();
39
-        List<MspGradeparam> params = gradeParams.getParams();
40
-        for(MspGradeparam param : params) {
41
-            param.setGpbelong(gradeParams.getGpbelong());
39
+        List<MspReportparam> params = gradeParams.getParams();
40
+        for(MspReportparam param : params) {
41
+            param.setRpbelong(gradeParams.getRpbelong());
42 42
             param.setGradeid(gradeParams.getGradeid());
43 43
             param.setHandleid(gradeParams.getHandleid());
44 44
             param.setSchoolid(gradeParams.getSchoolid());
45 45
             param.setHandletime(timestamp);
46
-            if(param.getGptype() == null) param.setGptype(0);
46
+            if(param.getRptype() == null) param.setRptype(0);
47 47
             if(param.getGradenum() == null) param.setGradenum(0);
48 48
         }
49 49
         mspGradeparamMapper.insertList(params);
@@ -51,13 +51,13 @@ public class MspGradeparamService {
51 51
     }
52 52
 
53 53
     /*
54
-     * @Description 保存等级参数
54
+     * @Description 获取参数
55 55
      * @Date 2024/12/2 16:46:15
56 56
      * @Author WN
57 57
      * @Param [mspGradeparam]
58 58
      * @Return com.xhkjedu.smarking.model.wholeparam.MspGradeparam
59 59
      **/
60
-    public List<MspGradeparam> getMspGradeparam(GradeParams mspGradeparam) {
60
+    public List<MspReportparam> getMspGradeparam(GradeParams mspGradeparam) {
61 61
         return mspGradeparamMapper.getGradeParamByGradeAndBelong(mspGradeparam);
62 62
     }
63 63
 }

+ 3
- 4
smarking/src/main/java/com/xhkjedu/smarking/vo/wholeparam/GradeParams.java Ver arquivo

@@ -1,6 +1,6 @@
1 1
 package com.xhkjedu.smarking.vo.wholeparam;
2 2
 
3
-import com.xhkjedu.smarking.model.wholeparam.MspGradeparam;
3
+import com.xhkjedu.smarking.model.wholeparam.MspReportparam;
4 4
 import lombok.Data;
5 5
 
6 6
 import java.util.List;
@@ -10,7 +10,6 @@ import java.util.List;
10 10
  * @Author: WN
11 11
  * @Date: 2024/12/3 9:41:33
12 12
  **/
13
-
14 13
 @Data
15 14
 public class GradeParams {
16 15
 
@@ -18,12 +17,12 @@ public class GradeParams {
18 17
     private Integer gradeid;
19 18
     //归属:allrate班级对比表综合率  gradescore分档分数线 nearline临界生群体分析 subjectshow学科考试表现
20 19
     //  keystu重点学生信息
21
-    private String gpbelong;
20
+    private String rpbelong;
22 21
     //操作人ID
23 22
     private Integer handleid;
24 23
 
25 24
     //学校ID
26 25
     private Integer schoolid;
27 26
 
28
-    private List<MspGradeparam> params;//所有参数集合
27
+    private List<MspReportparam> params;//所有参数集合
29 28
 }

+ 3
- 3
smarking/src/main/resources/mapper/wholeparam/MsGradeparamMapper.xml Ver arquivo

@@ -3,12 +3,12 @@
3 3
 <mapper namespace="com.xhkjedu.smarking.mapper.wholeparam.MspGradeparamMapper">
4 4
 
5 5
     <!--获取学校年级下指定模块参数-->
6
-    <select id="getGradeParamByGradeAndBelong" resultType="com.xhkjedu.smarking.model.wholeparam.MspGradeparam">
7
-        select * from msp_gradeparam where schoolid = #{gp.schoolid} and gradeid=#{gp.gradeid} and gpbelong = #{gp.gpbelong}
6
+    <select id="getGradeParamByGradeAndBelong" resultType="com.xhkjedu.smarking.model.wholeparam.MspReportparam">
7
+        select * from msp_reportparam where schoolid = #{gp.schoolid} and gradeid=#{gp.gradeid} and rpbelong = #{gp.rpbelong}
8 8
     </select>
9 9
 
10 10
     <!--删除-->
11 11
     <delete id="deleteGradeparam">
12
-        delete from msp_gradeparam where schoolid = #{gp.schoolid} and gradeid=#{gp.gradeid} and gpbelong = #{gp.gpbelong}
12
+        delete from msp_reportparam where schoolid = #{gp.schoolid} and gradeid=#{gp.gradeid} and rpbelong = #{gp.rpbelong}
13 13
     </delete>
14 14
 </mapper>

Carregando…
Cancelar
Salvar