Просмотр исходного кода

中行银企直联经销商判断更新

hu 4 лет назад
Родитель
Сommit
9864442352

+ 8 - 6
src/apps/tbankpaybillsboc/tbankpaybillsboc.java

@@ -69,16 +69,18 @@ public class tbankpaybillsboc extends PaoCust {
         }
     }
 
-    public void getAgentnum() throws P2Exception {
+    public void getAgentnum() throws P2Exception {{
         String ACTACN = getString("ACTACN");
         PaoSetRemote paoSetRemote = getPaoSet("$tagentbank", "tagentbank",
                 "ACTACN='" + ACTACN + "'");
-        if (paoSetRemote.count() == 1) {
-            setValue("FAGENTNUM",
-                    paoSetRemote.getPao(0).getString("FAGENTNUM"));// ¾­ÏúÉ̱àºÅ
-
+        if (paoSetRemote.count() == 1 ) {
+            PaoSetRemote tagents= paoSetRemote.getPao(0).getPaoSet("tagents");
+            if(!tagents.isEmpty() && tagents.getPao(0).getString("fstatus").equals("ÉóºË") && tagents.getPao(0).getBoolean("fisused")){
+                setValue("FAGENTNUM",
+                        paoSetRemote.getPao(0).getString("FAGENTNUM"));// ¾­ÏúÉ̱àºÅ  
+            }
         }
-    }
+    }}
 
     public void createCashBill() throws P2Exception {
         String fagentnum = getString("fagentnum");

+ 2 - 2
src/rest/openapi/restcontroller/wechatapp/orderform/orderform.java

@@ -24,7 +24,7 @@ public class orderform extends Controller {
 		String type = content.getString("type");
 		DBConnect connect = new DBConnect();
 		String where = " 1=1 ";
-		if (type.equals("땐데�뵙灌澗운")||type.equals("땐데역튿灌澗운")||type.equals("땐데�뵙灌澗운")) {
+		if (type.equals("땐데�뵙灌澗운")||type.equals("땐데역튿灌澗운")) {
 			if(content.getInt("daynum")==0) {
 				where=where +" and CONVERT(VARCHAR(10),t1.checkdate,120)<=CONVERT(VARCHAR(10),DATEADD(mm,0,getdate()),120) ";
 			}else if(content.getInt("daynum")==30) {
@@ -40,7 +40,7 @@ public class orderform extends Controller {
 			}else {
 				return getReturnObject_err("daynum꽝鑒鑒令꼇攣횅").toString();
 			}
-		}else if(type.equals("땐데놔새灌역튿")) {
+		}else if(type.equals("땐데놔새灌역튿") || type.equals("땐데놔새灌마운")) {
 			if(content.getInt("daynum")==0) {
 				where=where +" and CONVERT(VARCHAR(10),t3.fdate,120)<=CONVERT(VARCHAR(10),DATEADD(mm,0,getdate()),120) ";
 			}else if(content.getInt("daynum")==30) {