|  | @ -7,6 +7,7 @@ import com.epmet.commons.tools.annotation.LoginUser; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.annotation.MaskResponse; |  |  | import com.epmet.commons.tools.annotation.MaskResponse; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.aop.NoRepeatSubmit; |  |  | import com.epmet.commons.tools.aop.NoRepeatSubmit; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.constant.NumConstant; |  |  | import com.epmet.commons.tools.constant.NumConstant; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import com.epmet.commons.tools.page.PageData; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.security.dto.TokenDto; |  |  | import com.epmet.commons.tools.security.dto.TokenDto; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.utils.ConvertUtils; |  |  | import com.epmet.commons.tools.utils.ConvertUtils; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.utils.DateUtils; |  |  | import com.epmet.commons.tools.utils.DateUtils; | 
			
		
	
	
		
		
			
				
					|  | @ -18,10 +19,12 @@ import com.epmet.commons.tools.validator.ValidatorUtils; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.validator.group.AddGroup; |  |  | import com.epmet.commons.tools.validator.group.AddGroup; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.validator.group.DefaultGroup; |  |  | import com.epmet.commons.tools.validator.group.DefaultGroup; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.validator.group.UpdateGroup; |  |  | import com.epmet.commons.tools.validator.group.UpdateGroup; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import com.epmet.dto.IcBirthRecordDTO; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.dto.IcMoveInRecordDTO; |  |  | import com.epmet.dto.IcMoveInRecordDTO; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.dto.form.IcMoveInAddEditFormDTO; |  |  | import com.epmet.dto.form.IcMoveInAddEditFormDTO; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.dto.form.IcMoveInListFormDTO; |  |  | import com.epmet.dto.form.IcMoveInListFormDTO; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.dto.result.IcMoveInListResultDTO; |  |  | import com.epmet.dto.result.IcMoveInListResultDTO; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import com.epmet.excel.IcBirthRecordExcel; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.excel.IcMoveInRecordExcel; |  |  | import com.epmet.excel.IcMoveInRecordExcel; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.service.IcMoveInRecordService; |  |  | import com.epmet.service.IcMoveInRecordService; | 
			
		
	
		
		
			
				
					|  |  | import lombok.extern.slf4j.Slf4j; |  |  | import lombok.extern.slf4j.Slf4j; | 
			
		
	
	
		
		
			
				
					|  | @ -57,9 +60,9 @@ public class IcMoveInRecordController { | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     @RequestMapping("list") |  |  |     @RequestMapping("list") | 
			
		
	
		
		
			
				
					|  |  |     @MaskResponse(fieldNames = { "mobile", "idCard" }, fieldsMaskType = { MaskResponse.MASK_TYPE_MOBILE, MaskResponse.MASK_TYPE_ID_CARD }) |  |  |     @MaskResponse(fieldNames = { "mobile", "idCard" }, fieldsMaskType = { MaskResponse.MASK_TYPE_MOBILE, MaskResponse.MASK_TYPE_ID_CARD }) | 
			
		
	
		
		
			
				
					
					|  |  |     public Result<IcMoveInListResultDTO> list(@LoginUser TokenDto tokenDto, @RequestBody IcMoveInListFormDTO formDTO){ |  |  |     public Result<PageData<IcMoveInListResultDTO>> list(@LoginUser TokenDto tokenDto, @RequestBody IcMoveInListFormDTO formDTO){ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         formDTO.setCustomerId(tokenDto.getCustomerId()); |  |  |         formDTO.setCustomerId(tokenDto.getCustomerId()); | 
			
		
	
		
		
			
				
					
					|  |  |         return new Result<IcMoveInListResultDTO>().ok(icMoveInRecordService.list(formDTO)); |  |  |         return new Result<PageData<IcMoveInListResultDTO>>().ok(icMoveInRecordService.list(formDTO)); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     @NoRepeatSubmit |  |  |     @NoRepeatSubmit | 
			
		
	
	
		
		
			
				
					|  | @ -89,13 +92,9 @@ public class IcMoveInRecordController { | 
			
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     @PostMapping("export") |  |  |     @PostMapping("export") | 
			
		
	
		
		
			
				
					
					|  |  |     public void export(@LoginUser TokenDto tokenDto, @RequestBody IcMoveInListFormDTO formDTO, HttpServletResponse response) throws Exception { |  |  |     public void export(@LoginUser TokenDto tokenDto, @RequestBody IcMoveInListFormDTO formDTO, HttpServletResponse response) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         formDTO.setCustomerId(tokenDto.getCustomerId()); |  |  |         formDTO.setCustomerId(tokenDto.getCustomerId()); | 
			
		
	
		
		
			
				
					
					|  |  |        /* formDTO.setIsPage(true); |  |  |         formDTO.setIsPage(false); | 
			
				
				
			
		
	
		
		
			
				
					|  |  |         IcMoveInListResultDTO resultDTO = icMoveInRecordService.list(formDTO); |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         List<IcMoveInRecordExcel> list = ConvertUtils.sourceToTarget(resultDTO.getList(), IcMoveInRecordExcel.class); |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         ExcelUtils.exportExcelToTarget(response, null, list, IcMoveInRecordExcel.class);*/ |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					|  |  |         ExcelWriter excelWriter = null; |  |  |         ExcelWriter excelWriter = null; | 
			
		
	
		
		
			
				
					|  |  |         formDTO.setPageSize(NumConstant.TEN_THOUSAND); |  |  |         formDTO.setPageSize(NumConstant.TEN_THOUSAND); | 
			
		
	
		
		
			
				
					|  |  |         int pageNo = NumConstant.ONE; |  |  |         int pageNo = NumConstant.ONE; | 
			
		
	
	
		
		
			
				
					|  | @ -103,9 +102,10 @@ public class IcMoveInRecordController { | 
			
		
	
		
		
			
				
					|  |  |             String fileName = "迁入管理"+DateUtils.format(new Date())+".xlsx"; |  |  |             String fileName = "迁入管理"+DateUtils.format(new Date())+".xlsx"; | 
			
		
	
		
		
			
				
					|  |  |             excelWriter = EasyExcel.write(ExcelUtils.getOutputStreamForExcel(fileName, response), IcMoveInRecordExcel.class).build(); |  |  |             excelWriter = EasyExcel.write(ExcelUtils.getOutputStreamForExcel(fileName, response), IcMoveInRecordExcel.class).build(); | 
			
		
	
		
		
			
				
					|  |  |             WriteSheet writeSheet = EasyExcel.writerSheet("Sheet1").registerWriteHandler(new FreezeAndFilter()).build(); |  |  |             WriteSheet writeSheet = EasyExcel.writerSheet("Sheet1").registerWriteHandler(new FreezeAndFilter()).build(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             PageData<IcMoveInListResultDTO> data = null; | 
			
		
	
		
		
			
				
					|  |  |             List<IcMoveInRecordExcel> list = null; |  |  |             List<IcMoveInRecordExcel> list = null; | 
			
		
	
		
		
			
				
					|  |  |             do { |  |  |             do { | 
			
		
	
		
		
			
				
					
					|  |  |                 IcMoveInListResultDTO data = icMoveInRecordService.list(formDTO); |  |  |                 data = icMoveInRecordService.list(formDTO); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |                 list = ConvertUtils.sourceToTarget(data.getList(), IcMoveInRecordExcel.class); |  |  |                 list = ConvertUtils.sourceToTarget(data.getList(), IcMoveInRecordExcel.class); | 
			
		
	
		
		
			
				
					|  |  |                 formDTO.setPageNo(++pageNo); |  |  |                 formDTO.setPageNo(++pageNo); | 
			
		
	
		
		
			
				
					|  |  |                 excelWriter.write(list, writeSheet); |  |  |                 excelWriter.write(list, writeSheet); | 
			
		
	
	
		
		
			
				
					|  | @ -120,10 +120,10 @@ public class IcMoveInRecordController { | 
			
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     @RequestMapping("detail") |  |  |     @RequestMapping("detail") | 
			
		
	
		
		
			
				
					
					|  |  |     public Result<IcMoveInListResultDTO.IcMoveInList> detail(@LoginUser TokenDto tokenDto, @RequestBody IcMoveInListFormDTO formDTO){ |  |  |     public Result<IcMoveInListResultDTO> detail(@LoginUser TokenDto tokenDto, @RequestBody IcMoveInListFormDTO formDTO){ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         ValidatorUtils.validateEntity(formDTO, UpdateGroup.class, DefaultGroup.class); |  |  |         ValidatorUtils.validateEntity(formDTO, UpdateGroup.class, DefaultGroup.class); | 
			
		
	
		
		
			
				
					|  |  |         formDTO.setCustomerId(tokenDto.getCustomerId()); |  |  |         formDTO.setCustomerId(tokenDto.getCustomerId()); | 
			
		
	
		
		
			
				
					
					|  |  |         return new Result<IcMoveInListResultDTO.IcMoveInList>().ok(icMoveInRecordService.detail(formDTO)); |  |  |         return new Result<IcMoveInListResultDTO>().ok(icMoveInRecordService.detail(formDTO)); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | 
 |