Sfoglia il codice sorgente

Merge branch 'feature/0613-opt' into develop-new

yuanliang 1 anno fa
parent
commit
ab09dd4b5a

+ 11 - 11
cooleshow-auth/auth-server/src/main/java/com/yonge/cooleshow/auth/service/impl/SysUserServiceImpl.java

@@ -434,16 +434,16 @@ public class SysUserServiceImpl extends BaseServiceImpl<Long, SysUser> implement
     @Transactional(rollbackFor = Exception.class)
     public HttpResponseResult<Void> logoffByPhone(String phone) {
 
-        try {
-            HttpResponseResult<List<String>> check = adminFeignService.accountLogoffCheck(phone);
-            List<String> errMsg = check.getData();
-            if (!CollectionUtils.isEmpty(errMsg)) {
-                return HttpResponseResult.failed(5101, null, String.join(",", errMsg));
-            }
-        } catch (Exception e) {
-            throw new BizException("数据检查失败");
-        }
-
+        // todo: 暂时不上
+//        try {
+//            HttpResponseResult<List<String>> check = adminFeignService.accountLogoffCheck(phone);
+//            List<String> errMsg = check.getData();
+//            if (!CollectionUtils.isEmpty(errMsg)) {
+//                return HttpResponseResult.failed(5101, null, String.join(",", errMsg));
+//            }
+//        } catch (Exception e) {
+//            throw new BizException("数据检查失败");
+//        }
         int num = sysUserDao.countByPhone(phone);
         //冻结相关所有客户端账号
         sysUserDao.updateLockStatusByPhone(phone);
@@ -453,7 +453,7 @@ public class SysUserServiceImpl extends BaseServiceImpl<Long, SysUser> implement
             throw new BizException("用户不存在或已注销");
         }
         // 解散群、退群、删除好友关系
-        adminFeignService.logoffQuitImGroup(phone);
+//        adminFeignService.logoffQuitImGroup(phone);
 
         //退出登录
         tokenService.revokeTokenByPhone(phone);

+ 2 - 1
cooleshow-mall/mall-admin/src/main/resources/config/mybatis/OmsOrderDao.xml

@@ -88,7 +88,8 @@
             oi.product_price item_product_price,
             oi.product_quantity item_product_quantity,
             oi.product_attr item_product_attr,
-            if(oora.status = 2, 1, 0) as item_returnStatus,
+            if(oora.status is null,-1,oora.status) item_returnStatus,
+            if(oora.status = 2, 3, if(o.status = 2, 2, 1))  item_productStatus,
             oh.id history_id,
             oh.operate_man history_operate_man,
             oh.create_time history_create_time,

+ 11 - 0
cooleshow-mall/mall-mbg/src/main/java/com/yonge/cooleshow/mbg/model/OmsOrderItem.java

@@ -69,6 +69,9 @@ public class OmsOrderItem implements Serializable {
     @ApiModelProperty("退货状态:-1 ->未退款;0->待处理;1->退货中;2->已完成;3->已拒绝")
     private Integer returnStatus;
 
+    @ApiModelProperty("商品状态:1:待发货,2:已发货,3:已退货")
+    private Integer productStatus;
+
     private BigDecimal precisionAmount;
 
     private static final long serialVersionUID = 1L;
@@ -304,4 +307,12 @@ public class OmsOrderItem implements Serializable {
     public void setReturnStatus(Integer returnStatus) {
         this.returnStatus = returnStatus;
     }
+
+    public Integer getProductStatus() {
+        return productStatus;
+    }
+
+    public void setProductStatus(Integer productStatus) {
+        this.productStatus = productStatus;
+    }
 }

+ 1 - 0
cooleshow-mall/mall-mbg/src/main/resources/config/mybatis/OmsOrderItemMapper.xml

@@ -24,6 +24,7 @@
     <result column="gift_growth" jdbcType="INTEGER" property="giftGrowth" />
     <result column="product_attr" jdbcType="VARCHAR" property="productAttr" />
     <result column="returnStatus" jdbcType="INTEGER" property="returnStatus" />
+    <result column="productStatus" jdbcType="INTEGER" property="productStatus" />
     <result column="promoter_id" jdbcType="INTEGER" property="promoterId" />
     <result column="share_proportion_" jdbcType="INTEGER" property="shareProportion" />
     <result column="precision_amount" jdbcType="INTEGER" property="precisionAmount" />