Browse Source

供需删除取消状态限制

吴志根 3 years ago
parent
commit
6f81c8912c

+ 4 - 4
src/dsb/com/cnd3b/restcontroller/customer/supplyanddemand/supplyanddemand.java

@@ -393,10 +393,10 @@ public class supplyanddemand extends Controller {
      */
     public String deletesupplyanddemand() {
         long tsupplyanddemandid = content.getLongValue("tsupplyanddemandid");
-        Rows rows = dbConnect.runSqlQuery("select * from tsupplyanddemand where siteid='" + siteid + "' and tagentsid='" + tagentsid + "' and tsupplyanddemandid='" + tsupplyanddemandid + "'");
-        if (!rows.isEmpty() && !"新建".equals(rows.get(0).getString("fstatus"))) {
-            return getErrReturnObject().setErrMsg("当前状态不可删除").toString();
-        }
+//        Rows rows = dbConnect.runSqlQuery("select * from tsupplyanddemand where siteid='" + siteid + "' and tagentsid='" + tagentsid + "' and tsupplyanddemandid='" + tsupplyanddemandid + "'");
+//        if (!rows.isEmpty() && !"新建".equals(rows.get(0).getString("fstatus"))) {
+//            return getErrReturnObject().setErrMsg("当前状态不可删除").toString();
+//        }
         SQLFactory sqlFactory = new SQLFactory(this, "供需删除");
         sqlFactory.addParameter("siteid", siteid);
         sqlFactory.addParameter("tagentsid", tagentsid);