|
@@ -12,6 +12,7 @@ import kd.bos.exception.KDException;
|
|
|
import kd.bos.orm.query.QCP;
|
|
|
import kd.bos.orm.query.QFilter;
|
|
|
import kd.bos.schedule.executor.AbstractTask;
|
|
|
+import kd.bos.servicehelper.BusinessDataServiceHelper;
|
|
|
import kd.bos.servicehelper.QueryServiceHelper;
|
|
|
|
|
|
/**
|
|
@@ -27,14 +28,12 @@ public class PurContractHaveNotJGSDTask extends AbstractTask {
|
|
|
Set<Object> xshtids = new HashSet<>();
|
|
|
QFilter qxsbg = new QFilter("billstatus", QCP.equals, "C");
|
|
|
qxsbg.and("nckd_combofield",QCP.equals,"A");
|
|
|
-
|
|
|
- DynamicObjectCollection collections = QueryServiceHelper.query("conm_salcontract","id", qxsbg.toArray(), "");
|
|
|
- if(!collections.isEmpty()){
|
|
|
- for (DynamicObject saleData : collections) {
|
|
|
- Object id = saleData.get("id");
|
|
|
- xshtids.add(id);
|
|
|
- }
|
|
|
+ DynamicObject collections[] = BusinessDataServiceHelper.load("conm_xsalcontrac","id", qxsbg.toArray());
|
|
|
+ for (DynamicObject saleData : collections) {
|
|
|
+ Object id = saleData.get("id");
|
|
|
+ xshtids.add(id);
|
|
|
}
|
|
|
+
|
|
|
if (!xshtids.isEmpty()) {
|
|
|
Map<String,Set<String>> xsht2cght = new HashMap<>();
|
|
|
QFilter qcght = new QFilter("billstatus", QCP.equals, "C");
|