1.更改接口bug

This commit is contained in:
zhangbb 2019-01-17 11:24:10 +08:00
parent b35b2f536c
commit fcac767e61

View File

@ -99,7 +99,7 @@ public class UpdatePaymentInfo {
BJ_Info.setAttributeValue("final_result","N");
}
BJM_bcPay.saveObject(BJ_Info);
String sql = "update BC_PAY_INFO_LOG set final_result='Y' where project_no='"+project_no+"'";
String sql = "update O set final_result='Y' where project_no='"+project_no+"'";
if("Y".equals(BJ_Info.getAttribute("final_result").toString())){
BJM_bcPay.createQuery(sql).executeUpdate();
}
@ -114,10 +114,16 @@ public class UpdatePaymentInfo {
}
return resulst;
}
public String requestAndAction (JBOTransaction tx) throws SQLException{
public String requestAndAction (JBOTransaction tx){
Conn conn = new Conn(tx);
String sql = "select project_no,customername,certid,fact_money from BC_PAY_INFO_LOG where ID in(?)";
List<Map<String, String>> requests = conn.executeQuery(sql, Ids);
List<Map<String, String>> requests = null;
try {
requests = conn.executeQuery(sql, Ids);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if(!(requests.size()>0)){
return "FAIL";
}