瀏覽代碼

预估手术量tab,编辑页调整

wu 2 周之前
父節點
當前提交
1514ab79fe
共有 1 個文件被更改,包括 1 次插入9 次删除
  1. 1 9
      src/custom/restcontroller/prsx/surgeryforecast.java

+ 1 - 9
src/custom/restcontroller/prsx/surgeryforecast.java

@@ -57,17 +57,12 @@ public class surgeryforecast extends Controller {
     public String insertOrUpdate() throws YosException {
         Long sa_surgeryforecast_itemsid = content.getLongValue("sa_surgeryforecast_itemsid");
         Long sa_surgeryforecastid = content.getLongValue("sa_surgeryforecastid");
-        Long sa_doctorid = content.getLongValue("sa_doctorid");
+        Long sa_hospitaldepid = content.getLongValue("sa_hospitaldepid");
         Rows rows = dbConnect.runSqlQuery("SELECT * from sa_surgeryforecast WHERE sa_surgeryforecastid=" + sa_surgeryforecastid + " and siteid='" + siteid + "'");
         Long sa_customersid = 0L;
         if (rows.isNotEmpty()) {
             sa_customersid = rows.getRow(0).getLong("sa_customersid");
         }
-        rows = dbConnect.runSqlQuery("SELECT * from sa_doctor WHERE sa_doctorid=" + sa_doctorid + " and siteid='" + siteid + "'");
-        Long sa_hospitaldepid = 0L;
-        if (rows.isNotEmpty()) {
-            sa_hospitaldepid = rows.getRow(0).getLong("sa_hospitaldepid");
-        }
         if (sa_surgeryforecast_itemsid <= 0) {
             sa_surgeryforecast_itemsid = createTableID("sa_surgeryforecast_items");
             InsertSQL insertSQL = SQLFactory.createInsertSQL(this, "sa_surgeryforecast_items");
@@ -76,7 +71,6 @@ public class surgeryforecast extends Controller {
             insertSQL.setValue("sa_surgeryforecastid", sa_surgeryforecastid);
             insertSQL.setValue("sa_customersid", sa_customersid);
             insertSQL.setValue("sa_hospitaldepid", sa_hospitaldepid);
-            insertSQL.setValue("sa_doctorid", sa_doctorid);
             insertSQL.setValue("qty", content.getIntValue("qty"));
             insertSQL.setValue("type", content.getStringValue("type"));
             insertSQL.insert();
@@ -87,7 +81,6 @@ public class surgeryforecast extends Controller {
             updateSQL.setValue("sa_surgeryforecastid", sa_surgeryforecastid);
             updateSQL.setValue("sa_customersid", sa_customersid);
             updateSQL.setValue("sa_hospitaldepid", sa_hospitaldepid);
-            updateSQL.setValue("sa_doctorid", sa_doctorid);
             updateSQL.setValue("qty", content.getIntValue("qty"));
             updateSQL.setValue("type", content.getStringValue("type"));
             updateSQL.update();
@@ -114,7 +107,6 @@ public class surgeryforecast extends Controller {
     public String queryListMX() throws YosException {
         Long sa_surgeryforecastid = content.getLongValue("sa_surgeryforecastid");
         QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sa_surgeryforecast_items", "*").setTableAlias("t1");
-        querySQL.addJoinTable(JOINTYPE.left, "sa_doctor", "t2", "t2.sa_doctorid=t1.sa_doctorid", "doctorname");
         querySQL.addJoinTable(JOINTYPE.left, "sa_hospitaldep", "t3", "t3.sa_hospitaldepid=t1.sa_hospitaldepid", "hospitaldepname");
         querySQL.setSiteid(siteid);
         querySQL.setWhere("sa_surgeryforecastid", sa_surgeryforecastid);