| | |
| | | info = wjInfo(serviceTask, patid, isFinish); |
| | | } else { |
| | | //宣教 |
| | | info = xjInfo(Long.valueOf(serviceTask.getLibtemplateid()), taskid, patid,isFinish); |
| | | info = xjInfo(Long.valueOf(serviceTask.getLibtemplateid()), taskid, patid, isFinish); |
| | | } |
| | | |
| | | //只要打开了页面,就算成功 |
| | | ServiceSubtask ServiceTaskSingle = new ServiceSubtask(); |
| | | ServiceTaskSingle.setTaskid(taskid); |
| | | ServiceTaskSingle.setPatid(patid); |
| | | ServiceTaskSingle.setResult("success"); |
| | | ServiceTaskSingle.setFinishtime(new Date()); |
| | | serviceSubtaskMapper.updateServiceSubtaskByCondition(ServiceTaskSingle); |
| | | if (isFinish) { |
| | | ServiceSubtask ss = new ServiceSubtask(); |
| | | ss.setTaskid(taskid); |
| | | ss.setPatid(patid); |
| | | ss.setSendstate(1L); |
| | | ss.setResult("success"); |
| | | ss.setFinishtime(new Date()); |
| | | serviceSubtaskMapper.updateServiceSubtaskByCondition(ss); |
| | | } |
| | | SvyTaskTemplate svyTaskTemplate = svyTaskTemplateMapper.selectSvyTaskTemplateBySvyid(serviceTask.getTemplateid()); |
| | | if (StringUtils.isNotEmpty(serviceTask.getKcb())) map.put("kcb", serviceTask.getKcb()); |
| | | map.put("script", info); |