|
@@ -5,15 +5,13 @@ import com.uas.platform.b2b.model.PagingReleaseDetail;
|
|
|
import com.uas.platform.b2b.model.PurchaseInquiryItem;
|
|
import com.uas.platform.b2b.model.PurchaseInquiryItem;
|
|
|
import com.uas.platform.core.model.Constant;
|
|
import com.uas.platform.core.model.Constant;
|
|
|
|
|
|
|
|
-import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 询价单保存时生成消息事件
|
|
* 询价单保存时生成消息事件
|
|
|
*
|
|
*
|
|
|
- * Created by dongbw
|
|
|
|
|
- *
|
|
|
|
|
|
|
+ * @author dongbw
|
|
|
*/
|
|
*/
|
|
|
public class PurchaseInquiryItemSaveReleaseEvent extends SaveReleaseEvent<PagingReleaseDetail, PurchaseInquiryItem> {
|
|
public class PurchaseInquiryItemSaveReleaseEvent extends SaveReleaseEvent<PagingReleaseDetail, PurchaseInquiryItem> {
|
|
|
|
|
|
|
@@ -41,7 +39,8 @@ public class PurchaseInquiryItemSaveReleaseEvent extends SaveReleaseEvent<Paging
|
|
|
Date date = new Date();
|
|
Date date = new Date();
|
|
|
String codeValue = inquiryItem.getInquiry().getCode();
|
|
String codeValue = inquiryItem.getInquiry().getCode();
|
|
|
String from = "ERP";
|
|
String from = "ERP";
|
|
|
- if ("B2B".equals(inquiryItem.getInquiry().getSourceApp())) { // erp传到平台的单据,包含erpId字段记录来源
|
|
|
|
|
|
|
+ // erp传到平台的单据,包含erpId字段记录来源
|
|
|
|
|
+ if ("B2B".equals(inquiryItem.getInquiry().getSourceApp())) {
|
|
|
from = "B2B";
|
|
from = "B2B";
|
|
|
}
|
|
}
|
|
|
Short isReply = Constant.NO;
|
|
Short isReply = Constant.NO;
|
|
@@ -54,8 +53,6 @@ public class PurchaseInquiryItemSaveReleaseEvent extends SaveReleaseEvent<Paging
|
|
|
String title = "B2B商务提醒";
|
|
String title = "B2B商务提醒";
|
|
|
// 收到的客户采购询价单的详情url
|
|
// 收到的客户采购询价单的详情url
|
|
|
String url = "#/sale/inquiry/" + inquiryItem.getInquiry().getId();
|
|
String url = "#/sale/inquiry/" + inquiryItem.getInquiry().getId();
|
|
|
- SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
- String orderDate = formatter.format(inquiryItem.getInquiry().getDate());
|
|
|
|
|
String context = "您的合作伙伴\"" + inquiryItem.getInquiry().getEnterprise().getEnName() + "\"发布新的询价单(" + codeValue + "),请快速报价!";
|
|
String context = "您的合作伙伴\"" + inquiryItem.getInquiry().getEnterprise().getEnName() + "\"发布新的询价单(" + codeValue + "),请快速报价!";
|
|
|
PagingRelease release = new PagingRelease(emUU, emName, enUU, date, codeValue, from, title, context, type, isReply, category, table, sourceId, orderStatus, toVendor, url);
|
|
PagingRelease release = new PagingRelease(emUU, emName, enUU, date, codeValue, from, title, context, type, isReply, category, table, sourceId, orderStatus, toVendor, url);
|
|
|
Long vendUU = inquiryItem.getVendUU();
|
|
Long vendUU = inquiryItem.getVendUU();
|