Explorar el Código

git-svn-id: https://192.168.57.71/svn/jsgkj@1862 931142cf-59ea-a443-aa0e-51397b428577

ld_jiangxf hace 8 años
padre
commit
a1fceb4a9e

+ 33 - 1
gkjsjy/trunk/src/com/xt/jygl/gkjygl/gkjyr/xkzxx/ctl/XkzxxCtl.java

@@ -694,6 +694,17 @@ public class XkzxxCtl extends BaseWebCtl {
 								return wr;
 							}
 						} else if ("2".equals(flag)) {
+							List<LhbgEntity> lhbglist = lhbgService.findByJyrid(gkjyr.getId());
+							if (lhbglist != null && lhbglist.size() > 0) {
+								for (LhbgEntity lhbg : lhbglist) {
+									if ("0".equals(lhbg.getFlowstatus()) || "6".equals(lhbg.getFlowstatus())) {
+										wr.setSuccess(false);
+										wr.setMessage("该经营人正在理货变更中,请勿再申请");
+										return wr;
+									}
+								}
+							}
+							
 							List<LhyxEntity> lhyxlist = lhyxService.findByJyrid(gkjyr.getId());
 							if (lhyxlist != null && lhyxlist.size() > 0) {
 								for (LhyxEntity lhyx : lhyxlist) {
@@ -731,6 +742,17 @@ public class XkzxxCtl extends BaseWebCtl {
 								return wr;
 							}
 						} else if ("2".equals(flag)) {
+							List<LhbgEntity> lhbglist = lhbgService.findByJyrid(gkjyr.getId());
+							if (lhbglist != null && lhbglist.size() > 0) {
+								for (LhbgEntity lhbg : lhbglist) {
+									if ("0".equals(lhbg.getFlowstatus()) || "6".equals(lhbg.getFlowstatus())) {
+										wr.setSuccess(false);
+										wr.setMessage("该经营人正在理货变更中,请勿再申请");
+										return wr;
+									}
+								}
+							}
+							
 							List<LhyxEntity> lhyxlist = lhyxService.findByJyrid(gkjyr.getId());
 							if (lhyxlist != null && lhyxlist.size() > 0) {
 								for (LhyxEntity lhyx : lhyxlist) {
@@ -749,7 +771,6 @@ public class XkzxxCtl extends BaseWebCtl {
 								return wr;
 							}
 						}else if(flag == null){
-							
 							List<LhbgEntity> lhbglist = lhbgService.findByJyrid(gkjyr.getId());
 							if (lhbglist != null && lhbglist.size() > 0) {
 								for (LhbgEntity lhbg : lhbglist) {
@@ -760,6 +781,17 @@ public class XkzxxCtl extends BaseWebCtl {
 									}
 								}
 							}
+							
+							List<LhyxEntity> lhyxlist = lhyxService.findByJyrid(gkjyr.getId());
+							if (lhyxlist != null && lhyxlist.size() > 0) {
+								for (LhyxEntity lhyx : lhyxlist) {
+									if ("0".equals(lhyx.getFlowstatus()) || "6".equals(lhyx.getFlowstatus())) {
+										wr.setSuccess(false);
+										wr.setMessage("该经营人正在理货延续中,请勿再申请");
+										return wr;
+									}
+								}
+							}
 						}
 					}
 				}