From 5694bb030cdfa848f5f157f8fd546ef511e0aa81 Mon Sep 17 00:00:00 2001 From: Administrator <hbal> Date: 星期三, 15 二月 2023 17:43:44 +0800 Subject: [PATCH] 内贸判断必须有单位 --- JavaSource/com/mandi/fendan/service/impl/ErpService.java | 43 ++++++------------------------------------- 1 files changed, 6 insertions(+), 37 deletions(-) diff --git a/JavaSource/com/mandi/fendan/service/impl/ErpService.java b/JavaSource/com/mandi/fendan/service/impl/ErpService.java index cf311e3..2394b3d 100644 --- a/JavaSource/com/mandi/fendan/service/impl/ErpService.java +++ b/JavaSource/com/mandi/fendan/service/impl/ErpService.java @@ -1114,7 +1114,7 @@ String tdNo = tdje.getAsString(); if (StringUtils.isNotBlank(tdNo)) { Fd_XSTD td = this.tdper.getbyTDBH(tdNo); - if (td == null || td.getTd_wfdsl()<=0 ) { //|| td.isTd_zcwcbz() 瑁呰溅瀹屾垚鏍囧織 涓嶉渶瑕佷簡 + if (td == null || td.getTd_wfdsl()<=0 ) { continue; } @@ -1123,45 +1123,13 @@ //褰撳墠鐢ㄦ埛鍙兘鐪嬪埌鍙互鎿嶄綔鐨勬彁鍗� 涓嶅彲浠ユ搷浣滅殑鎻愬崟鐪嬩笉鍒� //鎵�鏈変互涓媏lse鎿嶄綔鍘绘帀 if (StringUtils.isBlank(bsDE)) { - /*bsDE = td.getTd_cqNo().equals(Contants.nc_ywdy_ZZ) ? Contants.zzSdepartNo : - td.getTd_cqNo().equals(Contants.nc_ywdy_MS)? Contants.msSdepartNo : - td.getTd_cqNo().equals(Contants.nc_ywdy_YR)? Contants.yrSdepartNo : - Contants.kjSdepartNo;*/ bsDE = ConvertTool.ncCovertToYkt(td.getTd_cqNo()); } -// else { -// // 閮戝窞 -// if (bsDE.equals(Contants.zzSdepartNo)) { -// if (!td.getTd_ywdybh().equals(Contants.nc_ywdy_ZZ)) { -// orr.setCode(1); -// orr.setErrmsg("鎻愬崟锛�"+td.getTd_ywdybh()+"涓嶆槸閮戝窞鍘傚尯鐨勬彁鍗曪紝涓嶈兘鍚屾椂閰嶅崟锛�"); -// return orr; -// } -// } else if(bsDE.equals(Contants.msSdepartNo)) { -// if (!td.getTd_ywdybh().equals(Contants.nc_ywdy_MS)) { -// orr.setCode(1); -// orr.setErrmsg("鎻愬崟锛�"+td.getTd_ywdybh()+"涓嶆槸鏄庢櫉鍘傚尯鐨勬彁鍗曪紝涓嶈兘鍚屾椂閰嶅崟锛�"); -// return orr; -// } -// }else { -// if (!td.getTd_ywdybh().equals(Contants.nc_ywdy_KJ)) { -// orr.setCode(1); -// orr.setErrmsg("鎻愬崟锛�"+td.getTd_ywdybh()+"涓嶆槸鏄庢櫉鍘傚尯鐨勬彁鍗曪紝涓嶈兘鍚屾椂閰嶅崟锛�"); -// return orr; -// } -// } -// } if (StringUtils.isBlank(ziti)) { ziti = td.getTd_ztbz() == 2 ? "鑷彁" : "闈炶嚜鎻�"; } if (StringUtils.isBlank(Rcompany)) { Map<String, Object> mm = this.dqper.getKH(td.getTd_khbh()); - if(mm == null || mm.size() == 0) { // 瀹㈡埛蹇呴』瀛樺湪锛屽惁鍒欐棤娉曞垎鍗� - orr.setCode(1); - orr.setErrmsg("璇ユ彁鍗曞鎴蜂笉瀛樺湪锛岃妫�鏌ユ暟鎹紒"); - return orr; - } - // /* * 1銆佸璐告湁鍙戠エ缂栧彿锛屽唴璐告病鏈夊彂绁ㄧ紪鍙� * 2銆佸唴璐稿彇瀹為檯鍏徃鍚嶇О锛屽璐稿彇鐩稿簲缁勭粐鐨勫叕鍙哥畝绉�+鈥樻姤鍏斥�� @@ -1170,11 +1138,12 @@ 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 = (td.getTd_ywdybh().equals(Contants.nc_ywdy_ZZ)?"閮戝窞鎶ュ叧": - td.getTd_ywdybh().equals(Contants.nc_ywdy_MT)?"娌冲崡鎶ュ叧": - td.getTd_ywdybh().equals(Contants.nc_ywdy_MS)?"鏄庢櫉鎶ュ叧": - "绉戞妧鎶ュ叧");*/ Rcompany = ConvertTool.covertToCustoms(td.getTd_ywdybh()); } } -- Gitblit v1.9.3