|
|
@@ -228,6 +228,7 @@ public class AitableController {
|
|
|
String yidaActualOrderDate = UtilMap.getString(data, "yidaActualOrderDate"); //实际成单日期
|
|
|
String yidaSaleProjectName = UtilMap.getString(data, "yidaSaleProjectName"); //项目名称
|
|
|
String yidaGetRfqDate = UtilMap.getString(data, "yidaGetRfqDate"); //询报价日期或者客户跟进RFQ日期
|
|
|
+ String yidaRfqType = UtilMap.getString(data, "yidaRfqType"); //RFQ来源
|
|
|
|
|
|
//先查询当前修改记录
|
|
|
Map<String,String> saleRecord = new HashMap<String,String>(); //售前台账记录
|
|
|
@@ -294,6 +295,17 @@ public class AitableController {
|
|
|
aitableService.updateSys1SaleData(aitableId,fields);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if(yidaRfqType != null && !yidaRfqType.isEmpty()){ //RFQ来源
|
|
|
+ if(saleRecord.get("yidaRfqType") != null){ //已有RFQ来源
|
|
|
+ //忽略
|
|
|
+ log.info("已有RFQ来源");
|
|
|
+ }else{
|
|
|
+ fields.put("SLzOxS3",yidaRfqType); //RFQ来源
|
|
|
+ log.info("更新RFQ来源");
|
|
|
+ aitableService.updateSys1SaleData(aitableId,fields);
|
|
|
+ }
|
|
|
+ }
|
|
|
return McR.success();
|
|
|
} catch (Exception e) {
|
|
|
return McR.error("400",e.getMessage());
|