parent
dd0817433d
commit
040c3ed886
|
@ -61,7 +61,7 @@ public class BankSaveOP extends AbstractOperationServicePlugIn {
|
|||
if (qFilter==null){
|
||||
qFilter=qFilter1;
|
||||
}else {
|
||||
qFilter.or(qFilter1);
|
||||
qFilter=qFilter.or(qFilter1);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -77,6 +77,7 @@ public class BankSaveOP extends AbstractOperationServicePlugIn {
|
|||
|
||||
DynamicObject dynamicObject = dataEntities[i];
|
||||
String description = dynamicObject.getString("description");
|
||||
if (qFilter!=null){
|
||||
String sql = qFilter.toString();
|
||||
String replaced = sql.replace("description", "'"+description+"'");
|
||||
String selsql = " /*dialect*/ select 1 where "+replaced;
|
||||
|
@ -89,11 +90,16 @@ public class BankSaveOP extends AbstractOperationServicePlugIn {
|
|||
logger.info("进入banksavef方法直接赋值失败");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if(dynamicObject != null) {
|
||||
//通过基础资料或单据标识 的id 获取数据
|
||||
QFilter newqFilter =new QFilter("id", QCP.equals,dynamicObject.getPkValue());
|
||||
qFilter.and(newqFilter);
|
||||
if (qFilter!=null){
|
||||
qFilter=qFilter.and(newqFilter);
|
||||
}else {
|
||||
qFilter=newqFilter;
|
||||
}
|
||||
// qFilter.and(newqFilter);
|
||||
// DynamicObject bei_transdetail = BusinessDataServiceHelper.loadSingle(dynamicObject.getPkValue(), "bei_transdetail");
|
||||
DynamicObject bei_transdetail = BusinessDataServiceHelper.loadSingle("bei_transdetail", "id,billno,description,kdretflag", qFilter.toArray());
|
||||
if(bei_transdetail != null ) {
|
||||
|
|
Loading…
Reference in New Issue