| | |
| | | } |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * 分页查询商家分类 |
| | | * @param |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取商家详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/VolunteerMerchant/getById") |
| | | public R volunteerMerchantGetById(@RequestParam("id") String id) |
| | | { |
| | | return communityService.volunteerMerchantGetById(id); |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | int delete(@Param("id") String id); |
| | | |
| | | /** |
| | | * 判断是否是商家 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | int isMerchant(@Param("userId") String userId); |
| | | |
| | | /** |
| | | * 根据电话号码 或者姓名查询用户 |
| | | * @param |
| | | * @return |
| | |
| | | update_time |
| | | </sql> |
| | | |
| | | |
| | | |
| | | <select id="getById" resultMap="VolunteerMerchantMap"> |
| | | select <include refid="beas_sql"/> |
| | | from volunteer_merchant |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="isMerchant" parameterType="String"> |
| | | select count(id) from volunteer_merchant |
| | | where volunteer_merchant.user_id=#{userId} |
| | | </select> |
| | | |
| | | |
| | | |