yanghb
2024-04-09 6682f1fc47b87124db517ba0b67ee86fcedff473
Merge remote-tracking branch 'origin/master'
8个文件已修改
37 ■■■■■ 已修改文件
common-buiness/src/main/java/cn/stylefeng/guns/modular/business/dto/MentalAppointmentPageDTO.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
guns/src/main/java/cn/stylefeng/guns/modular/business/controller/UserManageController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
rest/src/main/java/cn/stylefeng/rest/modular/home/controller/HomeIndexController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
rest/src/main/java/cn/stylefeng/rest/modular/home/controller/HomePsychologicalColumnController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
rest/src/main/java/cn/stylefeng/rest/modular/user/controller/UserCenterController.java 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
rest/src/main/java/cn/stylefeng/rest/modular/worker/controller/MentalAnalysisTimeConfigController.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
roses/kernel-s-customer/customer-business/src/main/java/cn/stylefeng/roses/kernel/customer/modular/factory/CustomerFactory.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
roses/kernel-s-customer/customer-business/src/main/java/cn/stylefeng/roses/kernel/customer/modular/mapper/mapping/CustomerMapper.xml 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
common-buiness/src/main/java/cn/stylefeng/guns/modular/business/dto/MentalAppointmentPageDTO.java
@@ -14,8 +14,8 @@
    @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 = "预约类型")
guns/src/main/java/cn/stylefeng/guns/modular/business/controller/UserManageController.java
@@ -284,7 +284,7 @@
            @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(
rest/src/main/java/cn/stylefeng/rest/modular/home/controller/HomeIndexController.java
@@ -46,7 +46,7 @@
    @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) {
rest/src/main/java/cn/stylefeng/rest/modular/home/controller/HomePsychologicalColumnController.java
@@ -58,7 +58,7 @@
                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));
rest/src/main/java/cn/stylefeng/rest/modular/user/controller/UserCenterController.java
@@ -312,12 +312,13 @@
    @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));
    }
rest/src/main/java/cn/stylefeng/rest/modular/worker/controller/MentalAnalysisTimeConfigController.java
@@ -56,7 +56,7 @@
            @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);
@@ -71,7 +71,7 @@
            @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(
roses/kernel-s-customer/customer-business/src/main/java/cn/stylefeng/roses/kernel/customer/modular/factory/CustomerFactory.java
@@ -62,6 +62,7 @@
//        // 设置默认头像
//        customer.setAvatar(FileConstants.DEFAULT_AVATAR_FILE_ID);
//        customer.setAvatarObjectName(FileConstants.DEFAULT_AVATAR_FILE_OBJ_NAME);
        customer.setAvatar(customerRequest.getAvatar());
        // 设置默认积分0
        customer.setScore(0);
roses/kernel-s-customer/customer-business/src/main/java/cn/stylefeng/roses/kernel/customer/modular/mapper/mapping/CustomerMapper.xml
@@ -4,11 +4,11 @@
    <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 )
@@ -29,11 +29,11 @@
    <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 )
@@ -41,6 +41,9 @@
            <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=")">