|
...
|
...
|
@@ -22,6 +22,7 @@ import com.lframework.starter.web.core.utils.PageResultUtil; |
|
22
|
22
|
import com.lframework.starter.web.inner.components.oplog.OtherOpLogType;
|
|
23
|
23
|
import com.lframework.xingyun.sc.entity.DraftRequestCarTicket;
|
|
24
|
24
|
import com.lframework.xingyun.sc.mappers.DraftRequestCarTicketMapper;
|
|
|
25
|
+import com.lframework.xingyun.sc.service.order.PurchaseOrderInfoService;
|
|
25
|
26
|
import com.lframework.xingyun.sc.service.shipments.car.DraftRequestCarTicketService;
|
|
26
|
27
|
import com.lframework.xingyun.sc.vo.shipments.car.*;
|
|
27
|
28
|
import org.apache.commons.collections.CollectionUtils;
|
|
...
|
...
|
@@ -41,6 +42,8 @@ public class DraftRequestCarTicketServiceImpl extends BaseMpServiceImpl<DraftReq |
|
41
|
42
|
private FlowInstanceWrapperService flowInstanceWrapperService;
|
|
42
|
43
|
@Resource
|
|
43
|
44
|
private FlowTaskWrapperMapper flowTaskWrapperMapper;
|
|
|
45
|
+ @Resource
|
|
|
46
|
+ private PurchaseOrderInfoService purchaseOrderInfoService;
|
|
44
|
47
|
|
|
45
|
48
|
@Override
|
|
46
|
49
|
public PageResult<DraftRequestCarTicket> query(Integer pageIndex, Integer pageSize, QueryDraftRequestCarTicketVo vo) {
|
|
...
|
...
|
@@ -93,6 +96,9 @@ public class DraftRequestCarTicketServiceImpl extends BaseMpServiceImpl<DraftReq |
|
93
|
96
|
if (CollectionUtils.isNotEmpty(query)) {
|
|
94
|
97
|
return query.get(0).getId();
|
|
95
|
98
|
}
|
|
|
99
|
+ if (StringUtils.isNotEmpty(vo.getPurchaseOrderId())) {
|
|
|
100
|
+ purchaseOrderInfoService.updateStatus(vo.getPurchaseOrderId(), "WAIT");
|
|
|
101
|
+ }
|
|
96
|
102
|
|
|
97
|
103
|
DraftRequestCarTicket data = new DraftRequestCarTicket();
|
|
98
|
104
|
data.setId(IdUtil.getId());
|
|
...
|
...
|
@@ -146,6 +152,8 @@ public class DraftRequestCarTicketServiceImpl extends BaseMpServiceImpl<DraftReq |
|
146
|
152
|
}
|
|
147
|
153
|
if (!StringUtil.isBlank(vo.getStatus())) {
|
|
148
|
154
|
data.setStatus(vo.getStatus());
|
|
|
155
|
+ } else {
|
|
|
156
|
+ data.setStatus("AUDIT");
|
|
149
|
157
|
}
|
|
150
|
158
|
|
|
151
|
159
|
getBaseMapper().insert(data);
|
...
|
...
|
|