feature:优化发票复制提示

reBack
路明慧 11 months ago
parent 2e3bd6b394
commit b3e494ed7b
  1. 4
      order-management-order/src/main/java/com/dxhy/order/consumer/modules/bespoke/controller/OrderHandleController.java
  2. 2
      order-management-order/src/main/java/com/dxhy/order/consumer/modules/bespoke/service/OrderHandleService.java
  3. 4
      order-management-order/src/main/java/com/dxhy/order/consumer/modules/bespoke/service/impl/OrderHandleServiceImpl.java

@ -218,9 +218,9 @@ public class OrderHandleController {
if (fpqqlshList == null || fpqqlshList.isEmpty()) { if (fpqqlshList == null || fpqqlshList.isEmpty()) {
return R.error("发票请求流水号不能为空"); return R.error("发票请求流水号不能为空");
} }
orderHandleService.createOrderByCopyInvoice(fpqqlshList.get(ConfigureConstant.INT_0), shList, entList,orderBatchQuery.getFpzldm()); String ddh = orderHandleService.createOrderByCopyInvoice(fpqqlshList.get(ConfigureConstant.INT_0), shList, entList,orderBatchQuery.getFpzldm());
return R.ok().put(ConfigureConstant.MSG, "订单复制成功"); return R.ok().put(ConfigureConstant.MSG, "订单复制成功,请前往订单管理-订单处理使用订单号:"+ddh+"查询");
} catch (OrderReceiveException e) { } catch (OrderReceiveException e) {
log.error("发票复制订单异常", e); log.error("发票复制订单异常", e);
return R.error(e.getMessage()); return R.error(e.getMessage());

@ -46,7 +46,7 @@ public interface OrderHandleService {
* @return * @return
* @throws OrderReceiveException * @throws OrderReceiveException
*/ */
int createOrderByCopyInvoice(String fpqqlsh, List<String> shList, List<String> entList,String fpzldm) throws OrderReceiveException; String createOrderByCopyInvoice(String fpqqlsh, List<String> shList, List<String> entList,String fpzldm) throws OrderReceiveException;
FileModel saveInvoiceFile(OrderInvoiceInfo orderInvoiceInfo); FileModel saveInvoiceFile(OrderInvoiceInfo orderInvoiceInfo);

@ -123,7 +123,7 @@ public class OrderHandleServiceImpl implements OrderHandleService {
} }
@Override @Override
public int createOrderByCopyInvoice(String fpqqlsh, List<String> shList, List<String> entList, String fpzldm) throws OrderReceiveException { public String createOrderByCopyInvoice(String fpqqlsh, List<String> shList, List<String> entList, String fpzldm) throws OrderReceiveException {
//查询发票信息 //查询发票信息
OrderInvoiceInfo orderInvoiceInfoParam = new OrderInvoiceInfo(); OrderInvoiceInfo orderInvoiceInfoParam = new OrderInvoiceInfo();
orderInvoiceInfoParam.setFpqqlsh(fpqqlsh); orderInvoiceInfoParam.setFpqqlsh(fpqqlsh);
@ -258,7 +258,7 @@ public class OrderHandleServiceImpl implements OrderHandleService {
orderInfoQd.setUpdateTime(now); orderInfoQd.setUpdateTime(now);
orderInfoQdMapper.insertOrderInfoQd(orderInfoQd); orderInfoQdMapper.insertOrderInfoQd(orderInfoQd);
} }
return ConfigureConstant.INT_1; return ddh;
} }
@Override @Override

Loading…
Cancel
Save