hjg
2025-02-20 f1b726d853f242c5558239138defcd5d0b1636df
JavaSource/com/mandi/fendan/service/impl/Fd_BsheetService.java
@@ -133,15 +133,6 @@
         orr.setErrmsg("该提单已经分单完成,不能分单!");
         return orr;
      }
      // 判断是否存在客户
      if(StringUtils.isBlank(xstd.getTd_fpbh())){
         Nckh nckh = zsjper.getNckhbyCode(xstd.getTd_khbh());// 客户不存在的特殊情况是不应该存在的,以防万一,加判空。
         if(nckh == null) {
            orr.setCode(1);
            orr.setErrmsg("该提单客户不存在,请检查数据!");
            return orr;
         }
      }
      //送货
      if(xstd.getTd_ztbz()==2){
         if(fdc!=null){
@@ -152,12 +143,6 @@
            }
         }
      }else{
//         Fd_wlgs_fhdq wldq=this.dqper.getbyNos(lg.getDepartno(),xstd.getTd_shddbh(),
         // todo 下面的意义何在????默认查科技???
//               xstd.getTd_ywdybh().equals(Contants.nc_ywdy_ZZ)?Contants.nc_ywdy_ZZ
//                  :xstd.getTd_ywdybh().equals(Contants.nc_ywdy_MS)?Contants.nc_ywdy_MS
//                  :Contants.nc_ywdy_KJ);
         Fd_wlgs_fhdq wldq = this.dqper.getbyNos(lg.getDepartno(),xstd.getTd_shddbh(), ConvertTool.ncGetDefault(xstd.getTd_ywdybh()));
         int total = fdMxWlgsMapper.selectCountByTdTdls(xstd.getTd_tdls());
         if(wldq==null && total == 0){
@@ -171,12 +156,15 @@
      if(StringUtils.isBlank(xstd.getTd_fpbh())){
         if(mm!=null)
            Rcompany=mm.get("name")==null?"":mm.get("name").toString();
         // 判断是否存在客户
         if(mm == null || mm.size() == 0) { // 客户必须存在,否则无法分单
            orr.setCode(1);
            orr.setErrmsg("该提单客户不存在,请检查数据!");
            return orr;
         }
      }else{
         /*Rcompany=(xstd.getTd_ywdybh().equals(Contants.nc_ywdy_ZZ)?"郑州报关":
                  xstd.getTd_ywdybh().equals(Contants.nc_ywdy_MT)?"河南报关":
                     xstd.getTd_ywdybh().equals(Contants.nc_ywdy_MS)?"明晟报关":
                  "科技报关");*/
         Rcompany = ConvertTool.covertToCustoms(xstd.getTd_ywdybh());
//         Rcompany = ConvertTool.covertToCustoms(xstd.getTd_ywdybh());
         Rcompany = ConvertTool.covertToCustoms(xstd.getTd_cqNo());
      }
      List<Fd_XSTD> tdl= new ArrayList<Fd_XSTD>();
@@ -184,8 +172,6 @@
      List<Fd_XSTDMX> mxl=new ArrayList<Fd_XSTDMX>();
      //是否保存一卡通业务单表头信息
      boolean saveBT=false;
      /*String bsDE=xstd.getTd_cqNo().equals(Contants.nc_ywdy_ZZ) ?
            Contants.zzSdepartNo :xstd.getTd_cqNo().equals(Contants.nc_ywdy_MS)?Contants.msSdepartNo:Contants.kjSdepartNo;*/
      String bsDE = ConvertTool.ncCovertToYkt(xstd.getTd_cqNo());
      String bbsNo="";
      String ziti="";//是否自提
@@ -465,7 +451,10 @@
      }
      orr.setCode(0);
      orr.setItem(null);
      Map map = new HashMap<>();
      // 返回业务单号,给前端使用
      map.put("businessNo",bbsNo);
      orr.setItem(map);
      return orr;
   }