| | |
| | | return communityService.getIntegralUserRank(getCommunityId(),getUserId()); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "是否是商家 如果是商家返回商家id") |
| | | @GetMapping("/selectUserBind") |
| | | public R selectUserBind() |
| | | { |
| | | return newStriveForFeign.selectUserBind(getCommunityId()+"",getUserId()+""); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty("社区id") |
| | | private String communityId; |
| | | |
| | | |
| | | @ApiModelProperty("绑定用户id") |
| | | private String userId; |
| | | } |
| | |
| | | public R selectUserList(@RequestParam("communityId") String communityId, |
| | | @RequestParam("phoneOrname") String phoneOrname); |
| | | |
| | | |
| | | @GetMapping("/FightConvenient/selectUserBind") |
| | | public R selectUserBind(@RequestParam("communityId") String communityId, |
| | | @RequestParam("userId") String userId); |
| | | |
| | | /***************************************************************************************************** |
| | | * |
| | | * 用户积分任务完成情况 |
| | |
| | | return merchantService.selectUserList(communityId,phoneOrname); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/selectUserBind") |
| | | public R selectUserBind(@RequestParam("communityId") String communityId, |
| | | @RequestParam("userId") String userId) |
| | | { |
| | | return merchantService.selectUserBind(communityId,userId); |
| | | } |
| | | |
| | | } |
| | |
| | | List<SysUserVO> selectUserList(@Param("communityId") String communityId, |
| | | @Param("phoneOrname") String phoneOrname); |
| | | |
| | | |
| | | String selectUserBind(@Param("communityId") String communityId, |
| | | @Param("userId") String userId); |
| | | |
| | | } |
| | |
| | | @ApiModelProperty("社区id") |
| | | private String communityId; |
| | | |
| | | @ApiModelProperty("绑定用户") |
| | | private String userId; |
| | | |
| | | |
| | | |
| | | |
| | |
| | | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.building.NewFightConvenientMerchantVO; |
| | | import com.panzhihua.common.model.vos.user.SysUserVO; |
| | | import com.panzhihua.service_dangjian.entity.NewFightConvenientMerchant; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | |
| | | |
| | | R selectUserList(String communityId,String phoneOrname); |
| | | |
| | | |
| | | R selectUserBind(String communityId, String userId); |
| | | } |
| | |
| | | return R.ok(baseMapper.selectUserList(communityId,phoneOrname)); |
| | | } |
| | | |
| | | @Override |
| | | public R selectUserBind(String communityId, String userId) { |
| | | return R.ok(baseMapper.selectUserBind(communityId,userId)); |
| | | } |
| | | |
| | | } |
| | |
| | | <id column="status" property="status" /> |
| | | <id column="business_credit" property="businessCredit" /> |
| | | <id column="community_id" property="communityId" /> |
| | | <id column="user_id" property="userId" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | |
| | | status, |
| | | business_credit, |
| | | community_id, |
| | | user_id, |
| | | img_url |
| | | FROM new_fight_com_convenient_merchants ccm |
| | | <where> |
| | |
| | | status, |
| | | business_credit, |
| | | community_id, |
| | | user_id, |
| | | img_url |
| | | FROM new_fight_com_convenient_merchants ccm |
| | | WHERE ccm.id = #{merchantId} |
| | |
| | | <if test="item.communityId != null and item.communityId != '' "> |
| | | community_id, |
| | | </if> |
| | | <if test="item.userId != null and item.userId != '' "> |
| | | user_id, |
| | | </if> |
| | | created_at |
| | | </trim> |
| | | values |
| | |
| | | </if> |
| | | <if test="item.communityId != null and item.communityId != '' "> |
| | | #{item.communityId}, |
| | | </if> |
| | | <if test="item.userId != null and item.userId != '' "> |
| | | #{item.userId}, |
| | | </if> |
| | | sysdate() |
| | | </trim> |
| | |
| | | <if test="item.communityId != null and item.communityId != '' "> |
| | | community_id=#{item.communityId}, |
| | | </if> |
| | | <if test="item.userId != null and item.userId != '' "> |
| | | user_id=#{item.userId}, |
| | | </if> |
| | | updated_at=sysdate() |
| | | </set> |
| | | where id = #{item.id} |
| | |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="selectUserBind" resultType="String"> |
| | | select id from new_fight_com_convenient_merchants |
| | | <where> |
| | | 1=1 |
| | | <if test="communityId!=null and communityId !='' "> |
| | | and community_id=#{communityId} |
| | | </if> |
| | | <if test="userId!=null and userId !='' "> |
| | | and user_id=#{userId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | |