Browse Source

商品更新下架

change 3 years ago
parent
commit
7ef3286be8

+ 1 - 1
zhongzheng-api/src/main/java/com/zhongzheng/controller/exam/ExamApplyController.java

@@ -119,7 +119,7 @@ public class ExamApplyController extends BaseController {
     public TableDataInfo<UserSubscribeVo> listSubscribe(UserSubscribeQueryBo bo) {
         startPage();
         ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
-        bo.setUserId(loginUser.getUser().getUserId());
+        bo.setUserId(18L);
         List<UserSubscribeVo> list = iUserSubscribeService.listSubscribe(bo);
         return getDataTable(list);
     }

+ 3 - 3
zhongzheng-system/src/main/resources/mapper/modules/user/UserSubscribeMapper.xml

@@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
     <select id="listSubscribe" parameterType="com.zhongzheng.modules.user.bo.UserSubscribeQueryBo" resultMap="UserSubscribeVo">
         SELECT
-            *,
+        us.*,
             (SELECT g.goods_name FROM goods g where us.goods_id = g.goods_id) as goods_name,
             (SELECT g.code FROM goods g where us.goods_id = g.goods_id) as goods_code,
             (SELECT g.stand_price FROM goods g where us.goods_id = g.goods_id) as stand_price,
@@ -112,10 +112,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
           <if test="beforeId != null ">
             and us.before_id =#{beforeId}
         </if>
-        <if test="exceedExamExpend != null and exceedExamExpend = 1">
+        <if test="exceedExamExpend != null and exceedExamExpend == 1">
             and us.exam_expend  = 1
         </if>
-        <if test="exceedExamExpend != null and exceedExamExpend = 2">
+        <if test="exceedExamExpend != null and exceedExamExpend == 2">
             and (us.exam_expend  is null or us.exam_expend = 0)
         </if>
         <if test="exceed != null ">