|
@@ -549,9 +549,11 @@ public class promotion extends Controller {
|
|
|
return getErrReturnObject().setErrMsg("该促销方案【"+row.getString("itemno")+"】商品起订量或增量为0,无法审核").toString();
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ Rows rowsdetailshuizong = dbConnect.runSqlQuery("select * from (select t2.itemno,count(1) count from sa_promotion_items t1 left join plm_item t2 on t1.itemid=t2.itemid and t1.siteid=t2.siteid where t1.sa_promotionid ='"
|
|
|
+ + sa_promotionid + "' and t1.siteid='" + siteid + "' group by t1.itemid,t2.itemno,t1.orderminqty,t1.orderaddqty,t1.groupqty) t where t.count>1");
|
|
|
+ if(rowsdetailshuizong.isNotEmpty()){
|
|
|
+ return getErrReturnObject().setErrMsg("商品编码:"+rowsdetailshuizong.get(0).getString("itemno")+"重复添加,禁止审核!").toString();
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|