11
This commit is contained in:
@@ -80,7 +80,7 @@ namespace Pilot_KD_Parino.Sal_Order
|
||||
getSourceSql = $@"/*dialect*/SELECT FSTABLENAME,FSBILLID,FENTRYID FROM T_PUR_ReqEntry_LK
|
||||
WHERE FSBILLID = {tempFid} and FSTABLENAME='T_SAL_ORDERENTRY' ";
|
||||
dt = DBServiceHelper.ExecuteDynamicObject(this.Context, getSourceSql);
|
||||
if (dt == null || dt.Count == 0)
|
||||
if (dt == null || dt.Count == 0 || dt.Count>1)
|
||||
{
|
||||
//throw new KDBusinessException("", "没有找到跨组织的采购申请单:" + getSourceSql);
|
||||
return;
|
||||
@@ -98,7 +98,7 @@ namespace Pilot_KD_Parino.Sal_Order
|
||||
getSourceSql = $@"/*dialect*/SELECT FSTABLENAME,FSBILLID,FENTRYID FROM t_PUR_POOrderEntry_LK
|
||||
WHERE FSBILLID = {tempFid} and FSTABLENAME='T_PUR_ReqEntry' ";
|
||||
dt = DBServiceHelper.ExecuteDynamicObject(this.Context, getSourceSql);
|
||||
if (dt == null || dt.Count == 0)
|
||||
if (dt == null || dt.Count == 0 || dt.Count > 1)
|
||||
{
|
||||
//throw new KDBusinessException("", "没有找到跨组织的采购订单:" + getSourceSql);
|
||||
return;
|
||||
@@ -115,7 +115,7 @@ namespace Pilot_KD_Parino.Sal_Order
|
||||
getSourceSql = $@"/*dialect*/SELECT FSTABLENAME,FSBILLID,FENTRYID FROM T_SAL_ORDERENTRY_LK
|
||||
WHERE FSBILLID = {tempFid} and FSTABLENAME='t_PUR_POOrderEntry' ";
|
||||
dt = DBServiceHelper.ExecuteDynamicObject(this.Context, getSourceSql);
|
||||
if (dt == null || dt.Count == 0)
|
||||
if (dt == null || dt.Count == 0 || dt.Count > 1)
|
||||
{
|
||||
//throw new KDBusinessException("", "没有找到跨组织的销售订单:" + getSourceSql);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user