|
|
@ -19,6 +19,7 @@ import com.glxp.api.res.thrsys.ThrOrderResponse;
|
|
|
|
import com.glxp.api.service.sync.SyncDataSetService;
|
|
|
|
import com.glxp.api.service.sync.SyncDataSetService;
|
|
|
|
import com.glxp.api.util.RedisUtil;
|
|
|
|
import com.glxp.api.util.RedisUtil;
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
@ -41,6 +42,7 @@ public class ThrOrdersDlService {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
RedisUtil redisUtil;
|
|
|
|
RedisUtil redisUtil;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
@Lazy
|
|
|
|
private ThrOrderImportLogService thrOrderImportLogService;
|
|
|
|
private ThrOrderImportLogService thrOrderImportLogService;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
ThrOrderExportLogService thrOrderExportLogService;
|
|
|
|
ThrOrderExportLogService thrOrderExportLogService;
|
|
|
@ -67,13 +69,13 @@ public class ThrOrdersDlService {
|
|
|
|
|
|
|
|
|
|
|
|
ThrOrderImportLogEntity thrOrderImportLogEntity = thrOrderImportLogService.selectByGenKey(genKey);
|
|
|
|
ThrOrderImportLogEntity thrOrderImportLogEntity = thrOrderImportLogService.selectByGenKey(genKey);
|
|
|
|
|
|
|
|
|
|
|
|
//todo单据还没设计好
|
|
|
|
//todo单据还没设计好
|
|
|
|
// BasicThirdSysDetailEntity basicThirdSysDetailEntity = bussinessTypeService.findByActionKey(action, "orderQueryUrl");
|
|
|
|
// BasicThirdSysDetailEntity basicThirdSysDetailEntity = bussinessTypeService.findByActionKey(action, "orderQueryUrl");
|
|
|
|
// if (basicThirdSysDetailEntity == null || basicThirdSysDetailEntity.getValue() == null) {
|
|
|
|
// if (basicThirdSysDetailEntity == null || basicThirdSysDetailEntity.getValue() == null) {
|
|
|
|
// WebSocketServer.sendInfo("业务单据查询接口未设置!", "sid");
|
|
|
|
// WebSocketServer.sendInfo("业务单据查询接口未设置!", "sid");
|
|
|
|
// return;
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
ThrSystemDetailEntity thrSystemDetailEntity=new ThrSystemDetailEntity();
|
|
|
|
ThrSystemDetailEntity thrSystemDetailEntity = new ThrSystemDetailEntity();
|
|
|
|
|
|
|
|
|
|
|
|
int page = 1;
|
|
|
|
int page = 1;
|
|
|
|
int limit = 100;
|
|
|
|
int limit = 100;
|
|
|
@ -213,7 +215,8 @@ public class ThrOrdersDlService {
|
|
|
|
// thrOrderExportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_SUCCESS);
|
|
|
|
// thrOrderExportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_SUCCESS);
|
|
|
|
thrOrderExportLogService.updateThrOrderExportLog(thrOrderExportLogEntity);
|
|
|
|
thrOrderExportLogService.updateThrOrderExportLog(thrOrderExportLogEntity);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// @Async
|
|
|
|
// @Async
|
|
|
|
// public void genJsonFile(String genKey, ThrOrderExportRequest thrOrderExportRequest) {
|
|
|
|
// public void genJsonFile(String genKey, ThrOrderExportRequest thrOrderExportRequest) {
|
|
|
@ -543,7 +546,8 @@ public class ThrOrdersDlService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// public List<List<String>> exportThrOrders(FilterThrOrderRequest filterThrOrderRequest) {
|
|
|
|
// public List<List<String>> exportThrOrders(FilterThrOrderRequest filterThrOrderRequest) {
|
|
|
|
// BussinessTypeFilterRequest bussinessTypeFilterRequest = new BussinessTypeFilterRequest();
|
|
|
|
// BussinessTypeFilterRequest bussinessTypeFilterRequest = new BussinessTypeFilterRequest();
|
|
|
|
// bussinessTypeFilterRequest.setEnabled(true);
|
|
|
|
// bussinessTypeFilterRequest.setEnabled(true);
|
|
|
|