18 lines
771 B
Java

package com.tenwa.flow.fund.flowpayment;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.flow.baseBussion.BaseBussiness;
public class HasGPS extends BaseBussiness{
public Object run(Transaction Sqlca) throws Exception{
this.initBussinessParam(Sqlca.getTransaction());
String flowUnid=(String)this.getAttribute("ObjectNo");
String contractId = Sqlca.getString("select CONTRACT_id from lc_calc_condition_temp where flowunid = '"+flowUnid+"'");
String sql="UPDATE O SET has_gps=NULL where id='"+contractId+"'";
JBOFactory.createBizObjectQuery(LB_CONTRACT_INFO.CLASS_NAME,sql).executeUpdate();
String sMessage="true";
return sMessage;
}
}