浏览代码

实习扫码登记调整

wangqiang 1 年之前
父节点
当前提交
1a3c9b6052

+ 3 - 0
jeeplus-modules/jeeplus-flowable/src/main/java/com/jeeplus/flowable/controller/FlowableTaskController.java

@@ -251,6 +251,9 @@ public class FlowableTaskController {
             } else if (key.equals("备用金")){
                 String procInsId = getProcInsId(entry);
                 map1.put("备用金", procInsId);
+            } else if (key.equals("实习")){
+                String procInsId = getProcInsId(entry);
+                map1.put("实习", procInsId);
             }
         }
         return map1 ;

+ 5 - 2
jeeplus-modules/jeeplus-human/src/main/java/com/jeeplus/human/practice/register/service/RegistrationService.java

@@ -293,6 +293,7 @@ public class RegistrationService extends ServiceImpl<InterRegistrationMapper, Re
             String procDefId = map.get("id")+"";
 
             report.setProcessDefinitionId(procDefId);
+            mapper.insert(report);
 
             Map<String ,Map<String,String >>  allMap = new HashMap<>();
 
@@ -308,10 +309,12 @@ public class RegistrationService extends ServiceImpl<InterRegistrationMapper, Re
             String recordType = "";
 
             Map<String, String> newMap = pingMap(procDefId, procDefKey, businessTable, businessId, title, assignee, recordType);
-            allMap.put("底稿",newMap);
+            allMap.put("实习",newMap);
             SpringUtil.getBean(IFlowableApi.class).startForFenNew(allMap);
+        } else {
+            mapper.insert(report);
         }
-        mapper.insert(report);
+
 
 
         return report;