Merge branch 'dev-blfp' into test

release
高荣琳 2 years ago
commit aa7581a386
  1. 14
      order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/order/controller/OrderInfoController.java
  2. 2
      order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/order/service/OrderInfoService.java
  3. 4
      order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/order/service/impl/OrderInfoServiceImpl.java

@ -172,19 +172,29 @@ public class OrderInfoController {
} }
} }
/**
*
* @param bzdh
* @param orderInfoId
* @param fpqqlsh
* @param xhfNsrsbh
* @param force 是否强制补录0 不强制1是强制补录
* @return
*/
@PostMapping("/updateBillNumber") @PostMapping("/updateBillNumber")
@ApiOperation(value = "发票列表", notes = "发票列表修改报账单号") @ApiOperation(value = "发票列表", notes = "发票列表修改报账单号")
@SysLog(operation = "发票列表", operationDesc = "补录报账单号", key = "订单发票管理") @SysLog(operation = "发票列表", operationDesc = "补录报账单号", key = "订单发票管理")
public R updateBillNumber(@RequestParam("bzdh") String bzdh, public R updateBillNumber(@RequestParam("bzdh") String bzdh,
@RequestParam("orderInfoId") String orderInfoId, @RequestParam("orderInfoId") String orderInfoId,
@RequestParam("fpqqlsh")String fpqqlsh, @RequestParam("fpqqlsh")String fpqqlsh,
@RequestParam("xhfNsrsbh")String xhfNsrsbh @RequestParam("xhfNsrsbh")String xhfNsrsbh,
@RequestParam("force") String force
) { ) {
if(StringUtils.isBlank(bzdh)||StringUtils.isBlank(orderInfoId)){ if(StringUtils.isBlank(bzdh)||StringUtils.isBlank(orderInfoId)){
return R.error("请求参数有误"); return R.error("请求参数有误");
} }
try { try {
orderInfoService.updateBillNumber(bzdh, orderInfoId,fpqqlsh,xhfNsrsbh); orderInfoService.updateBillNumber(bzdh, orderInfoId,fpqqlsh,xhfNsrsbh,force);
return R.ok(); return R.ok();
} catch (Exception e) { } catch (Exception e) {

@ -223,7 +223,7 @@ public interface OrderInfoService {
R ratioConversion(List<String> orderInfoIds,String ratio,String xhfNsrsbh,String originUnit,String newUnit); R ratioConversion(List<String> orderInfoIds,String ratio,String xhfNsrsbh,String originUnit,String newUnit);
@Transactional @Transactional
void updateBillNumber(String bzdh,String orderInfoId,String fpqqlsh,String xhfNsrsbh) throws Exception; void updateBillNumber(String bzdh,String orderInfoId,String fpqqlsh,String xhfNsrsbh,String force) throws Exception;
@Transactional @Transactional
R logicalDeleteByOrderInfoId(List<PageRequestVO> pageRequestList); R logicalDeleteByOrderInfoId(List<PageRequestVO> pageRequestList);

@ -1752,7 +1752,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
} }
@Override @Override
public void updateBillNumber(String bzdh,String orderInfoId,String fpqqlsh,String xhfNsrsbh) throws Exception{ public void updateBillNumber(String bzdh,String orderInfoId,String fpqqlsh,String xhfNsrsbh,String force) throws Exception{
//通过报账单查询订单,如果存在则删除 //通过报账单查询订单,如果存在则删除
List<OrderProcessInfo> orderProcessInfos = orderProcessInfoMapper.queryOrderProcessInfoByBzdh(bzdh,"", Arrays.asList(xhfNsrsbh)); List<OrderProcessInfo> orderProcessInfos = orderProcessInfoMapper.queryOrderProcessInfoByBzdh(bzdh,"", Arrays.asList(xhfNsrsbh));
OrderProcessInfo orderProcessInfo = null; OrderProcessInfo orderProcessInfo = null;
@ -1769,7 +1769,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
throw new OrderReceiveException(OrderInfoContentEnum.INVOICE_BZDH_OPERATED); throw new OrderReceiveException(OrderInfoContentEnum.INVOICE_BZDH_OPERATED);
} }
if((OrderInfoEnum.ORDER_STATUS_5.getKey().equals(orderProcessInfo.getDdzt()) || OrderInfoEnum.ORDER_STATUS_7.getKey().equals(orderProcessInfo.getDdzt())) if((OrderInfoEnum.ORDER_STATUS_5.getKey().equals(orderProcessInfo.getDdzt()) || OrderInfoEnum.ORDER_STATUS_7.getKey().equals(orderProcessInfo.getDdzt()))
&&!OrderInfoEnum.ORDER_SOURCE_3.getKey().equals(orderProcessInfo.getDdly())){ &&!OrderInfoEnum.ORDER_SOURCE_3.getKey().equals(orderProcessInfo.getDdly()) && ConfigureConstant.STRING_0.equals(force)){
throw new OrderReceiveException(OrderInfoContentEnum.INVOICE_BZDH_REPEAT_OPERATED); throw new OrderReceiveException(OrderInfoContentEnum.INVOICE_BZDH_REPEAT_OPERATED);
} }

Loading…
Cancel
Save