|
@@ -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);
|