zhangtiansen
2022-09-06 c9a036da723b08fc34ecc90c0668348f01e01458
三说会堂专家,事件类型,业务中心模块搭建,基本接口创建。
24个文件已添加
1666 ■■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanShuoIndustryCenterDTO.java 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanshuoEventDTO.java 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanshuoExpertDTO.java 132 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanShuoEventVO.java 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanShuoIndustryCenterVO.java 77 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanshuoExpertVO.java 133 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java 91 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoIndustryCenterApi.java 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoEventDao.java 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoExpertDao.java 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoIndustryCenterDao.java 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoEvent.java 111 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoExpert.java 213 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoIndustryCenter.java 141 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoEventService.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoExpertService.java 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoIndustryCenterService.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoEventServiceImpl.java 62 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoExpertServiceImpl.java 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoIndustryCenterServiceImpl.java 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoEventDao.xml 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoExpertDao.xml 65 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoIndustryCenterDao.xml 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanShuoIndustryCenterDTO.java
New file
@@ -0,0 +1,80 @@
package com.panzhihua.common.model.dtos.community.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel("业务中心入参")
public class ComSanShuoIndustryCenterDTO {
    /**
     * id
     */
    @ApiModelProperty("id,修改时传")
    private Long id;
    /**
     * 行业分中心名称
     */
    @ApiModelProperty("行业分中心名称")
    private String name;
    /**
     * 调解室电话
     */
    @ApiModelProperty("调解室电话")
    private String phone;
    /**
     * 登录账号
     */
    @ApiModelProperty("登录账号")
    private String account;
    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
    /**
     * 状态0禁用1启用
     */
    @ApiModelProperty("状态0禁用1启用")
    private Integer status;
    /**
     * 0删除1正常
     */
    @ApiModelProperty("0删除1正常")
    private Integer delFlag;
    /**
     * 所属街道id
     */
    @ApiModelProperty("所属街道id")
    private Long streetId;
    @ApiModelProperty("密码")
    private String password;
    /**
     * 所属社区id
     */
    @ApiModelProperty("所属社区id")
    private Long communityId;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanshuoEventDTO.java
New file
@@ -0,0 +1,33 @@
package com.panzhihua.common.model.dtos.community.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel("三说事件查询入参")
public class ComSanshuoEventDTO {
    /**
     * 事件类型名称
     */
    @ApiModelProperty("事件类型名称")
    private String name;
    private Integer page;
    private Integer size;
    /**
     * 0禁用1启用
     */
    @ApiModelProperty("0禁用1启用")
    private Integer status;
    /**
     * 0删除1正常
     */
    @ApiModelProperty("0删除1正常")
    private Integer delFlag;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanshuoExpertDTO.java
New file
@@ -0,0 +1,132 @@
package com.panzhihua.common.model.dtos.community.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.Valid;
import java.util.Date;
@Data
@ApiModel("添加或修改专家入参")
@Valid
public class ComSanshuoExpertDTO {
    /**
     * id
     */
    @ApiModelProperty("id,修改时传")
    private Long id;
    /**
     * 专家级别(1三说会堂2行业分中心3街道4社区)
     */
    @ApiModelProperty("专家级别(1三说会堂2行业分中心3街道4社区)")
    private Integer level;
    /**
     * 所属社区id
     */
    @ApiModelProperty("所属社区id")
    private Long communityId;
    /**
     * 工作时间
     */
    @ApiModelProperty("工作时间")
    private String workTime;
    /**
     * 擅长解决时间类型
     */
    @ApiModelProperty("擅长解决时间类型,多类型已,隔开")
    private String goodAt;
    /**
     * 姓名
     */
    @ApiModelProperty("姓名")
    private String name;
    /**
     * 头像
     */
    @ApiModelProperty("头像")
    private String avatar;
    /**
     * 手机号
     */
    @ApiModelProperty("手机号")
    private String phone;
    /**
     * 登陆账号
     */
    @ApiModelProperty("登陆账号")
    private String account;
    /**
     * 登陆密码
     */
    @ApiModelProperty("登陆密码")
    private String password;
    /**
     * 0禁用1启用
     */
    @ApiModelProperty("0禁用1启用默认1")
    private Integer status;
    /**
     * 删除状态0已删除1正常
     */
    @ApiModelProperty("删除状态0已删除1正常默认1")
    private Integer delFlag;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    private String createBy;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
    /**
     * 介绍信息
     */
    @ApiModelProperty("介绍信息")
    private String introduction;
    /**
     * 所属街道id
     */
    @ApiModelProperty("所属街道id")
    private Long streetId;
    /**
     * 行业分中心id
     */
    @ApiModelProperty("行业分中心id")
    private String industryCenterId;
    /**
     * 备用字段1
     */
    private String param1;
    /**
     * 所属单位
     */
    @ApiModelProperty("所属单位")
    private String unit;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanShuoEventVO.java
New file
@@ -0,0 +1,46 @@
package com.panzhihua.common.model.vos.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel("事件类型")
public class ComSanShuoEventVO {
    /**
     * id
     */
    @ApiModelProperty("id")
    private Integer id;
    /**
     * 事件类型名称
     */
    @ApiModelProperty("事件类型名称")
    private String name;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
    /**
     * 0禁用1启用
     */
    @ApiModelProperty("0禁用1启用")
    private Integer status;
    /**
     * 0删除1正常
     */
    @ApiModelProperty("0删除1正常")
    private Integer delFlag;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanShuoIndustryCenterVO.java
New file
@@ -0,0 +1,77 @@
package com.panzhihua.common.model.vos.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel("业务中心")
public class ComSanShuoIndustryCenterVO {
    /**
     * id
     */
    @ApiModelProperty("id")
    private Integer id;
    /**
     * 行业分中心名称
     */
    @ApiModelProperty("行业分中心名称")
    private String name;
    /**
     * 调解室电话
     */
    @ApiModelProperty("调解室电话")
    private String phone;
    /**
     * 登录账号
     */
    @ApiModelProperty("登录账号")
    private String account;
    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
    /**
     * 状态0禁用1启用
     */
    @ApiModelProperty("状态0禁用1启用")
    private Integer status;
    /**
     * 0删除1正常
     */
    @ApiModelProperty("0删除1正常")
    private Integer delFlag;
    /**
     * 所属街道id
     */
    @ApiModelProperty("所属街道id")
    private Long streetId;
    /**
     * 所属社区id
     */
    @ApiModelProperty("所属社区id")
    private Long communityId;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanshuoExpertVO.java
New file
@@ -0,0 +1,133 @@
package com.panzhihua.common.model.vos.sanshuo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel("专家列表返回列")
public class ComSanshuoExpertVO {
    /**
     * id
     */
    @ApiModelProperty("id")
    private Long id;
    /**
     * 专家级别(1三说会堂2行业分中心3街道4社区)
     */
    @ApiModelProperty("专家级别(1三说会堂2行业分中心3街道4社区)")
    private Integer level;
    /**
     * 所属社区id
     */
    @ApiModelProperty("所属社区id")
    private Long communityId;
    /**
     * 工作时间
     */
    @ApiModelProperty("工作时间")
    private String workTime;
    /**
     * 擅长解决时间类型
     */
    @ApiModelProperty("擅长解决时间类型,多类型已,隔开")
    private String goodAt;
    /**
     * 姓名
     */
    @ApiModelProperty("姓名")
    private String name;
    /**
     * 头像
     */
    @ApiModelProperty("头像")
    private String avatar;
    /**
     * 手机号
     */
    @ApiModelProperty("手机号")
    private String phone;
    /**
     * 登陆账号
     */
    @ApiModelProperty("登陆账号")
    private String account;
    /**
     * 登陆密码
     */
    @ApiModelProperty("登陆密码")
    private String password;
    /**
     * 0禁用1启用
     */
    @ApiModelProperty("0禁用1启用默认1")
    private Integer status;
    /**
     * 删除状态0已删除1正常
     */
    @ApiModelProperty("删除状态0已删除1正常默认1")
    private Integer delFlag;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    private String createBy;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
    /**
     * 介绍信息
     */
    @ApiModelProperty("介绍信息")
    private String introduction;
    /**
     * 所属街道id
     */
    @ApiModelProperty("所属街道id")
    private Long streetId;
    /**
     * 行业分中心id
     */
    @ApiModelProperty("行业分中心id")
    private String industryCenterId;
    /**
     * 备用字段1
     */
    private String param1;
    /**
     * 所属单位
     */
    @ApiModelProperty("所属单位")
    private String unit;
    @ApiModelProperty("办结事项")
    private String solveEvents;
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java
New file
@@ -0,0 +1,67 @@
package com.panzhihua.service_community.api;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoEventDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComSanshuoEvent;
import com.panzhihua.service_community.service.ComSanShuoEventService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
/**
 * 三说会堂事件类型管理控制器
 * */
@RestController
@RequestMapping("/sanshuo/event")
public class ComSanShuoEventApi {
    @Resource
    private ComSanShuoEventService comSanShuoEventService;
    /**
     * 后台事件类型管理
     * */
    @PostMapping("/backStageList")
    public R backList(@RequestBody ComSanshuoEventDTO comSanshuoEventDTO){
        return R.ok(comSanShuoEventService.backStageList(comSanshuoEventDTO));
    }
    /**
     * 小程序获取可用事件类型
     * */
    @GetMapping("/appletsList")
    public R<List<ComSanshuoEvent>> appList(){
        return R.ok(comSanShuoEventService.list(new QueryWrapper<ComSanshuoEvent>().eq("status",1).eq("del_flag",1)));
    }
    /**
     * 添加或修改事件类型
     * */
    @PostMapping
    public R add(@RequestBody ComSanshuoEventDTO comSanshuoEventDTO){
        ComSanshuoEvent event=new ComSanshuoEvent();
        BeanUtil.copyProperties(comSanshuoEventDTO,event);
        return R.ok(comSanShuoEventService.addOrUpdate(event));
    }
    /**
     * 删除事件类型
     * */
    @DeleteMapping("remove/{id}")
    public R remove(@PathVariable("id") Integer id){
        ComSanshuoEvent comSanshuoEvent = comSanShuoEventService.getById(id);
        comSanshuoEvent.setDelFlag(0);
        comSanshuoEvent.setUpdateTime(new Date());
        return R.ok(comSanShuoEventService.updateById(comSanshuoEvent));
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java
New file
@@ -0,0 +1,91 @@
package com.panzhihua.service_community.api;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoExpertDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComSanshuoExpert;
import com.panzhihua.service_community.service.ComSanShuoExpertService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.xml.crypto.Data;
import java.util.Date;
/**
 * 三说会堂调解专家控制器
 * */
@RestController
@RequestMapping("/sanshuo/expert")
public class ComSanShuoExpertApi extends BaseController {
    @Resource
    private ComSanShuoExpertService comSanShuoExpertService;
    /**
     * 添加专家
     * */
    @PostMapping
    public R add(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
        comSanshuoExpertDTO.setCreateBy(this.getLoginUserInfo().getName());
        return R.ok(comSanShuoExpertService.addExpert(comSanshuoExpertDTO));
    }
    /**
     * 小程序获取可选择专家
     * */
    @GetMapping("appletsList")
    public R appList(){
        return R.ok(comSanShuoExpertService.list(new QueryWrapper<ComSanshuoExpert>().eq("status",1).eq("del_flag",1)));
    }
    /**
     * 修改专家
     * */
    @PutMapping
    public R update(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
        ComSanshuoExpert expert=new ComSanshuoExpert();
        BeanUtil.copyProperties(comSanshuoExpertDTO,expert);
        expert.setUpdateTime(new Date());
        return R.ok(comSanShuoExpertService.updateById(expert));
    }
    /**
     * 后台获取列表
     * */
    @GetMapping("/backstageList")
    public R backList(@RequestParam(value = "keyWord",required = false)@ApiParam("搜索关键字") String keyWord,
                      @RequestParam(value = "page",required = false)Integer page,
                      @RequestParam(value = "size",required = false)Integer size){
        //TODO 获取当前账号级别确定范围
        Integer range=null;
        Long id=null;
        return R.ok(comSanShuoExpertService.expertPage(keyWord,page,size,range,id));
    }
    /**
     * 删除
     * */
    @DeleteMapping("/remove/{id}")
    public R remove(@PathVariable("id")Long id){
        //TODO 是否有为解决事件
        ComSanshuoExpert expert = comSanShuoExpertService.getById(id);
        expert.setStatus(0);
        expert.setDelFlag(0);
        return R.ok(comSanShuoExpertService.updateById(expert));
    }
    /**
     * 重置密码
     * */
    @PostMapping("/resetPassword")
    public R resetPassword(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
        ComSanshuoExpert expert = comSanShuoExpertService.getById(comSanshuoExpertDTO.getId());
        expert.setPassword(comSanshuoExpertDTO.getPassword());
        return R.ok(comSanShuoExpertService.updateById(expert));
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoIndustryCenterApi.java
New file
@@ -0,0 +1,67 @@
package com.panzhihua.service_community.api;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanShuoIndustryCenterDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComSanshuoIndustryCenter;
import com.panzhihua.service_community.service.ComSanShuoIndustryCenterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
/**
 * 三说会堂业务中心管理控制器
 * */
@RestController
@RequestMapping("/sanshuo/industryCenter")
public class ComSanShuoIndustryCenterApi extends BaseController {
    @Resource
    private ComSanShuoIndustryCenterService comSanShuoIndustryCenterService;
    @GetMapping("/list")
    public R list(@RequestParam(value = "keyWord",required = false)String keyWord,
                  @RequestParam(value = "page",required = false)Integer page,
                  @RequestParam(value = "size",required = false)Integer size){
        return R.ok(comSanShuoIndustryCenterService.pageIndustryCenter(keyWord,page,size));
    }
    /**
     * 添加业务中心
     * */
    @PostMapping
    public R add(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){
        comSanShuoIndustryCenterDTO.setCreateBy(this.getLoginUserInfo().getName());
        return R.ok(comSanShuoIndustryCenterService.addOrUpdate(comSanShuoIndustryCenterDTO));
    }
    /**
     * 修改业务中心
     * */
    @PutMapping
    public R update(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){
        return R.ok(comSanShuoIndustryCenterService.addOrUpdate(comSanShuoIndustryCenterDTO));
    }
    /**
     * 删除业务中心
     * */
    @DeleteMapping("/remove/{id}")
    public R remove(@PathVariable("id") Long id){
        ComSanshuoIndustryCenter center = comSanShuoIndustryCenterService.getById(id);
        center.setDelFlag(0);
        center.setStatus(0);
        return R.ok(comSanShuoIndustryCenterService.updateById(center));
    }
    /**
     * 重置密码
     * */
    @PostMapping("/resetPass")
    public R resetPassword(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){
        ComSanshuoIndustryCenter center = comSanShuoIndustryCenterService.getById(comSanShuoIndustryCenterDTO.getId());
        center.setPassword(comSanShuoIndustryCenterDTO.getPassword());
        return R.ok(comSanShuoIndustryCenterService.updateById(center));
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoEventDao.java
New file
@@ -0,0 +1,32 @@
package com.panzhihua.service_community.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoEventDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComSanshuoEvent;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author Frozen
* @description 针对表【com_sanshuo_event(三说会堂事件类型表)】的数据库操作Mapper
* @createDate 2022-09-06 14:17:37
* @Entity generator.entity.ComSanshuoEvent
*/
public interface ComSanshuoEventDao extends BaseMapper<ComSanshuoEvent> {
    /**
     * 后台事件类型列表分页
     * */
    IPage<ComSanshuoEvent> pageEvent(Page page, @Param("comSanshuoEventDTO") ComSanshuoEventDTO comSanshuoEventDTO);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoExpertDao.java
New file
@@ -0,0 +1,30 @@
package com.panzhihua.service_community.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.model.vos.sanshuo.ComSanshuoExpertVO;
import com.panzhihua.service_community.entity.ComSanshuoExpert;
import org.apache.ibatis.annotations.Param;
/**
* @author Frozen
* @description 针对表【com_sanshuo_expert(三说会堂专家表)】的数据库操作Mapper
* @createDate 2022-09-06 14:17:37
* @Entity generator.entity.ComSanshuoExpert
*/
public interface ComSanshuoExpertDao extends BaseMapper<ComSanshuoExpert> {
    /**
     * 后台获取专家列表
     * @param page
     * @param keyWord
     * @param range 数据范围:1街道下属/2社区下属/3业务中心下属/null三说会堂下属
     * @param id 社区或街道或业务中心id
     * @return 处理结果
     * */
    IPage<ComSanshuoExpertVO> expertPage(Page page, @Param("keyWord")String keyWord, @Param("range") Integer range, @Param("id")Long id);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoIndustryCenterDao.java
New file
@@ -0,0 +1,23 @@
package com.panzhihua.service_community.dao;
import cn.hutool.db.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.panzhihua.common.model.vos.sanshuo.ComSanShuoIndustryCenterVO;
import com.panzhihua.service_community.entity.ComSanshuoIndustryCenter;
import org.apache.ibatis.annotations.Param;
/**
* @author Frozen
* @description 针对表【com_sanshuo_industry_center(三说会堂-行业分中心表)】的数据库操作Mapper
* @createDate 2022-09-06 14:17:37
* @Entity generator.entity.ComSanshuoIndustryCenter
*/
public interface ComSanshuoIndustryCenterDao extends BaseMapper<ComSanshuoIndustryCenter> {
    IPage<ComSanShuoIndustryCenterVO> pageIndustryCenter(Page page, @Param("keyWord") String keyWord);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoEvent.java
New file
@@ -0,0 +1,111 @@
package com.panzhihua.service_community.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * 三说会堂事件类型表
 * @TableName com_sanshuo_event
 */
@TableName(value ="com_sanshuo_event")
@Data
@ApiModel("三说会堂事件类型")
public class ComSanshuoEvent implements Serializable {
    /**
     * id
     */
    @ApiModelProperty("id,修改时传")
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 事件类型名称
     */
    @ApiModelProperty("事件类型名称")
    private String name;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
    /**
     * 0禁用1启用
     */
    @ApiModelProperty("0禁用1启用")
    private Integer status;
    /**
     * 0删除1正常
     */
    @ApiModelProperty("0删除1正常")
    private Integer delFlag;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ComSanshuoEvent other = (ComSanshuoEvent) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()));
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        return result;
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", status=").append(status);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoExpert.java
New file
@@ -0,0 +1,213 @@
package com.panzhihua.service_community.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * 三说会堂专家表
 * @TableName com_sanshuo_expert
 */
@TableName(value ="com_sanshuo_expert")
@Data
public class ComSanshuoExpert implements Serializable {
    /**
     * id
     */
    @TableId
    private Long id;
    /**
     * 专家级别(1三说会堂2行业分中心3街道4社区)
     */
    private Integer level;
    /**
     * 所属社区id
     */
    private Long communityId;
    /**
     * 工作时间
     */
    private String workTime;
    /**
     * 擅长解决时间类型
     */
    private String goodAt;
    /**
     * 姓名
     */
    private String name;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 登陆账号
     */
    private String account;
    /**
     * 登陆密码
     */
    private String password;
    /**
     * 0禁用1启用
     */
    private Integer status;
    /**
     * 删除状态0已删除1正常
     */
    private Integer delFlag;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 修改时间
     */
    private Date updateTime;
    /**
     * 介绍信息
     */
    private String introduction;
    /**
     * 所属街道id
     */
    private Long streetId;
    /**
     * 行业分中心id
     */
    private String industryCenterId;
    /**
     * 备用字段1
     */
    private String param1;
    /**
     * 所属单位
     */
    private String unit;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ComSanshuoExpert other = (ComSanshuoExpert) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
            && (this.getCommunityId() == null ? other.getCommunityId() == null : this.getCommunityId().equals(other.getCommunityId()))
            && (this.getWorkTime() == null ? other.getWorkTime() == null : this.getWorkTime().equals(other.getWorkTime()))
            && (this.getGoodAt() == null ? other.getGoodAt() == null : this.getGoodAt().equals(other.getGoodAt()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getAvatar() == null ? other.getAvatar() == null : this.getAvatar().equals(other.getAvatar()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getAccount() == null ? other.getAccount() == null : this.getAccount().equals(other.getAccount()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIntroduction() == null ? other.getIntroduction() == null : this.getIntroduction().equals(other.getIntroduction()))
            && (this.getStreetId() == null ? other.getStreetId() == null : this.getStreetId().equals(other.getStreetId()))
            && (this.getIndustryCenterId() == null ? other.getIndustryCenterId() == null : this.getIndustryCenterId().equals(other.getIndustryCenterId()))
            && (this.getParam1() == null ? other.getParam1() == null : this.getParam1().equals(other.getParam1()))
            && (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()));
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
        result = prime * result + ((getCommunityId() == null) ? 0 : getCommunityId().hashCode());
        result = prime * result + ((getWorkTime() == null) ? 0 : getWorkTime().hashCode());
        result = prime * result + ((getGoodAt() == null) ? 0 : getGoodAt().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getAvatar() == null) ? 0 : getAvatar().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getAccount() == null) ? 0 : getAccount().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIntroduction() == null) ? 0 : getIntroduction().hashCode());
        result = prime * result + ((getStreetId() == null) ? 0 : getStreetId().hashCode());
        result = prime * result + ((getIndustryCenterId() == null) ? 0 : getIndustryCenterId().hashCode());
        result = prime * result + ((getParam1() == null) ? 0 : getParam1().hashCode());
        result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
        return result;
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", level=").append(level);
        sb.append(", communityId=").append(communityId);
        sb.append(", workTime=").append(workTime);
        sb.append(", goodAt=").append(goodAt);
        sb.append(", name=").append(name);
        sb.append(", avatar=").append(avatar);
        sb.append(", phone=").append(phone);
        sb.append(", account=").append(account);
        sb.append(", password=").append(password);
        sb.append(", status=").append(status);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", createTime=").append(createTime);
        sb.append(", createBy=").append(createBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", introduction=").append(introduction);
        sb.append(", streetId=").append(streetId);
        sb.append(", industryCenterId=").append(industryCenterId);
        sb.append(", param1=").append(param1);
        sb.append(", unit=").append(unit);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoIndustryCenter.java
New file
@@ -0,0 +1,141 @@
package com.panzhihua.service_community.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * 三说会堂-行业分中心表
 * @TableName com_sanshuo_industry_center
 */
@TableName(value ="com_sanshuo_industry_center")
@Data
public class ComSanshuoIndustryCenter implements Serializable {
    /**
     * id
     */
    @TableId
    private Long id;
    /**
     * 行业分中心名称
     */
    private String name;
    /**
     * 调解室电话
     */
    private String phone;
    /**
     * 登录账号
     */
    private String account;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;
    /**
     * 状态0禁用1启用
     */
    private Integer status;
    /**
     * 0删除1正常
     */
    private Integer delFlag;
    /**
     * 所属街道id
     */
    private Long streetId;
    /**
     * 所属社区id
     */
    private Long communityId;
    private String password;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ComSanshuoIndustryCenter other = (ComSanshuoIndustryCenter) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getAccount() == null ? other.getAccount() == null : this.getAccount().equals(other.getAccount()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
            && (this.getStreetId() == null ? other.getStreetId() == null : this.getStreetId().equals(other.getStreetId()))
            && (this.getCommunityId() == null ? other.getCommunityId() == null : this.getCommunityId().equals(other.getCommunityId()));
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getAccount() == null) ? 0 : getAccount().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        result = prime * result + ((getStreetId() == null) ? 0 : getStreetId().hashCode());
        result = prime * result + ((getCommunityId() == null) ? 0 : getCommunityId().hashCode());
        return result;
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", phone=").append(phone);
        sb.append(", account=").append(account);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", status=").append(status);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", streetId=").append(streetId);
        sb.append(", communityId=").append(communityId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoEventService.java
New file
@@ -0,0 +1,25 @@
package com.panzhihua.service_community.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoEventDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComSanshuoEvent;
import java.util.List;
public interface ComSanShuoEventService  extends IService<ComSanshuoEvent> {
    /**
     * 添加或修改事件类型
     * @param comSanshuoEvent
     * @return  处理结果
     * */
    R addOrUpdate(ComSanshuoEvent comSanshuoEvent);
    /**
     * 后台获取事件类型列表
     * @param comSanshuoEventDTO
     * @return  处理结果
     * */
    R backStageList(ComSanshuoEventDTO comSanshuoEventDTO);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoExpertService.java
New file
@@ -0,0 +1,28 @@
package com.panzhihua.service_community.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoExpertDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComSanshuoExpert;
import javax.annotation.Resource;
public interface ComSanShuoExpertService extends IService<ComSanshuoExpert> {
    /**
     * 添加专家
     * @param comSanshuoExpertDTO
     * @return 处理结果
     * */
    R addExpert(ComSanshuoExpertDTO comSanshuoExpertDTO);
    /**
     * 后台获取专家列表
     * @param page
     * @param keyWord
     * @param size
     * @param range 数据范围:1街道下属/2社区下属/3业务中心下属/null三说会堂下属
     * @param id 社区或街道或业务中心id
     * @return 处理结果
     * */
    R expertPage(String keyWord, Integer page, Integer size,Integer range,Long id);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoIndustryCenterService.java
New file
@@ -0,0 +1,25 @@
package com.panzhihua.service_community.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanShuoIndustryCenterDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComSanshuoIndustryCenter;
public interface ComSanShuoIndustryCenterService extends IService<ComSanshuoIndustryCenter> {
    /**
     * 后台业务中心列表
     * @param keyWord 搜索关键字
     * @param page
     * @param size
     * @return 处理结果
     * */
    R pageIndustryCenter(String keyWord, Integer page, Integer size);
    /**
     * 添加或修改业务中心信息
     * @param comSanShuoIndustryCenterDTO
     * @return 处理结果
     * */
    R addOrUpdate(ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoEventServiceImpl.java
New file
@@ -0,0 +1,62 @@
package com.panzhihua.service_community.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoEventDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.dao.ComSanshuoEventDao;
import com.panzhihua.service_community.entity.ComSanshuoEvent;
import com.panzhihua.service_community.service.ComSanShuoEventService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import static java.util.Objects.isNull;
@Service
public class ComSanShuoEventServiceImpl  extends ServiceImpl<ComSanshuoEventDao, ComSanshuoEvent> implements ComSanShuoEventService {
    @Resource
    private ComSanshuoEventDao sanshuoEventDao;
    /**
     * 添加或修改事件类型
     * @param comSanshuoEvent
     * @return  处理结果
     * */
    @Override
    public R addOrUpdate(ComSanshuoEvent comSanshuoEvent) {
        if (isNull(comSanshuoEvent.getName())){
            return R.fail("名称不能为空!");
        }
        if (isNull(comSanshuoEvent.getId())){
            //添加操作
            comSanshuoEvent.setCreateTime(new Date());
            int insert = sanshuoEventDao.insert(comSanshuoEvent);
            if (insert>0){
                return R.ok();
            }
        }
        //修改
        comSanshuoEvent.setUpdateTime(new Date());
        int i = sanshuoEventDao.updateById(comSanshuoEvent);
        if (i>0){
            return R.ok();
        }
        return R.fail("操作失败");
    }
    /**
     * 后台获取事件类型列表
     * @param comSanshuoEventDTO
     * @return  处理结果
     * */
    @Override
    public R backStageList(ComSanshuoEventDTO comSanshuoEventDTO) {
        return R.ok(this.baseMapper.pageEvent(new Page(comSanshuoEventDTO.getPage(),comSanshuoEventDTO.getSize()),comSanshuoEventDTO)) ;
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoExpertServiceImpl.java
New file
@@ -0,0 +1,57 @@
package com.panzhihua.service_community.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.crypto.digest.MD5;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoExpertDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.utlis.Snowflake;
import com.panzhihua.common.utlis.StringUtils;
import com.panzhihua.service_community.dao.ComSanshuoEventDao;
import com.panzhihua.service_community.dao.ComSanshuoExpertDao;
import com.panzhihua.service_community.entity.ComSanshuoExpert;
import com.panzhihua.service_community.service.ComSanShuoExpertService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
@Service
public class ComSanShuoExpertServiceImpl  extends ServiceImpl<ComSanshuoExpertDao, ComSanshuoExpert> implements ComSanShuoExpertService {
    @Resource
    private ComSanshuoExpertDao comSanshuoExpertDao;
    /**
     * 添加专家
     * @param comSanshuoExpertDTO
     * @return 处理结果
     * */
    @Override
    public R addExpert(ComSanshuoExpertDTO comSanshuoExpertDTO) {
        ComSanshuoExpert expert=new ComSanshuoExpert();
        BeanUtil.copyProperties(comSanshuoExpertDTO,expert);
        expert.setId(Snowflake.getId());
        expert.setCreateTime(new Date());
        int insert = comSanshuoExpertDao.insert(expert);
        if (insert>0){
            return R.ok();
        }
        return R.fail("添加失败");
    }
    /**
     * 后台获取专家列表
     * @param page
     * @param keyWord
     * @param size
     * @param range 数据范围:1街道下属/2社区下属/3业务中心下属/null三说会堂下属
     * @param id 社区或街道或业务中心id
     * @return 处理结果
     * */
    @Override
    public R expertPage(String keyWord, Integer page, Integer size,Integer range,Long id) {
        return R.ok(comSanshuoExpertDao.expertPage(new Page(page,size),keyWord,range,id));
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoIndustryCenterServiceImpl.java
New file
@@ -0,0 +1,66 @@
package com.panzhihua.service_community.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.db.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanShuoIndustryCenterDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.utlis.Snowflake;
import com.panzhihua.service_community.dao.ComSanshuoIndustryCenterDao;
import com.panzhihua.service_community.entity.ComSanshuoIndustryCenter;
import com.panzhihua.service_community.service.ComSanShuoIndustryCenterService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
import static java.util.Objects.isNull;
@Service
public class ComSanShuoIndustryCenterServiceImpl extends ServiceImpl<ComSanshuoIndustryCenterDao, ComSanshuoIndustryCenter> implements ComSanShuoIndustryCenterService {
    @Resource
    private ComSanshuoIndustryCenterDao comSanshuoIndustryCenterDao;
    /**
     * 后台业务中心列表
     * @param keyWord 搜索关键字
     * @param page
     * @param size
     * @return 处理结果
     * */
    @Override
    public R pageIndustryCenter(String keyWord, Integer page, Integer size) {
        return R.ok(comSanshuoIndustryCenterDao.pageIndustryCenter(new Page(page,size),keyWord));
    }
    /**
     * 添加或修改业务中心信息
     * @param comSanShuoIndustryCenterDTO
     * @return 处理结果
     * */
    @Override
    public R addOrUpdate(ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO) {
        if (isNull(comSanShuoIndustryCenterDTO.getId())){
            ComSanshuoIndustryCenter center=new ComSanshuoIndustryCenter();
            BeanUtil.copyProperties(comSanShuoIndustryCenterDTO,center);
            //添加
            center.setId(Snowflake.getId());
            center.setCreateTime(new Date());
            int insert = comSanshuoIndustryCenterDao.insert(center);
            if (insert>0){
                return R.ok();
            }
        }else {
            ComSanshuoIndustryCenter center=new ComSanshuoIndustryCenter();
            BeanUtil.copyProperties(comSanShuoIndustryCenterDTO,center);
            center.setUpdateTime(new Date());
            int i = comSanshuoIndustryCenterDao.updateById(center);
            if (i>0){
                return R.ok();
            }
        }
        return R.fail("操作失败");
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoEventDao.xml
New file
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.panzhihua.service_community.dao.ComSanshuoEventDao">
    <resultMap id="BaseResultMap" type="com.panzhihua.service_community.entity.ComSanshuoEvent">
            <id property="id" column="id" jdbcType="INTEGER"/>
            <result property="name" column="name" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="status" column="status" jdbcType="INTEGER"/>
            <result property="delFlag" column="del_flag" jdbcType="INTEGER"/>
    </resultMap>
    <sql id="Base_Column_List">
       select id,name,create_time,
        update_time,status,del_flag from com_sanshuo_event
    </sql>
    <select id="pageEvent" resultType="com.panzhihua.service_community.entity.ComSanshuoEvent">
        <include refid="Base_Column_List"/>
        where name like concat('%',#{comSanshuoEventDTO.name},'%')
    </select>
</mapper>
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoExpertDao.xml
New file
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.panzhihua.service_community.dao.ComSanshuoExpertDao">
    <resultMap id="BaseResultMap" type="com.panzhihua.service_community.entity.ComSanshuoExpert">
            <id property="id" column="id" jdbcType="BIGINT"/>
            <result property="level" column="level" jdbcType="TINYINT"/>
            <result property="communityId" column="community_id" jdbcType="BIGINT"/>
            <result property="workTime" column="work_time" jdbcType="VARCHAR"/>
            <result property="goodAt" column="good_at" jdbcType="VARCHAR"/>
            <result property="name" column="name" jdbcType="VARCHAR"/>
            <result property="avatar" column="avatar" jdbcType="VARCHAR"/>
            <result property="phone" column="phone" jdbcType="VARCHAR"/>
            <result property="account" column="account" jdbcType="VARCHAR"/>
            <result property="password" column="password" jdbcType="VARCHAR"/>
            <result property="status" column="status" jdbcType="VARCHAR"/>
            <result property="delFlag" column="del_flag" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="introduction" column="introduction" jdbcType="VARCHAR"/>
            <result property="streetId" column="street_id" jdbcType="BIGINT"/>
            <result property="industryCenterId" column="industry_center_id" jdbcType="VARCHAR"/>
            <result property="param1" column="param1" jdbcType="VARCHAR"/>
            <result property="unit" column="unit" jdbcType="VARCHAR"/>
    </resultMap>
    <sql id="Base_Column_List">
        select id,level,community_id,
        work_time,good_at,name,
        avatar,phone,account,
        password,status,del_flag,
        create_time,create_by,update_time,
        introduction,street_id,industry_center_id,
        param1,unit from com_sanshuo_expert
    </sql>
    <select id="expertPage"  resultType="com.panzhihua.common.model.vos.sanshuo.ComSanshuoExpertVO">
        select id,level,community_id,
        work_time,good_at,name,
        avatar,phone,account,
        password,status,del_flag,
        create_time,create_by,update_time,
        introduction,street_id,industry_center_id,
        param1,unit from com_sanshuo_expert
        where del_flag=0
            <if test="keyWord != null and keyWord != ''">
                AND unit like concat('%',#{keyWord},'%')
                OR name like concat('%',#{keyWord},'%')
                OR phone like concat('%',#{keyWord},'%')
            </if>
            <if test="range != null and range != ''">
                <if test="range == 1">
                  AND street_id=#{id}
                </if>
                <if test="range == 2">
                  AND community_id=#{id}
                </if>
                <if test="range == 3">
                  AND industry_center_id=#{id}
                </if>
            </if>
    </select>
</mapper>
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoIndustryCenterDao.xml
New file
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.panzhihua.service_community.dao.ComSanshuoIndustryCenterDao">
    <resultMap id="BaseResultMap" type="com.panzhihua.service_community.entity.ComSanshuoIndustryCenter">
            <id property="id" column="id" jdbcType="INTEGER"/>
            <result property="name" column="name" jdbcType="VARCHAR"/>
            <result property="phone" column="phone" jdbcType="VARCHAR"/>
            <result property="account" column="account" jdbcType="VARCHAR"/>
            <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="status" column="status" jdbcType="TINYINT"/>
            <result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
            <result property="streetId" column="street_id" jdbcType="BIGINT"/>
            <result property="communityId" column="community_id" jdbcType="BIGINT"/>
    </resultMap>
    <sql id="Base_Column_List">
        select id,name,phone,
        account,create_by,create_time,
        update_time,status,del_flag,
        street_id,community_id from com_sanshuo_industry_center
    </sql>
    <select id="pageIndustryCenter"
            resultType="com.panzhihua.common.model.vos.sanshuo.ComSanShuoIndustryCenterVO">
        <include refid="Base_Column_List"/>
        <where>
            <if test="keyWord != null and keyWord != ''">
               name like concat('%',#{keyWord},'%')
               OR phone like concat('%',#{keyWord},'%')
            </if>
        </where>
    </select>
</mapper>