Browse Source

更改指标参数

ywx
王宁 1 month ago
parent
commit
6c5aa75057

+ 6
- 6
smarking/src/main/java/com/xhkjedu/smarking/controller/wholeparam/MspGradeparamController.java View File

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

+ 3
- 3
smarking/src/main/java/com/xhkjedu/smarking/mapper/wholeparam/MspGradeparamMapper.java View File

1
 package com.xhkjedu.smarking.mapper.wholeparam;
1
 package com.xhkjedu.smarking.mapper.wholeparam;
2
 
2
 
3
 import com.xhkjedu.base.TkMapper;
3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.smarking.model.wholeparam.MspGradeparam;
4
+import com.xhkjedu.smarking.model.wholeparam.MspReportparam;
5
 import com.xhkjedu.smarking.vo.wholeparam.GradeParams;
5
 import com.xhkjedu.smarking.vo.wholeparam.GradeParams;
6
 import org.apache.ibatis.annotations.Param;
6
 import org.apache.ibatis.annotations.Param;
7
 
7
 
12
  * @Author: WN
12
  * @Author: WN
13
  * @Date: 2024/12/2 16:14:48
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
     int deleteGradeparam(@Param("gp")GradeParams gp);
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 View File

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

+ 10
- 10
smarking/src/main/java/com/xhkjedu/smarking/service/wholeparam/MspGradeparamService.java View File

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

+ 3
- 4
smarking/src/main/java/com/xhkjedu/smarking/vo/wholeparam/GradeParams.java View File

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

3
 <mapper namespace="com.xhkjedu.smarking.mapper.wholeparam.MspGradeparamMapper">
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
     </select>
8
     </select>
9
 
9
 
10
     <!--删除-->
10
     <!--删除-->
11
     <delete id="deleteGradeparam">
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
     </delete>
13
     </delete>
14
 </mapper>
14
 </mapper>

Loading…
Cancel
Save