INSERTINTO`jiedao`.`system_dict_data`(`sort`,`label`,`value`,`dict_type`,`status`,`color_type`,`css_class`,`remark`,`creator`,`create_time`,`updater`,`update_time`,`deleted`,`label_en`,`label_fr`)VALUES(6,'目的港线索','6','ecw_offer_inquiry_source',0,'default','',NULL,'2741','2025-02-11 16:12:52','2741','2025-02-11 16:12:52',b'0','Destination Port Leads','Pistes du Port de Destination');
INSERTINTO`jiedao`.`system_dict_data`(`sort`,`label`,`value`,`dict_type`,`status`,`color_type`,`css_class`,`remark`,`creator`,`create_time`,`updater`,`update_time`,`deleted`,`label_en`,`label_fr`)VALUES(5,'公海(注意下掉时间)','5','ecw_offer_inquiry_source',0,'default','',NULL,'2741','2025-02-11 16:12:27','2741','2025-02-11 16:12:27',b'0','Open Sea (Note the Drop Time)','Mer Ouverte (Notez le Temps de Chute)');
INSERTINTO`jiedao`.`system_dict_data`(`sort`,`label`,`value`,`dict_type`,`status`,`color_type`,`css_class`,`remark`,`creator`,`create_time`,`updater`,`update_time`,`deleted`,`label_en`,`label_fr`)VALUES(1,'成交客户复购','1','ecw_offer_inquiry_source',0,'default','',NULL,'2741','2025-02-11 16:07:14','2741','2025-02-11 16:07:14',b'0','Repeat Purchase by Closed Customers','Achat Répété par Clients Fermés');
INSERTINTO`jiedao`.`system_dict_data`(`sort`,`label`,`value`,`dict_type`,`status`,`color_type`,`css_class`,`remark`,`creator`,`create_time`,`updater`,`update_time`,`deleted`,`label_en`,`label_fr`)VALUES(4,'货好,尾款已付','4','ecw_offer_cargo_status',0,'default','',NULL,'2741','2025-02-11 16:01:33','2741','2025-02-11 16:01:33',b'0','Goods ready, final payment made','Marchandises prêtes, paiement final effectué');
INSERTINTO`jiedao`.`system_dict_data`(`sort`,`label`,`value`,`dict_type`,`status`,`color_type`,`css_class`,`remark`,`creator`,`create_time`,`updater`,`update_time`,`deleted`,`label_en`,`label_fr`)VALUES(3,'货好,未付尾款','3','ecw_offer_cargo_status',0,'default','',NULL,'2741','2025-02-11 16:01:06','2741','2025-02-11 16:01:06',b'0','Goods ready, final payment not made','Marchandises prêtes, paiement final non effectué');
INSERTINTO`jiedao`.`system_dict_data`(`sort`,`label`,`value`,`dict_type`,`status`,`color_type`,`css_class`,`remark`,`creator`,`create_time`,`updater`,`update_time`,`deleted`,`label_en`,`label_fr`)VALUES(2,'已下订金,货物生产中','2','ecw_offer_cargo_status',0,'default','',NULL,'2741','2025-02-11 16:00:43','2741','2025-02-11 16:00:43',b'0','Deposit paid, goods in production','Acompte versé, production en cours');
INSERTINTO`jiedao`.`system_dict_data`(`sort`,`label`,`value`,`dict_type`,`status`,`color_type`,`css_class`,`remark`,`creator`,`create_time`,`updater`,`update_time`,`deleted`,`label_en`,`label_fr`)VALUES(1,'未向工厂下单','1','ecw_offer_cargo_status',0,'default','',NULL,'2741','2025-02-11 16:00:19','2741','2025-02-11 16:00:19',b'0','Order not placed with the factory','Commande non passée à l\'usine');
INSERTINTO`jiedao`.`system_dict_data`(`sort`,`label`,`value`,`dict_type`,`status`,`color_type`,`css_class`,`remark`,`creator`,`create_time`,`updater`,`update_time`,`deleted`,`label_en`,`label_fr`)VALUES(6,'回访','6','ecw_offer_customer_status',0,'default','',NULL,'2741','2025-02-11 15:57:13','2741','2025-02-11 15:57:13',b'0','Follow-up Visit','Visite de Suivi');
"<when test = 'pageVO.beginStopTime != null and pageVO.endStopTime != null '>",
"AND o.`stop_time` between #{pageVO.beginStopTime} and #{pageVO.endStopTime}",
"</when>",
"<when test = 'pageVO.prodTitle != null and pageVO.prodTitle != \"\" '>",
"and (o.offer_id in(",
"select op.offer_id ",
"from ecw_offer_prod op ",
"left join ecw_product_type pt ",
"on pt.id = op.product_type ",
"where concat(IFNULL(op.`prod_title_zh`,''),IFNULL(op.`prod_title_en`,''),IFNULL(pt.`title_zh`,''),IFNULL(pt.`title_en`,'')) like concat('%',concat(#{pageVO.prodTitle},'%'))",
"))",
"</when>",
"<when test = 'pageVO.relationId != null'>",
"AND o.`relation_id` = #{pageVO.relationId}",
"</when>",
"<when test = 'pageVO.followUpSalesmanId != null'>",
"<when test = 'pageVO.searchCustomer != null and pageVO.searchCustomer != \"\" '>",
"AND o.`relation_id` in(select cc.customer_id from ecw_customer_contacts cc where concat(cc.`name`, cc.phone_new) like concat('%',concat(#{pageVO.searchCustomer},'%')))",