11个文件已修改
20个文件已添加
1 文件已重命名
File was renamed from ycl-platform/src/main/java/com/ycl/controller/caseHandler/WritController.java |
| | |
| | | package com.ycl.controller.caseHandler; |
| | | package com.ycl.controller.writ; |
| | | |
| | | |
| | | import com.ycl.controller.BaseController; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ycl.base.BaseController; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书种类 只针对违建 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author wl |
| | | * @since 2022-09-24 |
| | | * @author lyq |
| | | * @since 2022-11-15 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/writ") |
New file |
| | |
| | | package com.ycl.controller.writ; |
| | | |
| | | |
| | | import com.ycl.base.BaseController; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书模板表 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-14 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/writ_template") |
| | | @Api(tags = "文书模板管理") |
| | | public class WritTemplateController extends BaseController { |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.entity.writ; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.Version; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书种类 只针对违建 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-15 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("ums_writ") |
| | | public class Writ implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 案件id(同ums_base_case表id) |
| | | */ |
| | | @TableId("base_case_id") |
| | | private Integer baseCaseId; |
| | | |
| | | /** |
| | | * 违建id |
| | | */ |
| | | @TableField("illegal_building_id") |
| | | private Integer illegalBuildingId; |
| | | |
| | | /** |
| | | * 文书种类 |
| | | */ |
| | | @TableField("writ_type") |
| | | private Integer writType; |
| | | |
| | | /** |
| | | * 文书编号 |
| | | */ |
| | | @TableField("writ_code") |
| | | private String writCode; |
| | | |
| | | /** |
| | | * 违法类型 |
| | | */ |
| | | @TableField("illegal_type") |
| | | private Integer illegalType; |
| | | |
| | | /** |
| | | * 文书发放时间 |
| | | */ |
| | | @TableField("send_time") |
| | | private LocalDateTime sendTime; |
| | | |
| | | /** |
| | | * 文书限定时间 |
| | | */ |
| | | @TableField("limit_time") |
| | | private LocalDateTime limitTime; |
| | | |
| | | /** |
| | | * 文书发放内容 |
| | | */ |
| | | @TableField("send_content") |
| | | private String sendContent; |
| | | |
| | | /** |
| | | * 实际整改时间 |
| | | */ |
| | | @TableField("rectify_time") |
| | | private LocalDateTime rectifyTime; |
| | | |
| | | /** |
| | | * 整改情况 |
| | | */ |
| | | @TableField("rectify_situation") |
| | | private String rectifySituation; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @TableField("remark") |
| | | private String remark; |
| | | |
| | | /** |
| | | * 文书照片上传 |
| | | */ |
| | | @TableField("writ_pic") |
| | | private String writPic; |
| | | |
| | | /** |
| | | * 整改前照片 |
| | | */ |
| | | @TableField("original_pic") |
| | | private String originalPic; |
| | | |
| | | /** |
| | | * 整改后照片 |
| | | */ |
| | | @TableField("rectified_pic") |
| | | private String rectifiedPic; |
| | | |
| | | /** |
| | | * 其他照片 |
| | | */ |
| | | @TableField("other_pic") |
| | | private String otherPic; |
| | | |
| | | /** |
| | | * 创建人 |
| | | */ |
| | | @TableField("create_user") |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * 文书模板值 |
| | | */ |
| | | @TableField("value") |
| | | private String value; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.entity.writ; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.Version; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书模板表 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-14 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("ums_writ_template") |
| | | public class WritTemplate implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * id |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 模板名称 |
| | | */ |
| | | @TableField("name") |
| | | private String name; |
| | | |
| | | /** |
| | | * 前端对应组件名称 |
| | | */ |
| | | @TableField("code") |
| | | private String code; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.mapper.writ; |
| | | |
| | | import com.ycl.entity.writ.Writ; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书种类 只针对违建 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-15 |
| | | */ |
| | | public interface WritMapper extends BaseMapper<Writ> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.mapper.writ; |
| | | |
| | | import com.ycl.entity.writ.WritTemplate; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书模板表 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-14 |
| | | */ |
| | | public interface WritTemplateMapper extends BaseMapper<WritTemplate> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.service.writ; |
| | | |
| | | import com.ycl.entity.writ.WritTemplate; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书模板表 服务类 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-14 |
| | | */ |
| | | public interface IWritTemplateService extends IService<WritTemplate> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.service.writ.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.entity.writ.Writ; |
| | | import com.ycl.mapper.writ.WritMapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书种类 只针对违建 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-15 |
| | | */ |
| | | @Service |
| | | public class WritServiceImpl extends ServiceImpl<WritMapper, Writ> implements IService<Writ> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.service.writ.impl; |
| | | |
| | | import com.ycl.entity.writ.WritTemplate; |
| | | import com.ycl.mapper.writ.WritTemplateMapper; |
| | | import com.ycl.service.writ.IWritTemplateService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书模板表 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-14 |
| | | */ |
| | | @Service |
| | | public class WritTemplateServiceImpl extends ServiceImpl<WritTemplateMapper, WritTemplate> implements IWritTemplateService { |
| | | |
| | | } |
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="com.ycl.mapper.writ.WritMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.entity.writ.Writ"> |
| | | <id column="base_case_id" property="baseCaseId" /> |
| | | <result column="illegal_building_id" property="illegalBuildingId" /> |
| | | <result column="writ_type" property="writType" /> |
| | | <result column="writ_code" property="writCode" /> |
| | | <result column="illegal_type" property="illegalType" /> |
| | | <result column="send_time" property="sendTime" /> |
| | | <result column="limit_time" property="limitTime" /> |
| | | <result column="send_content" property="sendContent" /> |
| | | <result column="rectify_time" property="rectifyTime" /> |
| | | <result column="rectify_situation" property="rectifySituation" /> |
| | | <result column="remark" property="remark" /> |
| | | <result column="writ_pic" property="writPic" /> |
| | | <result column="original_pic" property="originalPic" /> |
| | | <result column="rectified_pic" property="rectifiedPic" /> |
| | | <result column="other_pic" property="otherPic" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="value" property="value" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | base_case_id, illegal_building_id, writ_type, writ_code, illegal_type, send_time, limit_time, send_content, rectify_time, rectify_situation, remark, writ_pic, original_pic, rectified_pic, other_pic, create_user, create_time, value |
| | | </sql> |
| | | |
| | | </mapper> |
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="com.ycl.mapper.writ.WritTemplateMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.entity.writ.WritTemplate"> |
| | | <id column="id" property="id" /> |
| | | <result column="name" property="name" /> |
| | | <result column="code" property="code" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, name, code |
| | | </sql> |
| | | |
| | | </mapper> |
| | |
| | | <artifactId>spring-boot-starter-test</artifactId> |
| | | <scope>test</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.ycl</groupId> |
| | | <artifactId>ycl-generator</artifactId> |
| | | <version>1.0.0</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <build> |
| | |
| | | package com.ycl.controller.caseHandler; |
| | | |
| | | |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.bo.AdminUserDetails; |
| | | import com.ycl.controller.BaseController; |
| | |
| | | **/ |
| | | @ApiOperation(value = "查询", response = MyBacklogVO.class) |
| | | @GetMapping("/query") |
| | | @LogSave(operationType = "我的待办", contain = "查询") |
| | | public CommonResult searchMyTask(@RequestParam(required = false) String num) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | return CommonResult.success(iDisposeRecordService.listMyTask(num, user.getUserId())); |
| | |
| | | |
| | | @GetMapping("/query") |
| | | @ApiOperation("查询") |
| | | @LogSave |
| | | @LogSave(operationType = "卡口管理", contain = "查询卡口") |
| | | public CommonResult search(@RequestParam(required = false) Integer size, |
| | | @RequestParam(required = false) Integer current, |
| | | @RequestParam(required = false) String bayonetName) { |
| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.bo.AdminUserDetails; |
| | | import com.ycl.dto.message.MessageParam; |
| | |
| | | @ApiOperation(value = "发送消息") |
| | | @RequestMapping(value = "/sendMessage", method = RequestMethod.POST) |
| | | @ResponseBody |
| | | @LogSave(operationType = "消息管理", contain = "发送消息") |
| | | public CommonResult sendMessage(@Validated @RequestBody Message message) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | //设置创建人 |
| | |
| | | @ApiOperation(value = "暂存消息") |
| | | @PostMapping("/saveMessage") |
| | | @ResponseBody |
| | | @LogSave(operationType = "消息管理", contain = "保存消息") |
| | | public CommonResult saveMessage(@Validated @RequestBody Message message) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | //设置创建人 |
| | |
| | | @ApiOperation(value = "获取消息分页查询") |
| | | @RequestMapping(value = "/list", method = RequestMethod.GET) |
| | | @ResponseBody |
| | | @LogSave(operationType = "消息管理", contain = "查询消息") |
| | | public CommonResult<IPage<MessageVO>> list(MessageParam messageParam) { |
| | | return CommonResult.success(iMessageService.list(messageParam)); |
| | | } |
| | |
| | | @ApiOperation("修改指定消息") |
| | | @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) |
| | | @ResponseBody |
| | | @LogSave(operationType = "消息管理", contain = "修改消息") |
| | | public CommonResult update(@RequestBody Message message) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | //设置创建人 |
| | |
| | | @ApiOperation("批量删除消息") |
| | | @RequestMapping(value = "/delete", method = RequestMethod.POST) |
| | | @ResponseBody |
| | | @LogSave(operationType = "消息管理", contain = "删除消息") |
| | | public CommonResult delete(@RequestParam("ids") List<Long> ids) { |
| | | boolean success = iMessageService.deleteMessages(ids); |
| | | if (success) { |
| | |
| | | |
| | | @ApiOperation("logo管理-添加logo") |
| | | @PostMapping("/logo/add") |
| | | @LogSave(operationType = "门户管理", contain = "添加logo") |
| | | public CommonResult addLogo(@RequestBody @Validated WebsiteLogo websiteLogo) { |
| | | return CommonResult.success(umsWebsiteLogoService.save(websiteLogo)); |
| | | } |
| | | |
| | | @ApiOperation("logo管理-修改logo") |
| | | @PutMapping("/logo/update") |
| | | @LogSave(operationType = "门户管理", contain = "修改logo") |
| | | public CommonResult updateLogo(@RequestBody WebsiteLogo websiteLogo) { |
| | | return CommonResult.success(umsWebsiteLogoService.updateById(websiteLogo)); |
| | | } |
| | | |
| | | @ApiOperation("logo管理-查询logo") |
| | | @GetMapping("/logo/search") |
| | | @LogSave(operationType = "门户管理", contain = "查询logo") |
| | | public CommonResult searchLogo() { |
| | | return CommonResult.success(umsWebsiteLogoService.list(new QueryWrapper<>()).get(0)); |
| | | } |
| | | |
| | | @ApiOperation("logo管理-查询logo") |
| | | @GetMapping("/logo/searchOne") |
| | | @LogSave(operationType = "门户管理", contain = "查询logo") |
| | | public CommonResult searchLogo(@RequestParam Integer id) { |
| | | return CommonResult.success(umsWebsiteLogoService.getOne(new QueryWrapper<WebsiteLogo>().eq("id", id))); |
| | | } |
| | | |
| | | @ApiOperation("logo管理-删除logo") |
| | | @DeleteMapping("/logo/delete") |
| | | @LogSave(operationType = "门户管理", contain = "删除logo") |
| | | public CommonResult removeLogo(@RequestParam Integer id) { |
| | | return CommonResult.success(umsWebsiteLogoService.removeById(id)); |
| | | } |
| | |
| | | |
| | | @ApiOperation("菜单权限-个人菜单状态修改") |
| | | @PutMapping("/menu/modification_myself") |
| | | @LogSave(operationType = "门户管理", contain = "菜单权限修改") |
| | | public CommonResult modifyMenusMyself(@RequestParam Long relationId, Integer status) { |
| | | AdminMenuRelation adminMenuRelation = new AdminMenuRelation(); |
| | | adminMenuRelation.setId(relationId); |
| | |
| | | |
| | | @GetMapping("/query") |
| | | @ApiOperation("查询") |
| | | @LogSave(operationType = "图片资源管理", contain = "查询图片") |
| | | public CommonResult search(@RequestParam(required = false) Integer type, |
| | | @RequestParam(required = false) String startTime, |
| | | @RequestParam(required = false) String endTime, |
| | |
| | | |
| | | @GetMapping("/query") |
| | | @ApiOperation("查询") |
| | | @LogSave(operationType = "视频资源管理", contain = "修改图片") |
| | | public CommonResult search(@RequestParam(required = false) Integer type, |
| | | @RequestParam(required = false) String startTime, |
| | | @RequestParam(required = false) String endTime, |
| | |
| | | @ApiOperation("根据门店名称分页获取门店列表列表") |
| | | @RequestMapping(value = "/list", method = RequestMethod.GET) |
| | | @ResponseBody |
| | | @LogSave(operationType = "门店管理", contain = "查询门店") |
| | | public CommonResult<CommonPage<StoreInfoVO>> list(@RequestParam(value = "keyword", required = false) String keyword, |
| | | @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, |
| | | @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { |
| | |
| | | @ApiOperation("根据id获取门店信息") |
| | | @RequestMapping(value = "/{id}", method = RequestMethod.GET) |
| | | @ResponseBody |
| | | @LogSave(operationType = "门店管理", contain = "查询门店") |
| | | public CommonResult<StoreInfoVO> getItem(@PathVariable Long id) { |
| | | StoreInfo storeInfo = storeInfoService.getById(id); |
| | | StoreInfoVO vo = new StoreInfoVO(); |
| | |
| | | @ApiOperation(value = "根据id删除门店信息") |
| | | @RequestMapping(value = "/delete/{id}", method = RequestMethod.GET) |
| | | @ResponseBody |
| | | @LogSave(operationType = "门店管理", contain = "删除门店") |
| | | public CommonResult delete(@PathVariable Long id) { |
| | | boolean success = storeInfoService.removeById(id); |
| | | if (success) { |
| | |
| | | @ApiOperation(value = "修改门店信息") |
| | | @RequestMapping(value = "/update", method = RequestMethod.PUT) |
| | | @ResponseBody |
| | | @LogSave(operationType = "门店管理", contain = "修改门店") |
| | | public CommonResult update(@RequestBody StoreInfo storeInfo) { |
| | | boolean success = storeInfoService.updateById(storeInfo); |
| | | if (success) { |
| | |
| | | @ApiOperation(value = "根据excel模板批量导入门店信息") |
| | | @RequestMapping(value = "/add/excel", method = RequestMethod.POST) |
| | | @ResponseBody |
| | | @LogSave(operationType = "门店管理", contain = "导入门店") |
| | | public CommonResult addByExcel(MultipartFile file) { |
| | | boolean success = storeInfoService.addByExcel(file); |
| | | if (success) { |
| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.controller.BaseController; |
| | | import com.ycl.entity.video.VideoPoint; |
| | |
| | | |
| | | @GetMapping("/query") |
| | | @ApiOperation("查询") |
| | | @LogSave(operationType = "点位管理", contain = "查询点位") |
| | | public CommonResult searchVideoPoint(@RequestParam Long size, |
| | | @RequestParam Long current, |
| | | @RequestParam(required = false) Integer streetId, |
| | |
| | | |
| | | @PostMapping("/addition") |
| | | @ApiOperation("添加") |
| | | @LogSave(operationType = "点位管理", contain = "添加点位") |
| | | public CommonResult addVideoPoint(@RequestBody VideoPoint videoPoint) { |
| | | return CommonResult.success(iVideoPointService.save(videoPoint)); |
| | | } |
| | | |
| | | @PutMapping("/modification") |
| | | @ApiOperation("编辑") |
| | | @LogSave(operationType = "点位管理", contain = "编辑点位") |
| | | public CommonResult modifyVideoPoint(@RequestBody VideoPoint videoPoint) { |
| | | return CommonResult.success(iVideoPointService.updateById(videoPoint)); |
| | | } |
| | | |
| | | @DeleteMapping("/deletion") |
| | | @ApiOperation("删除") |
| | | @LogSave(operationType = "点位管理", contain = "修改点位") |
| | | public CommonResult deleteVideoPoint(@RequestParam Long id) { |
| | | return CommonResult.success(iVideoPointService.removeById(id)); |
| | | } |
New file |
| | |
| | | package com.ycl.controller.writ; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.base.BaseController; |
| | | import com.ycl.entity.caseHandler.Writ; |
| | | import com.ycl.service.caseHandler.IWritService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书种类 只针对违建 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-15 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/writ") |
| | | @Api(value = "文书管理") |
| | | public class WritController extends BaseController { |
| | | |
| | | @Autowired |
| | | IWritService iWritService; |
| | | |
| | | @GetMapping("/query") |
| | | @ApiOperation(value = "查询list") |
| | | @LogSave(operationType = "文书管理", contain = "查询文书") |
| | | public CommonResult search(@RequestParam Integer size, |
| | | @RequestParam Integer current, |
| | | @RequestParam(required = false) Integer writType) { |
| | | return CommonResult.success(iWritService.page(new Page<>(size, current), new LambdaQueryWrapper<Writ>() |
| | | .eq(writType != null, Writ::getWritType, writType))); |
| | | } |
| | | |
| | | @GetMapping("/query_one") |
| | | @ApiOperation(value = "查询one") |
| | | @LogSave(operationType = "文书管理", contain = "查看文书") |
| | | public CommonResult searchOne(@RequestParam Integer id) { |
| | | return CommonResult.success(iWritService.getById(id)); |
| | | } |
| | | |
| | | @PutMapping("/modification") |
| | | @ApiOperation(value = "修改") |
| | | @LogSave(operationType = "文书管理", contain = "修改文书") |
| | | public CommonResult modify(@RequestBody Writ writ) { |
| | | return CommonResult.success(iWritService.updateById(writ)); |
| | | } |
| | | |
| | | @PutMapping("/deletion_batch") |
| | | @ApiOperation(value = "批量删除") |
| | | @LogSave(operationType = "文书管理", contain = "删除文书") |
| | | public CommonResult modifyBatch(@RequestParam List<Long> ids) { |
| | | return CommonResult.success(iWritService.removeBatchByIds(ids)); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.controller.writ; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.controller.BaseController; |
| | | import com.ycl.entity.writ.WritTemplate; |
| | | import com.ycl.service.writ.IWritTemplateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书模板表 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-14 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/writ_template") |
| | | @Api(tags = "文书模板管理") |
| | | public class WritTemplateController extends BaseController { |
| | | |
| | | @Autowired |
| | | IWritTemplateService iWritTemplateService; |
| | | |
| | | @GetMapping("/query") |
| | | @ApiOperation(value = "查询") |
| | | @LogSave(operationType = "文书模板管理", contain = "查询文书模板") |
| | | public CommonResult search(@RequestParam Integer size, |
| | | @RequestParam Integer current, |
| | | @RequestParam(required = false) String name) { |
| | | return CommonResult.success(iWritTemplateService.page(new Page<>(size, current), new LambdaQueryWrapper<WritTemplate>() |
| | | .like(StringUtils.isNotBlank(name), WritTemplate::getName, name))); |
| | | } |
| | | } |
| | |
| | | package com.ycl.dto.dispatch; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.annotation.JsonProperty; |
| | | import io.swagger.annotations.ApiModel; |
| | |
| | | @ApiModelProperty(value = "其他照片") |
| | | private String otherPic; |
| | | |
| | | /** |
| | | * 文书模板值 |
| | | */ |
| | | @ApiModelProperty(value = "文书模板值") |
| | | private String value; |
| | | |
| | | //当事人 |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "创建时间") |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * 文书模板值 |
| | | */ |
| | | @TableField("value") |
| | | private String value; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.entity.writ; |
| | | |
| | | 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 lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书记录表 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-14 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("ums_writ_record") |
| | | public class WritRecord implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * id |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 案件id |
| | | */ |
| | | @TableField("base_case_id") |
| | | private Long baseCaseId; |
| | | |
| | | /** |
| | | * 模板id |
| | | */ |
| | | @TableField("writ_template_id") |
| | | private Integer writTemplateId; |
| | | |
| | | /** |
| | | * 值 |
| | | */ |
| | | @TableField("value") |
| | | private String value; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @TableField("update_time") |
| | | private LocalDateTime updateTime; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.entity.writ; |
| | | |
| | | 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 lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书模板表 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-14 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("ums_writ_template") |
| | | public class WritTemplate implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * id |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 模板名称 |
| | | */ |
| | | @TableField("name") |
| | | private String name; |
| | | |
| | | /** |
| | | * 前端对应组件名称 |
| | | */ |
| | | @TableField("code") |
| | | private String code; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.mapper.writ; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.entity.writ.WritTemplate; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书模板表 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-14 |
| | | */ |
| | | public interface WritTemplateMapper extends BaseMapper<WritTemplate> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.entity.writ.Writ; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书种类 只针对违建 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-15 |
| | | */ |
| | | @Service |
| | | public class WritServiceImpl extends ServiceImpl<WritMapper, Writ> implements IService<Writ> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.entity.writ.WritTemplate; |
| | | import com.ycl.mapper.writ.WritTemplateMapper; |
| | | import com.ycl.service.writ.IWritTemplateService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书模板表 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-14 |
| | | */ |
| | | @Service |
| | | public class WritTemplateServiceImpl extends ServiceImpl<WritTemplateMapper, WritTemplate> implements IWritTemplateService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.service.writ; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.entity.writ.WritTemplate; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书模板表 服务类 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-14 |
| | | */ |
| | | public interface IWritTemplateService extends IService<WritTemplate> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.service.writ.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.entity.writ.WritTemplate; |
| | | import com.ycl.mapper.writ.WritTemplateMapper; |
| | | import com.ycl.service.writ.IWritTemplateService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 文书模板表 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @since 2022-11-14 |
| | | */ |
| | | @Service |
| | | public class WritTemplateServiceImpl extends ServiceImpl<WritTemplateMapper, WritTemplate> implements IWritTemplateService { |
| | | |
| | | } |
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="com.ycl.mapper.writ.WritTemplateMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.entity.writ.WritTemplate"> |
| | | <id column="id" property="id" /> |
| | | <result column="name" property="name" /> |
| | | <result column="code" property="code" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, name, code |
| | | </sql> |
| | | |
| | | </mapper> |