yeguodong 2 周之前
父节点
当前提交
0cf3640fe4
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 4 4
      src/main/java/cn/hnthyy/thmz/service/yb/YbService.java
  2. 1 1
      src/main/resources/application-dev.yml

+ 4 - 4
src/main/java/cn/hnthyy/thmz/service/yb/YbService.java

@@ -76,10 +76,10 @@ public class YbService {
                 selInfo.getOrderNo(), selInfo.getChargeItemCode(), selInfo.getRealNo());
 
         List<DrugTracCodg> drugTracCodgList = selinfoSoldTotal.getDrugtracinfo();
-        if(drugTracCodgList == null || drugTracCodgList.isEmpty()) {
+        /*if(drugTracCodgList == null || drugTracCodgList.isEmpty()) {
             response = new ResultVo(-1, "追溯码不能为空");
             return response;
-        }
+        }*/
         String drugTracCodg = drugTracCodgList.get(0).getDrugTracCodg();
         String result = taobaoService.sendGet("/queryCodeDetail?codes=" + drugTracCodg);
         JSONObject resultJson = JSONObject.parseObject(result);
@@ -233,10 +233,10 @@ public class YbService {
     public ResultVo returnGoodsItem(SelinfoReturn selinfoReturn) {
         ResultVo response = null;
         List<DrugTracCodg> drugTracCodgList = selinfoReturn.getDrugtracinfo();
-        if(drugTracCodgList == null || drugTracCodgList.size() == 0) {
+        /*if(drugTracCodgList == null || drugTracCodgList.size() == 0) {
             response = new ResultVo(-1, "追溯码不能为空");
             return response;
-        }
+        }*/
         
         // 记录关联字段信息(用于关联退药记录)
         // 这些字段用于后续查询退药记录,确保医保记录与退药记录的一一对应

+ 1 - 1
src/main/resources/application-dev.yml

@@ -41,7 +41,7 @@ spring:
       max-request-size: 1000MB
   datasource:
     his:
-      jdbc-url: "jdbc:sqlserver://130.150.161.71:1433;databaseName=hisdb"
+      jdbc-url: "jdbc:sqlserver://localhost:1433;databaseName=hisdb"
       username: "sa"
       password: "Symhyy@123"
       # jdbc-url: "jdbc:sqlserver://130.150.161.124:1433;databaseName=po"