Sfoglia il codice sorgente

德莱宝-打款凭证-新建的打款凭证已有的账户,再次选择账户时不需要在显示

eganwu 1 anno fa
parent
commit
13190bbd70

+ 1 - 0
src/custom/restcontroller/webmanage/sale/paybill/Paybill.java

@@ -336,6 +336,7 @@ public class Paybill extends Controller {
         }
         SQLFactory sqlFactory = new SQLFactory(this, "营销账户类型列表查询");
         sqlFactory.addParameter("siteid", siteid);
+        sqlFactory.addParameter("sa_paybillid", sa_paybillid);
         sqlFactory.addParameter_SQL("where", where);
         Rows rows = dbConnect.runSqlQuery(sqlFactory.getSQL());
         return getSucReturnObject().setData(rows).toString();

+ 2 - 1
src/custom/restcontroller/webmanage/sale/paybill/SQL/营销账户类型列表查询.sql

@@ -5,4 +5,5 @@ select sa_accountclassid,
 from sa_accountclass
 where $where$
   and siteid = $siteid$
-  and isused = 1
+  and isused = 1
+  and sa_accountclassid not in (SELECT sa_accountclassid from sa_paybilldetail WHERE sa_paybillid=$sa_paybillid$)