销售合同和设计文件优化,新增了销售合同记录回写情况的功能

This commit is contained in:
itzhang 2025-07-14 18:53:03 +08:00
parent e8005296c2
commit b895e0b590
3 changed files with 7 additions and 2 deletions

View File

@ -57,6 +57,7 @@ public class DesignController {
//new Filter("IS", "erp_id__c", Arrays.asList("")),
new Filter("IN", "sync_status__c", Arrays.asList(syncStatus)),
//new Filter("EQ", "name", Arrays.asList("SJWJ250528-0022")),
new Filter("N", "is_initial__c", Arrays.asList("yes")),
new Filter("GT", "create_time", Arrays.asList("1748923200000")),
new Filter("EQ", "life_status", Arrays.asList("normal"))
), "design_file__c");

View File

@ -90,7 +90,7 @@ public class XSHTController {
//合同名称
String contractName = contractData.getString("zhy_contract_number__c") != null ? contractData.getString("zhy_contract_number__c") : "";
if ("".equals(contractName) || !contractName.contains("ZHY")){
if ("".equals(contractName)) {
log.info("合同名称不存在,将不再向下执行");
continue;
}
@ -518,6 +518,8 @@ public class XSHTController {
System.out.println("回写结果为:" + backRes);
logMap.put("send_memo", JSON.toJSONString(backRes));
//开始记录日志
JSONObject logRes = new JSONObject();
try {

View File

@ -73,7 +73,7 @@ public class TZXSHTController {
String salesOrderId = salesOrderData.getString("_id");//唯一id
String salesOrderName = salesOrderData.getString("zhy_contract_number__c") != null ? salesOrderData.getString("zhy_contract_number__c") : "";
if ("".equals(salesOrderName) || !salesOrderName.contains("ZHY")){
if ("".equals(salesOrderName)) {
log.info("合同名称不存在,将不再向下执行");
continue;
}
@ -207,6 +207,8 @@ public class TZXSHTController {
System.out.println("回写结果为:" + backRes);
logMap.put("send_memo", JSON.toJSONString(backRes));
//开始记录日志
JSONObject logRes = new JSONObject();