浏览代码

药品门诊费别、住院费别修复

yaodeguang 2 月之前
父节点
当前提交
dea8a3abce

+ 21 - 0
src/main/java/cn/hnthyy/thmz/controller/yk/YpInfoController.java

@@ -9,6 +9,7 @@ package cn.hnthyy.thmz.controller.yk;
 import cn.hnthyy.thmz.comment.UserLoginToken;
 import cn.hnthyy.thmz.entity.his.YpZdDosage;
 import cn.hnthyy.thmz.entity.his.mz.YpZdClass;
+import cn.hnthyy.thmz.entity.his.yp.YpZdChargeGroup;
 import cn.hnthyy.thmz.entity.his.yp.YpZdDrugKind;
 import cn.hnthyy.thmz.service.his.mz.MzOrderFrequencyService;
 import cn.hnthyy.thmz.service.his.mz.YpZdClassService;
@@ -33,6 +34,26 @@ public class YpInfoController {
     private YpZdClassService ypZdClassService;
     @Autowired
     private MzOrderFrequencyService mzOrderFrequencyService;
+    /**
+     * 查询门诊费别列表
+     * @return
+     */
+    @UserLoginToken
+    @RequestMapping(value = "/queryYpZdChargeGroup", method = {RequestMethod.GET})
+    public Map<String, Object> queryYpZdChargeGroup() {
+        Map<String, Object> resultMap = new HashMap<>();
+        try {
+            List<YpZdChargeGroup> ypZdChargeGroupList = ypInfoService.queryYpZdChargeGroup();
+            resultMap.put("code", 0);
+            resultMap.put("message", "查询药品费别成功");
+            resultMap.put("data", ypZdChargeGroupList);
+            return resultMap;
+        } catch (Exception e) {
+            resultMap.put("code", -1);
+            resultMap.put("message", "查询药品费别失败");
+            return resultMap;
+        }
+    }
     /**
      * 查询药品类别列表
      * @return

+ 20 - 0
src/main/java/cn/hnthyy/thmz/entity/his/yp/YpZdChargeGroup.java

@@ -0,0 +1,20 @@
+package cn.hnthyy.thmz.entity.his.yp;
+
+import lombok.Data;
+
+/**
+ * 药品费别
+ */
+@Data
+public class YpZdChargeGroup {
+    //费别编号
+    private String code;
+    //费别名称
+    private String name;
+    //拼音编码
+    private String pyCode;
+    //五笔编码
+    private String wbCode;
+    //1:删除
+    private String delFlag;
+}

+ 66 - 10
src/main/java/cn/hnthyy/thmz/entity/his/yp/YpZdDict.java

@@ -87,7 +87,7 @@ public class YpZdDict {
     //GMP 认证:1:GMP认证
     @NotColumn
     private String gmpFlag;
-    //冷冻/冷藏标志:1:冷冻;2:冷藏
+    //储存方式 冷冻/冷藏标志:1:冷冻;2:冷藏
     private String coldFlag;
     //化学成分
     private String chemRemark;
@@ -128,6 +128,7 @@ public class YpZdDict {
     @NotColumn
     private String initFlag;
     //1:非限制级;2:限制级;3:特殊级
+
     private String ypLevel;
     //旧分类
     private String drugId;
@@ -154,7 +155,7 @@ public class YpZdDict {
     //基本药物类型
     private String jbFlag;
     //是否为辅助用药
-    private String fzFlag;
+//    private String fzFlag;
     @NotColumn
     private String location;
     //是否注射剂标记
@@ -192,7 +193,7 @@ public class YpZdDict {
     private String xtppName;
     //商品名
     private String spName;
-    //抢救药品
+    //抢救药品标志
     private String qjFlag;
     //大输液基数标志
     private String jsFlag;
@@ -252,31 +253,51 @@ public class YpZdDict {
     @NotColumn
     private Integer mzRestrict;
 
-    //重量单位中文描述
+    //重量单位中文描述 数据库无此字段!!!!!!!!!!!!!!!!!!!!!!!
     @NotColumn
     private String weighUnitDesc;
-    //体积单位 中文描述
+    //体积单位 中文描述 数据库无此字段!!!!!!!!!!!!!!!!!!!!!!!
     @NotColumn
     private String volUnitDesc;
-    //包装单位 中文描述
+    //包装单位 中文描述 数据库无此字段!!!!!!!!!!!!!!!!!!!!!!!
     @NotColumn
     private String packUnitDesc;
-    //最小单位 中文描述
+    //最小单位 中文描述 数据库无此字段!!!!!!!!!!!!!!!!!!!!!!!
     @NotColumn
     private String miniUnitDesc;
-    //厂家名称
+    //厂家名称 数据库无此字段!!!!!!!!!!!!!!!!!!!!!!!
     @NotColumn
     private String manufactoryName;
     //是否摆药机操作 1:是 0:否
     private Integer byjFlag;
-    //药品医保编码
+    //药品医保编码(国家医保编码)
     @NotColumn
     private String nationalCode;
     @NotColumn
     private String nationalName;
+    //数据库都为0--------------------------------------------
+    private String nationalStatus;
+    //数据库都为null--------------------------------------------
+    private String matchOper;
+    //数据库都为null--------------------------------------------
+    private String match_date;
+    //数据库都为null--------------------------------------------
+    private String cancel_match_oper;
+    //数据库都为null--------------------------------------------
+    private String cancel_match_date;
+    //数据库都为null--------------------------------------------
+    private String new_name;
+    //数据库都为null--------------------------------------------
+    private String oper_id;
+    //数据库有日期--------------------------------------------
+    private String oper_date;
+    //医保药品匹配关系上传标志--------------------------------------------
+    private String uploaded_flag;
     //处方限制天数
     @NotColumn
     private Integer prescriptionLimitDays;
+    //数据库都为0--------------------------------------------
+    private Integer fzFlag;
     //是否统一采购 1是
     private Integer isCentralPurchase;
     //药品采购编码
@@ -287,12 +308,45 @@ public class YpZdDict {
      * 药品自付比例
      */
     private BigDecimal selfpayProp;
+    //数据库都为null--------------------------------------------
+    private BigDecimal unit;
+    //工伤目录匹配状态 数据库都为null--------------------------------------------
+    private BigDecimal injury_match_status;
+    //社保三大目录(工伤) 数据库都为null--------------------------------------------
+    private BigDecimal aaz231;
+    //社保三大目录编码(工伤) 数据库都为null--------------------------------------------
+    private BigDecimal ake001;
+    //社保三大目录名称(工伤) 数据库都为null--------------------------------------------
+    private BigDecimal ake002;
+    //三大目录类别(工伤) 数据库都为null--------------------------------------------
+    private BigDecimal ake003;
+    //自付比例类型(工伤)(A000_100 自付   A000_00 工伤保险基金支付) 数据库都为null--------------------------------------------
+    private BigDecimal bke215;
+    //工伤匹配人 数据库都为null--------------------------------------------
+    private BigDecimal injury_match_oper;
+    //工伤匹配时间 数据库都为null--------------------------------------------
+    private BigDecimal injury_match_datetime;
+    //数据库都为null--------------------------------------------
+    private BigDecimal cancel_injury_match_oper;
+    //工伤药品匹配关系上传标志--------------------------------------------
+    private BigDecimal injury_upload_flag;
+    //医疗机构三大目录匹配申请明细id 数据库都为null--------------------------------------------
+    private BigDecimal aaz278;
     /**
      * 抗肿瘤药物级别:1、普通使用级;2、限制使用级
      **/
     private Integer antitumorLevel;
 
-    @NotColumn
+    //临时购药标志(1: 是) 数据库有null有1--------------------------------------------
+    private BigDecimal temp_purchase_flag;
+    //高警示药品标志(1:是) 数据库都为null--------------------------------------------
+    private BigDecimal high_warning_flag;
+    //国家组织药品集中采购中标药品标志(1:是) 数据库都为null--------------------------------------------
+    private BigDecimal winning_bidder_flag;
+    //重点监控药品标志(1:是) 数据库都为null--------------------------------------------
+    private BigDecimal focus_monitor_flag;
+
+    @NotColumn  //数据库无此字段!!!!!!!!!!!!!!!!!!!!!!!!
     private String groupNo;
     // 药品商品码
     private String barCode;
@@ -302,4 +356,6 @@ public class YpZdDict {
     private String healthFlag;
     // 药品健康宣教内容
     private String healthContent;
+    // 口服药品能否退药标志(1:是)
+    private String return_flag;
 }

+ 17 - 0
src/main/java/cn/hnthyy/thmz/mapper/his/yp/YpZdChargeGroupMapper.java

@@ -0,0 +1,17 @@
+package cn.hnthyy.thmz.mapper.his.yp;
+
+import cn.hnthyy.thmz.entity.his.yp.YpZdChargeGroup;
+import cn.hnthyy.thmz.entity.his.yp.YpZdYbType;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+
+public interface YpZdChargeGroupMapper {
+
+    /**
+     * 查询所有药品费别
+     * @return
+     */
+    @Select("select code,name,py_code,d_code as wb_code from yp_zd_charge_group WITH(NOLOCK) where ISNULL(del_flag, '0') != '1'")
+    List<YpZdChargeGroup> selectAllYpZdChargeGroup();
+}

+ 6 - 0
src/main/java/cn/hnthyy/thmz/service/his/yp/YpInfoService.java

@@ -1,6 +1,7 @@
 package cn.hnthyy.thmz.service.his.yp;
 
 import cn.hnthyy.thmz.entity.his.YpZdDosage;
+import cn.hnthyy.thmz.entity.his.yp.YpZdChargeGroup;
 import cn.hnthyy.thmz.entity.his.yp.YpZdDrugKind;
 import cn.hnthyy.thmz.entity.his.yp.YpZdYbType;
 import cn.hnthyy.thmz.entity.his.zd.YpZdUnit;
@@ -13,6 +14,11 @@ import java.util.List;
  * @time: 2022/07/11 11:13
  */
 public interface YpInfoService {
+    /**
+     * 查询药品费别列表
+     * @return
+     */
+    List<YpZdChargeGroup> queryYpZdChargeGroup();
     /**
      * 查询所有药品类型
      * @return

+ 9 - 4
src/main/java/cn/hnthyy/thmz/service/impl/his/yp/YpInfoServiceImpl.java

@@ -1,13 +1,11 @@
 package cn.hnthyy.thmz.service.impl.his.yp;
 
 import cn.hnthyy.thmz.entity.his.YpZdDosage;
+import cn.hnthyy.thmz.entity.his.yp.YpZdChargeGroup;
 import cn.hnthyy.thmz.entity.his.yp.YpZdDrugKind;
 import cn.hnthyy.thmz.entity.his.yp.YpZdYbType;
 import cn.hnthyy.thmz.entity.his.zd.YpZdUnit;
-import cn.hnthyy.thmz.mapper.his.yp.YpZdDosageMapper;
-import cn.hnthyy.thmz.mapper.his.yp.YpZdDrugKindMapper;
-import cn.hnthyy.thmz.mapper.his.yp.YpZdUnitMapper;
-import cn.hnthyy.thmz.mapper.his.yp.YpZdYbTypeMapper;
+import cn.hnthyy.thmz.mapper.his.yp.*;
 import cn.hnthyy.thmz.service.his.yp.YpInfoService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -33,7 +31,14 @@ public class YpInfoServiceImpl implements YpInfoService {
     @SuppressWarnings("all")
     @Autowired
     private YpZdYbTypeMapper ypZdYbTypeMapper;
+    @SuppressWarnings("all")
+    @Autowired
+    private YpZdChargeGroupMapper ypZdChargeGroupMapper;
 
+    @Override
+    public List<YpZdChargeGroup> queryYpZdChargeGroup() {
+        return ypZdChargeGroupMapper.selectAllYpZdChargeGroup();
+    }
     @Override
     public List<YpZdDrugKind> queryYpZdDrugKindAll() {
         return ypZdDrugKindMapper.selectAllYpZdDrugKind();

+ 2 - 0
src/main/resources/static/js/yk/drug_info.js

@@ -7,6 +7,8 @@ $(function () {
     }
     initYpZdUnitSelect();
     initEmployeeSelect("fhName");
+    initDynamicSelect("queryYpZdChargeGroup", "percentGroupMz");
+    initDynamicSelect("queryYpZdChargeGroup", "percentGroupZy");
     initDynamicSelect("queryYpZdDrugKindAll", "drugKind");
     initDynamicSelect("queryYpZdDosageEff", "dosage");
     initDynamicSelect("queryYpZdClasses", "classCode");

+ 1 - 7
src/main/resources/templates/yk/drug_info.html

@@ -479,9 +479,6 @@
                         <div class="col-md-8 col-sm-8 col-xs-12">
                             <select class="form-control selectpicker show-tick"  title="请选择"
                                     id="percentGroupMz" name="percentGroupMz" required="required">
-                                <option value="21">甲类</option>
-                                <option value="22">乙类</option>
-                                <option value="89">自费</option>
                             </select>
                         </div>
                     </div>
@@ -490,10 +487,7 @@
                                for="percentGroupZy">住院费别<span class="required">*</span></label>
                         <div class="col-md-8 col-sm-8 col-xs-12">
                             <select class="form-control selectpicker show-tick"  title="请选择"
-                                    id="percentGroupZy" name="percentGroupZy" required="required">
-                                <option value="21">甲类</option>
-                                <option value="22">乙类</option>
-                                <option value="89">自费</option>
+                                    id="percentGroupZy" name="percentGroupMz" required="required">
                             </select>
                         </div>
                     </div>