Explorar o código

抗菌药物修改

yaodeguang hai 4 meses
pai
achega
e59e496b32

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

@@ -11,6 +11,7 @@ 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.entity.his.yp.YpZdKjywType;
 import cn.hnthyy.thmz.service.his.mz.MzOrderFrequencyService;
 import cn.hnthyy.thmz.service.his.mz.YpZdClassService;
 import cn.hnthyy.thmz.service.his.yp.YpInfoService;
@@ -34,6 +35,28 @@ public class YpInfoController {
     private YpZdClassService ypZdClassService;
     @Autowired
     private MzOrderFrequencyService mzOrderFrequencyService;
+
+    /**
+     * 查询抗菌药物列表
+     * @return
+     */
+    @UserLoginToken
+    @RequestMapping(value = "/queryYpZdKjywType", method = {RequestMethod.GET})
+    public Map<String, Object> queryYpZdKjywType() {
+        Map<String, Object> resultMap = new HashMap<>();
+        try {
+            List<YpZdKjywType> ypZdKjywTypeList = ypInfoService.queryYpZdKjywType();
+            resultMap.put("code", 0);
+            resultMap.put("message", "查询抗菌药物列表成功");
+            resultMap.put("data", ypZdKjywTypeList);
+            return resultMap;
+        } catch (Exception e) {
+            resultMap.put("code", -1);
+            resultMap.put("message", "查询抗菌药物列表失败");
+            return resultMap;
+        }
+    }
+
     /**
      * 查询门诊费别列表
      * @return
@@ -54,6 +77,7 @@ public class YpInfoController {
             return resultMap;
         }
     }
+
     /**
      * 查询药品类别列表
      * @return

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

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

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

@@ -1,7 +1,6 @@
 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;

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

@@ -0,0 +1,17 @@
+package cn.hnthyy.thmz.mapper.his.yp;
+
+import cn.hnthyy.thmz.entity.his.yp.YpZdKjywType;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+
+public interface YpZdKjywTypeMapper {
+
+    /**
+     * 查询抗菌药物列表
+     * @return
+     */
+    @Select("SELECT rtrim( code ) AS code,rtrim( name ) AS name,py_code AS pyCode,d_code AS wbCode " +
+            "FROM yp_zd_kjyw_type WITH ( nolock ) WHERE ISNULL( del_flag, '0' ) != '1' ORDER BY code")
+    List<YpZdKjywType> selectAllYpZdKjywType();
+}

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

@@ -3,6 +3,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.YpZdKjywType;
 import cn.hnthyy.thmz.entity.his.yp.YpZdYbType;
 import cn.hnthyy.thmz.entity.his.zd.YpZdUnit;
 
@@ -14,6 +15,11 @@ import java.util.List;
  * @time: 2022/07/11 11:13
  */
 public interface YpInfoService {
+    /**
+     * 查询抗菌药物字典列表
+     * @return
+     */
+    List<YpZdKjywType> queryYpZdKjywType();
     /**
      * 查询药品费别列表
      * @return

+ 8 - 0
src/main/java/cn/hnthyy/thmz/service/impl/his/yp/YpInfoServiceImpl.java

@@ -3,6 +3,7 @@ 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.YpZdKjywType;
 import cn.hnthyy.thmz.entity.his.yp.YpZdYbType;
 import cn.hnthyy.thmz.entity.his.zd.YpZdUnit;
 import cn.hnthyy.thmz.mapper.his.yp.*;
@@ -34,7 +35,14 @@ public class YpInfoServiceImpl implements YpInfoService {
     @SuppressWarnings("all")
     @Autowired
     private YpZdChargeGroupMapper ypZdChargeGroupMapper;
+    @SuppressWarnings("all")
+    @Autowired
+    private YpZdKjywTypeMapper ypZdKjywTypeMapper;
 
+    @Override
+    public List<YpZdKjywType> queryYpZdKjywType() {
+        return ypZdKjywTypeMapper.selectAllYpZdKjywType();
+    }
     @Override
     public List<YpZdChargeGroup> queryYpZdChargeGroup() {
         return ypZdChargeGroupMapper.selectAllYpZdChargeGroup();

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

@@ -7,6 +7,7 @@ $(function () {
     }
     initYpZdUnitSelect();
     initEmployeeSelect("fhName");
+    initDynamicSelect("queryYpZdKjywType", "kjywFlag");
     initDynamicSelect("queryYpZdChargeGroup", "percentGroupMz");
     initDynamicSelect("queryYpZdChargeGroup", "percentGroupZy");
     initDynamicSelect("queryYpZdDrugKindAll", "drugKind");

+ 0 - 4
src/main/resources/templates/yk/drug_info.html

@@ -533,10 +533,6 @@
                         <div class="col-md-8 col-sm-8 col-xs-12">
                             <select class="form-control selectpicker show-tick"  title="请选择"
                                     id="kjywFlag" name="kjywFlag">
-                                <option value="1">口服及注射</option>
-                                <option value="2">外用抗菌药</option>
-                                <option value="3">口服抗真菌</option>
-                                <option value="4">外用抗真菌</option>
                             </select>
                         </div>
                     </div>