| | |
| | | @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) { |
| | | @RequestParam(value = "interspaceId",required = false) String interspaceId, |
| | | @RequestParam(value = "userId",required = false) String userId) { |
| | | return jinhuiCommunityService.applyForGetList(pageNum, pageSize, intendantType, |
| | | state,interspaceTime,subscribeTimeFrame,interspaceId); |
| | | state,interspaceTime,subscribeTimeFrame,interspaceId,userId); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "预约人姓名") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty(value = "预约人id") |
| | | private String userId; |
| | | |
| | | @ApiModelProperty(value = "预约人电话") |
| | | private String userPhone; |
| | | |
| | |
| | | @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); |
| | | @RequestParam(value = "interspaceId",required = false) String interspaceId, |
| | | @RequestParam(value = "userId",required = false) String userId); |
| | | |
| | | /** |
| | | * 空间预约申请详情 |
| | |
| | | @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) { |
| | | @RequestParam(value = "interspaceId", required = false) String interspaceId, |
| | | @RequestParam(value = "userId",required = false) String userId) { |
| | | return jinhuiCommunityService.applyForGetList(pageNum, pageSize, intendantType, |
| | | state, interspaceTime, subscribeTimeFrame, interspaceId); |
| | | state, interspaceTime, subscribeTimeFrame, interspaceId,userId); |
| | | } |
| | | |
| | | /** |
| | |
| | | @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) |
| | | @RequestParam(value = "interspaceId",required = false) String interspaceId, |
| | | @RequestParam(value = "userId",required = false) String userId) |
| | | { |
| | | return applyForService.getList(pageNum,pageSize,intendantType,state,interspaceTime,subscribeTimeFrame,interspaceId); |
| | | return applyForService.getList(pageNum,pageSize,intendantType,state,interspaceTime,subscribeTimeFrame,interspaceId,userId); |
| | | } |
| | | |
| | | /** |
| | |
| | | @Param("state") String state, |
| | | @Param("interspaceTime") String interspaceTime, |
| | | @Param("subscribeTimeFrame") String subscribeTimeFrame, |
| | | @Param("interspaceId") String interspaceId); |
| | | @Param("interspaceId") String interspaceId, |
| | | @Param("userId") String userId); |
| | | |
| | | |
| | | |
| | |
| | | @ApiModelProperty(value = "预约人电话") |
| | | private String userPhone; |
| | | |
| | | @ApiModelProperty(value = "预约人id") |
| | | private String userId; |
| | | |
| | | @ApiModelProperty(value = "状态(1待处理 2未通过 3已通过)") |
| | | private String state; |
| | | |
| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.jinhui.JinhuiInterspaceApplyForVO; |
| | | import com.panzhihua.service_jinhui_community.entity.JinhuiInterspaceApplyFor; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | public interface JinhuiInterspaceApplyForService extends IService<JinhuiInterspaceApplyFor> |
| | | { |
| | |
| | | * @return |
| | | */ |
| | | R getList(int pageNum,int pageSize,String intendantType,String state, |
| | | String interspaceTime,String subscribeTimeFrame,String interspaceId); |
| | | String interspaceTime,String subscribeTimeFrame,String interspaceId,String userId); |
| | | |
| | | JinhuiInterspaceApplyFor getDetails(String id); |
| | | /** |
| | |
| | | |
| | | @Override |
| | | public R getList(int pageNum,int pageSize,String intendantType,String state, |
| | | String interspaceTime,String subscribeTimeFrame,String interspaceId) |
| | | String interspaceTime,String subscribeTimeFrame,String interspaceId,String userId) |
| | | { |
| | | Page page = new Page<JinhuiInterspaceApplyFor>(pageNum,pageSize); |
| | | return R.ok(baseMapper.getList(page,intendantType,state,interspaceTime,subscribeTimeFrame,interspaceId)); |
| | | return R.ok(baseMapper.getList(page,intendantType,state,interspaceTime,subscribeTimeFrame,interspaceId,userId)); |
| | | } |
| | | |
| | | @Override |
| | |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="content" column="content" /> |
| | | <result property="reply" column="reply" /> |
| | | <result property="userId" column="user_id" /> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | jiaf.creation_time, |
| | | jiaf.update_time, |
| | | jiaf.content, |
| | | jiaf.user_id, |
| | | jiaf.reply |
| | | from jinhui_interspace_apply_for as jiaf |
| | | LEFT JOIN jinhui_interspace as ji ON ji.id = jiaf.interspace_id |
| | |
| | | </if> |
| | | <if test="interspaceId !=null and interspaceId !='' "> |
| | | and jiaf.interspace_id=#{interspaceId} |
| | | </if> |
| | | <if test="userId !=null and userId !='' "> |
| | | and jiaf.user_id=#{userId} |
| | | </if> |
| | | </where> |
| | | order by creation_time desc |
| | |
| | | jiaf.creation_time, |
| | | jiaf.update_time, |
| | | jiaf.content, |
| | | jiaf.user_id, |
| | | jiaf.reply |
| | | from jinhui_interspace_apply_for as jiaf |
| | | LEFT JOIN jinhui_interspace as ji ON ji.id = jiaf.interspace_id |
| | |
| | | <if test="item.reply != null and item.reply != '' "> |
| | | reply, |
| | | </if> |
| | | <if test="item.userId != null and item.userId != '' "> |
| | | user_id, |
| | | </if> |
| | | creation_time |
| | | </trim> |
| | | values |
| | |
| | | </if> |
| | | <if test="item.reply != null and item.reply != '' "> |
| | | #{item.reply}, |
| | | </if> |
| | | <if test="item.userId != null and item.userId != '' "> |
| | | #{item.userId}, |
| | | </if> |
| | | sysdate() |
| | | </trim> |
| | |
| | | <if test="item.reply != null and item.reply != '' "> |
| | | reply=#{item.reply}, |
| | | </if> |
| | | <if test="item.userId != null and item.userId != '' "> |
| | | user_id=#{item.userId}, |
| | | </if> |
| | | update_time=sysdate() |
| | | </set> |
| | | where id = #{item.id} |