| | |
| | | public R applyForGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "intendantType", required = false) String intendantType, |
| | | @RequestParam(value = "state", required = false) String state) { |
| | | return jinhuiCommunityService.applyForGetList(pageNum, pageSize, intendantType, state); |
| | | @RequestParam(value = "state", required = false) String state, |
| | | @RequestParam(value = "interspaceTime",required = false) String interspaceTime, |
| | | @RequestParam(value = "subscribeTimeFrame",required = false) String subscribeTimeFrame, |
| | | @RequestParam(value = "interspaceId",required = false) String interspaceId) { |
| | | return jinhuiCommunityService.applyForGetList(pageNum, pageSize, intendantType, |
| | | state,interspaceTime,subscribeTimeFrame,interspaceId); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R applyForGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "intendantType",required = false) String intendantType, |
| | | @RequestParam(value = "state",required = false) String state); |
| | | @RequestParam(value = "state",required = false) String state, |
| | | @RequestParam(value = "interspaceTime",required = false) String interspaceTime, |
| | | @RequestParam(value = "subscribeTimeFrame",required = false) String subscribeTimeFrame, |
| | | @RequestParam(value = "interspaceId",required = false) String interspaceId); |
| | | |
| | | /** |
| | | * 空间预约申请详情 |
| | |
| | | public R applyForGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "intendantType", required = false) String intendantType, |
| | | @RequestParam(value = "state", required = false) String state) { |
| | | return jinhuiCommunityService.applyForGetList(pageNum, pageSize, intendantType, state); |
| | | @RequestParam(value = "state", required = false) String state, |
| | | @RequestParam(value = "interspaceTime",required = false) String interspaceTime, |
| | | @RequestParam(value = "subscribeTimeFrame",required = false) String subscribeTimeFrame, |
| | | @RequestParam(value = "interspaceId",required = false) String interspaceId) { |
| | | return jinhuiCommunityService.applyForGetList(pageNum, pageSize, intendantType, |
| | | state,interspaceTime,subscribeTimeFrame,interspaceId); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R applyForGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "intendantType",required = false) String intendantType, |
| | | @RequestParam(value = "state",required = false) String state) |
| | | @RequestParam(value = "state",required = false) String state, |
| | | @RequestParam(value = "interspaceTime",required = false) String interspaceTime, |
| | | @RequestParam(value = "subscribeTimeFrame",required = false) String subscribeTimeFrame, |
| | | @RequestParam(value = "interspaceId",required = false) String interspaceId) |
| | | { |
| | | return applyForService.getList(pageNum,pageSize,intendantType,state); |
| | | return applyForService.getList(pageNum,pageSize,intendantType,state,interspaceTime,subscribeTimeFrame,interspaceId); |
| | | } |
| | | |
| | | /** |
New file |
| | |
| | | package com.panzhihua.service_jinhui_community.api; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.jinhui.JinhuiGoldCoinRecordVO; |
| | | import com.panzhihua.common.model.vos.jinhui.JinhuiMicroVolunteeringVO; |
| | | import com.panzhihua.service_jinhui_community.entity.JinhuiMicroVolunteering; |
| | | import com.panzhihua.service_jinhui_community.service.JinhuiGoldCoinRecordService; |
| | | import com.panzhihua.service_jinhui_community.service.JinhuiMicroVolunteeringService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | |
| | | /** |
| | | * @auther llming |
| | | * @describe 金汇微心愿 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/Micro") |
| | | public class JinhuiMicroVolunteeringApi |
| | | { |
| | | |
| | | @Resource |
| | | private JinhuiMicroVolunteeringService recordService; |
| | | |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param |
| | | * @return |
| | | */ |
| | | // @GetMapping("/Volunteering/getList") |
| | | // public R volunteeringGetList(int pageNum,int pageSize,String userId) |
| | | // { |
| | | // return recordService.getList(pageNum,pageSize,userId); |
| | | // } |
| | | // |
| | | // @GetMapping("/Volunteering/getList") |
| | | // public R volunteeringGetDetails(String id) |
| | | // { |
| | | // return R.ok(recordService.getDetails(id)); |
| | | // } |
| | | // /** |
| | | // * 新增 |
| | | // * @param |
| | | // * @return |
| | | // */ |
| | | // public R volunteeringAddData(JinhuiMicroVolunteeringVO item) |
| | | // { |
| | | // return recordService.addData(item); |
| | | // } |
| | | // |
| | | // public R volunteeringEditData(JinhuiMicroVolunteeringVO item) |
| | | // { |
| | | // return recordService.editData(item); |
| | | // } |
| | | // |
| | | // public R volunteeringExpurgateData(String id) |
| | | // { |
| | | // return recordService.expurgateData(id); |
| | | // } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | */ |
| | | IPage<JinhuiInterspaceApplyFor> getList(Page page, |
| | | @Param("intendantType") String intendantType, |
| | | @Param("state") String state); |
| | | @Param("state") String state, |
| | | @Param("interspaceTime") String interspaceTime, |
| | | @Param("subscribeTimeFrame") String subscribeTimeFrame, |
| | | @Param("interspaceId") String interspaceId); |
| | | |
| | | |
| | | |
| | |
| | | * @param |
| | | * @return |
| | | */ |
| | | R getList(int pageNum,int pageSize,String intendantType,String state); |
| | | R getList(int pageNum,int pageSize,String intendantType,String state, |
| | | String interspaceTime,String subscribeTimeFrame,String interspaceId); |
| | | |
| | | JinhuiInterspaceApplyFor getDetails(String id); |
| | | /** |
| | |
| | | { |
| | | |
| | | @Override |
| | | public R getList(int pageNum,int pageSize,String intendantType,String state) |
| | | public R getList(int pageNum,int pageSize,String intendantType,String state, |
| | | String interspaceTime,String subscribeTimeFrame,String interspaceId) |
| | | { |
| | | Page page = new Page<JinhuiInterspaceApplyFor>(pageNum,pageSize); |
| | | return R.ok(baseMapper.getList(page,intendantType,state)); |
| | | return R.ok(baseMapper.getList(page,intendantType,state,interspaceTime,subscribeTimeFrame,interspaceId)); |
| | | } |
| | | |
| | | @Override |
| | |
| | | <if test="intendantType !=null and intendantType !='' "> |
| | | and ji.intendant_type=#{intendantType} |
| | | </if> |
| | | <if test="interspaceTime !=null and interspaceTime !='' "> |
| | | and jiaf.interspace_time=#{interspaceTime} |
| | | </if> |
| | | <if test="subscribeTimeFrame !=null and subscribeTimeFrame !='' "> |
| | | and jiaf.subscribe_time_frame=#{subscribeTimeFrame} |
| | | </if> |
| | | <if test="interspaceId !=null and interspaceId !='' "> |
| | | and jiaf.interspace_id=#{interspaceId} |
| | | </if> |
| | | </where> |
| | | order by creation_time desc |
| | | </select> |