|
@ -9,11 +9,14 @@ import com.yihu.wlyy.service.common.util.SignTeamAndGroupRunnable;
|
|
import com.yihu.wlyy.util.SpringUtil;
|
|
import com.yihu.wlyy.util.SpringUtil;
|
|
import com.yihu.wlyy.web.BaseController;
|
|
import com.yihu.wlyy.web.BaseController;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiParam;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.data.redis.core.StringRedisTemplate;
|
|
import org.springframework.data.redis.core.StringRedisTemplate;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
@ -48,7 +51,7 @@ public class ManagerUtilController extends BaseController {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/disease/to_redis")
|
|
|
|
|
|
@RequestMapping(value = "/disease/to_redis", method = RequestMethod.POST)
|
|
public String updateToRedid() {
|
|
public String updateToRedid() {
|
|
try {
|
|
try {
|
|
diseaseService.updateToRedis();
|
|
diseaseService.updateToRedis();
|
|
@ -63,7 +66,7 @@ public class ManagerUtilController extends BaseController {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/disease/to_disease")
|
|
|
|
|
|
@RequestMapping(value = "/disease/to_disease", method = RequestMethod.POST)
|
|
public String updateToDisease() {
|
|
public String updateToDisease() {
|
|
try {
|
|
try {
|
|
diseaseService.updateToDisease();
|
|
diseaseService.updateToDisease();
|
|
@ -79,7 +82,7 @@ public class ManagerUtilController extends BaseController {
|
|
* @param patient
|
|
* @param patient
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/disease/patient")
|
|
|
|
|
|
@RequestMapping(value = "/disease/patient", method = RequestMethod.POST)
|
|
public String getDiseaseFromRedis(String patient) {
|
|
public String getDiseaseFromRedis(String patient) {
|
|
try {
|
|
try {
|
|
return write(200, "查询成功", "data", redisTemplate.opsForValue().get("disease:" + patient));
|
|
return write(200, "查询成功", "data", redisTemplate.opsForValue().get("disease:" + patient));
|
|
@ -96,7 +99,7 @@ public class ManagerUtilController extends BaseController {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/famous_doctor/times_update")
|
|
|
|
|
|
@RequestMapping(value = "/famous_doctor/times_update", method = RequestMethod.POST)
|
|
public String famousConsultTimeUpdate() {
|
|
public String famousConsultTimeUpdate() {
|
|
try {
|
|
try {
|
|
workTimeService.consultTimesRemain(new SimpleDateFormat("yyyy-MM-dd").format(new Date()));
|
|
workTimeService.consultTimesRemain(new SimpleDateFormat("yyyy-MM-dd").format(new Date()));
|
|
@ -112,7 +115,7 @@ public class ManagerUtilController extends BaseController {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/people_num_to_redis")
|
|
|
|
|
|
@RequestMapping(value = "/people_num_to_redis", method = RequestMethod.POST)
|
|
public String peopleNumToRedis(String year) {
|
|
public String peopleNumToRedis(String year) {
|
|
try {
|
|
try {
|
|
statisticsService.peopleNumToRedis(year);
|
|
statisticsService.peopleNumToRedis(year);
|
|
@ -127,7 +130,7 @@ public class ManagerUtilController extends BaseController {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/sign_set_group_team")
|
|
|
|
|
|
@RequestMapping(value = "/sign_set_group_team", method = RequestMethod.POST)
|
|
public String signSetGroupAndTeam() {
|
|
public String signSetGroupAndTeam() {
|
|
try {
|
|
try {
|
|
manageUtilService.signPatientSetGroup();
|
|
manageUtilService.signPatientSetGroup();
|
|
@ -142,7 +145,7 @@ public class ManagerUtilController extends BaseController {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/sign_set_group_team_page")
|
|
|
|
|
|
@RequestMapping(value = "/sign_set_group_team_page", method = RequestMethod.POST)
|
|
public String signSetGroupAndTeamPage(int page) {
|
|
public String signSetGroupAndTeamPage(int page) {
|
|
try {
|
|
try {
|
|
manageUtilService.setSignTeamAndGroupByPage(page);
|
|
manageUtilService.setSignTeamAndGroupByPage(page);
|
|
@ -157,7 +160,7 @@ public class ManagerUtilController extends BaseController {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/sign_set_group_team_id")
|
|
|
|
|
|
@RequestMapping(value = "/sign_set_group_team_id", method = RequestMethod.POST)
|
|
public String signSetGroupAndTeamId(Long id) {
|
|
public String signSetGroupAndTeamId(Long id) {
|
|
try {
|
|
try {
|
|
manageUtilService.setSignTeamAndGroupById(id);
|
|
manageUtilService.setSignTeamAndGroupById(id);
|
|
@ -172,7 +175,7 @@ public class ManagerUtilController extends BaseController {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/sign_error_page_id")
|
|
|
|
|
|
@RequestMapping(value = "/sign_error_page_id", method = RequestMethod.POST)
|
|
public String getErrorPage(int type) {
|
|
public String getErrorPage(int type) {
|
|
try {
|
|
try {
|
|
if (type == 1) {
|
|
if (type == 1) {
|
|
@ -192,7 +195,7 @@ public class ManagerUtilController extends BaseController {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/sign_team_group_thread")
|
|
|
|
|
|
@RequestMapping(value = "/sign_team_group_thread", method = RequestMethod.POST)
|
|
public String getErrorPage(long start, long end) {
|
|
public String getErrorPage(long start, long end) {
|
|
try {
|
|
try {
|
|
new Thread(SpringUtil.getBean(SignTeamAndGroupRunnable.class)
|
|
new Thread(SpringUtil.getBean(SignTeamAndGroupRunnable.class)
|
|
@ -209,7 +212,7 @@ public class ManagerUtilController extends BaseController {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/tranform_edu_article")
|
|
|
|
|
|
@RequestMapping(value = "/tranform_edu_article", method = RequestMethod.POST)
|
|
public String tranformEduArticle() {
|
|
public String tranformEduArticle() {
|
|
try {
|
|
try {
|
|
manageUtilService.transformEduArticle();
|
|
manageUtilService.transformEduArticle();
|
|
@ -220,12 +223,10 @@ public class ManagerUtilController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* 产检提醒
|
|
* 产检提醒
|
|
* 每天早上六点
|
|
|
|
|
|
* 每天早上六点
|
|
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
// @RequestMapping(value = "/start_prenatal_inspector_job")
|
|
// @RequestMapping(value = "/start_prenatal_inspector_job")
|
|
@ -242,4 +243,9 @@ public class ManagerUtilController extends BaseController {
|
|
// return error(-1, "启动失败");
|
|
// return error(-1, "启动失败");
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------微信标签相关 start---------------------------------
|
|
|
|
|
|
|
|
//---------------------------微信标签相关 end---------------------------------
|
|
}
|
|
}
|