泛微非采购供应商接口,控制策略为自由分配
This commit is contained in:
parent
be8cc4dd24
commit
5ba7e69fc6
|
|
@ -263,7 +263,7 @@ public class SupplierControl implements Serializable {
|
|||
}
|
||||
bd_supplier.set("enable", "1");//使用状态
|
||||
bd_supplier.set("status", "A");//数据状态
|
||||
bd_supplier.set("ctrlstrategy", "5");//控制策略
|
||||
bd_supplier.set("ctrlstrategy", "2");//控制策略
|
||||
//bd_supplier.set("type", "1");//伙伴类型
|
||||
//bd_supplier.set("bizfunction", ",1,2,3,4,");//业务职能
|
||||
SaveServiceHelper.save(new DynamicObject[]{bd_supplier});
|
||||
|
|
@ -375,9 +375,9 @@ public class SupplierControl implements Serializable {
|
|||
resultExt.setFailCount(1);
|
||||
resultExt.setSuccessCount(0);
|
||||
} else {
|
||||
Set<Long> dataIds = new HashSet<>();
|
||||
/*Set<Long> dataIds = new HashSet<>();
|
||||
dataIds.add(bd_supplier.getLong("id"));
|
||||
BaseDataResponse baseDataResponse = BaseDataServiceHelper.changeCtrlStrategy("bd_supplier", dataIds, "2", "basedata", org.getLong("id"));
|
||||
BaseDataResponse baseDataResponse = BaseDataServiceHelper.changeManageRight("bd_supplier", bd_supplier.getDynamicObject("useorg").getLong("id"), "basedata", dataIds, org.getLong("id"));
|
||||
boolean success = baseDataResponse.isSuccess();
|
||||
if (!success) {
|
||||
rowMsg.add(baseDataResponse.getErrorMsg());
|
||||
|
|
@ -390,7 +390,7 @@ public class SupplierControl implements Serializable {
|
|||
results.add(resultBean);
|
||||
resultExt.setFailCount(1);
|
||||
resultExt.setSuccessCount(0);
|
||||
}
|
||||
}*/
|
||||
resultBean.setId(bd_supplier.getString("id"));
|
||||
resultBean.setBillStatus(true);
|
||||
results.add(resultBean);
|
||||
|
|
|
|||
Loading…
Reference in New Issue