瀏覽代碼

评价移动端结果分页列表

phoenix 1 年之前
父節點
當前提交
d844ae5d4f

+ 1 - 1
src/main/java/com/xjrsoft/module/evaluate/service/impl/EvaluateManageServiceImpl.java

@@ -166,7 +166,7 @@ public class EvaluateManageServiceImpl extends MPJBaseServiceImpl<EvaluateManage
                             String newStr1 = zonghezhishu.replace("totalScore", ""+totalScore);
                             String newStr2 = newStr1.replace("itemCount", ""+itemCount);
                             try{
-                                res = (double)engine.eval(newStr2);
+                                res = Double.parseDouble(engine.eval(newStr2).toString());
                             }catch (ScriptException s){
 
                             }

+ 30 - 0
src/main/java/com/xjrsoft/module/liteflow/node/StudentAssessmentInspectionNode.java

@@ -0,0 +1,30 @@
+package com.xjrsoft.module.liteflow.node;
+
+import cn.hutool.core.convert.Convert;
+import com.xjrsoft.module.student.service.IBaseStudentAssessmentInspectionService;
+import com.yomahub.liteflow.core.NodeComponent;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.Map;
+
+/**
+ * 新闻审核成功后发送消息
+ */
+@Component("student_assessment_inspection_node")
+public class StudentAssessmentInspectionNode extends NodeComponent {
+    @Autowired
+    private IBaseStudentAssessmentInspectionService baseStudentAssessmentInspectionService;
+
+    @Override
+    public void process() throws Exception {
+        // 获取表单中数据编号
+        Map<String, Object> params = this.getFirstContextBean();
+        Object value = util.getFormDatKey(params,"id");
+        Long formId = Convert.toLong(value);
+        if (formId != null) {
+            // 数据处理
+            baseStudentAssessmentInspectionService.dataHandle(formId);
+        }
+    }
+}

+ 2 - 0
src/main/java/com/xjrsoft/module/student/service/IBaseStudentAssessmentInspectionService.java

@@ -54,4 +54,6 @@ public interface IBaseStudentAssessmentInspectionService extends MPJBaseService<
      * @return
      */
     Page<CalssQuantitativeAssessmentPageVo> getCalssQuantitativeAssessmentPage(Page<CalssQuantitativeAssessmentPageDto> page, CalssQuantitativeAssessmentPageDto dto);
+
+    Boolean dataHandle(Long id);
 }

+ 5 - 0
src/main/java/com/xjrsoft/module/student/service/impl/BaseStudentAssessmentInspectionServiceImpl.java

@@ -237,6 +237,11 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
                 .leftJoin(BaseClassMajorSet.class, BaseClassMajorSet::getClassId, BaseClass::getId)
                 .disableSubLogicDel();
 
+        return null;
+    }
+
+    @Override
+    public Boolean dataHandle(Long id) {
 
         return null;
     }