|  |  | @ -1,32 +1,28 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | package com.glxp.api.controller.sync; |  |  |  | package com.glxp.api.controller.sync; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import cn.hutool.core.collection.CollUtil; |  |  |  | import cn.hutool.core.collection.CollUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import cn.hutool.core.collection.CollectionUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  | import cn.hutool.core.lang.Dict; |  |  |  | import cn.hutool.core.lang.Dict; | 
			
		
	
		
		
			
				
					
					|  |  |  | import cn.hutool.core.util.StrUtil; |  |  |  | import cn.hutool.core.util.StrUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import cn.hutool.json.JSONObject; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import cn.hutool.json.JSONUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |  |  |  | import com.baomidou.mybatisplus.core.toolkit.Wrappers; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.annotation.AuthRuleAnnotation; |  |  |  | import com.glxp.api.annotation.AuthRuleAnnotation; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.common.enums.ResultEnum; |  |  |  | import com.glxp.api.common.enums.ResultEnum; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.common.res.BaseResponse; |  |  |  | import com.glxp.api.common.res.BaseResponse; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.common.util.ResultVOUtils; |  |  |  | import com.glxp.api.common.util.ResultVOUtils; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.constant.*; |  |  |  | import com.glxp.api.constant.BasicExportStatusEnum; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.controller.purchase.PurOrderController; |  |  |  | import com.glxp.api.constant.BasicExportTypeEnum; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.constant.BasicProcessStatus; |  |  |  | import com.glxp.api.constant.BasicProcessStatus; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.constant.ConstantStatus; |  |  |  | import com.glxp.api.constant.ConstantStatus; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.dao.BaseMapperPlus; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.dao.auth.*; |  |  |  | import com.glxp.api.dao.auth.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.dao.basic.BasicBusTypeChangeDao; |  |  |  | import com.glxp.api.dao.basic.*; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.dao.basic.BasicBusTypePreDao; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.dao.basic.BasicBussinessTypeDao; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.dao.basic.EntrustReceDao; |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.dao.inout.*; |  |  |  | import com.glxp.api.dao.inout.*; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.glxp.api.dao.purchase.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.dao.schedule.SystemParamConfigDao; |  |  |  | import com.glxp.api.dao.schedule.SystemParamConfigDao; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.dao.system.*; |  |  |  | import com.glxp.api.dao.system.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.dao.thrsys.*; |  |  |  | import com.glxp.api.dao.thrsys.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.auth.*; |  |  |  | import com.glxp.api.entity.auth.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.basic.BasicBusTypeChangeEntity; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.basic.BasicBusTypePreEntity; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.basic.BasicBussinessTypeEntity; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.basic.EntrustReceEntity; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.basic.*; |  |  |  | import com.glxp.api.entity.basic.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.inout.*; |  |  |  | import com.glxp.api.entity.inout.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.purchase.*; |  |  |  | import com.glxp.api.entity.purchase.*; | 
			
		
	
	
		
		
			
				
					|  |  | @ -35,7 +31,9 @@ import com.glxp.api.entity.sync.BasicExportStatusEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.system.*; |  |  |  | import com.glxp.api.entity.system.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.thrsys.*; |  |  |  | import com.glxp.api.entity.thrsys.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.req.sync.SpsSyncDataRequest; |  |  |  | import com.glxp.api.req.sync.SpsSyncDataRequest; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.glxp.api.req.sync.SyncUpLoadRequest; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.res.sync.*; |  |  |  | import com.glxp.api.res.sync.*; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.glxp.api.service.basic.IBasicBussinessTypeService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.inout.IoAddInoutService; |  |  |  | import com.glxp.api.service.inout.IoAddInoutService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.inout.IoCheckInoutService; |  |  |  | import com.glxp.api.service.inout.IoCheckInoutService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.inout.IoOrderService; |  |  |  | import com.glxp.api.service.inout.IoOrderService; | 
			
		
	
	
		
		
			
				
					|  |  | @ -45,10 +43,10 @@ import com.glxp.api.service.sync.BasicDownloadService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.sync.BasicExportService; |  |  |  | import com.glxp.api.service.sync.BasicExportService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.sync.SpsSyncDownloadService; |  |  |  | import com.glxp.api.service.sync.SpsSyncDownloadService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.CustomUtil; |  |  |  | import com.glxp.api.util.CustomUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.DateUtil; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.JsonUtils; |  |  |  | import com.glxp.api.util.JsonUtils; | 
			
		
	
		
		
			
				
					
					|  |  |  | import io.swagger.annotations.Api; |  |  |  | import io.swagger.annotations.Api; | 
			
		
	
		
		
			
				
					
					|  |  |  | import io.swagger.annotations.ApiOperation; |  |  |  | import io.swagger.annotations.ApiOperation; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import lombok.RequiredArgsConstructor; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.apache.ibatis.session.ExecutorType; |  |  |  | import org.apache.ibatis.session.ExecutorType; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.apache.ibatis.session.SqlSession; |  |  |  | import org.apache.ibatis.session.SqlSession; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.apache.ibatis.session.SqlSessionFactory; |  |  |  | import org.apache.ibatis.session.SqlSessionFactory; | 
			
		
	
	
		
		
			
				
					|  |  | @ -64,10 +62,12 @@ import javax.validation.Valid; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.io.FileNotFoundException; |  |  |  | import java.io.FileNotFoundException; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.io.FileReader; |  |  |  | import java.io.FileReader; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.io.IOException; |  |  |  | import java.io.IOException; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.util.*; |  |  |  | import java.util.Date; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import java.util.List; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | @RestController |  |  |  | @RestController | 
			
		
	
		
		
			
				
					
					|  |  |  | @Api(tags = "同步下载相关") |  |  |  | @Api(tags = "同步下载相关") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | @RequiredArgsConstructor | 
			
		
	
		
		
			
				
					
					|  |  |  | public class SpsSyncDownloadController { |  |  |  | public class SpsSyncDownloadController { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Resource |  |  |  |     @Resource | 
			
		
	
	
		
		
			
				
					|  |  | @ -321,6 +321,134 @@ public class SpsSyncDownloadController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         return baseResponse; |  |  |  |         return baseResponse; | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     @ApiOperation("上传同步数据") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     @PostMapping("sps/sync/upload/data") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     public Object uploadData(@RequestBody SyncUpLoadRequest upLoadRequest) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         try { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             JSONObject obj = JSONUtil.parseObj(upLoadRequest.getData()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             switch (upLoadRequest.getExportType()) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 case BASIC_DATA: | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     saveUploadBasicData(JSONUtil.toBean(obj, SpsSyncBasicDataResponse.class)); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     break; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 case OTHER_DATA: | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     saveUploadOtherData(JSONUtil.toBean(obj, SpsSyncOtherDataResponse.class)); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     break; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 case DOCUMENT_TYPE: | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     saveUploadDocumentTypeData(JSONUtil.toBean(obj, SpsSyncBusResponse.class)); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     break; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 case COUNTRY_DI_DATA: | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             String taskId = obj.getStr("taskId"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             BasicDownloadStatusEntity downloadStatus = BasicDownloadStatusEntity.builder() | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     .id(taskId) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     .taskId(taskId) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     .startTime(new Date()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     .endTime(new Date()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     .updateTime(new Date()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     .type(upLoadRequest.getExportType().getRemark()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     .idDatas(upLoadRequest.getExportType().getKey()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     .scheduleType(1) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     .build(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             basicDownloadService.insertDownloadStatus(downloadStatus); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             return ResultVOUtils.success(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } catch (Exception e) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             e.printStackTrace(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             return ResultVOUtils.error(ResultEnum.NOT_NETWORK, e.getMessage()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final BasicBussinessTypeDao basicBussinessTypeDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final BasicBusTypeChangeDao busTypeChangeDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final ThrBusTypeOriginDao thrBusTypeOriginDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     /** | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * 保存上传的单据类型数据 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * @param bean | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      */ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private void saveUploadDocumentTypeData(SpsSyncBusResponse bean) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getBussinessTypeEntities())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             basicBussinessTypeDao.insertOrUpdateBatch(bean.getBussinessTypeEntities()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getBusTypeChangeEntities())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             busTypeChangeDao.insertOrUpdateBatch(bean.getBusTypeChangeEntities()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getThrBusTypeOriginEntities())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             thrBusTypeOriginDao.insertOrUpdateBatch(bean.getThrBusTypeOriginEntities()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final IoCodeLostMapper ioCodeLostMapper; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final IoCodeRelMapper ioCodeRelMapper; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     /** | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * 保存上传的其他数据 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * @param bean | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      */ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private void saveUploadOtherData(SpsSyncOtherDataResponse bean) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getIoCodeLostList())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             ioCodeLostMapper.insertOrUpdateBatch(bean.getIoCodeLostList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getIoCodeRelList())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             ioCodeRelMapper.insertOrUpdateBatch(bean.getIoCodeRelList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final BasicHospTypeDao basicHospTypeDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final UdiRelevanceDao udiRelevanceDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final BasicProductsDao basicProductsDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final CompanyProductRelevanceDao relevanceDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final BasicCorpDao corpDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final SupCertDao supCertDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final SupCertSetDao supCertSetDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final SupCompanyDao supCompanyDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final SupManufacturerDao supManufacturerDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private final SupProductDao supProductDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     /** | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * 保存上传的基础数据 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * @param bean | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      */ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private void saveUploadBasicData(SpsSyncBasicDataResponse bean) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getHospTypeList())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             basicHospTypeDao.insertOrUpdateBatch(bean.getHospTypeList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getUdiRelevanceList())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             udiRelevanceDao.insertOrUpdateBatch(bean.getUdiRelevanceList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getProductsList())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             basicProductsDao.insertOrUpdateBatch(bean.getProductsList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getRelevanceList())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             relevanceDao.insertOrUpdateBatch(bean.getRelevanceList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getCorpList())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             corpDao.insertOrUpdateBatch(bean.getCorpList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getSupCertList())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             supCertDao.insertOrUpdateBatch(bean.getSupCertList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getSupCertSetList())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             supCertSetDao.insertOrUpdateBatch(bean.getSupCertSetList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getSupCompanyList())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             supCompanyDao.insertOrUpdateBatch(bean.getSupCompanyList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getSupManufacturerList())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             supManufacturerDao.insertOrUpdateBatch(bean.getSupManufacturerList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollectionUtil.isNotEmpty(bean.getSupProductList())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             supProductDao.insertOrUpdateBatch(bean.getSupProductList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     //接收中继服务、UDI管理系统上传单据
 |  |  |  |     //接收中继服务、UDI管理系统上传单据
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     @AuthRuleAnnotation("sps/sync/order/upload") |  |  |  |     @AuthRuleAnnotation("sps/sync/order/upload") | 
			
		
	
		
		
			
				
					
					|  |  |  |     @PostMapping("/sps/sync/order/upload") |  |  |  |     @PostMapping("/sps/sync/order/upload") | 
			
		
	
	
		
		
			
				
					|  |  | 
 |