车辆处置竞标价格
This commit is contained in:
parent
566e1f7107
commit
03c090aee6
@ -2987,7 +2987,7 @@
|
||||
<attribute name="FRAME_NUMBER" label="车架号" type="STRING" length="50"/>
|
||||
<attribute name="VNDR_ID" label="供应商编号" type="STRING" length="32"/>
|
||||
<attribute name="VNDR_NAME" label="供应商名称" type="STRING" length="100"/>
|
||||
<attribute name="BID_PRICE" label="竞标价格" type="STRING" length="32"/>
|
||||
<attribute name="BID_PRICE" label="竞标价格" type="DOUBLE" length="18" scale="2"/>
|
||||
<attribute name="REMARKS" label="备注" type="STRING" length="32"/>
|
||||
<attribute name="BID_STATUS" label="竞标状态" type="STRING" length="32"/>
|
||||
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
|
||||
@ -3011,7 +3011,7 @@
|
||||
<attribute name="FRAME_NUMBER" label="车架号" type="STRING" length="50"/>
|
||||
<attribute name="VNDR_ID" label="供应商编号" type="STRING" length="32"/>
|
||||
<attribute name="VNDR_NAME" label="供应商名称" type="STRING" length="100"/>
|
||||
<attribute name="BID_PRICE" label="竞标价格" type="STRING" length="32"/>
|
||||
<attribute name="BID_PRICE" label="竞标价格" type="DOUBLE" length="18" scale="2"/>
|
||||
<attribute name="REMARKS" label="备注" type="STRING" length="32"/>
|
||||
<attribute name="BID_STATUS" label="竞标状态" type="STRING" length="32"/>
|
||||
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
|
||||
|
||||
35
src_tenwa/com/tenwa/apzl/comm/GetBidPrice.java
Normal file
35
src_tenwa/com/tenwa/apzl/comm/GetBidPrice.java
Normal file
@ -0,0 +1,35 @@
|
||||
package com.tenwa.apzl.comm;
|
||||
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.awe.util.ASResultSet;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
|
||||
|
||||
public class GetBidPrice {
|
||||
public static String getBidPrice(String framenumber) throws JBOException
|
||||
{
|
||||
String bidPrice="";
|
||||
Transaction Sqlca =null;
|
||||
try {
|
||||
Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource());
|
||||
String sql="SELECT MAX(bid_price) AS bid_price FROM LC_CAR_BID WHERE frame_number=:frame_number ";
|
||||
SqlObject asql = new SqlObject(sql);
|
||||
asql.setParameter("frame_number", framenumber);
|
||||
ASResultSet rs = null;
|
||||
rs = Sqlca.getASResultSet(asql);
|
||||
if(rs.next()){
|
||||
bidPrice=rs.getStringValue("bid_price");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}finally{
|
||||
if(Sqlca!=null){
|
||||
Sqlca.disConnect();
|
||||
Sqlca = null;
|
||||
}
|
||||
}
|
||||
return bidPrice;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user