| | |
| | | public R editMerchantData(@RequestBody NewFightConvenientMerchantVO item); |
| | | |
| | | |
| | | @GetMapping("/FightConvenient/selectUserList") |
| | | public R selectUserList(@RequestParam("communityId") String communityId, |
| | | @RequestParam("phoneOrname") String phoneOrname); |
| | | |
| | | /***************************************************************************************************** |
| | | * |
| | | * 用户积分任务完成情况 |
| | |
| | | */ |
| | | @GetMapping("/NeedProblem/timedNewFightNeedProblemInventoryHandler") |
| | | public R timedNewFightNeedProblemInventoryHandler(); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | import com.panzhihua.common.model.vos.community.building.NewFightConvenientMerchantVO; |
| | | import com.panzhihua.common.model.vos.community.building.NewFightShoppingOrderVO; |
| | | import com.panzhihua.common.model.vos.community.building.NewFightShoppingVO; |
| | | import com.panzhihua.common.model.vos.user.SysUserVO; |
| | | import com.panzhihua.common.service.partybuilding.NewStriveForFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | return newStriveForFeign.editMerchantData(item); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "搜索用户", response = SysUserVO.class) |
| | | @GetMapping("/selectUserList") |
| | | public R selectUserList(@RequestParam("phoneOrname") String phoneOrname) |
| | | { |
| | | return newStriveForFeign.selectUserList(getCommunityId()+"",phoneOrname); |
| | | } |
| | | |
| | | |
| | | /******************************************************************************************************************* |
| | |
| | | import com.panzhihua.service_dangjian.entity.NewFightConvenientMerchant; |
| | | import com.panzhihua.service_dangjian.service.NewFightConvenientMerchantService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | return merchantService.editData(item); |
| | | } |
| | | |
| | | @GetMapping("/selectUserList") |
| | | public R selectUserList(@RequestParam("communityId") String communityId, |
| | | @RequestParam("phoneOrname") String phoneOrname) |
| | | { |
| | | return merchantService.selectUserList(communityId,phoneOrname); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | 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 io.swagger.annotations.ApiModelProperty; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @title: ConvenientMerchantDAO |
| | |
| | | int editData(@Param("item") NewFightConvenientMerchantVO item); |
| | | |
| | | |
| | | List<SysUserVO> selectUserList(@Param("communityId") String communityId, |
| | | @Param("phoneOrname") String phoneOrname); |
| | | |
| | | } |
| | |
| | | |
| | | 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 editData(NewFightConvenientMerchantVO item); |
| | | |
| | | |
| | | R selectUserList(String communityId,String phoneOrname); |
| | | |
| | | } |
| | |
| | | return R.fail("操作失败"); |
| | | } |
| | | |
| | | @Override |
| | | public R selectUserList(String communityId, String phoneOrname) { |
| | | return R.ok(baseMapper.selectUserList(communityId,phoneOrname)); |
| | | } |
| | | |
| | | } |
| | |
| | | where id = #{item.id} |
| | | </update> |
| | | |
| | | <select id="selectUserList" resultType="com.panzhihua.common.model.vos.user.SysUserVO"> |
| | | select su.user_id,su.phone,su.nick_name,su.name,su.community_id from sys_user as su |
| | | <where> |
| | | 1=1 |
| | | <if test="communityId!=null and communityId !='' "> |
| | | and su.community_id=#{communityId} |
| | | </if> |
| | | <if test="phoneOrname!=null and phoneOrname !=''"> |
| | | and (su.name like concat ('%',#{phoneOrname},'%') or |
| | | su.phone like concat ('%',#{phoneOrname},'%') or |
| | | su.nick_name like concat ('%',#{phoneOrname},'%') |
| | | ) |
| | | </if> |
| | | |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </mapper> |