Explorar el Código

列表bug修改

Michael hace 8 años
padre
commit
2f6ca8af17

+ 9 - 9
src/main/java/com/goafanti/common/mapper/MessageFromSystemMapper.xml

@@ -447,7 +447,7 @@
 			a.consumer_id = #{uid,jdbcType=VARCHAR}
 			and a.send_time is null <!-- 未发送 -->
 			and c.is_draft = 0 <!-- 非草稿 -->
-			and c.delete_sign = false <!-- 未删除 -->
+			and c.delete_sign = 0 <!-- 未删除 -->
    </select>
    
    <update id="updateJpushEasemobAccount">
@@ -511,7 +511,7 @@
 		<if test="isDraft != null">
 			and a.is_draft = #{isDraft,jdbcType=INTEGER}
 		</if>
-			and a.delete_sign = false 
+			and a.delete_sign = 0 
 		<if test="page_sql!=null">
 				${page_sql}
 		</if>
@@ -534,7 +534,7 @@
 		<if test="isDraft != null">
 			and a.is_draft = #{isDraft,jdbcType=INTEGER}
 		</if>
-			and a.delete_sign = false 
+			and a.delete_sign = 0 
    </select>
    
    <select id="selectMessageWithGroup" resultType="com.goafanti.app.bo.IndexBo">
@@ -558,7 +558,7 @@
 					where
 						consumer_id = #{uid,jdbcType=VARCHAR}
 						and a.read_time is not null
-						and a.delete_sign = false
+						and a.delete_sign = 0
 						and b.subject = 1
 					order by
 						a.create_time desc limit 1
@@ -572,7 +572,7 @@
 					where
 						consumer_id = #{uid,jdbcType=VARCHAR}
 						and a.read_time is not null
-						and a.delete_sign = false
+						and a.delete_sign = 0
 						and b.subject = 1
 				) t2 on
 				t1.nouse = t2.nouse
@@ -594,7 +594,7 @@
 					where
 						consumer_id = #{uid,jdbcType=VARCHAR}
 						and a.read_time is not null
-						and a.delete_sign = false
+						and a.delete_sign = 0
 						and b.subject = 2
 					order by
 						a.create_time desc limit 1
@@ -608,7 +608,7 @@
 					where
 						consumer_id = #{uid,jdbcType=VARCHAR}
 						and a.read_time is not null
-						and a.delete_sign = false
+						and a.delete_sign = 0
 						and b.subject = 2
 				) t4 on
 				t3.nouse = t4.nouse
@@ -624,7 +624,7 @@
 			a.message_id = b.id
 		where
 			a.consumer_id = #{uid,jdbcType=VARCHAR}
-			and a.delete_sign = false
+			and a.delete_sign = 0
 			<if test="subject != null">
 				and b.subject = #{subject,jdbcType=INTEGER}
 			</if>
@@ -644,7 +644,7 @@
 			a.message_id = b.id
 		where
 			a.consumer_id = #{uid,jdbcType=VARCHAR}
-			and a.delete_sign = false
+			and a.delete_sign = 0
 			<if test="subject != null">
 				and b.subject = #{subject,jdbcType=INTEGER}
 			</if>

+ 2 - 0
src/main/java/com/goafanti/message/service/impl/MessageServiceImpl.java

@@ -151,6 +151,7 @@ public class MessageServiceImpl  extends BaseMybatisDao<MessageFromSystemMapper>
 				mp.setId(UUID.randomUUID().toString());
 				mp.setMessageId(mfs.getId());
 				mp.setConsumerId(cid);
+				target.add(mp);
 			}
 			if(target.size()>0) insertBatchProducer(target);
 		}else if(subject == SubjectType.YUN_YING.getTypeCode()){
@@ -161,6 +162,7 @@ public class MessageServiceImpl  extends BaseMybatisDao<MessageFromSystemMapper>
 				mp.setId(UUID.randomUUID().toString());
 				mp.setMessageId(mfs.getId());
 				mp.setConsumerId(cid);
+				target.add(mp);
 			}
 			if(target.size()>0) insertBatchProducer(target);
 		}