Revert "fix:合同签章申请"

This reverts commit 6eddee92ea.
This commit is contained in:
ljw 2024-09-25 21:58:52 +08:00
parent 8050609cad
commit 36af563da2

View File

@ -147,19 +147,14 @@ public class SalesorderSignatureOp extends AbstractOperationServicePlugIn {
public JSONObject GetintebilllogonJson(Object pkid, DynamicObject dynamicObject) { public JSONObject GetintebilllogonJson(Object pkid, DynamicObject dynamicObject) {
JSONObject Object = new JSONObject(); JSONObject Object = new JSONObject();
QFilter qFilter = new QFilter("yem_isdisable", QCP.equals, false); QFilter qFilter = new QFilter("yem_isdisable", QCP.equals, false);
String name = dynamicObject.getDynamicObjectType().getName(); qFilter.and(new QFilter("billno", QCP.equals, "WXHT-YZJ"));
if ("yem_es_salesorder".equals(name)) {
qFilter.and(new QFilter("billno", QCP.equals, "WXHT-YZJ"));
}else if ("yem_es_xsalesorder".equals(name)){
qFilter.and(new QFilter("billno", QCP.equals, "WXHTBG-GZSP"));
}
DynamicObject yem_ia_intebilllogon = BusinessDataServiceHelper.loadSingle("yem_ia_intebilllogon", "id", qFilter.toArray()); DynamicObject yem_ia_intebilllogon = BusinessDataServiceHelper.loadSingle("yem_ia_intebilllogon", "id", qFilter.toArray());
if (yem_ia_intebilllogon != null) { if (yem_ia_intebilllogon != null) {
long intebilllogonID = yem_ia_intebilllogon.getLong("id"); long intebilllogonID = yem_ia_intebilllogon.getLong("id");
//查询单据注册数据 //查询单据注册数据
DynamicObject data = BusinessDataServiceHelper.loadSingle(intebilllogonID, "yem_ia_intebilllogon"); DynamicObject data = BusinessDataServiceHelper.loadSingle(intebilllogonID, "yem_ia_intebilllogon");
if (data != null && pkid != null && pkid != "") { if (data != null && pkid != null && pkid != "") {
Object = ObjectToJsonUtils.ToJson(data, pkid, name, ObjectToJsonUtils.getpostcreator()); Object = ObjectToJsonUtils.ToJson(data, pkid, dynamicObject.getDynamicObjectType().getName(), ObjectToJsonUtils.getpostcreator());
} }
} else { } else {
this.operationResult.addErrorInfo(new ValidationErrorInfo("", pkid, this.operationResult.addErrorInfo(new ValidationErrorInfo("", pkid,