|
@@ -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;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|