|
@@ -1,5 +1,6 @@
|
|
|
package thyyxxk.webserver.service.zhuyuanyisheng;
|
|
|
|
|
|
+import cn.hutool.core.util.ReflectUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
@@ -83,11 +84,13 @@ public class JianYanJianChaShenQingService {
|
|
|
}
|
|
|
|
|
|
public ResultVo<Map<String, Object>> huoQuShengQingXiangQing(Integer reqNo) {
|
|
|
- YshYjReq req = dao.huoQuShengQingXiangQing(reqNo);
|
|
|
- if (req == null) {
|
|
|
+ List<YshYjReq> reqList = dao.huoQuShengQingXiangQing(new QueryWrapper<YshYjReq>().eq("req_no", reqNo));
|
|
|
+ if (ListUtil.isBlank(reqList)) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_HTML_ERROR, "没有查询到有效信息,可能已经被删除了。");
|
|
|
}
|
|
|
|
|
|
+ YshYjReq req = reqList.get(0);
|
|
|
+
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
StringBuilder zhuYiShiXiang = new StringBuilder();
|
|
|
|
|
@@ -116,10 +119,22 @@ public class JianYanJianChaShenQingService {
|
|
|
//联系电话
|
|
|
req.setHomeTel(patient.getHomeTel());
|
|
|
// 医保身份
|
|
|
- req.setResponceTypeName(dao.huoQuHuanZheShenFen(req.getInpatientNo()));
|
|
|
|
|
|
map.put("title", jc.getComm());
|
|
|
|
|
|
+ Map<String, Field> fieldMap = ReflectUtil.getFieldMap(JcZdClass.class);
|
|
|
+ for (Map.Entry<String, Field> item : fieldMap.entrySet()) {
|
|
|
+ String name = item.getKey();
|
|
|
+ if (name.startsWith("comment")) {
|
|
|
+ String value = ReflectUtil.invoke(jc, StringUtil.getMethodName(name));
|
|
|
+ if (StringUtil.notBlank(value)) {
|
|
|
+ log.info("value:{}", value);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
Field[] fields = jc.getClass().getDeclaredFields();
|
|
|
for (Field field : fields) {
|
|
|
field.setAccessible(true);
|
|
@@ -139,6 +154,17 @@ public class JianYanJianChaShenQingService {
|
|
|
return ResultVoUtil.success(map);
|
|
|
}
|
|
|
|
|
|
+ private ResultVo<Object> printListReqNo(List<Integer> reqNo) {
|
|
|
+ List<YshYjReq> reqList = dao.huoQuShengQingXiangQing(new QueryWrapper<YshYjReq>().eq("req_no", reqNo));
|
|
|
+ if (ListUtil.isBlank(reqList)) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有查询到有效信息,可能已经被删除了。");
|
|
|
+ }
|
|
|
+ YshYjReq req = reqList.get(0);
|
|
|
+ PatientTemp patient = dao.huoQuHuanZheXinXi(req.getInpatientNo());
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
public ResultVo<List<JcZdClass>> getTemplateGrouping(Integer itemType, Integer templateType) {
|
|
|
QueryWrapper<?> qw = templateQueryWrapper(itemType, templateType);
|
|
|
return ResultVoUtil.success(dao.getTemplate(qw));
|