Przeglądaj źródła

反审核判断及发送信息代码反注释

hu 4 miesięcy temu
rodzic
commit
13cb8235b3

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

@@ -175,7 +175,7 @@ public class Accountbalance extends BaseClass {
             Rows accountclassrows = controller.dbConnect.runSqlQuery("select * from sa_accountclass where siteid='" + controller.siteid + "' and  sa_accountclassid=" + sa_accountclassid);
             if (!accountclassrows.isEmpty()) {
                 String content = "您的" + accountclassrows.get(0).getString("accountname") + "已收入【" + cashbillEntity.getAmount() + "】元";
-                //new Accountbalance().sendMsg(controller, content, cashbillEntity.getOwnerid(), sys_enterpriseid);
+                new Accountbalance().sendMsg(controller, content, cashbillEntity.getOwnerid(), sys_enterpriseid);
             }
 
         } else {
@@ -266,7 +266,7 @@ public class Accountbalance extends BaseClass {
             Rows accountclassrows = dbConnect.runSqlQuery("select * from sa_accountclass where siteid='" + userInfo.getSiteId() + "' and  sa_accountclassid=" + sa_accountclassid);
             if (!accountclassrows.isEmpty()) {
                 String content = "您的" + accountclassrows.get(0).getString("accountname") + "已支出【" + cashbillEntity.getAmount() + "】元";
-                //new Accountbalance().sendMsg(dbConnect, userInfo, content, cashbillEntity.getOwnerid(), sys_enterpriseid);
+                new Accountbalance().sendMsg(dbConnect, userInfo, content, cashbillEntity.getOwnerid(), sys_enterpriseid);
             }
             JSONObject jsonObject = new JSONObject();
             jsonObject.put("siteid",userInfo.getSiteId());
@@ -348,7 +348,7 @@ public class Accountbalance extends BaseClass {
             Rows accountclassrows = controller.dbConnect.runSqlQuery("select * from sa_accountclass where siteid='" + controller.siteid + "' and  sa_accountclassid=" + sa_accountclassid);
             if (!accountclassrows.isEmpty()) {
                 String content = "您的" + accountclassrows.get(0).getString("accountname") + "已支出【" + cashbillEntity.getAmount() + "】元";
-                //new Accountbalance().sendMsg(controller, content, cashbillEntity.getOwnerid(), sys_enterpriseid);
+                new Accountbalance().sendMsg(controller, content, cashbillEntity.getOwnerid(), sys_enterpriseid);
             }
         } else {
             sqlFactory.addParameter("status", "新建");

+ 2 - 2
src/custom/beans/stockbill/bills/XSCK.java

@@ -67,7 +67,7 @@ public class XSCK extends BasicBill {
              */
         } else {
             if (billRow.getBoolean("isreceiver")) {
-                //throw new YosException("经销商已经确认收货,不可进行反审核");
+                throw new YosException("经销商已经确认收货,不可进行反审核");
             }
             /*
               库存校验
@@ -107,7 +107,7 @@ public class XSCK extends BasicBill {
                     if(ischeck){
                         throw new YosException("存在商品已完全出库,无法审核");
                     }else{
-                        //throw new YosException("存在商品已完全出库,无法反审核");
+                        throw new YosException("存在商品已完全出库,无法反审核");
                     }
 
                 }