|
|
@ -19,7 +19,6 @@ import com.glxp.sale.admin.entity.inout.WarehouseBussinessTypeEntity;
|
|
|
|
import com.glxp.sale.admin.entity.inout.WarehouseEntity;
|
|
|
|
import com.glxp.sale.admin.entity.inout.WarehouseEntity;
|
|
|
|
import com.glxp.sale.admin.entity.inout.WarehouseUserEntity;
|
|
|
|
import com.glxp.sale.admin.entity.inout.WarehouseUserEntity;
|
|
|
|
import com.glxp.sale.admin.entity.inventory.InvWarehouseEntity;
|
|
|
|
import com.glxp.sale.admin.entity.inventory.InvWarehouseEntity;
|
|
|
|
import com.glxp.sale.admin.entity.param.SystemParamConfigEntity;
|
|
|
|
|
|
|
|
import com.glxp.sale.admin.entity.thrsys.*;
|
|
|
|
import com.glxp.sale.admin.entity.thrsys.*;
|
|
|
|
import com.glxp.sale.admin.res.basic.SpsSyncBusResponse;
|
|
|
|
import com.glxp.sale.admin.res.basic.SpsSyncBusResponse;
|
|
|
|
import com.glxp.sale.admin.res.basic.SpsSyncDataResponse;
|
|
|
|
import com.glxp.sale.admin.res.basic.SpsSyncDataResponse;
|
|
|
@ -32,6 +31,7 @@ import com.glxp.sale.admin.service.inventory.InvWarehouseService;
|
|
|
|
import com.glxp.sale.admin.service.param.SystemParamConfigService;
|
|
|
|
import com.glxp.sale.admin.service.param.SystemParamConfigService;
|
|
|
|
import com.glxp.sale.admin.thread.BasicBackUpdateProductService;
|
|
|
|
import com.glxp.sale.admin.thread.BasicBackUpdateProductService;
|
|
|
|
import com.glxp.sale.admin.util.BeanUtils;
|
|
|
|
import com.glxp.sale.admin.util.BeanUtils;
|
|
|
|
|
|
|
|
import com.glxp.sale.admin.util.CustomUtil;
|
|
|
|
import com.glxp.sale.common.res.BaseResponse;
|
|
|
|
import com.glxp.sale.common.res.BaseResponse;
|
|
|
|
import com.glxp.sale.common.util.ResultVOUtils;
|
|
|
|
import com.glxp.sale.common.util.ResultVOUtils;
|
|
|
|
import org.apache.ibatis.session.ExecutorType;
|
|
|
|
import org.apache.ibatis.session.ExecutorType;
|
|
|
@ -117,7 +117,8 @@ public class SpsSyncUploadController {
|
|
|
|
SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED);
|
|
|
|
SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED);
|
|
|
|
|
|
|
|
|
|
|
|
BasicDownloadStatusEntity basicDownloadStatusEntity = new BasicDownloadStatusEntity();
|
|
|
|
BasicDownloadStatusEntity basicDownloadStatusEntity = new BasicDownloadStatusEntity();
|
|
|
|
basicDownloadStatusEntity.setId(syncDataResponse.getTaskId());
|
|
|
|
basicDownloadStatusEntity.setId(CustomUtil.getId());
|
|
|
|
|
|
|
|
basicDownloadStatusEntity.setTaskId(syncDataResponse.getTaskId());
|
|
|
|
basicDownloadStatusEntity.setStartTime(new Date());
|
|
|
|
basicDownloadStatusEntity.setStartTime(new Date());
|
|
|
|
basicDownloadStatusEntity.setIdDatas(ConstantStatus.SYNC_BASIC_DATA);
|
|
|
|
basicDownloadStatusEntity.setIdDatas(ConstantStatus.SYNC_BASIC_DATA);
|
|
|
|
basicDownloadStatusEntity.setStatus(0);
|
|
|
|
basicDownloadStatusEntity.setStatus(0);
|
|
|
@ -334,7 +335,8 @@ public class SpsSyncUploadController {
|
|
|
|
SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED);
|
|
|
|
SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED);
|
|
|
|
|
|
|
|
|
|
|
|
BasicDownloadStatusEntity basicDownloadStatusEntity = new BasicDownloadStatusEntity();
|
|
|
|
BasicDownloadStatusEntity basicDownloadStatusEntity = new BasicDownloadStatusEntity();
|
|
|
|
basicDownloadStatusEntity.setId(syncDataResponse.getTaskId());
|
|
|
|
basicDownloadStatusEntity.setId(CustomUtil.getId());
|
|
|
|
|
|
|
|
basicDownloadStatusEntity.setTaskId(syncDataResponse.getTaskId());
|
|
|
|
basicDownloadStatusEntity.setStartTime(new Date());
|
|
|
|
basicDownloadStatusEntity.setStartTime(new Date());
|
|
|
|
basicDownloadStatusEntity.setIdDatas(ConstantStatus.SYNC_BUS_TYPE);
|
|
|
|
basicDownloadStatusEntity.setIdDatas(ConstantStatus.SYNC_BUS_TYPE);
|
|
|
|
basicDownloadStatusEntity.setStatus(0);
|
|
|
|
basicDownloadStatusEntity.setStatus(0);
|
|
|
@ -418,7 +420,8 @@ public class SpsSyncUploadController {
|
|
|
|
SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED);
|
|
|
|
SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED);
|
|
|
|
|
|
|
|
|
|
|
|
BasicDownloadStatusEntity basicDownloadStatusEntity = new BasicDownloadStatusEntity();
|
|
|
|
BasicDownloadStatusEntity basicDownloadStatusEntity = new BasicDownloadStatusEntity();
|
|
|
|
basicDownloadStatusEntity.setId(syncDataResponse.getTaskId());
|
|
|
|
basicDownloadStatusEntity.setId(CustomUtil.getId());
|
|
|
|
|
|
|
|
basicDownloadStatusEntity.setTaskId(syncDataResponse.getTaskId());
|
|
|
|
basicDownloadStatusEntity.setStartTime(new Date());
|
|
|
|
basicDownloadStatusEntity.setStartTime(new Date());
|
|
|
|
basicDownloadStatusEntity.setIdDatas(ConstantStatus.SYNC_SCAN_ORDER);
|
|
|
|
basicDownloadStatusEntity.setIdDatas(ConstantStatus.SYNC_SCAN_ORDER);
|
|
|
|
basicDownloadStatusEntity.setStatus(0);
|
|
|
|
basicDownloadStatusEntity.setStatus(0);
|
|
|
|