金慧软件修改BIP销售订单明细之后回写旗舰版的对应字段接口调整
This commit is contained in:
parent
bc58cc89b4
commit
ee4bce4267
|
@ -1309,6 +1309,8 @@ public class APISaleOrderMaitainImpl implements IAPISaleOrderMaitain {
|
||||||
// BIP合同销售订单更新 主表id
|
// BIP合同销售订单更新 主表id
|
||||||
updateJson.put("id", soMap.get("vdef9"));
|
updateJson.put("id", soMap.get("vdef9"));
|
||||||
bodyJson.put("HTXSDD", updateJson);
|
bodyJson.put("HTXSDD", updateJson);
|
||||||
|
NCCForUAPLogger.debug("updateBipFlagSo-bodyJson:" + bodyJson);
|
||||||
|
Logger.error("updateBipFlagSo-bodyJson:" + bodyJson);
|
||||||
String resultString = doSendHttp(updateUrl, "POST", tokenParam, "", headers, bodyJson.toJSONString());
|
String resultString = doSendHttp(updateUrl, "POST", tokenParam, "", headers, bodyJson.toJSONString());
|
||||||
NCCForUAPLogger.debug("updateBipFlagSo-resultString:" + resultString);
|
NCCForUAPLogger.debug("updateBipFlagSo-resultString:" + resultString);
|
||||||
Logger.error("updateBipFlagSo-resultString:" + resultString);
|
Logger.error("updateBipFlagSo-resultString:" + resultString);
|
||||||
|
|
|
@ -21,7 +21,6 @@ import nccloud.api.rest.utils.NCCRestUtils;
|
||||||
import nccloud.api.rest.utils.ResultMessageUtil;
|
import nccloud.api.rest.utils.ResultMessageUtil;
|
||||||
import nccloud.api.so.m30.IAPISaleOrderMaitain;
|
import nccloud.api.so.m30.IAPISaleOrderMaitain;
|
||||||
import nccloud.api.so.m30.IAPISaleOrderQuery;
|
import nccloud.api.so.m30.IAPISaleOrderQuery;
|
||||||
import nccloud.baseapp.core.log.NCCForUAPLogger;
|
|
||||||
import nccloud.commons.lang.StringUtils;
|
import nccloud.commons.lang.StringUtils;
|
||||||
import nccloud.openapi.scmpub.pub.NCCPubRestResource;
|
import nccloud.openapi.scmpub.pub.NCCPubRestResource;
|
||||||
import nccloud.openapi.scmpub.pub.TransferCodeToPKTool;
|
import nccloud.openapi.scmpub.pub.TransferCodeToPKTool;
|
||||||
|
@ -495,7 +494,7 @@ public class SaleOrderResource extends NCCPubRestResource {
|
||||||
// 删除最后的", "
|
// 删除最后的", "
|
||||||
sql.delete(sql.length() - 2, sql.length());
|
sql.delete(sql.length() - 2, sql.length());
|
||||||
sql.append(" where csaleorderbid = ?");
|
sql.append(" where csaleorderbid = ?");
|
||||||
NCCForUAPLogger.debug("updateDef-sql:" + sql);
|
// NCCForUAPLogger.debug("updateDef-sql:" + sql);
|
||||||
parameter.addParam(csaleorderbid);
|
parameter.addParam(csaleorderbid);
|
||||||
BaseDAO baseDAO = new BaseDAO();
|
BaseDAO baseDAO = new BaseDAO();
|
||||||
int num = baseDAO.executeUpdate(sql.toString(), parameter);
|
int num = baseDAO.executeUpdate(sql.toString(), parameter);
|
||||||
|
@ -503,7 +502,7 @@ public class SaleOrderResource extends NCCPubRestResource {
|
||||||
// 回写合同平台的对应字段
|
// 回写合同平台的对应字段
|
||||||
NCLocator.getInstance().lookup(IAPISaleOrderMaitain.class).updateBipFlagSo(paramMap);
|
NCLocator.getInstance().lookup(IAPISaleOrderMaitain.class).updateBipFlagSo(paramMap);
|
||||||
}
|
}
|
||||||
return ResultMessageUtil.toJSON(num, "销售订单修改成功");
|
return ResultMessageUtil.toJSON(num, "销售订单修改成功,共修改" + num + "行");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return ResultMessageUtil.exceptionToJSON(e);
|
return ResultMessageUtil.exceptionToJSON(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue