|
|
@ -82,7 +82,7 @@ public class ThrOrderDownload implements IDownload {
|
|
|
|
* @param thrOrderEntities
|
|
|
|
* @param thrOrderEntities
|
|
|
|
* @param collectOrderRequest
|
|
|
|
* @param collectOrderRequest
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private BaseResponse importThrOrder(List<IoCollectOrder> thrOrderEntities, CollectOrderRequest collectOrderRequest) {
|
|
|
|
public BaseResponse importThrOrder(List<IoCollectOrder> thrOrderEntities, CollectOrderRequest collectOrderRequest) {
|
|
|
|
List<IoCollectOrder> ioCollectOrderList = new ArrayList<>();
|
|
|
|
List<IoCollectOrder> ioCollectOrderList = new ArrayList<>();
|
|
|
|
if (CollUtil.isNotEmpty(thrOrderEntities)) {
|
|
|
|
if (CollUtil.isNotEmpty(thrOrderEntities)) {
|
|
|
|
for (IoCollectOrder thrOrder : thrOrderEntities) {
|
|
|
|
for (IoCollectOrder thrOrder : thrOrderEntities) {
|
|
|
@ -116,15 +116,12 @@ public class ThrOrderDownload implements IDownload {
|
|
|
|
bizList.add(collectOrderBiz);
|
|
|
|
bizList.add(collectOrderBiz);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (StrUtil.isNotBlank(errorMsg)) {
|
|
|
|
if (StrUtil.isNotBlank(errorMsg)) {
|
|
|
|
ioCollectOrder.setErrorMsg(errorMsg.toString());
|
|
|
|
|
|
|
|
ioCollectOrder.setTagStatus(4);
|
|
|
|
ioCollectOrder.setTagStatus(4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ioCollectOrder.setErrorMsg(errorMsg.toString());
|
|
|
|
ioCollectOrder.setBizList(bizList);
|
|
|
|
ioCollectOrder.setBizList(bizList);
|
|
|
|
ioCollectOrderList.add(ioCollectOrder);
|
|
|
|
ioCollectOrderList.add(ioCollectOrder);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
collectOrderService.importPrescribe(ioCollectOrderList, collectOrderRequest.getBusType());
|
|
|
|
collectOrderService.importPrescribe(ioCollectOrderList, collectOrderRequest.getBusType());
|
|
|
|
return ResultVOUtils.success("下载成功");
|
|
|
|
return ResultVOUtils.success("下载成功");
|
|
|
|
}
|
|
|
|
}
|
|
|
|