Browse Source

修改bug

Wei Ruifeng 4 years ago
parent
commit
9cb88371ee

+ 1 - 1
lift-ud-service/src/main/java/cn/com/ty/lift/ud/chat/mapper/LiftCaseMapper.java

@@ -178,7 +178,7 @@ public interface LiftCaseMapper extends BaseMapper<LiftCaseEntity> {
     @Select("SELECT * FROM lift_case WHERE ((data_table=1 AND statuz=3) OR (data_table=2 AND statuz=4)) AND DATE_SUB(create_time, INTERVAL -1 DAY)<NOW()")
     List<LiftCaseEntity> getAllToSueLiftCase();
 
-    @Select("SELECT * FROM lift_case WHERE (((data_table=1 AND statuz=1) OR (data_table=2 AND statuz=0)) AND (charger_id!=-2) AND accept_status=0) OR(((data_table=1 AND statuz=1) OR (data_table=2 AND statuz=0)) AND is_platform_specified=1 AND accept_status=0 ) AND create_time < DATE_FORMAT(ADDDATE(NOW(),INTERVAL -20 MINUTE),'%Y-%m-%d %H:%i:%s') ")
+    @Select("SELECT * FROM lift_case WHERE (((data_table=1 AND statuz=1) OR (data_table=2 AND statuz=0)) AND (charger_id!=-2) AND accept_status=0) OR(((data_table=1 AND statuz=1) OR (data_table=2 AND statuz=0)) AND is_platform_specified=1 AND accept_status=0 ) AND create_time < DATE_FORMAT(ADDDATE(NOW(),INTERVAL -30 MINUTE),'%Y-%m-%d %H:%i:%s') ")
     List<LiftCaseEntity> getAllTimeOutCase();
     
     @Update("UPDATE lift_case SET charger_id=#{chargeId} WHERE id=#{id} ")

+ 2 - 2
lift-ud-service/src/main/java/cn/com/ty/lift/ud/chat/mapper/LiftCaseMapper.xml

@@ -862,9 +862,9 @@
 
   <select id="selectDealingCount" resultType="java.lang.Integer">
   select count(0) from (
-  select * from lift_case where charger_id=#{userId} and data_table = 1 and FIND_IN_SET(statuz,'1,2,3,4,5,7,8')
+  select * from lift_case where charger_id=#{userId} and data_table = 1 and FIND_IN_SET(statuz,'2,3,4')
   union
-  select * from lift_case where charger_id=#{userId} and data_table = 2 and FIND_IN_SET(statuz,'0,1,2,3,4,5,7,8')
+  select * from lift_case where charger_id=#{userId} and data_table = 2 and FIND_IN_SET(statuz,'1,3')
   )temp
   </select>
 </mapper>

+ 1 - 1
lift-ud-service/src/main/java/cn/com/ty/lift/ud/shopping/mapper/ShoppingOperateMapper.java

@@ -15,6 +15,6 @@ import cn.com.ty.lift.ud.shopping.mapper.entity.ShoppingOperateEntity;
  */
 public interface ShoppingOperateMapper extends BaseMapper<ShoppingOperateEntity> {
 
-	@Select("SELECT * FROM shopping_operate WHERE user_id=#{userId} AND TYPE=#{type} AND data_id=#{dataId}")
+	@Select("SELECT * FROM shopping_operate WHERE user_id=#{userId} AND `type`=#{type} AND data_id=#{dataId}")
 	ShoppingOperateEntity findByUserAndId(@Param("userId")Long userId,@Param("dataId") Long dataId,@Param("type")Integer type);
 }