入库出库默认类型修改

This commit is contained in:
秦鸿展
2026-02-09 09:43:31 +08:00
parent cbe6283009
commit f149b7322d
3 changed files with 23 additions and 0 deletions
@@ -115,6 +115,13 @@ public class ExcelParseService {
stockOutOrder.setOrganizationName(loginUser.getUserPo().getOrganizationName());
}
initParam(stockOutOrder);
// 导入出库单时,如果出库单类型为空,默认设置为普通出库
if (StringUtils.isBlank(stockOutOrder.getOrderTypeCode())) {
stockOutOrder.setOrderTypeCode("pu_tong_chu_ku");
}
if (StringUtils.isBlank(stockOutOrder.getOrderTypeName())) {
stockOutOrder.setOrderTypeName("普通出库");
}
//设置创建时间和创建人信息
if (loginUser != null) {
stockOutOrder.setCreateBy(loginUser.getUserid());