Browse Source

添加moduleType

master
Jackwang 4 years ago
parent
commit
966374ba04
  1. 5
      epdc-cloud-news/src/main/java/com/elink/esua/epdc/entity/ModuleTypeEntity.java
  2. 7
      epdc-cloud-news/src/main/resources/mapper/ModuleTypeDao.xml

5
epdc-cloud-news/src/main/java/com/elink/esua/epdc/entity/ModuleTypeEntity.java

@ -50,6 +50,11 @@ public class ModuleTypeEntity extends BaseEntity {
*/
private String pids;
/**
* 栏目类别
*/
private String moduleType;
/**
* 类别名称
*/

7
epdc-cloud-news/src/main/resources/mapper/ModuleTypeDao.xml

@ -54,8 +54,11 @@
<if test="pid != null and pid != ''">
and pid=#{pid}
</if>
<if test="pid == null or pid == ''">
and pid=0
<!-- <if test="pid == null or pid == ''">-->
<!-- and pid=0-->
<!-- </if>-->
<if test="typeCode != null or typeCode != ''">
and type_code=#{typeCode}
</if>
order by create_date desc
LIMIT #{pageIndex},#{pageSize}

Loading…
Cancel
Save