18 files modified
9 files added
| | |
| | | secureRegistry.excludePathPatterns("/trainingRegistration/**"); |
| | | secureRegistry.excludePathPatterns("/seinspect/**"); |
| | | secureRegistry.excludePathPatterns("/coinspect/**"); |
| | | secureRegistry.excludePathPatterns("/blade-user/**"); |
| | | return secureRegistry; |
| | | } |
| | | |
| | |
| | | param.put(TokenConstant.ROLE_NAME, Func.join(userInfo.getRoles())); |
| | | param.put(TokenConstant.DETAIL, userInfo.getDetail()); |
| | | param.put("jurisdiction", user.getJurisdiction()); |
| | | param.put("cardid", user.getCardid()); |
| | | |
| | | //拼装accessToken |
| | | try { |
| | |
| | | .set(TokenConstant.POST_ID, user.getPostId()) |
| | | .set(TokenConstant.ROLE_ID, user.getRoleId()) |
| | | .set("jurisdiction", user.getJurisdiction()) |
| | | .set("cardid", user.getCardid()) |
| | | .set(TokenConstant.OAUTH_ID, userInfo.getOauthId()) |
| | | .set(TokenConstant.ACCOUNT, user.getAccount()) |
| | | .set(TokenConstant.USER_NAME, user.getAccount()) |
| | |
| | | */ |
| | | @ApiModelProperty(value = "成立日期") |
| | | @TableField("establishTime") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date establishtime; |
| | | /** |
| | | * 注册资本 |
| | |
| | | |
| | | private String stats; |
| | | private String jurisdiction; |
| | | private String representativecell; |
| | | private String contacts; |
| | | private String contactscell; |
| | | |
| | | |
| | | } |
| | |
| | | @ExcelProperty("法定代表人") |
| | | private String representative; |
| | | |
| | | @ExcelProperty("法定代表人电话") |
| | | private String representativecell; |
| | | |
| | | @ExcelProperty("联系人") |
| | | private String contacts; |
| | | |
| | | @ExcelProperty("联系人电话") |
| | | private String contactscell; |
| | | |
| | | @ColumnWidth(15) |
| | | @ExcelProperty("成立日期") |
| | | private String establishtime; |
| | |
| | | <result column="departmentid" property="departmentid"/> |
| | | <result column="stats" property="stats"/> |
| | | <result column="jurisdiction" property="jurisdiction"/> |
| | | <result column="representativecell" property="representativecell"/> |
| | | <result column="contacts" property="contacts"/> |
| | | <result column="contactscell" property="contactscell"/> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 新增 |
| | | */ |
| | | @PostMapping("/storage") |
| | | @ApiOperation(value = "新增", notes = "传入permit") |
| | | public R storage(@Valid @RequestBody Permit permit) { |
| | | permit.setStorage("0"); |
| | | permit.setPermitime(new Date()); |
| | | return R.status(permitService.save(permit)); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/selectIn") |
| | | public R selectIn(String cardid) { |
| | | Map map = permitService.selectIn(cardid); |
| | | return R.data(map); |
| | | } |
| | | |
| | | /** |
| | | * 修改 |
| | | */ |
| | | @PostMapping("/update") |
| | |
| | | private Integer id; |
| | | private String deptid; |
| | | private String ptype; |
| | | private String storage; |
| | | private String cardid; |
| | | private String representativecell; |
| | | private String contacts; |
| | | private String contactscell; |
| | | |
| | | |
| | | } |
| | |
| | | import org.springblade.modules.permit.vo.PermitVO; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * Mapper 接口 |
| | |
| | | */ |
| | | List<PermitVO> selectPermitPage(IPage page, PermitVO permit); |
| | | |
| | | Map selectIn(String cardid); |
| | | |
| | | } |
| | |
| | | <result column="permitime" property="permitime"/> |
| | | <result column="deptid" property="deptid"/> |
| | | <result column="ptype" property="ptype"/> |
| | | <result column="storage" property="storage"/> |
| | | <result column="cardid" property="cardid"/> |
| | | <result column="representativecell" property="representativecell"/> |
| | | <result column="contacts" property="contacts"/> |
| | | <result column="contactscell" property="contactscell"/> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | select * from sys_permit |
| | | </select> |
| | | |
| | | <select id="selectIn" resultType="java.util.HashMap"> |
| | | select * from sys_permit where storage=0 and cardid=#{cardid} |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | import org.springblade.modules.permit.entity.Permit; |
| | | import org.springblade.modules.permit.vo.PermitVO; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 服务类 |
| | | * |
| | |
| | | * @return |
| | | */ |
| | | IPage<PermitVO> selectPermitPage(IPage<PermitVO> page, PermitVO permit); |
| | | |
| | | Map selectIn(String cardid); |
| | | } |
| | |
| | | import org.springblade.modules.permit.vo.PermitVO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 服务实现类 |
| | | * |
| | |
| | | return page.setRecords(baseMapper.selectPermitPage(page, permit)); |
| | | } |
| | | |
| | | @Override |
| | | public Map selectIn(String cardid) { |
| | | return baseMapper.selectIn(cardid); |
| | | } |
| | | |
| | | } |
| | |
| | | return R.data(tree); |
| | | } |
| | | |
| | | /** |
| | | * 自定义用户列表(只有保安员) |
| | | */ |
| | | @GetMapping("/selectInr") |
| | | public R selectInr(String deptid) { |
| | | List<Map<Object, Object>> list = userService.selectInr(deptid); |
| | | return R.data(list); |
| | | } |
| | | |
| | | } |
| | |
| | | @TableField("is_apply") |
| | | private Integer isApply; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date birthtime; |
| | | |
| | | } |
| | |
| | | @ExcelProperty("账户") |
| | | private String account; |
| | | |
| | | @ExcelProperty("单位名称") |
| | | private String deptId; |
| | | |
| | | @ColumnWidth(10) |
| | | @ExcelProperty("姓名") |
| | | private String realName; |
| | |
| | | |
| | | @ExcelProperty("性别") |
| | | private String sex; |
| | | |
| | | @ExcelProperty("出生日期") |
| | | private String birthtime; |
| | | |
| | | @ExcelProperty("身份证") |
| | | private String cardid; |
| | |
| | | @ExcelProperty("保安员证编码") |
| | | private String securitynumber; |
| | | |
| | | @ExcelProperty("在职状态") |
| | | private String status; |
| | | |
| | | |
| | | } |
| | |
| | | @MapKey(value = "id") |
| | | @SqlParser(filter=true) |
| | | Map<Long, TreeNode> getSecurityApplyTree(@Param("user") UserVO user); |
| | | List<Map<Object,Object>> selectInr(String deptid); |
| | | } |
| | |
| | | <result column="my_picture" property="myPicture"/> |
| | | <result column="is_apply" property="isApply"/> |
| | | <result column="deptname" property="deptname"/> |
| | | <result column="birthtime" property="birthtime"/> |
| | | </resultMap> |
| | | |
| | | <select id="selectUserPage" resultMap="userResultMap"> |
| | |
| | | ) |
| | | </select> |
| | | |
| | | |
| | | <select id="selectInr" resultType="java.util.HashMap"> |
| | | SELECT real_name as realName,id FROM blade_user |
| | | WHERE role_id='1412226235153731586' |
| | | <if test="deptid!=null and deptid!='' and dept!='1123598813738675201'"> |
| | | and dept_id=#{deptid} |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | |
| | | import org.springblade.modules.system.vo.UserVO; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 服务类 |
| | |
| | | * @return |
| | | */ |
| | | List<TreeNode> getSecurityApplyTree(UserVO user); |
| | | |
| | | List<Map<Object,Object>> selectInr(String deptid); |
| | | } |
| | |
| | | }); |
| | | return tree; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<Object, Object>> selectInr(String deptid) { |
| | | return baseMapper.selectInr(deptid); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.springblade.modules.talk.controller; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import lombok.AllArgsConstructor; |
| | | import javax.validation.Valid; |
| | | |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.information.entity.Information; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.modules.talk.entity.Talk; |
| | | import org.springblade.modules.talk.vo.TalkVO; |
| | | import org.springblade.modules.talk.service.ITalkService; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 控制器 |
| | | * |
| | | * @author BladeX |
| | | * @since 2021-08-10 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("blade-talk/talk") |
| | | @Api(value = "", tags = "接口") |
| | | public class TalkController extends BladeController { |
| | | |
| | | private final ITalkService talkService; |
| | | |
| | | /** |
| | | * 详情 |
| | | */ |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详情", notes = "传入talk") |
| | | public R<Talk> detail(Talk talk) { |
| | | Talk detail = talkService.getOne(Condition.getQueryWrapper(talk)); |
| | | return R.data(detail); |
| | | } |
| | | |
| | | /** |
| | | * 分页 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "分页", notes = "传入talk") |
| | | public R<IPage<Talk>> list(@ApiIgnore @RequestParam Map<String, Object> talk, Query query) { |
| | | IPage<Talk> pages = talkService.page(Condition.getPage(query), Condition.getQueryWrapper(talk, Talk.class)); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 自定义分页 |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入talk") |
| | | public R<IPage<TalkVO>> page(TalkVO talk, Query query) { |
| | | IPage<TalkVO> pages = talkService.selectTalkPage(Condition.getPage(query), talk); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 新增 |
| | | */ |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "新增", notes = "传入talk") |
| | | public R save(@Valid @RequestBody Talk talk) { |
| | | return R.status(talkService.save(talk)); |
| | | } |
| | | |
| | | /** |
| | | * 修改 |
| | | */ |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "修改", notes = "传入talk") |
| | | public R update(@Valid @RequestBody Talk talk) { |
| | | return R.status(talkService.updateById(talk)); |
| | | } |
| | | |
| | | /** |
| | | * 新增或修改 |
| | | */ |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "新增或修改", notes = "传入talk") |
| | | public R submit(@Valid @RequestBody Talk talk) { |
| | | return R.status(talkService.saveOrUpdate(talk)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "删除", notes = "传入ids") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(talkService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.springblade.modules.talk.dto; |
| | | |
| | | import org.springblade.modules.talk.entity.Talk; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * 数据传输对象实体类 |
| | | * |
| | | * @author BladeX |
| | | * @since 2021-08-10 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class TalkDTO extends Talk { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.springblade.modules.talk.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import java.time.LocalDateTime; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | /** |
| | | * 实体类 |
| | | * |
| | | * @author BladeX |
| | | * @since 2021-08-10 |
| | | */ |
| | | @Data |
| | | @TableName("sys_talk") |
| | | @ApiModel(value = "Talk对象", description = "Talk对象") |
| | | public class Talk implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | /** |
| | | * 标题 |
| | | */ |
| | | @ApiModelProperty(value = "标题") |
| | | private String title; |
| | | /** |
| | | * 谈话对象 |
| | | */ |
| | | @ApiModelProperty(value = "谈话对象") |
| | | private String realName; |
| | | /** |
| | | * 谈话内容 |
| | | */ |
| | | @ApiModelProperty(value = "谈话内容") |
| | | private String talkcontent; |
| | | /** |
| | | * 谈话时间 |
| | | */ |
| | | @ApiModelProperty(value = "谈话时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date talktime; |
| | | /** |
| | | * 结论 |
| | | */ |
| | | @ApiModelProperty(value = "结论") |
| | | private String conclusion; |
| | | /** |
| | | * 评价 |
| | | */ |
| | | @ApiModelProperty(value = "评价") |
| | | private String evaluate; |
| | | private String deptid; |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.springblade.modules.talk.mapper; |
| | | |
| | | import org.springblade.modules.talk.entity.Talk; |
| | | import org.springblade.modules.talk.vo.TalkVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Mapper 接口 |
| | | * |
| | | * @author BladeX |
| | | * @since 2021-08-10 |
| | | */ |
| | | public interface TalkMapper extends BaseMapper<Talk> { |
| | | |
| | | /** |
| | | * 自定义分页 |
| | | * |
| | | * @param page |
| | | * @param talk |
| | | * @return |
| | | */ |
| | | List<TalkVO> selectTalkPage(IPage page, TalkVO talk); |
| | | |
| | | } |
| New file |
| | |
| | | <?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="org.springblade.modules.talk.mapper.TalkMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="talkResultMap" type="org.springblade.modules.talk.entity.Talk"> |
| | | <id column="id" property="id"/> |
| | | <result column="title" property="title"/> |
| | | <result column="real_name" property="realName"/> |
| | | <result column="talkcontent" property="talkcontent"/> |
| | | <result column="talktime" property="talktime"/> |
| | | <result column="conclusion" property="conclusion"/> |
| | | <result column="evaluate" property="evaluate"/> |
| | | <result column="deptid" property="deptid"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectTalkPage" resultMap="talkResultMap"> |
| | | select * from sys_talk where 1=1 |
| | | <if test="talk.deptid!=null and alk.deptid!='' and alk.deptid!='1123598813738675201'"> |
| | | deptid=#{talk.deptid} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.springblade.modules.talk.service; |
| | | |
| | | import org.springblade.modules.talk.entity.Talk; |
| | | import org.springblade.modules.talk.vo.TalkVO; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | |
| | | /** |
| | | * 服务类 |
| | | * |
| | | * @author BladeX |
| | | * @since 2021-08-10 |
| | | */ |
| | | public interface ITalkService extends IService<Talk> { |
| | | |
| | | /** |
| | | * 自定义分页 |
| | | * |
| | | * @param page |
| | | * @param talk |
| | | * @return |
| | | */ |
| | | IPage<TalkVO> selectTalkPage(IPage<TalkVO> page, TalkVO talk); |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.springblade.modules.talk.service.impl; |
| | | |
| | | import org.springblade.modules.talk.entity.Talk; |
| | | import org.springblade.modules.talk.vo.TalkVO; |
| | | import org.springblade.modules.talk.mapper.TalkMapper; |
| | | import org.springblade.modules.talk.service.ITalkService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | |
| | | /** |
| | | * 服务实现类 |
| | | * |
| | | * @author BladeX |
| | | * @since 2021-08-10 |
| | | */ |
| | | @Service |
| | | public class TalkServiceImpl extends ServiceImpl<TalkMapper, Talk> implements ITalkService { |
| | | |
| | | @Override |
| | | public IPage<TalkVO> selectTalkPage(IPage<TalkVO> page, TalkVO talk) { |
| | | return page.setRecords(baseMapper.selectTalkPage(page, talk)); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.springblade.modules.talk.vo; |
| | | |
| | | import org.springblade.modules.talk.entity.Talk; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import io.swagger.annotations.ApiModel; |
| | | |
| | | /** |
| | | * 视图实体类 |
| | | * |
| | | * @author BladeX |
| | | * @since 2021-08-10 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @ApiModel(value = "TalkVO对象", description = "TalkVO对象") |
| | | public class TalkVO extends Talk { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | } |
| New file |
| | |
| | | INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`) |
| | | VALUES ('1424907304653926406', 1123598815738675201, 'talk', '心里咨询', 'menu', '/talk/talk', NULL, 1, 1, 0, 1, NULL, 0); |
| | | INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`) |
| | | VALUES ('1424907304653926407', '1424907304653926406', 'talk_add', '新增', 'add', '/talk/talk/add', 'plus', 1, 2, 1, 1, NULL, 0); |
| | | INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`) |
| | | VALUES ('1424907304653926408', '1424907304653926406', 'talk_edit', '修改', 'edit', '/talk/talk/edit', 'form', 2, 2, 2, 1, NULL, 0); |
| | | INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`) |
| | | VALUES ('1424907304653926409', '1424907304653926406', 'talk_delete', '删除', 'delete', '/api/blade-talk/talk/remove', 'delete', 3, 2, 3, 1, NULL, 0); |
| | | INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`) |
| | | VALUES ('1424907304653926410', '1424907304653926406', 'talk_view', '查看', 'view', '/talk/talk/view', 'file-text', 4, 2, 2, 1, NULL, 0); |