chengyao 4 år sedan
förälder
incheckning
3f65d0c8bf

+ 4 - 4
src/main/java/com/diagbot/task/MedIndexTask.java

@@ -8,6 +8,7 @@ import com.diagbot.facade.SysTaskCronFacade;
 import com.diagbot.facade.data.ADoctorAdviceFacade;
 import com.diagbot.util.StringUtil;
 import com.diagbot.vo.FilterVO;
+import com.diagbot.vo.IndexTimeVO;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.annotation.Configuration;
@@ -51,10 +52,9 @@ public class MedIndexTask implements SchedulingConfigurer{
                         && task001.getIsDeleted().equals(IsDeleteEnum.N.getKey())
                         && task001.getIsUsed().equals(1)) {
                     log.info("执行动态定时任务: " + LocalDateTime.now().toLocalTime());
-                    FilterVO filterVO = new FilterVO();
-                    filterVO.setHospitalId(task001.getParam());
-                    timeHandle(filterVO);
-                    consoleFacade.saveMedicaIndicator(filterVO);
+                    IndexTimeVO IndexTimeVO = new IndexTimeVO();
+                    IndexTimeVO.setHospitalId(task001.getParam());
+                    consoleFacade.saveMedicaIndicator(IndexTimeVO);
                 }
             }
         }, new Trigger() {

+ 9 - 0
src/main/java/com/diagbot/vo/IndexTimeVO.java

@@ -26,4 +26,13 @@ public class IndexTimeVO {
     @NotBlank(message = "请输入结束时间")
     private String endDate;
 
+    /**
+     * 医院id
+     */
+    @ApiModelProperty(hidden = true)
+    private String hospitalId;
+
+    @ApiModelProperty(hidden = true)
+    private Long userId;
+
 }

+ 1 - 1
src/main/java/com/diagbot/web/ConsoleController.java

@@ -179,7 +179,7 @@ public class ConsoleController {
 
     /**
      * 病案指标后台维护接口
-     * @param filterVO
+     * @param indexTimeVO
      * @return
      */
     @ApiOperation(value = "病案指标数据存储[by:cy]",