|
|
@ -35,6 +35,8 @@ import com.yxt.wms.biz.inventory.wmsinitialdetail.WmsInitialDetail; |
|
|
|
import com.yxt.wms.biz.inventory.wmsinitialdetail.WmsInitialDetailService; |
|
|
|
import com.yxt.wms.biz.inventory.wmsinitialdetail.WmsInitialDetailVo; |
|
|
|
import com.yxt.wms.feign.base.basegoodspu.BaseGoodsSpuFeign; |
|
|
|
import com.yxt.wms.feign.base.basesupplierinfo.BaseSupplierInfoDetailsVo; |
|
|
|
import com.yxt.wms.feign.base.basesupplierinfo.BaseSupplierInfoFeign; |
|
|
|
import com.yxt.wms.feign.portal.sysorganization.SysOrganizationFeign; |
|
|
|
import com.yxt.wms.feign.portal.sysorganization.SysOrganizationVo; |
|
|
|
import com.yxt.wms.feign.portal.sysstafforg.SysStaffOrgFeign; |
|
|
@ -77,6 +79,8 @@ public class WmsInitialRest { |
|
|
|
private WmsInitialService wmsInitialService; |
|
|
|
@Autowired |
|
|
|
private WmsInitialDetailService wmsInitialDetailService; |
|
|
|
@Autowired |
|
|
|
private BaseSupplierInfoFeign baseSupplierInfoFeign; |
|
|
|
|
|
|
|
@PostMapping("/getExcelInfo") |
|
|
|
@ResponseBody |
|
|
@ -403,6 +407,12 @@ public class WmsInitialRest { |
|
|
|
if (StringUtils.isBlank(excelInfo.getSupplierName())) { |
|
|
|
checkWord.add("供应商不能为空"); |
|
|
|
break; |
|
|
|
}else{ |
|
|
|
ResultBean<BaseSupplierInfoDetailsVo> resultBean = baseSupplierInfoFeign.selectByName(excelInfo.getSupplierName()); |
|
|
|
if(!resultBean.getSuccess()){ |
|
|
|
checkWord.add(excelInfo.getSupplierName()+"供应商不存在,请先添加供应商类别和供应商信息"); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(excelInfo.getSaleGuidePrice())) { |
|
|
|
checkWord.add("销售指导价不能为空"); |
|
|
|