Kaynağa Gözat

代码整理

沈静伟 2 yıl önce
ebeveyn
işleme
d368b73ad0

BIN
lib/yos.core-2.1.0-sources.jar


BIN
lib/yos.core-2.1.0.jar


+ 4 - 4
src/custom/beans/accountbalance/Accountbalance.java

@@ -223,11 +223,11 @@ public class Accountbalance extends BaseClass {
 //				sqlFactory.addParameter("userid", userid);
 //				sqlFactory.addParameter("username", username);
 //				sqlList.add(sqlFactory.getSQL());
-                throw new YosException("该营销账户不存在,支出凭证无法审核");
+                throw new YosException(false,"该营销账户不存在,支出凭证无法审核");
             } else {
                 BigDecimal canuseamount = rowsaccountbalance.get(0).getBigDecimal("creditquota").add(rowsaccountbalance.get(0).getBigDecimal("balance"));
                 if (cashbillEntity.getAmount().compareTo(canuseamount) == 1) {
-                    throw new YosException("该营销账户可用余额不足,支出凭证无法审核");
+                    throw new YosException(false,"该营销账户可用余额不足,支出凭证无法审核");
                 }
                 BigDecimal newbalance = rowsaccountbalance.get(0).getBigDecimal("balance").subtract(cashbillEntity.getAmount());
                 sqlList.add("update sa_accountbalance set balance='" + newbalance + "',changedate=CURRENT_TIME,changeby ='" + controller.username + "',changeuserid='" + controller.userid + "' where sys_enterpriseid ='" + sys_enterpriseid + "' and  sa_accountclassid='" + sa_accountclassid + "' and siteid='" + controller.siteid + "'");
@@ -293,11 +293,11 @@ public class Accountbalance extends BaseClass {
 //				sqlFactory.addParameter("userid", userid);
 //				sqlFactory.addParameter("username", username);
 //				sqlList.add(sqlFactory.getSQL());
-                throw new YosException("该营销账户不存在,支出凭证无法审核");
+                throw new YosException(false,"该营销账户不存在,支出凭证无法审核");
             } else {
                 BigDecimal canuseamount = rowsaccountbalance.get(0).getBigDecimal("creditquota").add(rowsaccountbalance.get(0).getBigDecimal("balance"));
                 if (cashbillEntity.getAmount().compareTo(canuseamount) == 1) {
-                    throw new YosException("该营销账户可用余额不足,支出凭证无法审核");
+                    throw new YosException(false,"该营销账户可用余额不足,支出凭证无法审核");
                 }
                 BigDecimal newbalance = rowsaccountbalance.get(0).getBigDecimal("balance").subtract(cashbillEntity.getAmount());
                 sqlList.add("update sa_accountbalance set balance='" + newbalance + "',changedate=CURRENT_TIME,changeby ='" + controller.username + "',changeuserid='" + controller.userid + "' where sys_enterpriseid ='" + sys_enterpriseid + "' and  sa_accountclassid='" + sa_accountclassid + "' and siteid='" + controller.siteid + "'");

+ 1 - 1
src/custom/beans/datatag/DataTag.java

@@ -35,7 +35,7 @@ public class DataTag {
             sqlFactory.addParameter("issystem", rows.get(0).getInteger("issystem"));
             controller.dbConnect.runSqlUpdate(sqlFactory.getSQL());
         } else {
-            throw new YosException("标签" + tag + "不是系统预设标签,不可添加");
+            throw new YosException(false,"标签" + tag + "不是系统预设标签,不可添加");
         }
     }
 

+ 1 - 1
src/custom/restcontroller/webmanage/sale/invoice/invoicebill.java

@@ -688,7 +688,7 @@ public class invoicebill extends Controller {
 		Rows sa_invoicebillblue = dbConnect.runSqlQuery("select * from sa_invoicebill where sa_invoicebillid="
 				+ sa_invoicebill.getLong("sa_invoicebillid_blue"));
 		if (sa_invoicebillblue.isEmpty()) {
-			throw new YosException("找不到对应到蓝票信息");
+			throw new YosException(false,"找不到对应到蓝票信息");
 		}
 		JSONObject contentObject = new JSONObject();
 		JSONObject orderObject = new JSONObject();

+ 3 - 3
src/custom/restcontroller/webmanage/sale/order/OrderItemsHelper.java

@@ -41,7 +41,7 @@ public class OrderItemsHelper extends BaseClass {
                     BigDecimal orderaddqty = itemRowsMap.get(itemid).get(0).getBigDecimal("orderaddqty");
                     BigDecimal orderminqty = itemRowsMap.get(itemid).get(0).getBigDecimal("orderminqty");
                     if (((qty.subtract(orderminqty)).remainder(orderaddqty)).compareTo(BigDecimal.ZERO) != 0 || qty.compareTo(orderminqty)<0) {
-                        throw new YosException("品号为" + itemRowsMap.get(itemid).get(0).getString("itemno") + "的商品数量不符合该商品的起订量和增量");
+                        throw new YosException(false,"品号为" + itemRowsMap.get(itemid).get(0).getString("itemno") + "的商品数量不符合该商品的起订量和增量");
                     }
                 }
             }
@@ -56,11 +56,11 @@ public class OrderItemsHelper extends BaseClass {
                     BigDecimal orderminqty = pRowsMap.get(itemid).get(0).getBigDecimal("orderminqty");
                     boolean islimit = pRowsMap.get(itemid).get(0).getBoolean("islimit");
                     if (((qty.subtract(orderminqty)).remainder(orderaddqty)).compareTo(BigDecimal.ZERO) != 0 || qty.compareTo(orderminqty)<0) {
-                        throw new YosException("品号为" + itemRowsMap.get(itemid).get(0).getString("itemno") + "的商品数量不符合该商品的起订量和增量");
+                        throw new YosException(false,"品号为" + itemRowsMap.get(itemid).get(0).getString("itemno") + "的商品数量不符合该商品的起订量和增量");
                     }
                     if (islimit) {
                         if (groupqty.compareTo(saledqty.add(qty)) < 0) {
-                            throw new YosException("品号:"+itemRow.getString("itemno") +"已超过限购数量:"+groupqty.subtract(saledqty));
+                            throw new YosException(false,"品号:"+itemRow.getString("itemno") +"已超过限购数量:"+groupqty.subtract(saledqty));
                         }
                     }
                 }