|
@@ -9,7 +9,6 @@ import com.yvan.Model;
|
|
|
import com.yvan.ModelOps;
|
|
|
import com.yvan.mvc.Pd;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -31,31 +30,31 @@ public class RiBaoController {
|
|
|
private RiBaoService riBaoService;
|
|
|
|
|
|
|
|
|
- private String suspected_id;
|
|
|
- private String report_id;
|
|
|
- private String user_name;
|
|
|
- private String grender;
|
|
|
- private String age;
|
|
|
- private String family_status;
|
|
|
- private String status_desp;
|
|
|
- private String medical;
|
|
|
- private String temperature;
|
|
|
- private String cough;
|
|
|
- private String muscle;
|
|
|
- private String dyspnea;
|
|
|
- private String fatigue;
|
|
|
- private String diarrhea;
|
|
|
- private String single_room;
|
|
|
- private String suspected_status;
|
|
|
- private String others;
|
|
|
- private String user_create;
|
|
|
- private String time_create;
|
|
|
- private String user_update;
|
|
|
- private String time_update;
|
|
|
+// private String suspected_id;
|
|
|
+// private String report_id;
|
|
|
+// private String user_name;
|
|
|
+// private String grender;
|
|
|
+// private String age;
|
|
|
+// private String family_status;
|
|
|
+// private String status_desp;
|
|
|
+// private String medical;
|
|
|
+// private String temperature;
|
|
|
+// private String cough;
|
|
|
+// private String muscle;
|
|
|
+// private String dyspnea;
|
|
|
+// private String fatigue;
|
|
|
+// private String diarrhea;
|
|
|
+// private String single_room;
|
|
|
+// private String suspected_status;
|
|
|
+// private String others;
|
|
|
+// private String user_create;
|
|
|
+// private String time_create;
|
|
|
+// private String user_update;
|
|
|
+// private String time_update;
|
|
|
|
|
|
|
|
|
//查询家人
|
|
|
- @GetMapping("/riBao/getRibao")
|
|
|
+ @PostMapping("/riBao/getRibao")
|
|
|
public MsReport queryRibao(@Pd(name = "userCreate") Long userCreate) {
|
|
|
Long reportId = riBaoService.getNowByYesterday(userCreate);
|
|
|
MsReport msReport = riBaoService.selectById(reportId);
|
|
@@ -65,7 +64,7 @@ public class RiBaoController {
|
|
|
}
|
|
|
|
|
|
// 进入日报首页
|
|
|
- @GetMapping("/riBao/queryRibaoDetailList")
|
|
|
+ @PostMapping("/riBao/queryRibaoDetailList")
|
|
|
public Model<List<MsSuspected>> queryRibaoDetailList(@Pd(name = "userCreate") Long userCreate) {
|
|
|
Long reportId = riBaoService.getNowByYesterday(userCreate);
|
|
|
List<MsSuspected> listSuspected = riBaoService.queryRibaoDetailList(reportId);
|
|
@@ -73,7 +72,7 @@ public class RiBaoController {
|
|
|
}
|
|
|
|
|
|
// 添加日报
|
|
|
- @GetMapping("/riBao/addOrEditRibao")
|
|
|
+ @PostMapping("/riBao/addOrEditRibao")
|
|
|
public ModelOps addOrEditRibao(
|
|
|
@Pd(name = "suspectedId") Long suspectedId,
|
|
|
@Pd(name = "userName") String userName,// 家人姓名
|
|
@@ -98,7 +97,7 @@ public class RiBaoController {
|
|
|
|
|
|
|
|
|
//查询家人
|
|
|
- @GetMapping("/riBao/selectSuspected")
|
|
|
+ @PostMapping("/riBao/selectSuspected")
|
|
|
public MsSuspected selectSuspected(HttpServletRequest request) {
|
|
|
//初始化今日日报
|
|
|
Long suspectedId = Long.parseLong(request.getParameter("suspectedId"));
|
|
@@ -123,7 +122,7 @@ public class RiBaoController {
|
|
|
// }
|
|
|
|
|
|
//根据日报获取家人
|
|
|
- @GetMapping("/riBao/queryRibaoRefresh")
|
|
|
+ @PostMapping("/riBao/queryRibaoRefresh")
|
|
|
public Model<List<MsSuspected>> queryRibaoRefresh(@Pd(name = "reportId") Long reportId) {
|
|
|
return Model.newSuccess(riBaoService.getByReportId(reportId));
|
|
|
}
|
|
@@ -142,7 +141,7 @@ public class RiBaoController {
|
|
|
}
|
|
|
|
|
|
//根据日期获取家人
|
|
|
- @GetMapping("/riBao/queryRibaoReportDate")
|
|
|
+ @PostMapping("/riBao/queryRibaoReportDate")
|
|
|
public Model<List<MsSuspected>> queryRibaoReportDate(
|
|
|
@Pd(name = "reportDate") String reportDate,
|
|
|
@Pd(name = "userCreate") Long userCreate) {
|