|
|
|
|
@ -1,20 +1,18 @@
|
|
|
|
|
package com.flossom.miniProgram.controller;
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import com.flossom.common.core.domain.R;
|
|
|
|
|
import com.flossom.common.core.domain.entity.WxNursingLog;
|
|
|
|
|
import com.flossom.common.core.domain.req.WxNursingLogReq;
|
|
|
|
|
import com.flossom.common.core.web.controller.BaseController;
|
|
|
|
|
import com.flossom.common.core.web.domain.AjaxResult;
|
|
|
|
|
import com.flossom.common.core.web.page.TableDataInfo;
|
|
|
|
|
import com.flossom.miniProgram.service.IWxNursingLogService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 用户护理日志Controller
|
|
|
|
|
@ -31,11 +29,15 @@ public class WxNursingLogController extends BaseController {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询用户护理记录
|
|
|
|
|
* @param instrumentId 当在护理报告中,查询某个仪器的列表使用
|
|
|
|
|
* @param queryDate 当在护理报告中,查询某个历史之前的仪器的列表使用
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/record")
|
|
|
|
|
public TableDataInfo record(@RequestParam(value = "instrumentId", required = false) Long instrumentId) {
|
|
|
|
|
public TableDataInfo record(@RequestParam(value = "instrumentId", required = false) Long instrumentId,
|
|
|
|
|
@RequestParam(value = "queryDate", required = false) Date queryDate) {
|
|
|
|
|
startPage();
|
|
|
|
|
List<WxNursingLog> list = wxNursingLogService.selectWxNursingLogList(instrumentId);
|
|
|
|
|
List<WxNursingLog> list = wxNursingLogService.selectWxNursingLogList(instrumentId, queryDate);
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|