fix: 修复出差申请单数据回传的bug
This commit is contained in:
parent
a62de4dc4a
commit
91746a727d
|
@ -326,8 +326,16 @@ public class OrderQuery {
|
||||||
DateTimeFormatter simpleFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
DateTimeFormatter simpleFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
||||||
// RouteOrder routeOrder = routeRepository.findByFakeOrderNoAndSysCode(queryData.getBillcode(), queryData.getSysCode())
|
// RouteOrder routeOrder = routeRepository.findByFakeOrderNoAndSysCode(queryData.getBillcode(), queryData.getSysCode())
|
||||||
// .reloadStatus();
|
// .reloadStatus();
|
||||||
RouteOrder routeOrder = routeRepository.queryById(queryData.getRouteId())
|
|
||||||
.reloadStatus();
|
String sysCode = queryData.getSysCode();
|
||||||
|
String fakeOrderNo = queryData.getFakeOrderNo();
|
||||||
|
RouteOrder routeOrder = null;
|
||||||
|
if (fakeOrderNo != null && sysCode != null) {
|
||||||
|
routeOrder = routeRepository.findTempRouteOrderBySysCodeAndBillCode(sysCode, fakeOrderNo);
|
||||||
|
}
|
||||||
|
if (routeOrder == null) {
|
||||||
|
routeOrder = routeRepository.queryById(queryData.getRouteId());
|
||||||
|
}
|
||||||
|
|
||||||
// 这里查询出来的订单,需要保存它的状态
|
// 这里查询出来的订单,需要保存它的状态
|
||||||
routeRepository.save(routeOrder);
|
routeRepository.save(routeOrder);
|
||||||
|
|
Loading…
Reference in New Issue