销售合同变更优化行类型
This commit is contained in:
parent
f64e936da8
commit
2a08d978bd
@ -582,6 +582,25 @@ public class XSHTController {
|
|||||||
|
|
||||||
log.info("日志不存在,将继续向下执行");
|
log.info("日志不存在,将继续向下执行");
|
||||||
|
|
||||||
|
//合同种类
|
||||||
|
String contractType = contractBGData.getString("change_contract_zl__c") != null ? contractBGData.getString("change_contract_zl__c") : "";
|
||||||
|
|
||||||
|
if (contractType.equals("")) {
|
||||||
|
log.info("合同种类不存在,将不再向下执行");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
String contractMainType = "";
|
||||||
|
String contractTypeStr = "";
|
||||||
|
|
||||||
|
if (contractType.equals("option_sales_contract_details__c")) {
|
||||||
|
contractMainType = "XSHT-QD01";
|
||||||
|
contractTypeStr = "020";
|
||||||
|
} else if (contractType.equals("option_sales_contract_total_amoun__c")) {
|
||||||
|
contractMainType = "XSHT-QD02";
|
||||||
|
contractTypeStr = "020-1";
|
||||||
|
}
|
||||||
|
|
||||||
//开始封装请求体
|
//开始封装请求体
|
||||||
Map contractBGMap = new HashMap();
|
Map contractBGMap = new HashMap();
|
||||||
contractBGMap.put("billno", contractBGName);//合同编号
|
contractBGMap.put("billno", contractBGName);//合同编号
|
||||||
@ -783,7 +802,7 @@ public class XSHTController {
|
|||||||
//物料编码
|
//物料编码
|
||||||
contractBGDetailMap.put("material", "80800001");
|
contractBGDetailMap.put("material", "80800001");
|
||||||
//行类型
|
//行类型
|
||||||
contractBGDetailMap.put("lineType", "010");
|
contractBGDetailMap.put("lineType", contractTypeStr);
|
||||||
} else if (changeType.equals("update")) {
|
} else if (changeType.equals("update")) {
|
||||||
log.info("更新行");
|
log.info("更新行");
|
||||||
//变更类型为删除或者修改,获取当源单的行id
|
//变更类型为删除或者修改,获取当源单的行id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user