unescape to goods get the intro
This commit is contained in:
		
							parent
							
								
									6ef7a98d81
								
							
						
					
					
						commit
						1f7dff38fc
					
				| @ -1,6 +1,8 @@ | ||||
| package cn.lili.modules.goods.entity.dos; | ||||
| 
 | ||||
| import cn.hutool.core.convert.Convert; | ||||
| import cn.hutool.core.text.CharSequenceUtil; | ||||
| import cn.hutool.http.HtmlUtil; | ||||
| import cn.hutool.json.JSONUtil; | ||||
| import cn.lili.common.enums.ResultCode; | ||||
| import cn.lili.common.exception.ServiceException; | ||||
| @ -247,4 +249,19 @@ public class Goods extends BaseEntity { | ||||
| 
 | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     public String getIntro() { | ||||
|         if (CharSequenceUtil.isNotEmpty(intro)) { | ||||
|             return HtmlUtil.unescape(intro); | ||||
|         } | ||||
|         return intro; | ||||
|     } | ||||
| 
 | ||||
|     public String getMobileIntro() { | ||||
|         if (CharSequenceUtil.isNotEmpty(mobileIntro)) { | ||||
|             return HtmlUtil.unescape(mobileIntro); | ||||
|         } | ||||
|         return mobileIntro; | ||||
|     } | ||||
| 
 | ||||
| } | ||||
| @ -10,6 +10,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; | ||||
| import io.swagger.annotations.ApiModel; | ||||
| import io.swagger.annotations.ApiModelProperty; | ||||
| import lombok.Data; | ||||
| import lombok.EqualsAndHashCode; | ||||
| import lombok.NoArgsConstructor; | ||||
| 
 | ||||
| import javax.validation.constraints.NotNull; | ||||
| @ -21,6 +22,7 @@ import java.util.Date; | ||||
|  * @author Chopper | ||||
|  * @since 2020-03-19 10:44 上午 | ||||
|  */ | ||||
| @EqualsAndHashCode(callSuper = true) | ||||
| @Data | ||||
| @TableName("li_seckill") | ||||
| @ApiModel(value = "秒杀活动活动") | ||||
|  | ||||
| @ -5,6 +5,7 @@ import cn.lili.mybatis.BaseEntity; | ||||
| import com.fasterxml.jackson.annotation.JsonFormat; | ||||
| import io.swagger.annotations.ApiModelProperty; | ||||
| import lombok.Data; | ||||
| import lombok.EqualsAndHashCode; | ||||
| 
 | ||||
| import javax.validation.constraints.NotEmpty; | ||||
| import java.util.Date; | ||||
| @ -15,6 +16,7 @@ import java.util.Date; | ||||
|  * @author Chopper | ||||
|  * @since 2020-03-19 10:44 上午 | ||||
|  */ | ||||
| @EqualsAndHashCode(callSuper = true) | ||||
| @Data | ||||
| public class BasePromotion extends BaseEntity { | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 paulGao
						paulGao