|
@@ -225,7 +225,7 @@ public class Paybill extends Controller {
|
|
|
@API(title = "查询营销账户类型", apiversion = R.ID20221228085004.v1.class)
|
|
@API(title = "查询营销账户类型", apiversion = R.ID20221228085004.v1.class)
|
|
|
public String queryAccountclass() throws YosException {
|
|
public String queryAccountclass() throws YosException {
|
|
|
Long sa_paybillid = content.getLong("sa_paybillid");
|
|
Long sa_paybillid = content.getLong("sa_paybillid");
|
|
|
- String[] sa_accountclassids = dbConnect.runSqlQuery("select sa_accountclassid from sa_paybilldetail where siteid='" + siteid + "' and sa_paybillid=" + sa_paybillid).toArray("sa_accountclassid");
|
|
|
|
|
|
|
+ String[] sa_accountclassids = dbConnect.runSqlQuery("select sa_accountclassid from sa_accountclass where siteid='" + siteid + "' and isused=1").toArray("sa_accountclassid");
|
|
|
StringBuffer where = new StringBuffer(" 1=1 ");
|
|
StringBuffer where = new StringBuffer(" 1=1 ");
|
|
|
if (content.containsKey("where")) {
|
|
if (content.containsKey("where")) {
|
|
|
JSONObject whereObject = content.getJSONObject("where");
|
|
JSONObject whereObject = content.getJSONObject("where");
|