| 
						
						
							
								
							
						
						
					 | 
					@ -42,6 +42,7 @@ import com.epmet.dto.form.AdviceListFormDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.form.ReplyAdviceFormDTO; | 
					 | 
					 | 
					import com.epmet.dto.form.ReplyAdviceFormDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.result.AdviceDetailResultDTO; | 
					 | 
					 | 
					import com.epmet.dto.result.AdviceDetailResultDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.result.AdviceListResultDTO; | 
					 | 
					 | 
					import com.epmet.dto.result.AdviceListResultDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.epmet.dto.result.MyAdviceListResultDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.entity.UserAdviceEntity; | 
					 | 
					 | 
					import com.epmet.entity.UserAdviceEntity; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.entity.UserAdviceImgEntity; | 
					 | 
					 | 
					import com.epmet.entity.UserAdviceImgEntity; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.redis.UserAdviceRedis; | 
					 | 
					 | 
					import com.epmet.redis.UserAdviceRedis; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -278,6 +279,20 @@ public class UserAdviceServiceImpl extends BaseServiceImpl<UserAdviceDao, UserAd | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        return getPageData(result, AdviceListResultDTO.class); | 
					 | 
					 | 
					        return getPageData(result, AdviceListResultDTO.class); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    /** | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					     * @param pageSize | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					     * @param pageNo | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					     * @param loginUserId | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					     * @return java.util.List<com.epmet.dto.result.MyAdviceListResultDTO> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					     * @Description 居民端-我的建议列表 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					     * @Author liushaowen | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					     * @Date 2020/11/9 17:39 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					     */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    @Override | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    public List<MyAdviceListResultDTO> myAdviceList(int pageSize, int pageNo, String loginUserId) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        return baseDao.myAdviceList(pageSize, pageNo, loginUserId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private void auditText(String text) { | 
					 | 
					 | 
					    private void auditText(String text) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        TextScanParamDTO textScanParamDTO = new TextScanParamDTO(); | 
					 | 
					 | 
					        TextScanParamDTO textScanParamDTO = new TextScanParamDTO(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        TextTaskDTO taskDTO = new TextTaskDTO(); | 
					 | 
					 | 
					        TextTaskDTO taskDTO = new TextTaskDTO(); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -285,14 +300,14 @@ public class UserAdviceServiceImpl extends BaseServiceImpl<UserAdviceDao, UserAd | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        taskDTO.setDataId(UUID.randomUUID().toString().replace("-", "")); | 
					 | 
					 | 
					        taskDTO.setDataId(UUID.randomUUID().toString().replace("-", "")); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        textScanParamDTO.getTasks().add(taskDTO); | 
					 | 
					 | 
					        textScanParamDTO.getTasks().add(taskDTO); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Result<SyncScanResult> textSyncScanResult = ScanContentUtils.textSyncScan(scanApiUrl.concat(textSyncScanMethod), textScanParamDTO); | 
					 | 
					 | 
					        Result<SyncScanResult> textSyncScanResult = ScanContentUtils.textSyncScan(scanApiUrl.concat(textSyncScanMethod), textScanParamDTO); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        logger.info("用户建议文字审核入参:"+JSON.toJSONString(textScanParamDTO)); | 
					 | 
					 | 
					        logger.info("用户建议文字审核入参:" + JSON.toJSONString(textScanParamDTO)); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        logger.info("用户建议文字审核返参:"+JSON.toJSONString(textSyncScanResult)); | 
					 | 
					 | 
					        logger.info("用户建议文字审核返参:" + JSON.toJSONString(textSyncScanResult)); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        if (!textSyncScanResult.success()) { | 
					 | 
					 | 
					        if (!textSyncScanResult.success()) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            logger.warn("用户建议文字审核接口返回失败,返参:", JSON.toJSONString(textSyncScanResult)); | 
					 | 
					 | 
					            logger.warn("用户建议文字审核接口返回失败,返参:", JSON.toJSONString(textSyncScanResult)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            throw new RenException(EpmetErrorCode.SERVER_ERROR.getCode()); | 
					 | 
					 | 
					            throw new RenException(EpmetErrorCode.SERVER_ERROR.getCode()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } else { | 
					 | 
					 | 
					        } else { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if (!textSyncScanResult.getData().isAllPass()) { | 
					 | 
					 | 
					            if (!textSyncScanResult.getData().isAllPass()) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                logger.warn("用户建议文字审核失败,文字:",text); | 
					 | 
					 | 
					                logger.warn("用户建议文字审核失败,文字:", text); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                throw new RenException(EpmetErrorCode.ACT_REQ_SCAN_FAILED.getCode()); | 
					 | 
					 | 
					                throw new RenException(EpmetErrorCode.ACT_REQ_SCAN_FAILED.getCode()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |