Commit 8c3d3f0c by 潘际乾

使用Argument对字符串进行修改复制

parent 62bc4d8a
......@@ -7,13 +7,15 @@ void getxxdfields(String xxd,String infileds,String inr,String flg,Argument<Stri
// FIELDS: 输出字段的值
//<<< ZL-------------------------------------------
String fileds = NULLSTR;
Argument<String> filedsBox = new Argument<>();
if( Platform.compareTo( flg , "I" ) == 0 )
{
fileds = "";
Platform.dbExecuteSql( "select " + infileds + " from " + xxd + " where inr='" + inr + "' " );
if( Platform.errorCode() <= 0 )
{
Platform.dbFetchFields( "", fileds );
Platform.dbFetchFields( "", filedsBox );
fileds = filedsBox.value;
if( Platform.errorCode() <= 0 )
{
fields.value = fileds;
......@@ -35,7 +37,8 @@ void getxxdfields(String xxd,String infileds,String inr,String flg,Argument<Stri
Platform.dbExecuteSql( "select " + infileds + " from " + xxd + " where BRANCH='" + inr + "' " );
if( Platform.errorCode() <= 0 )
{
Platform.dbFetchFields( "", fileds );
Platform.dbFetchFields( "", filedsBox );
fileds = filedsBox.value;
if( Platform.errorCode() <= 0 )
{
fields.value = fileds;
......@@ -57,7 +60,8 @@ void getxxdfields(String xxd,String infileds,String inr,String flg,Argument<Stri
Platform.dbExecuteSql( "select " + infileds + " from " + xxd + " where ACCBCH='" + inr + "' " );
if( Platform.errorCode() <= 0 )
{
Platform.dbFetchFields( "", fileds );
Platform.dbFetchFields( "", filedsBox );
fileds = filedsBox.value;
if( Platform.errorCode() <= 0 )
{
fields.value = fileds;
......
......@@ -10,7 +10,9 @@ void getBchInrList(String table,String infileds,String inr,Argument<String> fiel
int error = 0;
if( Platform.errorCode() <= 0 )
{
Platform.dbFetchFields( "", fileds );
Argument<String> filedsBox = new Argument<>();
ctx.getDaoSession().dbFetchFields("",filedsBox);
fileds = filedsBox.value;
error = Platform.errorCode();
}
Platform.dbCloseCursor();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment