|
|
|
@ -107,7 +107,7 @@ public class PlateAroundServiceImpl extends BaseServiceImpl<PlateAroundMapper, P |
|
|
|
List<Long> tsIds = getTsIds(); |
|
|
|
List<Long> tsIds = getTsIds(); |
|
|
|
BeforePlatInVO beforePlatOutCardNo = baseMapper.getBeforePlatOutCardNo(wo.getId(), tsIds, AuthUtil.getUserId()); |
|
|
|
BeforePlatInVO beforePlatOutCardNo = baseMapper.getBeforePlatOutCardNo(wo.getId(), tsIds, AuthUtil.getUserId()); |
|
|
|
if (beforePlatOutCardNo == null) { |
|
|
|
if (beforePlatOutCardNo == null) { |
|
|
|
throw new ServiceException("未找到镀前入库记录,无法出库!"); |
|
|
|
throw new ServiceException("未找到镀前入库记录,请上序班组镀前入库!"); |
|
|
|
} |
|
|
|
} |
|
|
|
long count = this.count(Wrappers.lambdaQuery(PlateAround.class).eq(PlateAround::getWpId, beforePlatOutCardNo.getWpId()).eq(PlateAround::getPaType, PlateAround.BEFORE_PLAN_OUT)); |
|
|
|
long count = this.count(Wrappers.lambdaQuery(PlateAround.class).eq(PlateAround::getWpId, beforePlatOutCardNo.getWpId()).eq(PlateAround::getPaType, PlateAround.BEFORE_PLAN_OUT)); |
|
|
|
if (count > 0) { |
|
|
|
if (count > 0) { |
|
|
|
|