lidongdong
2023-08-30 a0cc44d664f3d33388d6ce63f6b9ece17eefbf31
小程序商家详情接口
3个文件已修改
29 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/XmostBeautifulApi.java 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/VolunteerMerchantDao.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/VolunteerMerchantMapper.xml 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/XmostBeautifulApi.java
@@ -237,7 +237,7 @@
    }
    /**
     * 分页查询
     * 分页查询商家分类
     * @param
     * @return
     */
@@ -249,9 +249,16 @@
    }
    /**
     * 获取商家详情
     * @param id
     * @return
     */
    @GetMapping("/VolunteerMerchant/getById")
    public R volunteerMerchantGetById(@RequestParam("id") String id)
    {
        return communityService.volunteerMerchantGetById(id);
    }
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/VolunteerMerchantDao.java
@@ -46,6 +46,13 @@
    int delete(@Param("id") String id);
    /**
     * 判断是否是商家
     * @param userId
     * @return
     */
    int isMerchant(@Param("userId") String userId);
    /**
     * 根据电话号码  或者姓名查询用户
     * @param
     * @return
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/VolunteerMerchantMapper.xml
@@ -55,8 +55,6 @@
        update_time
    </sql>
    <select id="getById" resultMap="VolunteerMerchantMap">
        select <include refid="beas_sql"/>
        from volunteer_merchant
@@ -352,7 +350,10 @@
        </where>
    </select>
    <select id="isMerchant"  parameterType="String">
        select count(id) from volunteer_merchant
        where volunteer_merchant.user_id=#{userId}
    </select>