fix:
1.下单审批报错处理
This commit is contained in:
parent
c4245d2e6e
commit
5b6d440270
@ -3,19 +3,12 @@ package com.yem.wm.im.debcrednotenew.utils;
|
|||||||
import com.yem.or.utils.OrderUtils;
|
import com.yem.or.utils.OrderUtils;
|
||||||
import com.yem.wm.utils.DynamicObjectUtil;
|
import com.yem.wm.utils.DynamicObjectUtil;
|
||||||
import com.yem.wm.utils.YEM;
|
import com.yem.wm.utils.YEM;
|
||||||
import kd.bos.context.RequestContext;
|
|
||||||
import kd.bos.dataentity.OperateOption;
|
|
||||||
import kd.bos.dataentity.entity.DynamicObject;
|
import kd.bos.dataentity.entity.DynamicObject;
|
||||||
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||||
import kd.bos.entity.operate.result.IOperateInfo;
|
|
||||||
import kd.bos.entity.operate.result.OperationResult;
|
|
||||||
import kd.bos.exception.KDBizException;
|
|
||||||
import kd.bos.orm.query.QCP;
|
import kd.bos.orm.query.QCP;
|
||||||
import kd.bos.orm.query.QFilter;
|
import kd.bos.orm.query.QFilter;
|
||||||
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||||
import kd.bos.servicehelper.QueryServiceHelper;
|
import kd.bos.servicehelper.QueryServiceHelper;
|
||||||
import kd.bos.servicehelper.basedata.BaseDataServiceHelper;
|
|
||||||
import kd.bos.servicehelper.operation.OperationServiceHelper;
|
|
||||||
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
@ -737,14 +730,16 @@ public class DebCredUtils {
|
|||||||
DynamicObject yem_bd_products = dataEntitie.getDynamicObject("yem_bd_products");
|
DynamicObject yem_bd_products = dataEntitie.getDynamicObject("yem_bd_products");
|
||||||
QFilter qFilter = new QFilter("billstatus", QCP.equals, "C");//
|
QFilter qFilter = new QFilter("billstatus", QCP.equals, "C");//
|
||||||
qFilter.and(new QFilter("org.id", QCP.equals, org.getLong("id")));
|
qFilter.and(new QFilter("org.id", QCP.equals, org.getLong("id")));
|
||||||
|
if (yem_groupcustomers != null) {
|
||||||
qFilter.and(new QFilter("yem_customer.id", QCP.equals, yem_groupcustomers.getLong("id")));
|
qFilter.and(new QFilter("yem_customer.id", QCP.equals, yem_groupcustomers.getLong("id")));
|
||||||
|
}
|
||||||
qFilter.and(new QFilter("yem_bd_products.id", QCP.equals, yem_bd_products.getLong("id")));
|
qFilter.and(new QFilter("yem_bd_products.id", QCP.equals, yem_bd_products.getLong("id")));
|
||||||
qFilter.and(new QFilter("yem_credittype.id", QCP.equals, yem_debcredtype.getLong("id")));
|
qFilter.and(new QFilter("yem_credittype.id", QCP.equals, yem_debcredtype.getLong("id")));
|
||||||
qFilter.and(new QFilter("yem_debcredtype", QCP.equals, debcredtype));
|
qFilter.and(new QFilter("yem_debcredtype", QCP.equals, debcredtype));
|
||||||
String selectfield = DynamicObjectUtil.getSelectfields("yem_debcrednote", false);
|
String selectfield = DynamicObjectUtil.getSelectfields("yem_debcrednote", false);
|
||||||
String selectfields = DynamicObjectUtil.getEntrySelectfields(selectfield, "yem_debcrednote", "yem_creditnotedes", false);
|
String selectfields = DynamicObjectUtil.getEntrySelectfields(selectfield, "yem_debcrednote", "yem_creditnotedes", false);
|
||||||
DynamicObjectCollection data = QueryServiceHelper.query("yem_debcrednote", "id," + selectfields, new QFilter[]{qFilter}, "billno DESC");
|
DynamicObjectCollection data = QueryServiceHelper.query("yem_debcrednote", "id," + selectfields, new QFilter[]{qFilter}, "billno DESC");
|
||||||
if (data.size() > 0) {
|
if (!data.isEmpty()) {
|
||||||
object = BusinessDataServiceHelper.loadSingle(data.get(0).getString("id"), "yem_debcrednote");
|
object = BusinessDataServiceHelper.loadSingle(data.get(0).getString("id"), "yem_debcrednote");
|
||||||
}
|
}
|
||||||
return object;
|
return object;
|
||||||
|
Loading…
Reference in New Issue
Block a user