fix:云之家回写状态未更新
This commit is contained in:
parent
ecc285745a
commit
58ff914ac5
@ -93,7 +93,16 @@ public class YZJAuditController {
|
||||
logger.info("获取审批单据,查询条件:{},{}", bos_entityobjectnum, formInstId);
|
||||
|
||||
//获取单据
|
||||
billObj = BusinessDataServiceHelper.loadSingle(bos_entityobjectnum, new QFilter[]{new QFilter("yem_forminstid", QCP.equals, formInstId)});
|
||||
QFilter qFilter = new QFilter("yem_forminstid", QCP.equals, formInstId);
|
||||
DynamicObject[] load = BusinessDataServiceHelper.load(bos_entityobjectnum, "id, billno", qFilter.toArray());
|
||||
logger.info("查询到审批单据: {} 条", load.length);
|
||||
for (DynamicObject d : load) {
|
||||
logger.info("审批单据:{}", d.getString("billno"));
|
||||
}
|
||||
if (load.length > 0) {
|
||||
DynamicObject object = load[0];
|
||||
billObj = BusinessDataServiceHelper.loadSingle(object.getPkValue(), object.getDataEntityType().getName());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return CustomApiResult.fail("501", e.getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user