|
|
|
@ -61,6 +61,7 @@ import org.springblade.system.feign.IUserClient; |
|
|
|
import org.springblade.system.pojo.entity.Dict; |
|
|
|
import org.springblade.system.pojo.entity.Dict; |
|
|
|
import org.springblade.system.pojo.entity.User; |
|
|
|
import org.springblade.system.pojo.entity.User; |
|
|
|
import org.springblade.system.pojo.enums.DictEnum; |
|
|
|
import org.springblade.system.pojo.enums.DictEnum; |
|
|
|
|
|
|
|
import org.springblade.wms.feign.WmsTaskClient; |
|
|
|
import org.springblade.wms.pojo.entity.StClassRequest; |
|
|
|
import org.springblade.wms.pojo.entity.StClassRequest; |
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
@ -128,6 +129,9 @@ public class PdaSaveServiceImpl extends BaseServiceImpl<WorkPlanMapper, WorkPlan |
|
|
|
private final IBsSafePatrolInspectionService inspectionService; |
|
|
|
private final IBsSafePatrolInspectionService inspectionService; |
|
|
|
private final IBsEpciuPatrolInspectionService bsEpciuPatrolInspectionService; |
|
|
|
private final IBsEpciuPatrolInspectionService bsEpciuPatrolInspectionService; |
|
|
|
private final IBsDosingRecService bsDosingRecService; |
|
|
|
private final IBsDosingRecService bsDosingRecService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private WmsTaskClient wmsTaskClient; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void bindingCard(DeviceBindDTO deviceBindDTO) { |
|
|
|
public void bindingCard(DeviceBindDTO deviceBindDTO) { |
|
|
|
@ -1083,8 +1087,8 @@ public class PdaSaveServiceImpl extends BaseServiceImpl<WorkPlanMapper, WorkPlan |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void saveSubOrder(SaveSubOrderVo subOrder) { |
|
|
|
public void saveSubOrder(SaveSubOrderVo subOrder) { |
|
|
|
Long wpId = subOrder.getWpId(); |
|
|
|
Long wpId = subOrder.getWpId(); |
|
|
|
// Long shId = subOrder.getWpId();
|
|
|
|
Long shId = subOrder.getWpId(); |
|
|
|
// Long cslId = subOrder.getWpId();
|
|
|
|
Long cslId = subOrder.getWpId(); |
|
|
|
if (wpId == null) { |
|
|
|
if (wpId == null) { |
|
|
|
throw new ServiceException("参数异常!"); |
|
|
|
throw new ServiceException("参数异常!"); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1108,8 +1112,12 @@ public class PdaSaveServiceImpl extends BaseServiceImpl<WorkPlanMapper, WorkPlan |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Date nowDate = new Date(); |
|
|
|
Date nowDate = new Date(); |
|
|
|
//进行入库
|
|
|
|
try { |
|
|
|
// stRealtimeStockWebService.saveSubOrderWarehousing(yo.getPartCode(), wo.getBatchNo(), wo.getMakeQty(), shId, cslId, nowDate, AuthUtil.getUserId());
|
|
|
|
//进行入库
|
|
|
|
|
|
|
|
wmsTaskClient.saveSubOrderWarehousing(yo.getPartCode(), wo.getBatchNo(), wo.getMakeQty(), shId, cslId, nowDate, AuthUtil.getUserId()); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error("子件入库调用失败:{}", e.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
//当前工序完工
|
|
|
|
//当前工序完工
|
|
|
|
wp.setFactEndTime(nowDate); |
|
|
|
wp.setFactEndTime(nowDate); |
|
|
|
wp.setStatus(WorkPlan.STATUS_COMPLETE); |
|
|
|
wp.setStatus(WorkPlan.STATUS_COMPLETE); |
|
|
|
|