|  | @@ -380,7 +380,7 @@ public class RegistrationService extends ServiceImpl<InterRegistrationMapper, Re
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -            if (null == currentToken) {
 |  | 
 | 
												
													
														
															|  | 
 |  | +            //if (null == currentToken) {
 | 
												
													
														
															|  |                  //发起实习登记流程
 |  |                  //发起实习登记流程
 | 
												
													
														
															|  |                  Map map = SpringUtil.getBean(IFlowableApi.class).getByNameForFen("实习登记");
 |  |                  Map map = SpringUtil.getBean(IFlowableApi.class).getByNameForFen("实习登记");
 | 
												
													
														
															|  |                  String procDefId = map.get("id")+"";
 |  |                  String procDefId = map.get("id")+"";
 | 
												
											
												
													
														
															|  | @@ -404,9 +404,9 @@ public class RegistrationService extends ServiceImpl<InterRegistrationMapper, Re
 | 
												
													
														
															|  |                  Map<String, String> newMap = pingMap(procDefId, procDefKey, businessTable, businessId, title, assignee, 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);
 |  |                  SpringUtil.getBean(IFlowableApi.class).startForFenNew(allMap);
 | 
												
													
														
															|  | -            } else {
 |  | 
 | 
												
													
														
															|  | 
 |  | +            /*} else {
 | 
												
													
														
															|  |                  mapper.insert(report);
 |  |                  mapper.insert(report);
 | 
												
													
														
															|  | -            }
 |  | 
 | 
												
													
														
															|  | 
 |  | +            }*/
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
											
												
													
														
															|  | @@ -450,8 +450,13 @@ public class RegistrationService extends ServiceImpl<InterRegistrationMapper, Re
 | 
												
													
														
															|  |       * @return
 |  |       * @return
 | 
												
													
														
															|  |       */
 |  |       */
 | 
												
													
														
															|  |      public List<Registration> getTimeOutRegisters() {
 |  |      public List<Registration> getTimeOutRegisters() {
 | 
												
													
														
															|  | 
 |  | +        String dictValue = SpringUtil.getBean(IDictApi.class).getDictValue("remind_day", "practice_log_remind_day", "");
 | 
												
													
														
															|  | 
 |  | +        Integer day = 7;//给个默认值,防止没有字典信息
 | 
												
													
														
															|  | 
 |  | +        if(StringUtils.isNotBlank(dictValue)){
 | 
												
													
														
															|  | 
 |  | +            day = Integer.valueOf(dictValue);
 | 
												
													
														
															|  | 
 |  | +        }
 | 
												
													
														
															|  |          //获取3天前的时间
 |  |          //获取3天前的时间
 | 
												
													
														
															|  | -        String threeDayAgo = LocalDateTime.now().plusDays(-3).format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
 |  | 
 | 
												
													
														
															|  | 
 |  | +        String threeDayAgo = LocalDateTime.now().plusDays(-day).format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
 | 
												
													
														
															|  |          List<Registration> registrations = mapper.getTimeOutRegisters(threeDayAgo);
 |  |          List<Registration> registrations = mapper.getTimeOutRegisters(threeDayAgo);
 | 
												
													
														
															|  |          return registrations;
 |  |          return registrations;
 | 
												
													
														
															|  |      }
 |  |      }
 |