|
|
|
@ -5,6 +5,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
|
import com.foreverwin.mesnac.common.constant.Constants;
|
|
|
|
|
import com.foreverwin.mesnac.common.constant.IntegrationTypeConstant;
|
|
|
|
|
import com.foreverwin.mesnac.common.dto.SfcDispatchDto;
|
|
|
|
|
import com.foreverwin.mesnac.common.enums.DispatchStatusEnum;
|
|
|
|
|
import com.foreverwin.mesnac.common.enums.HandleEnum;
|
|
|
|
|
import com.foreverwin.mesnac.common.erp.ZprodordconfStruIn;
|
|
|
|
@ -341,7 +342,10 @@ public class PodTemplateServiceImpl implements PodTemplateService {
|
|
|
|
|
sfcDispatchCommonService.updateSfcDispatchStatus(site, CommonMethods.getUser(), dispatchNo, DispatchStatusEnum.COMPLETE.getCode(),workHour);
|
|
|
|
|
//报工
|
|
|
|
|
if (enabled){
|
|
|
|
|
sendErp(sfc, stepId, qty, BigDecimal.ZERO, workHour);
|
|
|
|
|
SfcDispatchDto sfcdispatch = new SfcDispatchDto();
|
|
|
|
|
sfcdispatch.setHandle(HandleEnum.SFC_DISPATCH.getHandle(site, dispatchNo));
|
|
|
|
|
sfcdispatch = sfcDispatchCommonService.findSfcDispatchBySfc(sfcdispatch);
|
|
|
|
|
sendErp(sfc, stepId, qty, BigDecimal.ZERO, sfcdispatch.getProdHours());
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
ExceptionUtil.throwException(e);
|
|
|
|
|