mcgBizAdapter.executeUpdate("SELECT * FROM aa_bb");
inti=mcgBizAdapter.executeUpdate("update cdp_customer_sop_journey t1,(select t1.one_id,t1.org_id from cdp_customer t1 LEFT JOIN cdp_customer_car_relation t2 on t1.one_id=t2.one_id left join cdp_car t3 on t3.car_id=t2.car_id\n"+"where to_days(t3.arrival_date) = to_days(now()) ) t2 set t1.sop_journey_stage='保费报价',t1.sop_journey_stage_enter_time=now() where t1.one_id=t2.one_id and t1.org_id=t2.org_id;\n"+"update cdp_customer_sop_journey set sop_journey_stage='战败客户',sop_journey_stage_enter_time=now() where DATEDIFF(CURDATE(), sop_journey_enter_time) > 45 and sop_journey_stage!='成功续保';\n"+"update cdp_customer_sop_journey set sop_journey_stage='意向客户',sop_journey_stage_enter_time=now() where one_id in (SELECT one_id FROM cdp_customer_event where event_type='ORDERED' and extra->'$.orderStatus'=2 and extra->'$.payStatus'=2 and extra->'$.afterSaleStatus' is null);\n"+"update cdp_customer_sop_journey set sop_journey_stage='意向客户',sop_journey_stage_enter_time=now() where one_id in (SELECT one_id FROM cdp_customer_event where event_type='RECALL_AI_CALL' and extra->'$.taskResult[0].resultValue'='A');");
System.out.println("更新成功的行数"+i);
}
@Test
publicvoidtestjava()throwsException{
DynamicEnginede=DynamicEngine.getInstance();
Stringsource="import com.alibaba.fastjson.JSON;\n"+"\n"+"public class Controller {\n"+"\n"
+" public JSON execute(JSON param) {\n"+" System.out.println(\"测试java\");\n"+" return param;\n"+" }\n"
+"}\n";
Stringsource="import com.alibaba.fastjson.JSON;\n"+"\n"+"public class Controller {\n"+"\n"+" public JSON execute(JSON param) {\n"+" System.out.println(\"测试java\");\n"+" return param;\n"+" }\n"+"}\n";