|
|
@@ -173,7 +173,7 @@ public class Paybill extends Controller {
|
|
|
ArrayList<String> sqlList = new ArrayList<>();
|
|
|
Long sa_paybillid = content.getLong("sa_paybillid");
|
|
|
Rows rows = dbConnect.runSqlQuery("select sys_enterpriseid,status,billno from sa_paybill where siteid='" + siteid + "' and sa_paybillid=" + sa_paybillid);
|
|
|
- Rows accountclassRows = dbConnect.runSqlQuery("select sa_accountclassid,amount from sa_paybilldetail where siteid='" + siteid + "' and sa_paybillid=" + sa_paybillid);
|
|
|
+ Rows accountclassRows = dbConnect.runSqlQuery("select sa_accountclassid,amount from sa_paybilldetail where siteid='" + siteid + "' and amount>0 and sa_paybillid=" + sa_paybillid);
|
|
|
if (rows.isEmpty()) {
|
|
|
return getErrReturnObject().setErrMsg("未选择打款凭证").toString();
|
|
|
}
|