浏览代码

删除省工伤

xiaochan 4 年之前
父节点
当前提交
c8d42fb8f5

+ 5 - 0
src/main/java/thyyxxk/webserver/controller/xmyp/XmYpController.java

@@ -63,4 +63,9 @@ public class XmYpController {
     public ResultVo<String> synchronizeHnsybMatch(@RequestParam("isGs") Boolean isGs) {
         return service.synchronizeHnsybMatch(isGs);
     }
+
+    @PostMapping("/getGongShangMuLu")
+    public ResultVo<List<BsCatalogMatch>> getGongShangMuLu(@RequestBody String name) {
+        return service.getGongShangMuLu(name);
+    }
 }

+ 9 - 4
src/main/java/thyyxxk/webserver/dao/his/xmyp/XmYpDao.java

@@ -3,6 +3,7 @@ package thyyxxk.webserver.dao.his.xmyp;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import org.apache.ibatis.annotations.*;
 import thyyxxk.webserver.entity.dictionary.CodeName;
+import thyyxxk.webserver.entity.xmyp.BsCatalogMatch;
 import thyyxxk.webserver.entity.xmyp.QueryXmParam;
 import thyyxxk.webserver.entity.xmyp.XmDetail;
 import thyyxxk.webserver.entity.xmyp.XmYpDetail;
@@ -76,28 +77,28 @@ public interface XmYpDao {
 
     /**
      * 项目类型
-     * */
+     */
     @Select("select code,name,disabled='false' from zd_charge_class where del_flag=0 " +
             "union select code='', name='全部', disabled='true' order by code")
     List<CodeName> getChargeClassDic();
 
     /**
      * 核算码
-     * */
+     */
     @Select("select code,name,disabled='false' from zy_zd_audit_item where isnull(del_flag,0) !=1 " +
             "union select code='', name='全部',disabled='true' ORDER BY code")
     List<CodeName> getAuditCodeDic();
 
     /**
      * 住院发票码
-     * */
+     */
     @Select("select code,name,disabled='false' from zy_bill_item " +
             "union select code='', name='全部',disabled='true' order by code")
     List<CodeName> getZyBillItemDic();
 
     /**
      * 门诊发票码
-     * */
+     */
     @Select("select code,name,disabled='false' from mz_bill_item " +
             "union select code='', name='全部',disabled='true' order by code")
     List<CodeName> getMzBillItemDic();
@@ -209,4 +210,8 @@ public interface XmYpDao {
             "insur_szhngs.[dbo].mt_hosp_medi on HOSP_CODE=medi_code where len(HOSP_CODE)<7 " +
             "group by HOSP_CODE) a")
     void rewriteZdHnsgsItem();
+
+
+    @Select("select * from BS_CATALOG_MATCH where HOSP_NAME like #{name}")
+    List<BsCatalogMatch> getGongShangLuMu(String name);
 }

+ 173 - 0
src/main/java/thyyxxk/webserver/entity/xmyp/BsCatalogMatch.java

@@ -0,0 +1,173 @@
+package thyyxxk.webserver.entity.xmyp;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+@Data
+public class BsCatalogMatch implements Serializable {
+
+    private static final long serialVersionUID = 3569606779634013312L;
+
+    /**
+     * centerId
+     */
+    private String centerId;
+
+    /**
+     * serialMatch
+     */
+    private Double serialMatch;
+
+    /**
+     * matchType
+     */
+    private String matchType;
+
+    /**
+     * insrNo
+     */
+    private Double insrNo;
+
+    /**
+     * itemCode
+     */
+    private String itemCode;
+
+    /**
+     * itemName
+     */
+    private String itemName;
+
+    /**
+     * statType
+     */
+    private String statType;
+
+    /**
+     * model
+     */
+    private String model;
+
+    /**
+     * stapleFlag
+     */
+    private String stapleFlag;
+
+    /**
+     * tradeCode
+     */
+    private String tradeCode;
+
+    /**
+     * tradeName
+     */
+    private String tradeName;
+
+    /**
+     * hospitalId
+     */
+    private String hospitalId;
+
+    /**
+     * hospCode
+     */
+    private String hospCode;
+
+    /**
+     * hospName
+     */
+    private String hospName;
+
+    /**
+     * hospModel
+     */
+    private String hospModel;
+
+    /**
+     * hospStandard
+     */
+    private String hospStandard;
+
+    /**
+     * hospPrice
+     */
+    private Double hospPrice;
+
+    /**
+     * hospFactory
+     */
+    private String hospFactory;
+
+    /**
+     * authorize
+     */
+    private String authorize;
+
+    /**
+     * editDate
+     */
+    private Date editDate;
+
+    /**
+     * editStaff
+     */
+    private String editStaff;
+
+    /**
+     * editMan
+     */
+    private String editMan;
+
+    /**
+     * validFlag
+     */
+    private String validFlag;
+
+    /**
+     * effectDate
+     */
+    private Date effectDate;
+
+    /**
+     * expireDate
+     */
+    private Date expireDate;
+
+    /**
+     * auditFlag
+     */
+    private String auditFlag;
+
+    /**
+     * auditDate
+     */
+    private Date auditDate;
+
+    /**
+     * auditStaff
+     */
+    private String auditStaff;
+
+    /**
+     * auditMan
+     */
+    private String auditMan;
+
+    /**
+     * updateFlag
+     */
+    private String updateFlag;
+
+    /**
+     * remark
+     */
+    private String remark;
+
+    /**
+     * versionId
+     */
+    private Double versionId;
+
+}

+ 13 - 3
src/main/java/thyyxxk/webserver/service/xmyp/XmYpService.java

@@ -129,7 +129,7 @@ public class XmYpService {
                 final String code = item.get("code");
                 String name = dao.getXmName(code);
                 HashMap<String, String> params = new HashMap<>(Capacity.DEFAULT);
-                for (Map.Entry<String, String> entry: item.entrySet()) {
+                for (Map.Entry<String, String> entry : item.entrySet()) {
                     String key = entry.getKey();
                     if ("code".equals(key) || null == entry.getValue()) {
                         continue;
@@ -175,6 +175,7 @@ public class XmYpService {
     }
 
     private static final Pattern HUMP_PATTERN = Pattern.compile("[A-Z]");
+
     private String humpToLine(String str) {
         Matcher matcher = HUMP_PATTERN.matcher(str);
         StringBuffer sb = new StringBuffer();
@@ -190,12 +191,21 @@ public class XmYpService {
         if (isGs) {
             dao.truncateTable("zd_charge_item_hnsgs");
             dao.rewriteZdHnsgsItem();
-            message ="同步省工伤匹配字典成功。";
+            message = "同步省工伤匹配字典成功。";
         } else {
             dao.truncateTable("zd_charge_item_hnsyb");
             dao.rewriteZdHnsybItem();
-            message="同步省医保匹配字典成功。";
+            message = "同步省医保匹配字典成功。";
         }
         return ResultVoUtil.success(message);
     }
+
+    public ResultVo<List<BsCatalogMatch>> getGongShangMuLu(String name) {
+        List<BsCatalogMatch> list = dao.getGongShangLuMu(name);
+        if (list.size() > 0) {
+            return ResultVoUtil.success(list);
+        } else {
+            return ResultVoUtil.fail(ExceptionEnum.NO_DATA_EXIST);
+        }
+    }
 }