管理体系和培训管理库表设计,基础代码开发
parent
5a0b5b98fd
commit
dcca6f9352
|
|
@ -1,98 +1,98 @@
|
||||||
package com.gunshi.project.xyt.controller;
|
//package com.gunshi.project.xyt.controller;
|
||||||
|
//
|
||||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
//import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||||
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
//import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||||
import com.gunshi.core.result.R;
|
//import com.gunshi.core.result.R;
|
||||||
import com.gunshi.project.xyt.entity.vo.SysDepartTree;
|
//import com.gunshi.project.xyt.entity.vo.SysDepartTree;
|
||||||
import com.gunshi.project.xyt.model.SysDepart;
|
//import com.gunshi.project.xyt.model.SysDepart;
|
||||||
import com.gunshi.project.xyt.service.SysDepartService;
|
//import com.gunshi.project.xyt.service.SysDepartService;
|
||||||
import com.gunshi.project.xyt.validate.markers.Insert;
|
//import com.gunshi.project.xyt.validate.markers.Insert;
|
||||||
import com.gunshi.project.xyt.validate.markers.Update;
|
//import com.gunshi.project.xyt.validate.markers.Update;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
//import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
//import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
//import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
//import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
//import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.validation.annotation.Validated;
|
//import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
//import org.springframework.web.bind.annotation.*;
|
||||||
|
//
|
||||||
import java.io.Serializable;
|
//import java.io.Serializable;
|
||||||
import java.util.List;
|
//import java.util.List;
|
||||||
import java.util.Objects;
|
//import java.util.Objects;
|
||||||
|
//
|
||||||
/**
|
///**
|
||||||
* Description:
|
// * Description:
|
||||||
* Created by XuSan on 2024/9/23.
|
// * Created by XuSan on 2024/9/23.
|
||||||
*
|
// *
|
||||||
* @author XuSan
|
// * @author XuSan
|
||||||
* @version 1.0
|
// * @version 1.0
|
||||||
*/
|
// */
|
||||||
@Tag(name = "组织机构表")
|
//@Tag(name = "组织机构表")
|
||||||
@RestController
|
//@RestController
|
||||||
@RequestMapping(value="/SysDepart")
|
//@RequestMapping(value="/SysDepart")
|
||||||
public class SysDepartController {
|
//public class SysDepartController {
|
||||||
|
//
|
||||||
@Autowired
|
// @Autowired
|
||||||
private SysDepartService service;
|
// private SysDepartService service;
|
||||||
|
//
|
||||||
@Operation(summary = "新增")
|
// @Operation(summary = "新增")
|
||||||
@PostMapping("/insert")
|
// @PostMapping("/insert")
|
||||||
public R<SysDepart> insert(@Validated(Insert.class) @RequestBody SysDepart dto) {
|
// public R<SysDepart> insert(@Validated(Insert.class) @RequestBody SysDepart dto) {
|
||||||
|
//
|
||||||
LambdaQueryChainWrapper<SysDepart> query = service.lambdaQuery()
|
// LambdaQueryChainWrapper<SysDepart> query = service.lambdaQuery()
|
||||||
.eq(SysDepart::getName, dto.getName());
|
// .eq(SysDepart::getName, dto.getName());
|
||||||
if (Objects.nonNull(dto.getPid())){
|
// if (Objects.nonNull(dto.getPid())){
|
||||||
query.eq(SysDepart::getPid, dto.getPid());
|
// query.eq(SysDepart::getPid, dto.getPid());
|
||||||
}
|
// }
|
||||||
if (query.count() > 0){
|
// if (query.count() > 0){
|
||||||
throw new IllegalArgumentException("部门名称重复");
|
// throw new IllegalArgumentException("部门名称重复");
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
|
//
|
||||||
dto.setId(IdWorker.getId());
|
// dto.setId(IdWorker.getId());
|
||||||
boolean result = service.save(dto);
|
// boolean result = service.save(dto);
|
||||||
return R.ok(result ? dto : null);
|
// return R.ok(result ? dto : null);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
@Operation(summary = "修改")
|
// @Operation(summary = "修改")
|
||||||
@PostMapping("/update")
|
// @PostMapping("/update")
|
||||||
public R<SysDepart> update(@Validated(Update.class) @RequestBody SysDepart dto) {
|
// public R<SysDepart> update(@Validated(Update.class) @RequestBody SysDepart dto) {
|
||||||
|
//
|
||||||
LambdaQueryChainWrapper<SysDepart> query = service.lambdaQuery()
|
// LambdaQueryChainWrapper<SysDepart> query = service.lambdaQuery()
|
||||||
.ne(SysDepart::getId, dto.getId())
|
// .ne(SysDepart::getId, dto.getId())
|
||||||
.eq(SysDepart::getName, dto.getName());
|
// .eq(SysDepart::getName, dto.getName());
|
||||||
if (Objects.nonNull(dto.getPid())){
|
// if (Objects.nonNull(dto.getPid())){
|
||||||
query.eq(SysDepart::getPid, dto.getPid());
|
// query.eq(SysDepart::getPid, dto.getPid());
|
||||||
}
|
// }
|
||||||
if (query.count() > 0){
|
// if (query.count() > 0){
|
||||||
throw new IllegalArgumentException("部门名称重复");
|
// throw new IllegalArgumentException("部门名称重复");
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
boolean result = service.updateById(dto);
|
// boolean result = service.updateById(dto);
|
||||||
return R.ok(result ? dto : null);
|
// return R.ok(result ? dto : null);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
@Operation(summary = "删除")
|
// @Operation(summary = "删除")
|
||||||
@GetMapping("/del/{id}")
|
// @GetMapping("/del/{id}")
|
||||||
public R<Boolean> del(@Schema(name = "id") @PathVariable("id") Serializable id) {
|
// public R<Boolean> del(@Schema(name = "id") @PathVariable("id") Serializable id) {
|
||||||
return R.ok(service.removeById(id));
|
// return R.ok(service.removeById(id));
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
@Operation(summary = "列表")
|
// @Operation(summary = "列表")
|
||||||
@PostMapping("/list")
|
// @PostMapping("/list")
|
||||||
public R<List<SysDepart>> list() {
|
// public R<List<SysDepart>> list() {
|
||||||
return R.ok(service.lambdaQuery().list());
|
// return R.ok(service.lambdaQuery().list());
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
@Operation(summary = "树")
|
// @Operation(summary = "树")
|
||||||
@PostMapping("/tree")
|
// @PostMapping("/tree")
|
||||||
public R<List<SysDepart>> tree() {
|
// public R<List<SysDepart>> tree() {
|
||||||
List<SysDepart> list = service.list();
|
// List<SysDepart> list = service.list();
|
||||||
if (CollectionUtils.isEmpty(list)){
|
// if (CollectionUtils.isEmpty(list)){
|
||||||
return R.ok(list);
|
// return R.ok(list);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
return R.ok(SysDepartTree.buildTree(list));
|
// return R.ok(SysDepartTree.buildTree(list));
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
//}
|
||||||
|
|
|
||||||
|
|
@ -1,55 +1,55 @@
|
||||||
package com.gunshi.project.xyt.entity.vo;
|
//package com.gunshi.project.xyt.entity.vo;
|
||||||
|
//
|
||||||
import com.gunshi.project.xyt.model.SysDepart;
|
//import com.gunshi.project.xyt.model.SysDepart;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
//import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import lombok.Data;
|
//import lombok.Data;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
//import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
//
|
||||||
import java.util.List;
|
//import java.util.List;
|
||||||
import java.util.Objects;
|
//import java.util.Objects;
|
||||||
|
//
|
||||||
/**
|
///**
|
||||||
* Description:
|
// * Description:
|
||||||
* Created by XuSan on 2024/9/23.
|
// * Created by XuSan on 2024/9/23.
|
||||||
*
|
// *
|
||||||
* @author XuSan
|
// * @author XuSan
|
||||||
* @version 1.0
|
// * @version 1.0
|
||||||
*/
|
// */
|
||||||
@Tag(name="组织机构表")
|
//@Tag(name="组织机构表")
|
||||||
@Data
|
//@Data
|
||||||
public class SysDepartTree {
|
//public class SysDepartTree {
|
||||||
|
//
|
||||||
public static List<SysDepart> buildTree(List<SysDepart> list) {
|
// public static List<SysDepart> buildTree(List<SysDepart> list) {
|
||||||
List<SysDepart> dataList = list.stream()
|
// List<SysDepart> dataList = list.stream()
|
||||||
.filter(o -> Objects.nonNull(o.getPid()))
|
// .filter(o -> Objects.nonNull(o.getPid()))
|
||||||
.toList();
|
// .toList();
|
||||||
if (CollectionUtils.isEmpty(dataList)){
|
// if (CollectionUtils.isEmpty(dataList)){
|
||||||
return null;
|
// return null;
|
||||||
}
|
// }
|
||||||
List<SysDepart> pList = dataList.stream()
|
// List<SysDepart> pList = dataList.stream()
|
||||||
.filter(o -> 0 == o.getPid())
|
// .filter(o -> 0 == o.getPid())
|
||||||
.toList();
|
// .toList();
|
||||||
|
//
|
||||||
List<SysDepart> cList = dataList.stream()
|
// List<SysDepart> cList = dataList.stream()
|
||||||
.filter(o -> 0 != o.getPid())
|
// .filter(o -> 0 != o.getPid())
|
||||||
.toList();
|
// .toList();
|
||||||
|
//
|
||||||
if (CollectionUtils.isNotEmpty(pList) && CollectionUtils.isNotEmpty(cList)){
|
// if (CollectionUtils.isNotEmpty(pList) && CollectionUtils.isNotEmpty(cList)){
|
||||||
pList.forEach(p -> findChild(p,cList));
|
// pList.forEach(p -> findChild(p,cList));
|
||||||
return pList;
|
// return pList;
|
||||||
}
|
// }
|
||||||
return null;
|
// return null;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
private static void findChild(SysDepart p, List<SysDepart> cList) {
|
// private static void findChild(SysDepart p, List<SysDepart> cList) {
|
||||||
List<SysDepart> children = cList.stream()
|
// List<SysDepart> children = cList.stream()
|
||||||
.filter(o -> p.getId().equals(o.getPid()))
|
// .filter(o -> p.getId().equals(o.getPid()))
|
||||||
.toList();
|
// .toList();
|
||||||
if (CollectionUtils.isNotEmpty(children)){
|
// if (CollectionUtils.isNotEmpty(children)){
|
||||||
p.setChildren(children);
|
// p.setChildren(children);
|
||||||
cList.forEach(c -> findChild(c,cList));
|
// cList.forEach(c -> findChild(c,cList));
|
||||||
}else{
|
// }else{
|
||||||
p.setChildren(null);
|
// p.setChildren(null);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
package com.gunshi.project.xyt.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.xyt.model.SysDepart;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description:
|
|
||||||
* Created by XuSan on 2024/9/23.
|
|
||||||
*
|
|
||||||
* @author XuSan
|
|
||||||
* @version 1.0
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface SysDepartMapper extends BaseMapper<SysDepart> {
|
|
||||||
}
|
|
||||||
|
|
@ -1,68 +0,0 @@
|
||||||
package com.gunshi.project.xyt.model;
|
|
||||||
|
|
||||||
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 com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
||||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description:
|
|
||||||
* Created by XuSan on 2024/9/23.
|
|
||||||
*
|
|
||||||
* @author XuSan
|
|
||||||
* @version 1.0
|
|
||||||
*/
|
|
||||||
@Schema(description="组织机构表")
|
|
||||||
@Data
|
|
||||||
@TableName("public.sys_depart")
|
|
||||||
public class SysDepart implements Serializable {
|
|
||||||
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主键
|
|
||||||
*/
|
|
||||||
@TableId(value="id", type= IdType.AUTO)
|
|
||||||
@Schema(description="主键")
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 父id
|
|
||||||
*/
|
|
||||||
@TableField(value="pid")
|
|
||||||
@Schema(description="父id")
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
private Long pid;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 名字
|
|
||||||
*/
|
|
||||||
@TableField(value="name")
|
|
||||||
@Schema(description="名字")
|
|
||||||
@Size(max = 30,message = "名字最大长度要小于 30")
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 排序字段
|
|
||||||
*/
|
|
||||||
@TableField(value="sort")
|
|
||||||
@Schema(description="排序字段")
|
|
||||||
private Integer sort;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 子集
|
|
||||||
*/
|
|
||||||
@TableField(exist = false)
|
|
||||||
@Schema(description="子集")
|
|
||||||
private List<SysDepart> children;
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,258 @@
|
||||||
|
package com.gunshi.project.xyt.model;
|
||||||
|
|
||||||
|
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 com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import com.gunshi.core.dateformat.DateFormatString;
|
||||||
|
import com.gunshi.project.xyt.validate.markers.Insert;
|
||||||
|
import com.gunshi.project.xyt.validate.markers.Update;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotBlank;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import jakarta.validation.constraints.Size;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description:
|
||||||
|
* Created by XuSan on 2024/9/24.
|
||||||
|
*
|
||||||
|
* @author XuSan
|
||||||
|
* @version 1.0
|
||||||
|
*/
|
||||||
|
@Schema(description="案件登记表")
|
||||||
|
@Data
|
||||||
|
@TableName("public.sz_case")
|
||||||
|
public class SzCase implements Serializable {
|
||||||
|
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId(value="id", type= IdType.AUTO)
|
||||||
|
@Schema(description="主键")
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 填报人Id
|
||||||
|
*/
|
||||||
|
@TableField(value="create_by")
|
||||||
|
@Schema(description="填报人Id")
|
||||||
|
@NotNull(message = "填报人Id不能为空",groups = {Insert.class, Update.class})
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 填报人名字
|
||||||
|
*/
|
||||||
|
@TableField(value="create_name")
|
||||||
|
@Schema(description="填报人名字")
|
||||||
|
@Size(max = 30,message = "填报人名字最大长度要小于 30")
|
||||||
|
@NotBlank(message = "填报人名字不能为空",groups = {Insert.class, Update.class})
|
||||||
|
private String createName;
|
||||||
|
|
||||||
|
@Schema(description="填报时间 格式:" + DateFormatString.YYYY_MM_DD_HH_MM_SS)
|
||||||
|
@NotNull(message = "填报时间不能为空")
|
||||||
|
@TableField(value="create_time")
|
||||||
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 案件编号
|
||||||
|
*/
|
||||||
|
@TableField(value="case_id")
|
||||||
|
@Schema(description="案件编号")
|
||||||
|
@Size(max = 50,message = "案件编号最大长度要小于 50")
|
||||||
|
private String caseId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 案件名称
|
||||||
|
*/
|
||||||
|
@TableField(value="case_name")
|
||||||
|
@Schema(description="案件名称")
|
||||||
|
@Size(max = 50,message = "案件名称最大长度要小于 50")
|
||||||
|
@NotBlank(message = "案件名称不能为空",groups = {Insert.class, Update.class})
|
||||||
|
private String caseName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 案件类型
|
||||||
|
*/
|
||||||
|
@TableField(value="case_type")
|
||||||
|
@Schema(description="案件类型 0:违建,1:毁林垦荒,2:筑坝拦汊,3:填占库容,4:违法取水,5:其他")
|
||||||
|
@Size(max = 1,message = "案件类型最大长度为 1")
|
||||||
|
@NotNull(message = "案件类型不能为空",groups = {Insert.class, Update.class})
|
||||||
|
private Integer caseType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发现时间
|
||||||
|
*/
|
||||||
|
@TableField(value="case_date")
|
||||||
|
@Schema(description="发现时间")
|
||||||
|
@NotNull(message = "发现时间不能为空",groups = {Insert.class, Update.class})
|
||||||
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||||
|
private Date caseDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发现地点
|
||||||
|
*/
|
||||||
|
@TableField(value="case_address")
|
||||||
|
@Schema(description="发现地点")
|
||||||
|
@NotBlank(message = "发现地点不能为空",groups = {Insert.class, Update.class})
|
||||||
|
@Size(max = 100,message = "案件类型最大长度要小于 100")
|
||||||
|
private String caseAddress;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 案件来源
|
||||||
|
*/
|
||||||
|
@TableField(value="case_source")
|
||||||
|
@Schema(description="案件来源 0:巡查上报,1:自主发现,2:公共举报,3:电话举报,4:其他")
|
||||||
|
@NotNull(message = "案件来源不能为空",groups = {Insert.class, Update.class})
|
||||||
|
@Size(max = 1,message = "案件类型最大长度要小于 2")
|
||||||
|
private Integer caseSource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 违法时间
|
||||||
|
*/
|
||||||
|
@TableField(value="Illegal_date")
|
||||||
|
@Schema(description="违法时间")
|
||||||
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||||
|
private Date IllegalDate;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当事人类型
|
||||||
|
*/
|
||||||
|
@TableField(value="party_type")
|
||||||
|
@Schema(description="当事人类型 0:自然人,1:法人或其他组织,2:待定")
|
||||||
|
@NotBlank(message = "当事人类型不能为空",groups = {Insert.class, Update.class})
|
||||||
|
@Size(max = 1,message = "当事人类型最大长度要小于 2")
|
||||||
|
private Integer partyType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当事人姓名
|
||||||
|
*/
|
||||||
|
@TableField(value="party_name")
|
||||||
|
@Schema(description="当事人姓名")
|
||||||
|
@Size(max = 10,message = "当事人姓名最大长度要小于 10")
|
||||||
|
private String partyName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 身份证号
|
||||||
|
*/
|
||||||
|
@TableField(value="id_number")
|
||||||
|
@Schema(description="身份证号")
|
||||||
|
@Size(max = 30,message = "身份证号最大长度要小于 30")
|
||||||
|
private String idNumber;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当事人住址
|
||||||
|
*/
|
||||||
|
@TableField(value="party_addr")
|
||||||
|
@Schema(description="当事人住址")
|
||||||
|
@Size(max = 50,message = "当事人住址最大长度要小于 50")
|
||||||
|
private String partyAddr;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 简要案情
|
||||||
|
*/
|
||||||
|
@TableField(value="intro")
|
||||||
|
@Schema(description="简要案情")
|
||||||
|
@Size(max = 500,message = "简要案情最大长度要小于 500")
|
||||||
|
private String intro;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理程序
|
||||||
|
*/
|
||||||
|
@TableField(value="processor")
|
||||||
|
@Schema(description="处理程序 0:简易程序,1:一般程序")
|
||||||
|
@Size(max = 1,message = "处理程序最大长度要小于 2")
|
||||||
|
private Integer processor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理依据
|
||||||
|
*/
|
||||||
|
@TableField(value="treatment_basis")
|
||||||
|
@Schema(description="处理依据")
|
||||||
|
@Size(max = 50,message = "处理程序最大长度要小于 50")
|
||||||
|
private String treatmentBasis;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理措施
|
||||||
|
*/
|
||||||
|
@TableField(value="treatment_measure")
|
||||||
|
@Schema(description="处理措施")
|
||||||
|
@Size(max = 50,message = "处理措施最大长度要小于 50")
|
||||||
|
private String treatmentMeasure;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 移送处理情况
|
||||||
|
*/
|
||||||
|
@TableField(value="transfer")
|
||||||
|
@Schema(description="移送处理情况 0:不移送,1:移送单位")
|
||||||
|
@Size(max = 1,message = "移送处理情况最大长度要小于 2")
|
||||||
|
private Integer transfer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 案件执行情况
|
||||||
|
*/
|
||||||
|
@TableField(value="caseImplementation")
|
||||||
|
@Schema(description="案件执行情况 0:当事人自动履行,1:行政强制执行")
|
||||||
|
@Size(max = 1,message = "案件执行情况最大长度要小于 2")
|
||||||
|
private Integer caseImplementation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自动履行情况
|
||||||
|
*/
|
||||||
|
@TableField(value="performance")
|
||||||
|
@Schema(description="自动履行情况")
|
||||||
|
@Size(max = 500,message = "自动履行情况最大长度要小于 500")
|
||||||
|
private String performance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 伤亡人数(人)
|
||||||
|
*/
|
||||||
|
@TableField(value="casualties")
|
||||||
|
@Schema(description="伤亡人数(人)")
|
||||||
|
private Integer casualties;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 直接损失金额(万元)
|
||||||
|
*/
|
||||||
|
@TableField(value="direct_loss_amount")
|
||||||
|
@Schema(description="直接损失金额(万元)")
|
||||||
|
private BigDecimal directLossAmount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结案情况
|
||||||
|
*/
|
||||||
|
@TableField(value="close_status")
|
||||||
|
@Schema(description="结案情况 0:正常结案,1:其他方式结案,2:未结案")
|
||||||
|
private Integer closeStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结案时间
|
||||||
|
*/
|
||||||
|
@TableField(value="close_date")
|
||||||
|
@Schema(description="结案时间 " + DateFormatString.YYYY_MM_DD_HH_MM_SS)
|
||||||
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||||
|
private Date closeDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件编号及名称
|
||||||
|
*/
|
||||||
|
@TableField(value="doc_num_name")
|
||||||
|
@Schema(description="文件编号及名称 ")
|
||||||
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||||
|
@Size(max = 100,message = "自动履行情况最大长度要小于 100")
|
||||||
|
private String docNumName;
|
||||||
|
}
|
||||||
|
|
@ -3,6 +3,9 @@ package com.gunshi.project.xyt.service;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.gunshi.project.xyt.mapper.PersonnelPlanLogMapper;
|
import com.gunshi.project.xyt.mapper.PersonnelPlanLogMapper;
|
||||||
import com.gunshi.project.xyt.model.PersonnelPlanLog;
|
import com.gunshi.project.xyt.model.PersonnelPlanLog;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description:
|
* Description:
|
||||||
|
|
@ -11,6 +14,9 @@ import com.gunshi.project.xyt.model.PersonnelPlanLog;
|
||||||
* @author XuSan
|
* @author XuSan
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
*/
|
*/
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public class PersonnelPlanLogService extends ServiceImpl<PersonnelPlanLogMapper, PersonnelPlanLog>
|
public class PersonnelPlanLogService extends ServiceImpl<PersonnelPlanLogMapper, PersonnelPlanLog>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,9 @@ package com.gunshi.project.xyt.service;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.gunshi.project.xyt.mapper.PersonnelPlanMapper;
|
import com.gunshi.project.xyt.mapper.PersonnelPlanMapper;
|
||||||
import com.gunshi.project.xyt.model.PersonnelPlan;
|
import com.gunshi.project.xyt.model.PersonnelPlan;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description:
|
* Description:
|
||||||
|
|
@ -11,6 +14,9 @@ import com.gunshi.project.xyt.model.PersonnelPlan;
|
||||||
* @author XuSan
|
* @author XuSan
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
*/
|
*/
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public class PersonnelPlanService extends ServiceImpl<PersonnelPlanMapper, PersonnelPlan>
|
public class PersonnelPlanService extends ServiceImpl<PersonnelPlanMapper, PersonnelPlan>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,9 @@ package com.gunshi.project.xyt.service;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.gunshi.project.xyt.mapper.ResPersonMapper;
|
import com.gunshi.project.xyt.mapper.ResPersonMapper;
|
||||||
import com.gunshi.project.xyt.model.ResPerson;
|
import com.gunshi.project.xyt.model.ResPerson;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description:
|
* Description:
|
||||||
|
|
@ -11,6 +14,9 @@ import com.gunshi.project.xyt.model.ResPerson;
|
||||||
* @author XuSan
|
* @author XuSan
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
*/
|
*/
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public class ResPersonService extends ServiceImpl<ResPersonMapper, ResPerson>
|
public class ResPersonService extends ServiceImpl<ResPersonMapper, ResPerson>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
package com.gunshi.project.xyt.service;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
||||||
import com.gunshi.project.xyt.mapper.SysDepartMapper;
|
|
||||||
import com.gunshi.project.xyt.model.SysDepart;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description:
|
|
||||||
* Created by XuSan on 2024/9/23.
|
|
||||||
*
|
|
||||||
* @author XuSan
|
|
||||||
* @version 1.0
|
|
||||||
*/
|
|
||||||
@Service
|
|
||||||
@Slf4j
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
|
||||||
public class SysDepartService extends ServiceImpl<SysDepartMapper, SysDepart>
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<?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.gunshi.project.xyt.mapper.SysDepartMapper">
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
Loading…
Reference in New Issue