|
@ -1,5 +1,6 @@
|
|
|
package com.yihu.wlyy.web.doctor.patient;
|
|
|
|
|
|
import com.yihu.wlyy.service.app.physicalExamination.PhysicalExamTeamRemindService;
|
|
|
import com.yihu.wlyy.service.app.physicalExamination.PhysicalExaminationRemindService;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
@ -16,12 +17,14 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* Created by yeshijie on 2017/10/20.
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/doctor/patient_label_info", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@Api(description = "居民标签管理")
|
|
|
@RequestMapping(value = "/doctor/patient_label_info")
|
|
|
@Api(description = "老年人健康体检提醒")
|
|
|
public class PyhsicExamRemindController extends BaseController{
|
|
|
|
|
|
@Autowired
|
|
|
private PhysicalExaminationRemindService physicalExaminationRemindService;
|
|
|
@Autowired
|
|
|
private PhysicalExamTeamRemindService physicalExamTeamRemindService;
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "getOldPatientByTeamCode", method = RequestMethod.GET)
|
|
@ -45,7 +48,7 @@ public class PyhsicExamRemindController extends BaseController{
|
|
|
|
|
|
@RequestMapping(value = "isShowRemindBtns", method = RequestMethod.GET)
|
|
|
@ApiOperation("是否显示批量提醒按钮")
|
|
|
public String isShowRemindBtns(@ApiParam(name = "adminTeamCode", value = "行政团队编码", defaultValue = "644")
|
|
|
public String isShowRemindBtns(@ApiParam(name = "adminTeamCode", value = "行政团队编码", defaultValue = "485")
|
|
|
@RequestParam(value = "adminTeamCode", required = true) Long adminTeamCode){
|
|
|
try {
|
|
|
Integer re = physicalExaminationRemindService.isShowRemindBtns(adminTeamCode);
|
|
@ -61,7 +64,11 @@ public class PyhsicExamRemindController extends BaseController{
|
|
|
public String singleRemindPhyExam(@ApiParam(name = "patient", value = "居民code", defaultValue = "644")
|
|
|
@RequestParam(value = "patient", required = true) String patient){
|
|
|
try {
|
|
|
physicalExaminationRemindService.singleRemindPhyExam(patient,getUID());
|
|
|
Integer re = physicalExaminationRemindService.singleRemindPhyExam(patient,getUID());
|
|
|
// Integer re = physicalExaminationRemindService.singleRemindPhyExam(patient,"3782f16386f211e6b394fa163e424525");
|
|
|
if(re==-1){
|
|
|
return error(-1, "7天内已提醒过该居民,请不要重复提醒");
|
|
|
}
|
|
|
return success("提醒成功");
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
@ -74,7 +81,11 @@ public class PyhsicExamRemindController extends BaseController{
|
|
|
public String remindPhyExams(@ApiParam(name = "adminTeamCode", value = "行政团队编码", defaultValue = "644")
|
|
|
@RequestParam(value = "adminTeamCode", required = true) Long adminTeamCode){
|
|
|
try {
|
|
|
physicalExaminationRemindService.remindPhyExams(adminTeamCode,getUID());
|
|
|
Integer re = physicalExamTeamRemindService.remindPhyExams(adminTeamCode,getUID());
|
|
|
// Integer re = physicalExamTeamRemindService.remindPhyExams(adminTeamCode,"3782f16386f211e6b394fa163e424525");
|
|
|
if(re==-1){
|
|
|
return error(-1, "正在发送提醒,请不要重复操作");
|
|
|
}
|
|
|
return success("提醒成功");
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|