|
@@ -3,10 +3,13 @@ package thyyxxk.webserver.service.datamodify;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import thyyxxk.webserver.config.exception.ExceptionEnum;
|
|
|
+import thyyxxk.webserver.constants.Capacity;
|
|
|
import thyyxxk.webserver.dao.his.datamodify.YzActOrderDao;
|
|
|
import thyyxxk.webserver.entity.ResultVo;
|
|
|
import thyyxxk.webserver.entity.datamodify.TYzActOrderModify;
|
|
@@ -17,7 +20,9 @@ import thyyxxk.webserver.utils.TokenUtil;
|
|
|
import thyyxxk.webserver.websocket.WebSocketServer;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -95,9 +100,17 @@ public class YzActOrderModifyService {
|
|
|
* @param code 编码
|
|
|
* @return 返回这个人 申请修改的医嘱
|
|
|
*/
|
|
|
- public ResultVo<List<TYzActOrderModify>> chaKanZhuangTai(String code) {
|
|
|
- log.info("根据人员的code查询医嘱修改申请:{}", code);
|
|
|
- return ResultVoUtil.success(dao.queryZhuangTai(code));
|
|
|
+ public ResultVo<Map<String, Object>> chaKanZhuangTai(String code, String actOrderNo, String inpatientNo, long currentPage, long pageSize) {
|
|
|
+ log.info("根据人员的code查询医嘱修改申请:{},住院号:{},医嘱号:{}", code, inpatientNo, actOrderNo);
|
|
|
+ IPage<TYzActOrderModify> page = new Page<>(currentPage, pageSize);
|
|
|
+ List<TYzActOrderModify> list = dao.queryZhuangTai(page, code, actOrderNo, inpatientNo);
|
|
|
+ if (page.getTotal() > 0 || list.size() > 0) {
|
|
|
+ Map<String, Object> map = new HashMap<>(Capacity.TWO);
|
|
|
+ map.put("total", page.getTotal());
|
|
|
+ map.put("data", list);
|
|
|
+ return ResultVoUtil.success(map);
|
|
|
+ }
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.NO_DATA_EXIST);
|
|
|
}
|
|
|
|
|
|
/**
|