|
|
|
@ -17,6 +17,7 @@ import com.glxp.sale.admin.entity.basic.EntrustReceEntity;
|
|
|
|
|
import com.glxp.sale.admin.entity.info.CompanyEntity;
|
|
|
|
|
import com.glxp.sale.admin.entity.inout.*;
|
|
|
|
|
import com.glxp.sale.admin.entity.inventory.InvWarehouseEntity;
|
|
|
|
|
import com.glxp.sale.admin.entity.param.SystemParamConfigEntity;
|
|
|
|
|
import com.glxp.sale.admin.entity.udid.UdiEntity;
|
|
|
|
|
import com.glxp.sale.admin.req.basic.BasicEntrustRecRequest;
|
|
|
|
|
import com.glxp.sale.admin.req.inout.*;
|
|
|
|
@ -30,6 +31,7 @@ import com.glxp.sale.admin.service.basic.EntrustReceService;
|
|
|
|
|
import com.glxp.sale.admin.service.info.CompanyService;
|
|
|
|
|
import com.glxp.sale.admin.service.inout.*;
|
|
|
|
|
import com.glxp.sale.admin.service.inventory.InvWarehouseService;
|
|
|
|
|
import com.glxp.sale.admin.service.param.SystemParamConfigService;
|
|
|
|
|
import com.glxp.sale.admin.thread.InvProductsTrService;
|
|
|
|
|
import com.glxp.sale.admin.util.*;
|
|
|
|
|
import com.glxp.sale.common.enums.ResultEnum;
|
|
|
|
@ -66,6 +68,8 @@ public class OrderController {
|
|
|
|
|
@Resource
|
|
|
|
|
BussinessTypeService bussinessTypeService;
|
|
|
|
|
@Resource
|
|
|
|
|
SystemParamConfigService systemParamConfigService;
|
|
|
|
|
@Resource
|
|
|
|
|
CompanyService companyService;
|
|
|
|
|
@Value("${file_path}")
|
|
|
|
|
private String filePath;
|
|
|
|
@ -364,7 +368,13 @@ public class OrderController {
|
|
|
|
|
String supplementOrderNo = orderNo;
|
|
|
|
|
supplementOrder.setOriginUllageSupNo(orderEntity.getId());
|
|
|
|
|
supplementOrder.setId(supplementOrderNo);
|
|
|
|
|
supplementOrder.setStatus(ConstantStatus.ORDER_STATUS_ADDITIONAL);
|
|
|
|
|
|
|
|
|
|
SystemParamConfigEntity systemParamConfigEntity = systemParamConfigService.selectByParamKey("additional_auto_submit");
|
|
|
|
|
if ("1".equals(systemParamConfigEntity.getParamValue())) {
|
|
|
|
|
supplementOrder.setStatus(ConstantStatus.ORDER_STATUS_PROCESS); //设置状态为补录单据
|
|
|
|
|
} else {
|
|
|
|
|
supplementOrder.setStatus(ConstantStatus.ORDER_STATUS_ADDITIONAL); //设置状态为补录单据
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
supplementOrder.setExportStatus(0); //设置导出状态为未导出
|
|
|
|
|