|
|
|
@ -333,6 +333,9 @@ public class StockOrderDetailController {
|
|
|
|
|
stockOrderDetailEntity.setRelId(udiInfoEntity.getRlId() + "");
|
|
|
|
|
stockOrderDetailEntity.setProductName(udiInfoEntity.getCpmctymc());
|
|
|
|
|
stockOrderDetailEntity.setSpec(udiInfoEntity.getGgxh());
|
|
|
|
|
if (stockSelectDataEntity.getCount() != null) {
|
|
|
|
|
stockOrderDetailEntity.setCount(stockSelectDataEntity.getCount() + "");
|
|
|
|
|
} else
|
|
|
|
|
stockOrderDetailEntity.setCount(0 + "");
|
|
|
|
|
stockOrderDetailEntity.setReCount(0 + "");
|
|
|
|
|
stockOrderDetailEntity.setBatchNo(stockSelectDataEntity.getBatchNo());
|
|
|
|
@ -341,8 +344,8 @@ public class StockOrderDetailController {
|
|
|
|
|
stockOrderDetailEntity.setManufactory(udiInfoEntity.getManufactory());
|
|
|
|
|
stockOrderDetailEntity.setYlqxzcrbarmc(udiInfoEntity.getYlqxzcrbarmc());
|
|
|
|
|
stockOrderDetailEntity.setSupName(udiInfoEntity.getCompanyName());
|
|
|
|
|
if (StrUtil.isNotEmpty(stockOrderIdsRequest.getZczbhhzbapzbh()))
|
|
|
|
|
stockOrderDetailEntity.setZczbhhzbapzbh(stockOrderIdsRequest.getZczbhhzbapzbh());
|
|
|
|
|
if (StrUtil.isNotEmpty(stockSelectDataEntity.getZczbhhzbapzbh()))
|
|
|
|
|
stockOrderDetailEntity.setZczbhhzbapzbh(stockSelectDataEntity.getZczbhhzbapzbh());
|
|
|
|
|
else
|
|
|
|
|
stockOrderDetailEntity.setZczbhhzbapzbh(udiInfoEntity.getZczbhhzbapzbh());
|
|
|
|
|
stockOrderDetailEntity.setAllowNoBatch(udiInfoEntity.isAllowNoBatch());
|
|
|
|
@ -376,11 +379,13 @@ public class StockOrderDetailController {
|
|
|
|
|
}
|
|
|
|
|
//供应商选入时需要校验证书是否齐全
|
|
|
|
|
if (stockOrderIdsRequest.getType() == 0) {
|
|
|
|
|
|
|
|
|
|
StockSelectDataEntity stockSelectDataEntity = stockOrderIdsRequest.getDatas().get(0);
|
|
|
|
|
String value = systemParamConfigService.selectValueByParamKey("checkCert");
|
|
|
|
|
if (StrUtil.isNotEmpty(value) && value.equals("1")) {
|
|
|
|
|
//判断证书是否齐全
|
|
|
|
|
if (StrUtil.isNotEmpty(stockOrderIdsRequest.getZczbhhzbapzbh())) {
|
|
|
|
|
SupProductResponse supProductResponse = supProductService.findByPassByReCert(stockOrderIdsRequest.getZczbhhzbapzbh());
|
|
|
|
|
if (StrUtil.isNotEmpty(stockSelectDataEntity.getZczbhhzbapzbh())) {
|
|
|
|
|
SupProductResponse supProductResponse = supProductService.findByPassByReCert(stockSelectDataEntity.getZczbhhzbapzbh());
|
|
|
|
|
if (supProductResponse == null) {
|
|
|
|
|
return ResultVOUtils.error(601, "该产品所对应的资质证书未通过审核,无法配送,请先维护产品资质信息");
|
|
|
|
|
}
|
|
|
|
|