|
|
@ -13,6 +13,7 @@ import com.glxp.api.service.thrsys.ThrOrderImportDetailService;
|
|
|
|
import com.glxp.api.service.thrsys.ThrOrderImportLogService;
|
|
|
|
import com.glxp.api.service.thrsys.ThrOrderImportLogService;
|
|
|
|
import com.glxp.api.service.thrsys.ThrOrderService;
|
|
|
|
import com.glxp.api.service.thrsys.ThrOrderService;
|
|
|
|
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;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
@ -31,11 +32,10 @@ public class ThrOrderImportLogServiceImpl implements ThrOrderImportLogService {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
ThrOrderImportLogDao thrOrderImportLogDao;
|
|
|
|
ThrOrderImportLogDao thrOrderImportLogDao;
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
ThrOrderImportLogService thrOrderImportLogService;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
ThrOrderImportDetailService thrOrderImportDetailService;
|
|
|
|
ThrOrderImportDetailService thrOrderImportDetailService;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
@Lazy
|
|
|
|
ThrOrderService thrOrderService;
|
|
|
|
ThrOrderService thrOrderService;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
ThrOrderDetailService thrOrderDetailService;
|
|
|
|
ThrOrderDetailService thrOrderDetailService;
|
|
|
@ -87,7 +87,7 @@ public class ThrOrderImportLogServiceImpl implements ThrOrderImportLogService {
|
|
|
|
|
|
|
|
|
|
|
|
@Async
|
|
|
|
@Async
|
|
|
|
public void importThrOrder(String genKey) {
|
|
|
|
public void importThrOrder(String genKey) {
|
|
|
|
ThrOrderImportLogEntity thrOrderImportLogEntity = thrOrderImportLogService.selectByGenKey(genKey);
|
|
|
|
ThrOrderImportLogEntity thrOrderImportLogEntity = this.selectByGenKey(genKey);
|
|
|
|
if (thrOrderImportLogEntity.getStatus() == BasicProcessStatus.UDIINFO_IMPORT_UNPROCESS) {
|
|
|
|
if (thrOrderImportLogEntity.getStatus() == BasicProcessStatus.UDIINFO_IMPORT_UNPROCESS) {
|
|
|
|
FilterThrCorpImportLogRequest filterUdiIpLogRequest = new FilterThrCorpImportLogRequest();
|
|
|
|
FilterThrCorpImportLogRequest filterUdiIpLogRequest = new FilterThrCorpImportLogRequest();
|
|
|
|
filterUdiIpLogRequest.setGenKey(genKey);
|
|
|
|
filterUdiIpLogRequest.setGenKey(genKey);
|
|
|
@ -120,7 +120,7 @@ public class ThrOrderImportLogServiceImpl implements ThrOrderImportLogService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
thrOrderImportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_SUCCESS);
|
|
|
|
thrOrderImportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_SUCCESS);
|
|
|
|
thrOrderImportLogService.updateImportLog(thrOrderImportLogEntity);
|
|
|
|
this.updateImportLog(thrOrderImportLogEntity);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|