库存,扫码三期校验忽略

master
anthonyywj2 3 years ago
parent 7937c7c843
commit 72973abb1c

@ -635,7 +635,14 @@ public class WareHouseController {
}
}
}
if (bussinessTypeEntity.isPreIn()) {
if (StrUtil.isNotEmpty(udiEntity.getSerialNo())) {
List<InvProductDetailEntity> invProductDetailEntities = invPreInProductDetailService.findByOriginCode(code);
if(CollUtil.isNotEmpty(invProductDetailEntities)){
return ResultVOUtils.error(500, "条码已存在!");
}
}
}
//预验收校验
if (addOrderRequest.isPreCheck()) {

@ -8,6 +8,7 @@ import com.glxp.api.admin.res.inventory.InvProductDetailJoinResponse;
import java.util.List;
public interface InvPreInProductDetailService {
List<InvProductDetailEntity> findByOriginCode(String code);
List<InvProductDetailEntity> filterInvProduct(FilterInvProductDetailRequest filterInvProductDetailRequest);

@ -29,6 +29,14 @@ public class InvPreInProductDetailServiceImpl implements InvPreInProductDetailSe
@Resource
InvPreInProductDao invPreInProductDao;
@Override
public List<InvProductDetailEntity> findByOriginCode(String code) {
FilterInvProductDetailRequest filterInvProductDetailRequest = new FilterInvProductDetailRequest();
filterInvProductDetailRequest.setOriginCode(code);
List<InvProductDetailEntity> invProductDetailEntities = invPreInProductDetailDao.filterInvProductDetail(filterInvProductDetailRequest);
return invProductDetailEntities;
}
@Override
public List<InvProductDetailEntity> filterInvProduct(FilterInvProductDetailRequest filterInvProductDetailRequest) {
if (filterInvProductDetailRequest == null) {

Loading…
Cancel
Save