Bladeren bron

policyList类型不限数据查询修改

limin 7 jaren geleden
bovenliggende
commit
e548b55809
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      src/main/java/com/goafanti/common/mapper/PolicyMapper.xml

+ 2 - 2
src/main/java/com/goafanti/common/mapper/PolicyMapper.xml

@@ -697,7 +697,7 @@
 		  ,n.hotspot
 		  from news n
 		  left join district_glossory dg on dg.id = n.province_id 
-		  where audit_status = 2 
+		  where audit_status = 2 and (`type` = 0 or `type` = 98 or `type` = 99)
 		  <if test="policy.title != null ">
 		  and title like concat('%',#{policy.title,jdbcType=VARCHAR},'%')
 		  </if>
@@ -725,7 +725,7 @@
 		  select n.id
 		  from news n
 		  left join district_glossory dg on dg.id = n.province_id 
-		  where audit_status = 2 
+		  where audit_status = 2 and (`type` = 0 or `type` = 98 or `type` = 99)
 		  <if test="policy.title != null ">
 		  and title like concat('%',#{policy.title,jdbcType=VARCHAR},'%')
 		  </if>