|
@@ -213,26 +213,22 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr |
|
@@ -213,26 +213,22 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr |
213
|
|
213
|
|
214
|
@Override
|
214
|
@Override
|
215
|
public SendMessageRspBo orderSendOutNew(String uid, String uName, String orderCode, String companyName, String expressNum) {
|
215
|
public SendMessageRspBo orderSendOutNew(String uid, String uName, String orderCode, String companyName, String expressNum) {
|
216
|
- MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.ORDER_SEND_OUT_NEW, orderCode, uid);
|
|
|
217
|
- messageCenterCommonEvent.putInParams("orderCode", orderCode);
|
|
|
218
|
- messageCenterCommonEvent.putInParams("companyName", companyName);
|
|
|
219
|
- messageCenterCommonEvent.putInParams("expressNum", expressNum);
|
|
|
220
|
- messageCenterCommonEvent.putInParams("uName", uName);
|
|
|
221
|
- messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
216
|
+ return this.dealOrderSendOut(SendScenes.ORDER_SEND_OUT_NEW, uid, uName, orderCode, companyName, expressNum);
|
|
|
217
|
+ }
|
222
|
|
218
|
|
223
|
- return new SendMessageRspBo(200, "SUCCESS");
|
219
|
+ @Override
|
|
|
220
|
+ public SendMessageRspBo orderSendOutOther(String uid, String uName, String orderCode, String companyName, String expressNum) {
|
|
|
221
|
+ return this.dealOrderSendOut(SendScenes.ORDER_SEND_OUT_OTHER, uid, uName, orderCode, companyName, expressNum);
|
224
|
}
|
222
|
}
|
225
|
|
223
|
|
226
|
@Override
|
224
|
@Override
|
227
|
public SendMessageRspBo orderSendOutWarehouse(String uid, String uName, String orderCode, String companyName, String expressNum) {
|
225
|
public SendMessageRspBo orderSendOutWarehouse(String uid, String uName, String orderCode, String companyName, String expressNum) {
|
228
|
- MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.ORDER_SEND_OUT_WAREHOUSE, orderCode, uid);
|
|
|
229
|
- messageCenterCommonEvent.putInParams("orderCode", orderCode);
|
|
|
230
|
- messageCenterCommonEvent.putInParams("companyName", companyName);
|
|
|
231
|
- messageCenterCommonEvent.putInParams("expressNum", expressNum);
|
|
|
232
|
- messageCenterCommonEvent.putInParams("uName", uName);
|
|
|
233
|
- messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
226
|
+ return this.dealOrderSendOut(SendScenes.ORDER_SEND_OUT_WAREHOUSE, uid, uName, orderCode, companyName, expressNum);
|
|
|
227
|
+ }
|
234
|
|
228
|
|
235
|
- return new SendMessageRspBo(200, "SUCCESS");
|
229
|
+ @Override
|
|
|
230
|
+ public SendMessageRspBo orderSendOutOtherWarehouse(String uid, String uName, String orderCode, String companyName, String expressNum) {
|
|
|
231
|
+ return this.dealOrderSendOut(SendScenes.ORDER_SEND_OUT_OTHER_WAREHOUSE, uid, uName, orderCode, companyName, expressNum);
|
236
|
}
|
232
|
}
|
237
|
|
233
|
|
238
|
@Override
|
234
|
@Override
|
|
@@ -287,4 +283,15 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr |
|
@@ -287,4 +283,15 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr |
287
|
|
283
|
|
288
|
return new SendMessageRspBo(200, "SUCCESS");
|
284
|
return new SendMessageRspBo(200, "SUCCESS");
|
289
|
}
|
285
|
}
|
290
|
-} |
286
|
+
|
|
|
287
|
+ private SendMessageRspBo dealOrderSendOut(String sendScene, String uid, String uName, String orderCode, String companyName, String expressNum) {
|
|
|
288
|
+ MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(sendScene, orderCode, uid);
|
|
|
289
|
+ messageCenterCommonEvent.putInParams("orderCode", orderCode);
|
|
|
290
|
+ messageCenterCommonEvent.putInParams("companyName", companyName);
|
|
|
291
|
+ messageCenterCommonEvent.putInParams("expressNum", expressNum);
|
|
|
292
|
+ messageCenterCommonEvent.putInParams("uName", uName);
|
|
|
293
|
+ messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
294
|
+
|
|
|
295
|
+ return new SendMessageRspBo(200, "SUCCESS");
|
|
|
296
|
+ }
|
|
|
297
|
+} |