Browse Source

我的交易列表返回信息同步消息接口

wxd 2 days ago
parent
commit
6d87cfa391

+ 2 - 0
alien-entity/src/main/java/shop/alien/entity/second/vo/SellGoodsVo.java

@@ -166,5 +166,7 @@ public class SellGoodsVo extends SecondGoods {
     @TableField("cancel_reason_supplement")
     private String cancelReasonSupplement;
 
+    @ApiModelProperty(value = "当前时间是否超过交易时间  0-否  1-是")
+    private String timeOutFlag;
 
 }

+ 1 - 0
alien-entity/src/main/java/shop/alien/mapper/second/SecondGoodsMapper.java

@@ -279,6 +279,7 @@ public interface SecondGoodsMapper extends BaseMapper<SecondGoods> {
             "str.cancel_user_id, " + // 取消交易id
             "str.cancel_reason, " + // 取消交易原因
             "str.cancel_reason_supplement, " + // 取消交易原因补充
+            "   if (now() >= str.transaction_time, 1, 0) timeOutFlag "+
             "sg.*, " +
             "    CASE " +
             "        WHEN str.buyer_id = #{userId} THEN str.seller_id " +