parent
b8f9fef5bc
commit
c6008344fa
|
@ -362,8 +362,10 @@ public class AiServiceImpl implements IAiService {
|
|||
System.out.println("话术:" + content + "; order" + busOrderInfo.toString());
|
||||
if("AI".equals(busStoreInfo.getMarketingChannels())){
|
||||
sendAiTask(content,busOrderInfo);
|
||||
}else{
|
||||
}else if("sms".equals(busStoreInfo.getMarketingChannels())){
|
||||
sendSmsTask();
|
||||
}else{
|
||||
sendAiTask(content,busOrderInfo);
|
||||
}
|
||||
}else {
|
||||
BusAgentInfo busAgentInfo = agentInfoL.get(0);
|
||||
|
|
|
@ -386,9 +386,18 @@ public class MeituanServiceImpl implements IMeituanService {
|
|||
JSONObject commonInfo = oj.getJSONObject("commonInfo");
|
||||
JSONObject order1 = order0.getJSONObject("orderInfo");
|
||||
JSONObject foodInfo = order0.getJSONObject("foodInfo");
|
||||
JSONObject userLabelVo = foodInfo.getJSONObject("userLabelVo");
|
||||
JSONArray array1 = userLabelVo.getJSONArray("contents");
|
||||
String info = array1.getJSONObject(0).getString("info");
|
||||
if(foodInfo != null){
|
||||
JSONObject userLabelVo = foodInfo.getJSONObject("userLabelVo");
|
||||
JSONArray array1 = userLabelVo.getJSONArray("contents");
|
||||
String info = array1.getJSONObject(0).getString("info");
|
||||
if ("门店新客".equals(info)){
|
||||
orderInfo.setOrderCount("1");
|
||||
} else if (info.contains("下单")){
|
||||
orderInfo.setOrderCount(info.substring(info.indexOf("下单")+2,info.length()-1));
|
||||
}else{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
JSONObject expectTimeVo = order1.getJSONObject("expectTimeVo");
|
||||
String daySeq = order1.getString("dayseq");
|
||||
String wmOrderViewId = order1.getString("wmOrderViewId");
|
||||
|
@ -427,11 +436,7 @@ public class MeituanServiceImpl implements IMeituanService {
|
|||
orderInfo.setCompleteTime("2024-"+expectTime);
|
||||
orderInfo.setOrderStatus(statusDesc);
|
||||
orderInfo.setCustomId(userId);
|
||||
if ("门店新客".equals(info)){
|
||||
orderInfo.setOrderCount("1");
|
||||
} else if (info.contains("下单")){
|
||||
orderInfo.setOrderCount(info.substring(info.indexOf("下单")+2,info.length()-1));
|
||||
}
|
||||
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
||||
try {
|
||||
orderInfo.setOrderTime(format.parse("2024-"+orderTimeFmt));
|
||||
|
|
|
@ -165,7 +165,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="saleBindName != null">#{saleBindName},</if>
|
||||
<if test="saleBindTime != null">#{saleBindTime},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="marketingChannels != null">#{price},</if>
|
||||
<if test="marketingChannels != null">#{marketingChannels},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
|
|
@ -441,7 +441,7 @@ export default {
|
|||
grantStatus: undefined,
|
||||
returnVisitStatus: undefined,
|
||||
selfDeliveryStatus: 2,
|
||||
marketingChannels: 'AI'
|
||||
marketingChannels: undefined
|
||||
},
|
||||
saleList: [],
|
||||
timeRange: undefined,
|
||||
|
|
|
@ -511,7 +511,7 @@ export default {
|
|||
grantStatus: undefined,
|
||||
returnVisitStatus: undefined,
|
||||
selfDeliveryStatus: 1,
|
||||
marketingChannels: 'AI'
|
||||
marketingChannels: undefined
|
||||
},
|
||||
queryParams1: {
|
||||
content: undefined
|
||||
|
|
Loading…
Reference in New Issue