|  |  | @ -10,12 +10,10 @@ import com.glxp.api.constant.BasicProcessStatus; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.basic.BasicCorpsImportDetailEntity; |  |  |  | import com.glxp.api.entity.basic.BasicCorpsImportDetailEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.basic.BasicCorpsImportLogEntity; |  |  |  | import com.glxp.api.entity.basic.BasicCorpsImportLogEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.req.basic.FilterCorpImportLogRequest; |  |  |  | import com.glxp.api.req.basic.FilterCorpImportLogRequest; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.req.basic.PostBasicCorpRequest; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.req.system.DeleteRequest; |  |  |  | import com.glxp.api.req.system.DeleteRequest; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.res.PageSimpleResponse; |  |  |  | import com.glxp.api.res.PageSimpleResponse; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.res.basic.BasicCorpExportLogResponse; |  |  |  | import com.glxp.api.res.basic.BasicCorpExportLogResponse; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.auth.CustomerService; |  |  |  | import com.glxp.api.service.auth.CustomerService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.basic.BasicCorpImportDetailService; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.basic.BasicCorpImportLogService; |  |  |  | import com.glxp.api.service.basic.BasicCorpImportLogService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.thrsys.ThrSystemService; |  |  |  | import com.glxp.api.service.thrsys.ThrSystemService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.CustomUtil; |  |  |  | import com.glxp.api.util.CustomUtil; | 
			
		
	
	
		
		
			
				
					|  |  | @ -35,8 +33,6 @@ public class BasicCorpImportLogController { | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Resource |  |  |  |     @Resource | 
			
		
	
		
		
			
				
					
					|  |  |  |     BasicCorpImportLogService basicCorpImportLogService; |  |  |  |     BasicCorpImportLogService basicCorpImportLogService; | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Resource |  |  |  |     @Resource | 
			
		
	
		
		
			
				
					
					|  |  |  |     BasicCorpImportDetailService basicCorpImportDetailService; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Resource |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     ThrSystemService thrSystemService; |  |  |  |     ThrSystemService thrSystemService; | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Resource |  |  |  |     @Resource | 
			
		
	
		
		
			
				
					
					|  |  |  |     CustomerService customerService; |  |  |  |     CustomerService customerService; | 
			
		
	
	
		
		
			
				
					|  |  | @ -59,23 +55,6 @@ public class BasicCorpImportLogController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.success(pageSimpleResponse); |  |  |  |         return ResultVOUtils.success(pageSimpleResponse); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     @GetMapping("/udiwms/corps/importLog/filterDetail") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse filterDetail(FilterCorpImportLogRequest filterCorpImportLogRequest, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                                      BindingResult bindingResult) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (bindingResult.hasErrors()) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         List<BasicCorpsImportDetailEntity> corpImportDetailEntities = basicCorpImportDetailService.filterCorpImport(filterCorpImportLogRequest); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         PageInfo<BasicCorpsImportDetailEntity> pageInfo; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         pageInfo = new PageInfo<>(corpImportDetailEntities); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         PageSimpleResponse<BasicCorpsImportDetailEntity> pageSimpleResponse = new PageSimpleResponse<>(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         pageSimpleResponse.setTotal(pageInfo.getTotal()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         pageSimpleResponse.setList(corpImportDetailEntities); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.success(pageSimpleResponse); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     @PostMapping("/udiwms/corps/importLog/deleteLog") |  |  |  |     @PostMapping("/udiwms/corps/importLog/deleteLog") | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse deleteLog(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) { |  |  |  |     public BaseResponse deleteLog(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -89,25 +68,11 @@ public class BasicCorpImportLogController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (corpImportLogEntities != null && corpImportLogEntities.size() > 0) { |  |  |  |         if (corpImportLogEntities != null && corpImportLogEntities.size() > 0) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             BasicCorpsImportLogEntity corpImportLogEntity = corpImportLogEntities.get(0); |  |  |  |             BasicCorpsImportLogEntity corpImportLogEntity = corpImportLogEntities.get(0); | 
			
		
	
		
		
			
				
					
					|  |  |  |             basicCorpImportLogService.deleteById(corpImportLogEntity.getId() + ""); |  |  |  |             basicCorpImportLogService.deleteById(corpImportLogEntity.getId() + ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |             basicCorpImportDetailService.deleteByGenkey(corpImportLogEntity.getGenKey()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.success("删除成功"); |  |  |  |         return ResultVOUtils.success("删除成功"); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     @PostMapping("/udiwms/corps/importLog/delete") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse delete(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (bindingResult.hasErrors()) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (basicCorpImportDetailService.deleteById(deleteRequest.getId())) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.success("删除成功"); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         else |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(500, "删除成功"); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     //往来单位信息文件导入
 |  |  |  |     //往来单位信息文件导入
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     @PostMapping("/udiwms/corps/importLog/upload") |  |  |  |     @PostMapping("/udiwms/corps/importLog/upload") | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse uploadCorp(@RequestParam("file") List<MultipartFile> files, @RequestParam("thirdSys") String thirdSys) { |  |  |  |     public BaseResponse uploadCorp(@RequestParam("file") List<MultipartFile> files, @RequestParam("thirdSys") String thirdSys) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -136,12 +101,12 @@ public class BasicCorpImportLogController { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     corpImportLogEntity.setFromType("文件导入"); |  |  |  |                     corpImportLogEntity.setFromType("文件导入"); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     corpImportLogEntity.setUpdateTime(new Date()); |  |  |  |                     corpImportLogEntity.setUpdateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     corpImportLogEntity.setCreateTime(new Date()); |  |  |  |                     corpImportLogEntity.setCreateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     corpImportLogEntity.setCreateUser(String.valueOf(customerService.getUserId())); |  |  |  | //                    corpImportLogEntity.setCreateUser(String.valueOf(customerService.getUserId()));
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     corpImportLogEntity.setUpdateUser(String.valueOf(customerService.getUserId())); |  |  |  | //                    corpImportLogEntity.setUpdateUser(String.valueOf(customerService.getUserId()));
 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     corpImportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_UNPROCESS); |  |  |  |                     corpImportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_UNPROCESS); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     corpImportLogEntity.setUpdateTime(new Date(System.currentTimeMillis())); |  |  |  |                     corpImportLogEntity.setUpdateTime(new Date(System.currentTimeMillis())); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     basicCorpImportLogService.insertImportLog(corpImportLogEntity); |  |  |  |                     basicCorpImportLogService.insertImportLog(corpImportLogEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     basicCorpImportLogService.importJsonData(data); |  |  |  |                     basicCorpImportLogService.importJsonData(data,corpImportLogEntity.getGenKey()); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     corpImportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_SUCCESS); |  |  |  |                     corpImportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_SUCCESS); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     basicCorpImportLogService.updateImportLog(corpImportLogEntity); |  |  |  |                     basicCorpImportLogService.updateImportLog(corpImportLogEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } else { |  |  |  |                 } else { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |