营养科普富文本图片链接处理
This commit is contained in:
parent
b5bc095e7e
commit
09a6ee13cb
|
|
@ -83,6 +83,9 @@ public class HealthPopularScience extends BaseEntity {
|
|||
/** 是否删除 0-正常 2-删除 */
|
||||
private Long delFlag;
|
||||
|
||||
@ApiModelProperty("慢性病id数组")
|
||||
private String[] chronicIdArray;
|
||||
|
||||
@ApiModelProperty("慢性病id 多个用,分割")
|
||||
private String chronicIds;
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,9 @@ public class HealthPopularScienceServiceImpl implements IHealthPopularScienceSer
|
|||
*/
|
||||
@Override
|
||||
public List<HealthPopularScience> selectHealthPopularScienceList(HealthPopularScience healthPopularScience) {
|
||||
String chronicIds = healthPopularScience.getChronicIds();
|
||||
String[] chronicIdArray = chronicIds.split(",");
|
||||
healthPopularScience.setChronicIdArray(chronicIdArray);
|
||||
return healthPopularScienceMapper.selectHealthPopularScienceList(healthPopularScience);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<where>
|
||||
hps.del_flag = 0
|
||||
<if test="articleId != null "> and hps.article_id = #{articleId}</if>
|
||||
<if test="articleTitle != null and articleTitle != ''"> and hps.article_title = #{articleTitle}</if>
|
||||
<if test="articleTitle != null and articleTitle != ''"> and hps.article_title like concat('%', #{articleTitle}, '%')</if>
|
||||
<if test="coverPhoto != null and coverPhoto != ''"> and hps.cover_photo = #{coverPhoto}</if>
|
||||
<if test="articleType != null "> and hps.article_type = #{articleType}</if>
|
||||
<if test="articleContent != null and articleContent != ''"> and hps.article_content = #{articleContent}</if>
|
||||
|
|
@ -48,6 +48,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="ifPushed != null "> and hps.if_pushed = #{ifPushed}</if>
|
||||
<if test="pushTime != null "> and hps.push_time = #{pushTime}</if>
|
||||
<if test="summary != null and summary != ''"> and hps.summary = #{summary}</if>
|
||||
<if test="chronicIdArray != null and chronicIdArray != ''">
|
||||
and hac.chronic_id in
|
||||
<foreach item="chronicId" collection="chronicIdArray" open="(" separator="," close=")">
|
||||
#{chronicId}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY
|
||||
hps.article_id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue