Merge remote-tracking branch 'origin/master'
| | |
| | | @ApiModelProperty(value = "预约ID") |
| | | @ChineseDescription("预约ID") |
| | | private Long id; |
| | | @ApiModelProperty(value = "状态:0预约中,2服务中,3已完成,9已取消") |
| | | @ChineseDescription("状态:0预约中,2服务中,3已完成,9已取消") |
| | | @ApiModelProperty(value = "状态:1预约中,2服务中,3已完成,9已取消") |
| | | @ChineseDescription("状态:1预约中,2服务中,3已完成,9已取消") |
| | | private Integer statusFlag; |
| | | |
| | | @ApiModelProperty(value = "预约类型") |
| | |
| | | @ApiImplicitParam(name = "userId", value = "用户ID", dataTypeClass = Long.class), |
| | | @ApiImplicitParam(name = "name", value = "咨询师姓名", dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "telephone", value = "咨询师电话", dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "statusFlag", value = "状态:0预约中,2服务中,3已完成,9已取消", dataTypeClass = Integer.class), |
| | | @ApiImplicitParam(name = "statusFlag", value = "状态:1预约中,2服务中,3已完成,9已取消", dataTypeClass = Integer.class), |
| | | }) |
| | | public ResponseData<PageResult<UserMentalAppointmentPageResponseDTO>> userMentalAppointmentPage(Integer pageNo, Integer pageSize, Long userId, String name, String telephone, Integer statusFlag) { |
| | | Page<UserMentalAppointmentPageResponseDTO> page = mentalAppointmentService.userMentalAppointmentPage( |
| | |
| | | @Resource |
| | | private IStoreAppointmentService storeAppointmentService; |
| | | |
| | | @ApiOperation("banner列表 ") |
| | | @ApiOperation("banner列表") |
| | | @ApiImplicitParam(value = "类型:1首页、2课程、3咨询",name = "type",dataTypeClass = Integer.class) |
| | | @GetResource(name = "banner列表", path = "/banner") |
| | | public ResponseData<Banner> banner(Integer type) { |
| | |
| | | PageFactory.page(pageNo, pageSize), |
| | | Wrappers.<PsychologicalColumn>lambdaQuery() |
| | | .eq(PsychologicalColumn::getIsDelete,DeleteEnum.NOT_DELETE.getCode()) |
| | | .like(StrUtil.isNotBlank(title), PsychologicalColumn::getArticleTitle,DeleteEnum.NOT_DELETE.getCode()) |
| | | .like(StrUtil.isNotBlank(title), PsychologicalColumn::getArticleTitle, title) |
| | | .orderByDesc(PsychologicalColumn::getReleaseTime) |
| | | ); |
| | | return new SuccessResponseData<>(PageResultFactory.createPageResult(page)); |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "pageNo", value = "分页:第几页(从1开始)", dataTypeClass = Integer.class, paramType = "query"), |
| | | @ApiImplicitParam(name = "pageSize", value = "分页:每页大小(默认10)", dataTypeClass = Integer.class, paramType = "query"), |
| | | @ApiImplicitParam(name = "title", value = "帮助内容", dataTypeClass = Integer.class, paramType = "query") |
| | | @ApiImplicitParam(name = "title", value = "标题", dataTypeClass = String.class, paramType = "query"), |
| | | @ApiImplicitParam(name = "content", value = "内容", dataTypeClass = String.class, paramType = "query") |
| | | } ) |
| | | public ResponseData<PageResult<Help>> page(Integer pageNo, Integer pageSize,String title) { |
| | | LambdaQueryWrapper<Help> lambdaQueryWrapper = new LambdaQueryWrapper<Help>().eq(Help::getIsDelete,false) |
| | | .orderByAsc(Help::getSort); |
| | | lambdaQueryWrapper.like(StrUtil.isNotBlank(title),Help::getTitle,title).or().like(StrUtil.isNotBlank(title),Help::getContent,title); |
| | | public ResponseData<PageResult<Help>> page(Integer pageNo, Integer pageSize, String title, String content) { |
| | | LambdaQueryWrapper<Help> lambdaQueryWrapper = new LambdaQueryWrapper<Help>().eq(Help::getIsDelete, false).orderByAsc(Help::getSort); |
| | | lambdaQueryWrapper.like(StrUtil.isNotBlank(title), Help::getTitle, title); |
| | | lambdaQueryWrapper.like(StrUtil.isNotBlank(content), Help::getContent, content); |
| | | Page<Help> page = this.helpService.page(PageFactory.page(pageNo, pageSize), lambdaQueryWrapper); |
| | | return new SuccessResponseData<>(PageResultFactory.createPageResult(page)); |
| | | } |
| | |
| | | @ApiImplicitParam(name = "searchEndTime", value = "结束时间", dataTypeClass = String.class, paramType = "query"), |
| | | @ApiImplicitParam(name = "userNickName", value = "用户姓名", dataTypeClass = String.class, paramType = "query"), |
| | | @ApiImplicitParam(name = "userTelephone", value = "联系电话", dataTypeClass = String.class, paramType = "query"), |
| | | @ApiImplicitParam(name = "statusFlag", value = "状态:0预约中,2服务中,3已完成,9已取消", dataTypeClass = Integer.class, paramType = "query"), |
| | | @ApiImplicitParam(name = "statusFlag", value = "状态:1已分配,2服务中,3已完成,9已取消", dataTypeClass = Integer.class, paramType = "query"), |
| | | }) |
| | | public ResponseData<List<MentalAppointmentPageDTO>> mentalAnalysisTimeConfigSchedule(Long counsellingInfoId, String searchBeginTime, String searchEndTime, String userNickName, String userTelephone, Integer statusFlag) { |
| | | List<MentalAppointmentPageDTO> list = mentalAppointmentService.mentalAnalysisTimeConfigSchedule(searchBeginTime, searchEndTime, counsellingInfoId, null, userNickName, userTelephone, statusFlag, null); |
| | |
| | | @ApiImplicitParam(name = "counsellingInfoId", value = "性格分析师ID", dataTypeClass = Long.class, paramType = "query"), |
| | | @ApiImplicitParam(name = "userNickName", value = "用户姓名", dataTypeClass = String.class, paramType = "query"), |
| | | @ApiImplicitParam(name = "userTelephone", value = "联系电话", dataTypeClass = String.class, paramType = "query"), |
| | | @ApiImplicitParam(name = "statusFlag", value = "状态:0预约中,2服务中,3已完成,9已取消", dataTypeClass = Integer.class, paramType = "query"), |
| | | @ApiImplicitParam(name = "statusFlag", value = "状态:1预约中,2服务中,3已完成,9已取消", dataTypeClass = Integer.class, paramType = "query"), |
| | | }) |
| | | public ResponseData<PageResult<MentalAppointmentPageDTO>> mentalAnalysisTimeConfigSchedulePage(Integer pageNo, Integer pageSize, Long counsellingInfoId, String userNickName, String userTelephone, Integer statusFlag) { |
| | | Page<MentalAppointmentPageDTO> page = mentalAppointmentService.getPage( |
| | |
| | | // // 设置默认头像 |
| | | // customer.setAvatar(FileConstants.DEFAULT_AVATAR_FILE_ID); |
| | | // customer.setAvatarObjectName(FileConstants.DEFAULT_AVATAR_FILE_OBJ_NAME); |
| | | customer.setAvatar(customerRequest.getAvatar()); |
| | | |
| | | // 设置默认积分0 |
| | | customer.setScore(0); |
| | |
| | | |
| | | <sql id="getWorkerByLineStatusAndPostType"> |
| | | toc_customer o |
| | | LEFT JOIN im_user_status im ON o.customer_id = im.userid |
| | | LEFT JOIN im_user_status ius ON o.customer_id = ius.userid |
| | | <where> |
| | | AND o.status_flag = 1 |
| | | <if test="lineStatus != null and lineStatus != ''"> |
| | | AND im.`status` = #{lineStatus} |
| | | AND ius.`status` = #{lineStatus} |
| | | </if> |
| | | <if test="postType != null"> |
| | | AND FIND_IN_SET( #{postType}, post_types ) |
| | |
| | | |
| | | <select id="randomWorkerByLineStatusAndPostNeWorkerId" resultType="cn.stylefeng.roses.kernel.customer.modular.entity.Customer"> |
| | | SELECT customer_id FROM toc_customer o |
| | | LEFT JOIN im_user_status im ON o.customer_id = im.userid |
| | | LEFT JOIN im_user_status ius ON o.customer_id = ius.userid |
| | | <where> |
| | | AND o.status_flag = 1 |
| | | <if test="lineStatus != null and lineStatus != ''"> |
| | | AND im.`status` = #{lineStatus} |
| | | AND ius.`status` = #{lineStatus} |
| | | </if> |
| | | <if test="postType != null"> |
| | | AND FIND_IN_SET( #{postType}, post_types ) |
| | |
| | | <if test="postId != null"> |
| | | AND FIND_IN_SET( #{postId}, post_ids ) |
| | | </if> |
| | | <if test="workStatus != null"> |
| | | AND o.work_status = #{workStatus} |
| | | </if> |
| | | <if test="eqWorkerIdList != null and eqWorkerIdList.size != 0"> |
| | | AND o.customer_id IN |
| | | <foreach collection="eqWorkerIdList" item="item" open="(" separator="," close=")"> |