| | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.utils.reflect.ReflectUtils; |
| | | import com.ruoyi.quartz.service.ICollectHISService; |
| | | import com.ruoyi.quartz.task.RyTask; |
| | | import com.ruoyi.system.service.ISysConfigService; |
| | | import com.ruoyi.system.service.ISysUserDeptService; |
| | |
| | | |
| | | @Autowired |
| | | private RyTask ryTask; |
| | | |
| | | @Autowired |
| | | private ICollectHISService collectHISService; |
| | | |
| | | @Value("${spring.profiles.active}") |
| | | private String active; |
| | |
| | | public AjaxResult update(@RequestBody ServiceSubtask serviceSubtask) { |
| | | serviceSubtask.setUpdateBy(getLoginUser().getUser().getNickName()); |
| | | return toAjax(serviceSubtaskService.updateServiceSubtask(serviceSubtask)); |
| | | } |
| | | |
| | | @ApiOperation("修改子任务模板") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/updateTemplate") |
| | | public AjaxResult updateTemplate(@RequestBody ServiceSubtaskTemplateVO serviceSubtaskTemplateVO) { |
| | | serviceSubtaskTemplateVO.setUpdateBy(getLoginUser().getUser().getNickName()); |
| | | return toAjax(serviceSubtaskService.updateTemplate(serviceSubtaskTemplateVO)); |
| | | } |
| | | |
| | | @ApiOperation("新增子任务") |
| | |
| | | |
| | | @PostMapping("/test") |
| | | public void test() { |
| | | ryTask.longTaskSend(); |
| | | ryTask.dealOutHospInfo(); |
| | | } |
| | | |
| | | @PostMapping("/syncMedInhospForShiyi") |
| | | public void syncMedInhospForShiyi(@RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime) { |
| | | collectHISService.syncMedInhosp(startTime, endTime); |
| | | } |
| | | } |