|
|
@@ -60,7 +60,12 @@ public class SaleSendAgentServiceImpl implements SaleSendAgentService {
|
|
|
ModelMap map = tokenService.getToken("salenotice", notice.getEnUU());
|
|
|
String token = (String) map.get("token");
|
|
|
send.setUuid(token);
|
|
|
- List<SaleSend> sends = saleSendDao.findByUuid(send.getUuid());
|
|
|
+ Integer count = saleSendDao.countByUuid(send.getUuid());
|
|
|
+ // 重复点击发货
|
|
|
+ if (count > 0) {
|
|
|
+ throw new IllegalOperatorException("请不要重复点击发货");
|
|
|
+ }
|
|
|
+ List<SaleSend> sends = saleSendDao.findByEnUUAndCode(send.getEnUU(), send.getCode());
|
|
|
if (!StringUtils.isEmpty(notice) && CollectionUtils.isEmpty(sends)) {
|
|
|
PurchaseOrder order = notice.getOrderItem().getOrder();
|
|
|
send.setCurrency(order.getCurrency());
|