Commit 1cd1468f10718b2803e1589b11b9e43bb838a5e8
Merge remote-tracking branch 'origin/master_0929' into master_0929
Showing
1 changed file
with
16 additions
and
1 deletions
| ... | ... | @@ -21,9 +21,10 @@ import com.lframework.starter.web.core.annotations.oplog.OpLog; |
| 21 | 21 | import com.lframework.starter.web.core.utils.PageHelperUtil; |
| 22 | 22 | import com.lframework.starter.common.utils.Assert; |
| 23 | 23 | import com.lframework.starter.web.inner.components.oplog.OtherOpLogType; |
| 24 | +import com.lframework.xingyun.basedata.entity.Workshop; | |
| 25 | +import com.lframework.xingyun.basedata.service.workshop.WorkshopService; | |
| 24 | 26 | import com.lframework.xingyun.sc.entity.CustomerCredit; |
| 25 | 27 | import com.lframework.xingyun.sc.entity.PurchaseOrderInfo; |
| 26 | -import com.lframework.xingyun.sc.entity.PurchaseOrderLine; | |
| 27 | 28 | import com.lframework.xingyun.sc.enums.OrderSpecChangeStatus; |
| 28 | 29 | import com.lframework.xingyun.sc.mappers.PurchaseOrderInfoMapper; |
| 29 | 30 | import com.lframework.xingyun.sc.service.customer.CustomerCreditService; |
| ... | ... | @@ -53,6 +54,8 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde |
| 53 | 54 | private FlowInstanceWrapperService flowInstanceWrapperService; |
| 54 | 55 | @Resource |
| 55 | 56 | private FlowTaskWrapperMapper flowTaskWrapperMapper; |
| 57 | + @Resource | |
| 58 | + private WorkshopService workshopService; | |
| 56 | 59 | |
| 57 | 60 | @Override |
| 58 | 61 | public PageResult<PurchaseOrderInfo> query(Integer pageIndex, Integer pageSize, QueryPurchaseOrderInfoVo vo) { |
| ... | ... | @@ -235,6 +238,12 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde |
| 235 | 238 | } |
| 236 | 239 | //开启审核 |
| 237 | 240 | data.setUserId(SecurityUtil.getCurrentUser().getId()); |
| 241 | + if (StringUtils.isNotEmpty(data.getWorkshopId())) { | |
| 242 | + Workshop workshop = workshopService.findById(data.getWorkshopId()); | |
| 243 | + if (workshop != null) { | |
| 244 | + data.setWorkshopName(workshop.getName()); | |
| 245 | + } | |
| 246 | + } | |
| 238 | 247 | flowInstanceWrapperService.startInstance(BPM_FLAG, data.getId(), BPM_FLAG, data); |
| 239 | 248 | |
| 240 | 249 | return data.getId(); |
| ... | ... | @@ -293,6 +302,12 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde |
| 293 | 302 | OpLogUtil.setExtra(vo); |
| 294 | 303 | //开启审核 |
| 295 | 304 | data.setUserId(SecurityUtil.getCurrentUser().getId()); |
| 305 | + if (StringUtils.isNotEmpty(data.getWorkshopId())) { | |
| 306 | + Workshop workshop = workshopService.findById(data.getWorkshopId()); | |
| 307 | + if (workshop != null) { | |
| 308 | + data.setWorkshopName(workshop.getName()); | |
| 309 | + } | |
| 310 | + } | |
| 296 | 311 | flowInstanceWrapperService.startInstance(BPM_FLAG, data.getId(), BPM_FLAG, data); |
| 297 | 312 | } |
| 298 | 313 | ... | ... |