服务指令-盘点流程工单
This commit is contained in:
parent
d8d8bdabfd
commit
6f04849ad4
|
|
@ -83,4 +83,11 @@ public interface IInvoicingOrdersApi {
|
||||||
*/
|
*/
|
||||||
Result<String> finishDyThOrder(InvoicingOrdersEntity invoicingOrdersEntity);
|
Result<String> finishDyThOrder(InvoicingOrdersEntity invoicingOrdersEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流程中提交时修改业务单号
|
||||||
|
* @param invoicingOrdersEntity
|
||||||
|
*/
|
||||||
|
Result<String> updateOrderBizId(InvoicingOrdersEntity invoicingOrdersEntity);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -346,4 +346,43 @@ public class InvoicingOrdersServiceImpl extends ServiceImpl<InvoicingOrdersMappe
|
||||||
return Result.ok("完成成功");
|
return Result.ok("完成成功");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<String> updateOrderBizId(InvoicingOrdersEntity invoicingOrdersEntity){
|
||||||
|
|
||||||
|
log.info("function:updateOrderBizId");
|
||||||
|
log.info("BizId:"+invoicingOrdersEntity.getBizId());
|
||||||
|
log.info("UpdateBy:"+invoicingOrdersEntity.getInitiatorId());
|
||||||
|
|
||||||
|
empOrdersService.getNames(invoicingOrdersEntity);
|
||||||
|
List<InvoicingOrders> flowList = baseMapper.getFlowList(invoicingOrdersEntity);
|
||||||
|
if(flowList!=null){
|
||||||
|
InvoicingOrders flow = flowList.get(0);
|
||||||
|
|
||||||
|
log.info("DirectiveId:"+flow.getDirectiveId());
|
||||||
|
log.info("NuId:"+invoicingOrdersEntity.getNuId());
|
||||||
|
log.info("ElderId:"+invoicingOrdersEntity.getElderId());
|
||||||
|
|
||||||
|
QueryWrapper<InvoicingOrders> ioQw = new QueryWrapper<>();
|
||||||
|
ioQw.eq("directive_id", flow.getDirectiveId());
|
||||||
|
ioQw.eq("nu_id", invoicingOrdersEntity.getNuId());
|
||||||
|
ioQw.eq("elder_id", invoicingOrdersEntity.getElderId());
|
||||||
|
ioQw.eq("iz_finish", "N");
|
||||||
|
ioQw.eq("del_flag", "0");
|
||||||
|
ioQw.eq("biz_type", invoicingOrdersEntity.getFlowCode());
|
||||||
|
InvoicingOrders order = this.getOne(ioQw);
|
||||||
|
log.info("order:"+order);
|
||||||
|
if(order!=null){
|
||||||
|
log.info("OrderId:"+order.getId());
|
||||||
|
//修改请领单的bizId
|
||||||
|
InvoicingOrders entity = new InvoicingOrders();
|
||||||
|
entity.setId(order.getId());
|
||||||
|
entity.setBizId(invoicingOrdersEntity.getBizId());
|
||||||
|
entity.setUpdateEmp(invoicingOrdersEntity.getInitiatorId());
|
||||||
|
entity.setUpdateTime(new Date());
|
||||||
|
baseMapper.updateOrder(entity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Result.ok("修改业务单号成功");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue