| | |
| | | @RequestParam("pageNum") String userName, |
| | | @RequestParam("pageNum") String userPhone); |
| | | |
| | | |
| | | @GetMapping("/getById") |
| | | public R volunteerMerchantGetById(@RequestParam("id") String id); |
| | | |
| | | } |
| | |
| | | return R.ok(vtService.volunteerMerchantGetUser(getCommunityId()+"",userName,userPhone)); |
| | | } |
| | | |
| | | @GetMapping("/getById") |
| | | public R volunteerMerchantGetById(@RequestParam("id") String id) |
| | | { |
| | | return vtService.volunteerMerchantGetById(id); |
| | | } |
| | | |
| | | |
| | | /****************************************************************************************************** |
| | | * |
| | | * |
| | |
| | | @Resource |
| | | private VolunteerMerchantService vtService; |
| | | |
| | | |
| | | |
| | | @GetMapping("/getById") |
| | | public R volunteerMerchantGetById(@RequestParam("id") String id) |
| | | { |
| | | return vtService.getById(id); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping("/getList") |
| | | public R volunteerMerchantGetList(@RequestParam("pageNum") int pageNum, |
| | | public R volunteerMerchantGetList( int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "merchantState", required = false) String merchantState, |
| | | @RequestParam(value = "merchantType", required = false) String merchantType, |
| | |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Mapper |
| | | public interface VolunteerMerchantDao extends BaseMapper<VolunteerMerchant> |
| | | { |
| | | |
| | | |
| | | VolunteerMerchant getById(@Param("id") String id); |
| | | |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param |
| | |
| | | * @param |
| | | * @return |
| | | */ |
| | | SysUser getUser(@Param("communityId") String communityId, |
| | | @Param("userName") String userName, |
| | | @Param("userPhone") String userPhone); |
| | | List<SysUser> getUser(@Param("communityId") String communityId, |
| | | @Param("userName") String userName, |
| | | @Param("userPhone") String userPhone); |
| | | |
| | | |
| | | |
| | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.VolunteerMerchantVO; |
| | | import com.panzhihua.service_community.entity.SysUser; |
| | | import com.panzhihua.service_community.entity.VolunteerMerchant; |
| | | |
| | | public interface VolunteerMerchantService extends IService<VolunteerMerchant> |
| | | { |
| | | |
| | | |
| | | |
| | | R getById(String id); |
| | | /** |
| | | * 分页查询 |
| | | * @param |
| | |
| | | @Slf4j |
| | | @Service |
| | | public class VolunteerMerchantServiceImpl extends ServiceImpl<VolunteerMerchantDao, |
| | | VolunteerMerchant> implements VolunteerMerchantService { |
| | | VolunteerMerchant> implements VolunteerMerchantService |
| | | { |
| | | |
| | | |
| | | |
| | | @Override |
| | | public R getById(String id) { |
| | | return R.ok(baseMapper.getById(id)); |
| | | } |
| | | |
| | | @Override |
| | | public R volunteerMerchantGetList(int pageNum, int pageSize, String merchantState, |
| | | String merchantType, String name, String communityId) { |
| | |
| | | </sql> |
| | | |
| | | |
| | | |
| | | <select id="getById" resultMap="VolunteerMerchantMap"> |
| | | select <include refid="beas_sql"/> |
| | | from volunteer_merchant |
| | | where volunteer_merchant.id=#{id} |
| | | </select> |
| | | |
| | | |
| | | <!-- 分页查询 --> |
| | | <select id="getList" resultMap="VolunteerMerchantMap"> |
| | | select <include refid="beas_sql"/> |