TestController.java 2.99 KB
   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
package com.lyms.talkonlineweb.controller;


import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.lyms.talkonlineweb.annotation.TokenRequired;
import com.lyms.talkonlineweb.domain.LymsGroupOrder;
import com.lyms.talkonlineweb.domain.LymsPatient;
import com.lyms.talkonlineweb.domain.LymsPcase;
import com.lyms.talkonlineweb.domain.LymsTcard;
import com.lyms.talkonlineweb.service.LymsGroupOrderService;
import com.lyms.talkonlineweb.service.LymsPatientService;
import com.lyms.talkonlineweb.service.LymsPcaseService;
import com.lyms.talkonlineweb.service.LymsTcardService;
import com.lyms.talkonlineweb.task.*;
import com.lyms.talkonlineweb.util.Constant;
import com.lyms.talkonlineweb.util.HXService;
import com.lyms.talkonlineweb.util.StringUtil;
import lombok.extern.java.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.reflect.Array;
import java.util.*;

@RestController
@Log
public class TestController {
@Autowired
public PushArticleTask pushArticleTask;
@Autowired
public PushArticleTaskData pushArticleTaskData;
@Autowired
public GetPatientInfoTask getPatientInfoTask;
@Autowired
private LymsPcaseService lymsPcaseService;//病例
@Autowired
private PushIllnessTypeData pushIllnessTypeData;
@Autowired
private PushIllnessTypeTask pushIllnessTypeTask;
@Autowired
private LymsGroupOrderService lymsGroupOrderService;
@Autowired
private LymsPatientService lymsPatientService;//患者
@Autowired
private LymsTcardService lymsTcardService;//问诊卡信息
@Autowired
private HXService hxService;
@Autowired
private PushChatInfoTask pushChatInfoTask;

@GetMapping("test")
@TokenRequired
public void test() throws Exception {
LymsGroupOrder a=new LymsGroupOrder();
a.setTotalPrices(465);
lymsGroupOrderService.save(a);
System.out.println(a);
}

@GetMapping("test9")
@TokenRequired
public void test9() {
pushArticleTask.pushArtcle();
}

@GetMapping("test0")
@TokenRequired
public void test0() {
pushArticleTaskData.pushArtcleData();
}

@GetMapping("test1")
@TokenRequired
public void test1() {
pushIllnessTypeData.PushIllnessTypeData();
}
@GetMapping("test2")
@TokenRequired
public void test2() {
pushIllnessTypeTask.PushIllnessTypeTask();
}

@GetMapping("test3")
@TokenRequired
public void test3() {
pushChatInfoTask.pushChatInfo();
}


// @Autowired
// private LymsUserService lymsUserService;
//
// @GetMapping("lstUser")
// @TokenRequired
// public List<LymsUser> listUser(){
// log.info("List user!!");
// return lymsUserService.list();
// }
}