Browse Source

处理前端数据问题

anderx 3 years ago
parent
commit
1168d49a3b

+ 6 - 0
src/main/java/com/goafanti/common/mapper/PublicReleaseMapper.xml

@@ -551,6 +551,9 @@
         <if test="aid !=null">
         and a.aid= #{aid}
         </if>
+      <if test="statusType ==1">
+        and a.status in (0,1,2,4)
+      </if>
 	</if>
 	<if test="type==1">
       and a.assist in(0,1)
@@ -620,6 +623,9 @@
       <if test="aid !=null">
         and a.aid= #{aid}
       </if>
+      <if test="statusType ==1">
+        and a.status in (0,1,2,4)
+      </if>
     </if>
     <if test="type==1">
       and a.assist in(0,1)

+ 2 - 0
src/main/java/com/goafanti/weChat/service/impl/PublicReleaseServiceImpl.java

@@ -720,6 +720,8 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 		Map<String, Object> map = new HashMap<>();
 		if (type==null)type=0;
 		map.put("type",type);
+		//statusType=1情况下
+		map.put("statusType",1);
 		if (dateType==1){
 			Date date = new Date();
 			String clockTime=DateUtils.formatDate(date,AFTConstants.YYYYMMDDHHMMSS);