正在显示
16 个修改的文件
包含
1178 行增加
和
0 行删除
ruoyi-system/src/main/java/com/ruoyi/compliancemanagement/controller/TblLegalStaffController.java
0 → 100644
| 1 | +package com.ruoyi.compliancemanagement.controller; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import java.util.Arrays; | ||
| 5 | +import java.util.concurrent.TimeUnit; | ||
| 6 | + | ||
| 7 | +import com.ruoyi.compliancemanagement.domain.bo.TblLegalStaffBo; | ||
| 8 | +import com.ruoyi.compliancemanagement.domain.vo.TblLegalStaffVo; | ||
| 9 | +import com.ruoyi.compliancemanagement.service.ITblLegalStaffService; | ||
| 10 | +import lombok.RequiredArgsConstructor; | ||
| 11 | +import javax.servlet.http.HttpServletResponse; | ||
| 12 | +import javax.validation.constraints.*; | ||
| 13 | +import cn.dev33.satoken.annotation.SaCheckPermission; | ||
| 14 | +import org.springframework.web.bind.annotation.*; | ||
| 15 | +import org.springframework.validation.annotation.Validated; | ||
| 16 | +import com.ruoyi.common.annotation.RepeatSubmit; | ||
| 17 | +import com.ruoyi.common.annotation.Log; | ||
| 18 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 19 | +import com.ruoyi.common.core.domain.PageQuery; | ||
| 20 | +import com.ruoyi.common.core.domain.R; | ||
| 21 | +import com.ruoyi.common.core.validate.AddGroup; | ||
| 22 | +import com.ruoyi.common.core.validate.EditGroup; | ||
| 23 | +import com.ruoyi.common.core.validate.QueryGroup; | ||
| 24 | +import com.ruoyi.common.enums.BusinessType; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 【请填写功能名称】 | ||
| 31 | + * | ||
| 32 | + * @author ruoyi | ||
| 33 | + * @date 2024-08-05 | ||
| 34 | + */ | ||
| 35 | +@Validated | ||
| 36 | +@RequiredArgsConstructor | ||
| 37 | +@RestController | ||
| 38 | +@RequestMapping("/system/legalStaff") | ||
| 39 | +public class TblLegalStaffController extends BaseController { | ||
| 40 | + | ||
| 41 | + private final ITblLegalStaffService iTblLegalStaffService; | ||
| 42 | + | ||
| 43 | + /** | ||
| 44 | + * 查询【请填写功能名称】列表 | ||
| 45 | + */ | ||
| 46 | + @SaCheckPermission("system:legalStaff:list") | ||
| 47 | + @GetMapping("/list") | ||
| 48 | + public TableDataInfo<TblLegalStaffVo> list(TblLegalStaffBo bo, PageQuery pageQuery) { | ||
| 49 | + return iTblLegalStaffService.queryPageList(bo, pageQuery); | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + /** | ||
| 53 | + * 导出【请填写功能名称】列表 | ||
| 54 | + */ | ||
| 55 | + @SaCheckPermission("system:legalStaff:export") | ||
| 56 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) | ||
| 57 | + @PostMapping("/export") | ||
| 58 | + public void export(TblLegalStaffBo bo, HttpServletResponse response) { | ||
| 59 | + List<TblLegalStaffVo> list = iTblLegalStaffService.queryList(bo); | ||
| 60 | + ExcelUtil.exportExcel(list, "【请填写功能名称】", TblLegalStaffVo.class, response); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + /** | ||
| 64 | + * 获取【请填写功能名称】详细信息 | ||
| 65 | + * | ||
| 66 | + * @param id 主键 | ||
| 67 | + */ | ||
| 68 | + @SaCheckPermission("system:legalStaff:query") | ||
| 69 | + @GetMapping("/{id}") | ||
| 70 | + public R<TblLegalStaffVo> getInfo(@NotNull(message = "主键不能为空") | ||
| 71 | + @PathVariable Long id) { | ||
| 72 | + return R.ok(iTblLegalStaffService.queryById(id)); | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + /** | ||
| 76 | + * 新增【请填写功能名称】 | ||
| 77 | + */ | ||
| 78 | + @SaCheckPermission("system:legalStaff:add") | ||
| 79 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) | ||
| 80 | + @RepeatSubmit() | ||
| 81 | + @PostMapping() | ||
| 82 | + public R<Void> add(@Validated(AddGroup.class) @RequestBody TblLegalStaffBo bo) { | ||
| 83 | + return toAjax(iTblLegalStaffService.insertByBo(bo)); | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + /** | ||
| 87 | + * 修改【请填写功能名称】 | ||
| 88 | + */ | ||
| 89 | + @SaCheckPermission("system:legalStaff:edit") | ||
| 90 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) | ||
| 91 | + @RepeatSubmit() | ||
| 92 | + @PutMapping() | ||
| 93 | + public R<Void> edit(@Validated(EditGroup.class) @RequestBody TblLegalStaffBo bo) { | ||
| 94 | + return toAjax(iTblLegalStaffService.updateByBo(bo)); | ||
| 95 | + } | ||
| 96 | + | ||
| 97 | + /** | ||
| 98 | + * 删除【请填写功能名称】 | ||
| 99 | + * | ||
| 100 | + * @param ids 主键串 | ||
| 101 | + */ | ||
| 102 | + @SaCheckPermission("system:legalStaff:remove") | ||
| 103 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) | ||
| 104 | + @DeleteMapping("/{ids}") | ||
| 105 | + public R<Void> remove(@NotEmpty(message = "主键不能为空") | ||
| 106 | + @PathVariable Long[] ids) { | ||
| 107 | + return toAjax(iTblLegalStaffService.deleteWithValidByIds(Arrays.asList(ids), true)); | ||
| 108 | + } | ||
| 109 | +} |
| 1 | +package com.ruoyi.compliancemanagement.controller; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import java.util.Arrays; | ||
| 5 | +import java.util.concurrent.TimeUnit; | ||
| 6 | + | ||
| 7 | +import com.ruoyi.compliancemanagement.domain.bo.TblOutsideCounselBo; | ||
| 8 | +import com.ruoyi.compliancemanagement.domain.vo.TblOutsideCounselVo; | ||
| 9 | +import com.ruoyi.compliancemanagement.service.ITblOutsideCounselService; | ||
| 10 | +import lombok.RequiredArgsConstructor; | ||
| 11 | +import javax.servlet.http.HttpServletResponse; | ||
| 12 | +import javax.validation.constraints.*; | ||
| 13 | +import cn.dev33.satoken.annotation.SaCheckPermission; | ||
| 14 | +import org.springframework.web.bind.annotation.*; | ||
| 15 | +import org.springframework.validation.annotation.Validated; | ||
| 16 | +import com.ruoyi.common.annotation.RepeatSubmit; | ||
| 17 | +import com.ruoyi.common.annotation.Log; | ||
| 18 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 19 | +import com.ruoyi.common.core.domain.PageQuery; | ||
| 20 | +import com.ruoyi.common.core.domain.R; | ||
| 21 | +import com.ruoyi.common.core.validate.AddGroup; | ||
| 22 | +import com.ruoyi.common.core.validate.EditGroup; | ||
| 23 | +import com.ruoyi.common.core.validate.QueryGroup; | ||
| 24 | +import com.ruoyi.common.enums.BusinessType; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 【请填写功能名称】 | ||
| 31 | + * | ||
| 32 | + * @author ruoyi | ||
| 33 | + * @date 2024-08-06 | ||
| 34 | + */ | ||
| 35 | +@Validated | ||
| 36 | +@RequiredArgsConstructor | ||
| 37 | +@RestController | ||
| 38 | +@RequestMapping("/system/outsideCounsel") | ||
| 39 | +public class TblOutsideCounselController extends BaseController { | ||
| 40 | + | ||
| 41 | + private final ITblOutsideCounselService iTblOutsideCounselService; | ||
| 42 | + | ||
| 43 | + /** | ||
| 44 | + * 查询【请填写功能名称】列表 | ||
| 45 | + */ | ||
| 46 | + @SaCheckPermission("system:outsideCounsel:list") | ||
| 47 | + @GetMapping("/list") | ||
| 48 | + public TableDataInfo<TblOutsideCounselVo> list(TblOutsideCounselBo bo, PageQuery pageQuery) { | ||
| 49 | + return iTblOutsideCounselService.queryPageList(bo, pageQuery); | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + /** | ||
| 53 | + * 导出【请填写功能名称】列表 | ||
| 54 | + */ | ||
| 55 | + @SaCheckPermission("system:outsideCounsel:export") | ||
| 56 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) | ||
| 57 | + @PostMapping("/export") | ||
| 58 | + public void export(TblOutsideCounselBo bo, HttpServletResponse response) { | ||
| 59 | + List<TblOutsideCounselVo> list = iTblOutsideCounselService.queryList(bo); | ||
| 60 | + ExcelUtil.exportExcel(list, "【请填写功能名称】", TblOutsideCounselVo.class, response); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + /** | ||
| 64 | + * 获取【请填写功能名称】详细信息 | ||
| 65 | + * | ||
| 66 | + * @param id 主键 | ||
| 67 | + */ | ||
| 68 | + @SaCheckPermission("system:outsideCounsel:query") | ||
| 69 | + @GetMapping("/{id}") | ||
| 70 | + public R<TblOutsideCounselVo> getInfo(@NotNull(message = "主键不能为空") | ||
| 71 | + @PathVariable Long id) { | ||
| 72 | + return R.ok(iTblOutsideCounselService.queryById(id)); | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + /** | ||
| 76 | + * 新增【请填写功能名称】 | ||
| 77 | + */ | ||
| 78 | + @SaCheckPermission("system:outsideCounsel:add") | ||
| 79 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) | ||
| 80 | + @RepeatSubmit() | ||
| 81 | + @PostMapping() | ||
| 82 | + public R<Void> add(@Validated(AddGroup.class) @RequestBody TblOutsideCounselBo bo) { | ||
| 83 | + return toAjax(iTblOutsideCounselService.insertByBo(bo)); | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + /** | ||
| 87 | + * 修改【请填写功能名称】 | ||
| 88 | + */ | ||
| 89 | + @SaCheckPermission("system:outsideCounsel:edit") | ||
| 90 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) | ||
| 91 | + @RepeatSubmit() | ||
| 92 | + @PutMapping() | ||
| 93 | + public R<Void> edit(@Validated(EditGroup.class) @RequestBody TblOutsideCounselBo bo) { | ||
| 94 | + return toAjax(iTblOutsideCounselService.updateByBo(bo)); | ||
| 95 | + } | ||
| 96 | + | ||
| 97 | + /** | ||
| 98 | + * 删除【请填写功能名称】 | ||
| 99 | + * | ||
| 100 | + * @param ids 主键串 | ||
| 101 | + */ | ||
| 102 | + @SaCheckPermission("system:outsideCounsel:remove") | ||
| 103 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) | ||
| 104 | + @DeleteMapping("/{ids}") | ||
| 105 | + public R<Void> remove(@NotEmpty(message = "主键不能为空") | ||
| 106 | + @PathVariable Long[] ids) { | ||
| 107 | + return toAjax(iTblOutsideCounselService.deleteWithValidByIds(Arrays.asList(ids), true)); | ||
| 108 | + } | ||
| 109 | +} |
| 1 | +package com.ruoyi.compliancemanagement.domain; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.*; | ||
| 4 | +import lombok.Data; | ||
| 5 | +import lombok.EqualsAndHashCode; | ||
| 6 | +import java.io.Serializable; | ||
| 7 | +import java.util.Date; | ||
| 8 | +import java.math.BigDecimal; | ||
| 9 | + | ||
| 10 | +import com.ruoyi.common.core.domain.BaseEntity; | ||
| 11 | + | ||
| 12 | +/** | ||
| 13 | + * 【请填写功能名称】对象 tbl_legal_staff | ||
| 14 | + * | ||
| 15 | + * @author ruoyi | ||
| 16 | + * @date 2024-08-05 | ||
| 17 | + */ | ||
| 18 | +@Data | ||
| 19 | +@EqualsAndHashCode(callSuper = true) | ||
| 20 | +@TableName("tbl_legal_staff") | ||
| 21 | +public class TblLegalStaff extends BaseEntity { | ||
| 22 | + | ||
| 23 | + private static final long serialVersionUID=1L; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * | ||
| 27 | + */ | ||
| 28 | + @TableId(value = "id") | ||
| 29 | + private Long id; | ||
| 30 | + /** | ||
| 31 | + * 法务人姓名 | ||
| 32 | + */ | ||
| 33 | + private String staffName; | ||
| 34 | + /** | ||
| 35 | + * 年龄 | ||
| 36 | + */ | ||
| 37 | + private String ages; | ||
| 38 | + /** | ||
| 39 | + * 学历 | ||
| 40 | + */ | ||
| 41 | + private String learningExperience; | ||
| 42 | + /** | ||
| 43 | + * 职位 | ||
| 44 | + */ | ||
| 45 | + private String job; | ||
| 46 | + /** | ||
| 47 | + * 手机号 | ||
| 48 | + */ | ||
| 49 | + private String phone; | ||
| 50 | + /** | ||
| 51 | + * 邮箱 | ||
| 52 | + */ | ||
| 53 | + private String email; | ||
| 54 | + /** | ||
| 55 | + * 公司单位 | ||
| 56 | + */ | ||
| 57 | + private String firmUnit; | ||
| 58 | + /** | ||
| 59 | + * 工作经历 | ||
| 60 | + */ | ||
| 61 | + private String workExperience; | ||
| 62 | + /** | ||
| 63 | + * 专业领域 | ||
| 64 | + */ | ||
| 65 | + private String specialized; | ||
| 66 | + /** | ||
| 67 | + * 资格证书 | ||
| 68 | + */ | ||
| 69 | + private String qualifications; | ||
| 70 | + | ||
| 71 | +} |
| 1 | +package com.ruoyi.compliancemanagement.domain; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.*; | ||
| 4 | +import com.ruoyi.common.core.validate.AddGroup; | ||
| 5 | +import com.ruoyi.common.core.validate.EditGroup; | ||
| 6 | +import lombok.Data; | ||
| 7 | +import lombok.EqualsAndHashCode; | ||
| 8 | +import java.io.Serializable; | ||
| 9 | +import java.util.Date; | ||
| 10 | +import java.math.BigDecimal; | ||
| 11 | + | ||
| 12 | +import java.util.Date; | ||
| 13 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
| 14 | +import com.ruoyi.common.core.domain.BaseEntity; | ||
| 15 | +import org.springframework.format.annotation.DateTimeFormat; | ||
| 16 | + | ||
| 17 | +import javax.validation.constraints.NotBlank; | ||
| 18 | + | ||
| 19 | +/** | ||
| 20 | + * 【请填写功能名称】对象 tbl_outside_counsel | ||
| 21 | + * | ||
| 22 | + * @author ruoyi | ||
| 23 | + * @date 2024-08-06 | ||
| 24 | + */ | ||
| 25 | +@Data | ||
| 26 | +@EqualsAndHashCode(callSuper = true) | ||
| 27 | +@TableName("tbl_outside_counsel") | ||
| 28 | +public class TblOutsideCounsel extends BaseEntity { | ||
| 29 | + | ||
| 30 | + private static final long serialVersionUID=1L; | ||
| 31 | + | ||
| 32 | + /** | ||
| 33 | + * | ||
| 34 | + */ | ||
| 35 | + @TableId(value = "id") | ||
| 36 | + private Long id; | ||
| 37 | + /** | ||
| 38 | + * 律师事务所名称 | ||
| 39 | + */ | ||
| 40 | + private String lawyerName; | ||
| 41 | + /** | ||
| 42 | + * 专项(诉讼/非诉) | ||
| 43 | + */ | ||
| 44 | + private String special; | ||
| 45 | + /** | ||
| 46 | + * 常年/专项(附件) | ||
| 47 | + */ | ||
| 48 | + private String specialAttachments; | ||
| 49 | + /** | ||
| 50 | + * 主办律师 | ||
| 51 | + */ | ||
| 52 | + private String sponsorAttorney; | ||
| 53 | + /** | ||
| 54 | + * 协议服务期限 | ||
| 55 | + */ | ||
| 56 | + private String term; | ||
| 57 | + /** | ||
| 58 | + * 协议费用(万元) | ||
| 59 | + */ | ||
| 60 | + private String agreementFees; | ||
| 61 | + /** | ||
| 62 | + * 费用支付期限 | ||
| 63 | + */ | ||
| 64 | + private String paymentTerm; | ||
| 65 | + /** | ||
| 66 | + * 聘用企业公开选聘/协商 | ||
| 67 | + */ | ||
| 68 | + private String openOrConsultations; | ||
| 69 | + /** | ||
| 70 | + * 简历附件 | ||
| 71 | + */ | ||
| 72 | + private String oesumeAttachments; | ||
| 73 | + /** | ||
| 74 | + * 考核结果 | ||
| 75 | + */ | ||
| 76 | + private String result; | ||
| 77 | + /** | ||
| 78 | + * 备注 | ||
| 79 | + */ | ||
| 80 | + private String notes; | ||
| 81 | + | ||
| 82 | +} |
| 1 | +package com.ruoyi.compliancemanagement.domain.bo; | ||
| 2 | + | ||
| 3 | +import com.ruoyi.common.core.validate.AddGroup; | ||
| 4 | +import com.ruoyi.common.core.validate.EditGroup; | ||
| 5 | +import lombok.Data; | ||
| 6 | +import lombok.EqualsAndHashCode; | ||
| 7 | +import javax.validation.constraints.*; | ||
| 8 | + | ||
| 9 | +import java.util.Date; | ||
| 10 | + | ||
| 11 | +import com.ruoyi.common.core.domain.BaseEntity; | ||
| 12 | + | ||
| 13 | +/** | ||
| 14 | + * 【请填写功能名称】业务对象 tbl_legal_staff | ||
| 15 | + * | ||
| 16 | + * @author ruoyi | ||
| 17 | + * @date 2024-08-05 | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +@Data | ||
| 21 | +@EqualsAndHashCode(callSuper = true) | ||
| 22 | +public class TblLegalStaffBo extends BaseEntity { | ||
| 23 | + | ||
| 24 | + /** | ||
| 25 | + * | ||
| 26 | + */ | ||
| 27 | + @NotNull(message = "不能为空", groups = { EditGroup.class }) | ||
| 28 | + private Long id; | ||
| 29 | + | ||
| 30 | + /** | ||
| 31 | + * 法务人姓名 | ||
| 32 | + */ | ||
| 33 | + @NotBlank(message = "法务人姓名不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 34 | + private String staffName; | ||
| 35 | + | ||
| 36 | + /** | ||
| 37 | + * 年龄 | ||
| 38 | + */ | ||
| 39 | + @NotBlank(message = "年龄不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 40 | + private String ages; | ||
| 41 | + | ||
| 42 | + /** | ||
| 43 | + * 学历 | ||
| 44 | + */ | ||
| 45 | + @NotBlank(message = "学习经历不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 46 | + private String learningExperience; | ||
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * 职位 | ||
| 50 | + */ | ||
| 51 | + @NotBlank(message = "职位不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 52 | + private String job; | ||
| 53 | + | ||
| 54 | + /** | ||
| 55 | + * 手机号 | ||
| 56 | + */ | ||
| 57 | + @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 58 | + private String phone; | ||
| 59 | + | ||
| 60 | + /** | ||
| 61 | + * 邮箱 | ||
| 62 | + */ | ||
| 63 | + @NotBlank(message = "邮箱不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 64 | + private String email; | ||
| 65 | + | ||
| 66 | + /** | ||
| 67 | + * 公司单位 | ||
| 68 | + */ | ||
| 69 | + @NotBlank(message = "公司单位不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 70 | + private String firmUnit; | ||
| 71 | + | ||
| 72 | + /** | ||
| 73 | + * 工作经历 | ||
| 74 | + */ | ||
| 75 | + @NotBlank(message = "工作经历不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 76 | + private String workExperience; | ||
| 77 | + | ||
| 78 | + /** | ||
| 79 | + * 专业领域 | ||
| 80 | + */ | ||
| 81 | + @NotBlank(message = "专业领域不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 82 | + private String specialized; | ||
| 83 | + | ||
| 84 | + /** | ||
| 85 | + * 资格证书 | ||
| 86 | + */ | ||
| 87 | + @NotBlank(message = "资格证书不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 88 | + private String qualifications; | ||
| 89 | + | ||
| 90 | + | ||
| 91 | + | ||
| 92 | +} |
ruoyi-system/src/main/java/com/ruoyi/compliancemanagement/domain/bo/TblOutsideCounselBo.java
0 → 100644
| 1 | +package com.ruoyi.compliancemanagement.domain.bo; | ||
| 2 | + | ||
| 3 | +import com.alibaba.excel.annotation.ExcelProperty; | ||
| 4 | +import com.ruoyi.common.convert.ExcelDictConvert; | ||
| 5 | +import com.ruoyi.common.core.validate.AddGroup; | ||
| 6 | +import com.ruoyi.common.core.validate.EditGroup; | ||
| 7 | +import lombok.Data; | ||
| 8 | +import lombok.EqualsAndHashCode; | ||
| 9 | +import javax.validation.constraints.*; | ||
| 10 | + | ||
| 11 | +import java.util.Date; | ||
| 12 | + | ||
| 13 | +import java.util.Date; | ||
| 14 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
| 15 | +import com.ruoyi.common.core.domain.BaseEntity; | ||
| 16 | +import org.springframework.format.annotation.DateTimeFormat; | ||
| 17 | + | ||
| 18 | +/** | ||
| 19 | + * 【请填写功能名称】业务对象 tbl_outside_counsel | ||
| 20 | + * | ||
| 21 | + * @author ruoyi | ||
| 22 | + * @date 2024-08-06 | ||
| 23 | + */ | ||
| 24 | + | ||
| 25 | +@Data | ||
| 26 | +@EqualsAndHashCode(callSuper = true) | ||
| 27 | +public class TblOutsideCounselBo extends BaseEntity { | ||
| 28 | + | ||
| 29 | + /** | ||
| 30 | + * | ||
| 31 | + */ | ||
| 32 | + @NotNull(message = "不能为空", groups = { EditGroup.class }) | ||
| 33 | + private Long id; | ||
| 34 | + | ||
| 35 | + /** | ||
| 36 | + * 律师事务所名称 | ||
| 37 | + */ | ||
| 38 | + @NotBlank(message = "律师事务所名称不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 39 | + private String lawyerName; | ||
| 40 | + | ||
| 41 | + /** | ||
| 42 | + * 专项(诉讼/非诉) | ||
| 43 | + */ | ||
| 44 | + @NotBlank(message = "专项(诉讼/非诉)不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 45 | + private String special; | ||
| 46 | + | ||
| 47 | + /** | ||
| 48 | + * 常年/专项(附件) | ||
| 49 | + */ | ||
| 50 | + @NotBlank(message = "常年/专项(附件)不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 51 | + private String specialAttachments; | ||
| 52 | + | ||
| 53 | + /** | ||
| 54 | + * 主办律师 | ||
| 55 | + */ | ||
| 56 | + @NotBlank(message = "主办律师不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 57 | + private String sponsorAttorney; | ||
| 58 | + | ||
| 59 | + /** | ||
| 60 | + * 协议服务期限 | ||
| 61 | + */ | ||
| 62 | + @NotBlank(message = "协议服务期限不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 63 | + private String term; | ||
| 64 | + | ||
| 65 | + /** | ||
| 66 | + * 协议费用(万元) | ||
| 67 | + */ | ||
| 68 | + @NotBlank(message = "协议费用(万元)不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 69 | + private String agreementFees; | ||
| 70 | + | ||
| 71 | + /** | ||
| 72 | + * 费用支付期限 | ||
| 73 | + */ | ||
| 74 | + @NotBlank(message = "费用支付期限不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 75 | + private String paymentTerm; | ||
| 76 | + | ||
| 77 | + /** | ||
| 78 | + * 聘用企业公开选聘/协商 | ||
| 79 | + */ | ||
| 80 | + @NotBlank(message = "聘用企业公开选聘/协商不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 81 | + private String openOrConsultations; | ||
| 82 | + | ||
| 83 | + /** | ||
| 84 | + * 简历附件 | ||
| 85 | + */ | ||
| 86 | + @NotBlank(message = "简历附件不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 87 | + private String oesumeAttachments; | ||
| 88 | + | ||
| 89 | + /** | ||
| 90 | + * 考核结果 | ||
| 91 | + */ | ||
| 92 | + @NotBlank(message = "考核结果不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 93 | + private String result; | ||
| 94 | + | ||
| 95 | + /** | ||
| 96 | + * 备注 | ||
| 97 | + */ | ||
| 98 | +// @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class }) | ||
| 99 | + private String notes; | ||
| 100 | + | ||
| 101 | + | ||
| 102 | +} |
| 1 | +package com.ruoyi.compliancemanagement.domain.vo; | ||
| 2 | + | ||
| 3 | +import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; | ||
| 4 | +import com.alibaba.excel.annotation.ExcelProperty; | ||
| 5 | +import com.ruoyi.common.annotation.ExcelDictFormat; | ||
| 6 | +import com.ruoyi.common.convert.ExcelDictConvert; | ||
| 7 | +import lombok.Data; | ||
| 8 | +import java.util.Date; | ||
| 9 | + | ||
| 10 | + | ||
| 11 | + | ||
| 12 | +/** | ||
| 13 | + * 【请填写功能名称】视图对象 tbl_legal_staff | ||
| 14 | + * | ||
| 15 | + * @author ruoyi | ||
| 16 | + * @date 2024-08-05 | ||
| 17 | + */ | ||
| 18 | +@Data | ||
| 19 | +@ExcelIgnoreUnannotated | ||
| 20 | +public class TblLegalStaffVo { | ||
| 21 | + | ||
| 22 | + private static final long serialVersionUID = 1L; | ||
| 23 | + | ||
| 24 | + /** | ||
| 25 | + * | ||
| 26 | + */ | ||
| 27 | + @ExcelProperty(value = "") | ||
| 28 | + private Long id; | ||
| 29 | + | ||
| 30 | + /** | ||
| 31 | + * 法务人姓名 | ||
| 32 | + */ | ||
| 33 | + @ExcelProperty(value = "法务人姓名") | ||
| 34 | + private String staffName; | ||
| 35 | + | ||
| 36 | + /** | ||
| 37 | + * 年龄 | ||
| 38 | + */ | ||
| 39 | + @ExcelProperty(value = "年龄") | ||
| 40 | + private String ages; | ||
| 41 | + | ||
| 42 | + /** | ||
| 43 | + * 学历 | ||
| 44 | + */ | ||
| 45 | + @ExcelProperty(value = "学习经历") | ||
| 46 | + private String learningExperience; | ||
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * 职位 | ||
| 50 | + */ | ||
| 51 | + @ExcelProperty(value = "职位") | ||
| 52 | + private String job; | ||
| 53 | + | ||
| 54 | + /** | ||
| 55 | + * 手机号 | ||
| 56 | + */ | ||
| 57 | + @ExcelProperty(value = "手机号") | ||
| 58 | + private String phone; | ||
| 59 | + | ||
| 60 | + /** | ||
| 61 | + * 邮箱 | ||
| 62 | + */ | ||
| 63 | + @ExcelProperty(value = "邮箱") | ||
| 64 | + private String email; | ||
| 65 | + | ||
| 66 | + /** | ||
| 67 | + * 公司单位 | ||
| 68 | + */ | ||
| 69 | + @ExcelProperty(value = "公司单位") | ||
| 70 | + private String firmUnit; | ||
| 71 | + | ||
| 72 | + /** | ||
| 73 | + * 工作经历 | ||
| 74 | + */ | ||
| 75 | + @ExcelProperty(value = "工作经历") | ||
| 76 | + private String workExperience; | ||
| 77 | + | ||
| 78 | + /** | ||
| 79 | + * 专业领域 | ||
| 80 | + */ | ||
| 81 | + @ExcelProperty(value = "专业领域") | ||
| 82 | + private String specialized; | ||
| 83 | + | ||
| 84 | + /** | ||
| 85 | + * 资格证书 | ||
| 86 | + */ | ||
| 87 | + @ExcelProperty(value = "资格证书") | ||
| 88 | + private String qualifications; | ||
| 89 | + | ||
| 90 | + | ||
| 91 | + | ||
| 92 | +} |
ruoyi-system/src/main/java/com/ruoyi/compliancemanagement/domain/vo/TblOutsideCounselVo.java
0 → 100644
| 1 | +package com.ruoyi.compliancemanagement.domain.vo; | ||
| 2 | + | ||
| 3 | +import java.util.Date; | ||
| 4 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
| 5 | +import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; | ||
| 6 | +import com.alibaba.excel.annotation.ExcelProperty; | ||
| 7 | +import com.ruoyi.common.annotation.ExcelDictFormat; | ||
| 8 | +import com.ruoyi.common.convert.ExcelDictConvert; | ||
| 9 | +import lombok.Data; | ||
| 10 | +import org.springframework.format.annotation.DateTimeFormat; | ||
| 11 | + | ||
| 12 | +import java.util.Date; | ||
| 13 | + | ||
| 14 | + | ||
| 15 | + | ||
| 16 | +/** | ||
| 17 | + * 【请填写功能名称】视图对象 tbl_outside_counsel | ||
| 18 | + * | ||
| 19 | + * @author ruoyi | ||
| 20 | + * @date 2024-08-06 | ||
| 21 | + */ | ||
| 22 | +@Data | ||
| 23 | +@ExcelIgnoreUnannotated | ||
| 24 | +public class TblOutsideCounselVo { | ||
| 25 | + | ||
| 26 | + private static final long serialVersionUID = 1L; | ||
| 27 | + | ||
| 28 | + /** | ||
| 29 | + * | ||
| 30 | + */ | ||
| 31 | + @ExcelProperty(value = "") | ||
| 32 | + private Long id; | ||
| 33 | + | ||
| 34 | + /** | ||
| 35 | + * 律师事务所名称 | ||
| 36 | + */ | ||
| 37 | + @ExcelProperty(value = "律师事务所名称") | ||
| 38 | + private String lawyerName; | ||
| 39 | + | ||
| 40 | + /** | ||
| 41 | + * 常年/专项(诉讼/非诉) | ||
| 42 | + */ | ||
| 43 | + @ExcelProperty(value = "常年/专项(诉讼/非诉)", converter = ExcelDictConvert.class) | ||
| 44 | + private String special; | ||
| 45 | + | ||
| 46 | + /** | ||
| 47 | + * 常年/专项(附件) | ||
| 48 | + */ | ||
| 49 | + @ExcelProperty(value = "常年/专项(附件)", converter = ExcelDictConvert.class) | ||
| 50 | + private String specialAttachments; | ||
| 51 | + | ||
| 52 | + /** | ||
| 53 | + * 主办律师 | ||
| 54 | + */ | ||
| 55 | + @ExcelProperty(value = "主办律师") | ||
| 56 | + private String sponsorAttorney; | ||
| 57 | + | ||
| 58 | + /** | ||
| 59 | + * 协议服务期限 | ||
| 60 | + */ | ||
| 61 | + @ExcelProperty(value = "协议服务期限") | ||
| 62 | + private String term; | ||
| 63 | + | ||
| 64 | + /** | ||
| 65 | + * 协议费用(万元) | ||
| 66 | + */ | ||
| 67 | + @ExcelProperty(value = "协议费用", converter = ExcelDictConvert.class) | ||
| 68 | + @ExcelDictFormat(readConverterExp = "万=元") | ||
| 69 | + private String agreementFees; | ||
| 70 | + | ||
| 71 | + /** | ||
| 72 | + * 费用支付期限 | ||
| 73 | + */ | ||
| 74 | + @ExcelProperty(value = "费用支付期限") | ||
| 75 | + private String paymentTerm; | ||
| 76 | + | ||
| 77 | + /** | ||
| 78 | + * 聘用企业公开选聘/协商 | ||
| 79 | + */ | ||
| 80 | + @ExcelProperty(value = "聘用企业公开选聘/协商") | ||
| 81 | + private String openOrConsultations; | ||
| 82 | + | ||
| 83 | + /** | ||
| 84 | + * 简历附件 | ||
| 85 | + */ | ||
| 86 | + @ExcelProperty(value = "简历附件") | ||
| 87 | + private String oesumeAttachments; | ||
| 88 | + | ||
| 89 | + /** | ||
| 90 | + * 考核结果 | ||
| 91 | + */ | ||
| 92 | + @ExcelProperty(value = "考核结果") | ||
| 93 | + private String result; | ||
| 94 | + /** | ||
| 95 | + * 备注 | ||
| 96 | + */ | ||
| 97 | + @ExcelProperty(value = "备注") | ||
| 98 | + private String notes; | ||
| 99 | + | ||
| 100 | + | ||
| 101 | +} |
ruoyi-system/src/main/java/com/ruoyi/compliancemanagement/mapper/TblLegalStaffMapper.java
0 → 100644
| 1 | +package com.ruoyi.compliancemanagement.mapper; | ||
| 2 | + | ||
| 3 | + | ||
| 4 | +import com.ruoyi.common.core.mapper.BaseMapperPlus; | ||
| 5 | +import com.ruoyi.compliancemanagement.domain.TblLegalStaff; | ||
| 6 | +import com.ruoyi.compliancemanagement.domain.vo.TblLegalStaffVo; | ||
| 7 | + | ||
| 8 | +/** | ||
| 9 | + * 【请填写功能名称】Mapper接口 | ||
| 10 | + * | ||
| 11 | + * @author ruoyi | ||
| 12 | + * @date 2024-08-05 | ||
| 13 | + */ | ||
| 14 | +public interface TblLegalStaffMapper extends BaseMapperPlus<TblLegalStaffMapper, TblLegalStaff, TblLegalStaffVo> { | ||
| 15 | + | ||
| 16 | +} |
ruoyi-system/src/main/java/com/ruoyi/compliancemanagement/mapper/TblOutsideCounselMapper.java
0 → 100644
| 1 | +package com.ruoyi.compliancemanagement.mapper; | ||
| 2 | + | ||
| 3 | +import com.ruoyi.common.core.mapper.BaseMapperPlus; | ||
| 4 | +import com.ruoyi.compliancemanagement.domain.TblOutsideCounsel; | ||
| 5 | +import com.ruoyi.compliancemanagement.domain.vo.TblOutsideCounselVo; | ||
| 6 | + | ||
| 7 | +/** | ||
| 8 | + * 【请填写功能名称】Mapper接口 | ||
| 9 | + * | ||
| 10 | + * @author ruoyi | ||
| 11 | + * @date 2024-08-06 | ||
| 12 | + */ | ||
| 13 | +public interface TblOutsideCounselMapper extends BaseMapperPlus<TblOutsideCounselMapper, TblOutsideCounsel, TblOutsideCounselVo> { | ||
| 14 | + | ||
| 15 | +} |
ruoyi-system/src/main/java/com/ruoyi/compliancemanagement/service/ITblLegalStaffService.java
0 → 100644
| 1 | +package com.ruoyi.compliancemanagement.service; | ||
| 2 | + | ||
| 3 | + | ||
| 4 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 5 | +import com.ruoyi.common.core.domain.PageQuery; | ||
| 6 | +import com.ruoyi.compliancemanagement.domain.bo.TblLegalStaffBo; | ||
| 7 | +import com.ruoyi.compliancemanagement.domain.vo.TblLegalStaffVo; | ||
| 8 | + | ||
| 9 | +import java.util.Collection; | ||
| 10 | +import java.util.List; | ||
| 11 | + | ||
| 12 | +/** | ||
| 13 | + * 【请填写功能名称】Service接口 | ||
| 14 | + * | ||
| 15 | + * @author ruoyi | ||
| 16 | + * @date 2024-08-05 | ||
| 17 | + */ | ||
| 18 | +public interface ITblLegalStaffService { | ||
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * 查询【请填写功能名称】 | ||
| 22 | + */ | ||
| 23 | + TblLegalStaffVo queryById(Long id); | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 查询【请填写功能名称】列表 | ||
| 27 | + */ | ||
| 28 | + TableDataInfo<TblLegalStaffVo> queryPageList(TblLegalStaffBo bo, PageQuery pageQuery); | ||
| 29 | + | ||
| 30 | + /** | ||
| 31 | + * 查询【请填写功能名称】列表 | ||
| 32 | + */ | ||
| 33 | + List<TblLegalStaffVo> queryList(TblLegalStaffBo bo); | ||
| 34 | + | ||
| 35 | + /** | ||
| 36 | + * 新增【请填写功能名称】 | ||
| 37 | + */ | ||
| 38 | + Boolean insertByBo(TblLegalStaffBo bo); | ||
| 39 | + | ||
| 40 | + /** | ||
| 41 | + * 修改【请填写功能名称】 | ||
| 42 | + */ | ||
| 43 | + Boolean updateByBo(TblLegalStaffBo bo); | ||
| 44 | + | ||
| 45 | + /** | ||
| 46 | + * 校验并批量删除【请填写功能名称】信息 | ||
| 47 | + */ | ||
| 48 | + Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid); | ||
| 49 | +} |
ruoyi-system/src/main/java/com/ruoyi/compliancemanagement/service/ITblOutsideCounselService.java
0 → 100644
| 1 | +package com.ruoyi.compliancemanagement.service; | ||
| 2 | + | ||
| 3 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 4 | +import com.ruoyi.common.core.domain.PageQuery; | ||
| 5 | +import com.ruoyi.compliancemanagement.domain.bo.TblOutsideCounselBo; | ||
| 6 | +import com.ruoyi.compliancemanagement.domain.vo.TblOutsideCounselVo; | ||
| 7 | + | ||
| 8 | +import java.util.Collection; | ||
| 9 | +import java.util.List; | ||
| 10 | + | ||
| 11 | +/** | ||
| 12 | + * 【请填写功能名称】Service接口 | ||
| 13 | + * | ||
| 14 | + * @author ruoyi | ||
| 15 | + * @date 2024-08-06 | ||
| 16 | + */ | ||
| 17 | +public interface ITblOutsideCounselService { | ||
| 18 | + | ||
| 19 | + /** | ||
| 20 | + * 查询【请填写功能名称】 | ||
| 21 | + */ | ||
| 22 | + TblOutsideCounselVo queryById(Long id); | ||
| 23 | + | ||
| 24 | + /** | ||
| 25 | + * 查询【请填写功能名称】列表 | ||
| 26 | + */ | ||
| 27 | + TableDataInfo<TblOutsideCounselVo> queryPageList(TblOutsideCounselBo bo, PageQuery pageQuery); | ||
| 28 | + | ||
| 29 | + /** | ||
| 30 | + * 查询【请填写功能名称】列表 | ||
| 31 | + */ | ||
| 32 | + List<TblOutsideCounselVo> queryList(TblOutsideCounselBo bo); | ||
| 33 | + | ||
| 34 | + /** | ||
| 35 | + * 新增【请填写功能名称】 | ||
| 36 | + */ | ||
| 37 | + Boolean insertByBo(TblOutsideCounselBo bo); | ||
| 38 | + | ||
| 39 | + /** | ||
| 40 | + * 修改【请填写功能名称】 | ||
| 41 | + */ | ||
| 42 | + Boolean updateByBo(TblOutsideCounselBo bo); | ||
| 43 | + | ||
| 44 | + /** | ||
| 45 | + * 校验并批量删除【请填写功能名称】信息 | ||
| 46 | + */ | ||
| 47 | + Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid); | ||
| 48 | +} |
ruoyi-system/src/main/java/com/ruoyi/compliancemanagement/service/impl/TblLegalStaffServiceImpl.java
0 → 100644
| 1 | +package com.ruoyi.compliancemanagement.service.impl; | ||
| 2 | + | ||
| 3 | +import cn.hutool.core.bean.BeanUtil; | ||
| 4 | +import com.ruoyi.common.utils.StringUtils; | ||
| 5 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 6 | +import com.ruoyi.common.core.domain.PageQuery; | ||
| 7 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ||
| 8 | +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | ||
| 9 | +import com.baomidou.mybatisplus.core.toolkit.Wrappers; | ||
| 10 | +import com.ruoyi.compliancemanagement.domain.TblLegalStaff; | ||
| 11 | +import com.ruoyi.compliancemanagement.domain.bo.TblLegalStaffBo; | ||
| 12 | +import com.ruoyi.compliancemanagement.domain.vo.TblLegalStaffVo; | ||
| 13 | +import com.ruoyi.compliancemanagement.mapper.TblLegalStaffMapper; | ||
| 14 | +import com.ruoyi.compliancemanagement.service.ITblLegalStaffService; | ||
| 15 | +import lombok.RequiredArgsConstructor; | ||
| 16 | +import org.springframework.stereotype.Service; | ||
| 17 | + | ||
| 18 | + | ||
| 19 | +import java.util.List; | ||
| 20 | +import java.util.Map; | ||
| 21 | +import java.util.Collection; | ||
| 22 | + | ||
| 23 | +/** | ||
| 24 | + * 【请填写功能名称】Service业务层处理 | ||
| 25 | + * | ||
| 26 | + * @author ruoyi | ||
| 27 | + * @date 2024-08-05 | ||
| 28 | + */ | ||
| 29 | +@RequiredArgsConstructor | ||
| 30 | +@Service | ||
| 31 | +public class TblLegalStaffServiceImpl implements ITblLegalStaffService { | ||
| 32 | + | ||
| 33 | + private final TblLegalStaffMapper baseMapper; | ||
| 34 | + | ||
| 35 | + /** | ||
| 36 | + * 查询【请填写功能名称】 | ||
| 37 | + */ | ||
| 38 | + @Override | ||
| 39 | + public TblLegalStaffVo queryById(Long id){ | ||
| 40 | + return baseMapper.selectVoById(id); | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + /** | ||
| 44 | + * 查询【请填写功能名称】列表 | ||
| 45 | + */ | ||
| 46 | + @Override | ||
| 47 | + public TableDataInfo<TblLegalStaffVo> queryPageList(TblLegalStaffBo bo, PageQuery pageQuery) { | ||
| 48 | + LambdaQueryWrapper<TblLegalStaff> lqw = buildQueryWrapper(bo); | ||
| 49 | + Page<TblLegalStaffVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw); | ||
| 50 | + return TableDataInfo.build(result); | ||
| 51 | + } | ||
| 52 | + | ||
| 53 | + /** | ||
| 54 | + * 查询【请填写功能名称】列表 | ||
| 55 | + */ | ||
| 56 | + @Override | ||
| 57 | + public List<TblLegalStaffVo> queryList(TblLegalStaffBo bo) { | ||
| 58 | + LambdaQueryWrapper<TblLegalStaff> lqw = buildQueryWrapper(bo); | ||
| 59 | + return baseMapper.selectVoList(lqw); | ||
| 60 | + } | ||
| 61 | + | ||
| 62 | + private LambdaQueryWrapper<TblLegalStaff> buildQueryWrapper(TblLegalStaffBo bo) { | ||
| 63 | + Map<String, Object> params = bo.getParams(); | ||
| 64 | + LambdaQueryWrapper<TblLegalStaff> lqw = Wrappers.lambdaQuery(); | ||
| 65 | + lqw.like(StringUtils.isNotBlank(bo.getStaffName()), TblLegalStaff::getStaffName, bo.getStaffName()); | ||
| 66 | + lqw.eq(StringUtils.isNotBlank(bo.getAges()), TblLegalStaff::getAges, bo.getAges()); | ||
| 67 | + lqw.eq(StringUtils.isNotBlank(bo.getLearningExperience()), TblLegalStaff::getLearningExperience, bo.getLearningExperience()); | ||
| 68 | + lqw.eq(StringUtils.isNotBlank(bo.getJob()), TblLegalStaff::getJob, bo.getJob()); | ||
| 69 | + lqw.eq(StringUtils.isNotBlank(bo.getPhone()), TblLegalStaff::getPhone, bo.getPhone()); | ||
| 70 | + lqw.eq(StringUtils.isNotBlank(bo.getEmail()), TblLegalStaff::getEmail, bo.getEmail()); | ||
| 71 | + lqw.eq(StringUtils.isNotBlank(bo.getFirmUnit()), TblLegalStaff::getFirmUnit, bo.getFirmUnit()); | ||
| 72 | + lqw.eq(StringUtils.isNotBlank(bo.getWorkExperience()), TblLegalStaff::getWorkExperience, bo.getWorkExperience()); | ||
| 73 | + lqw.eq(StringUtils.isNotBlank(bo.getSpecialized()), TblLegalStaff::getSpecialized, bo.getSpecialized()); | ||
| 74 | + lqw.eq(StringUtils.isNotBlank(bo.getQualifications()), TblLegalStaff::getQualifications, bo.getQualifications()); | ||
| 75 | + return lqw; | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + /** | ||
| 79 | + * 新增【请填写功能名称】 | ||
| 80 | + */ | ||
| 81 | + @Override | ||
| 82 | + public Boolean insertByBo(TblLegalStaffBo bo) { | ||
| 83 | + TblLegalStaff add = BeanUtil.toBean(bo, TblLegalStaff.class); | ||
| 84 | + validEntityBeforeSave(add); | ||
| 85 | + boolean flag = baseMapper.insert(add) > 0; | ||
| 86 | + if (flag) { | ||
| 87 | + bo.setId(add.getId()); | ||
| 88 | + } | ||
| 89 | + return flag; | ||
| 90 | + } | ||
| 91 | + | ||
| 92 | + /** | ||
| 93 | + * 修改【请填写功能名称】 | ||
| 94 | + */ | ||
| 95 | + @Override | ||
| 96 | + public Boolean updateByBo(TblLegalStaffBo bo) { | ||
| 97 | + TblLegalStaff update = BeanUtil.toBean(bo, TblLegalStaff.class); | ||
| 98 | + validEntityBeforeSave(update); | ||
| 99 | + return baseMapper.updateById(update) > 0; | ||
| 100 | + } | ||
| 101 | + | ||
| 102 | + /** | ||
| 103 | + * 保存前的数据校验 | ||
| 104 | + */ | ||
| 105 | + private void validEntityBeforeSave(TblLegalStaff entity){ | ||
| 106 | + //TODO 做一些数据校验,如唯一约束 | ||
| 107 | + } | ||
| 108 | + | ||
| 109 | + /** | ||
| 110 | + * 批量删除【请填写功能名称】 | ||
| 111 | + */ | ||
| 112 | + @Override | ||
| 113 | + public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) { | ||
| 114 | + if(isValid){ | ||
| 115 | + //TODO 做一些业务上的校验,判断是否需要校验 | ||
| 116 | + } | ||
| 117 | + return baseMapper.deleteBatchIds(ids) > 0; | ||
| 118 | + } | ||
| 119 | +} |
| 1 | +package com.ruoyi.compliancemanagement.service.impl; | ||
| 2 | + | ||
| 3 | +import cn.hutool.core.bean.BeanUtil; | ||
| 4 | +import com.ruoyi.common.utils.StringUtils; | ||
| 5 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 6 | +import com.ruoyi.common.core.domain.PageQuery; | ||
| 7 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ||
| 8 | +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | ||
| 9 | +import com.baomidou.mybatisplus.core.toolkit.Wrappers; | ||
| 10 | +import com.ruoyi.compliancemanagement.domain.TblOutsideCounsel; | ||
| 11 | +import com.ruoyi.compliancemanagement.domain.bo.TblOutsideCounselBo; | ||
| 12 | +import com.ruoyi.compliancemanagement.domain.vo.TblOutsideCounselVo; | ||
| 13 | +import com.ruoyi.compliancemanagement.mapper.TblOutsideCounselMapper; | ||
| 14 | +import com.ruoyi.compliancemanagement.service.ITblOutsideCounselService; | ||
| 15 | +import lombok.RequiredArgsConstructor; | ||
| 16 | +import org.springframework.stereotype.Service; | ||
| 17 | + | ||
| 18 | + | ||
| 19 | +import java.util.List; | ||
| 20 | +import java.util.Map; | ||
| 21 | +import java.util.Collection; | ||
| 22 | + | ||
| 23 | +/** | ||
| 24 | + * 【请填写功能名称】Service业务层处理 | ||
| 25 | + * | ||
| 26 | + * @author ruoyi | ||
| 27 | + * @date 2024-08-06 | ||
| 28 | + */ | ||
| 29 | +@RequiredArgsConstructor | ||
| 30 | +@Service | ||
| 31 | +public class TblOutsideCounselServiceImpl implements ITblOutsideCounselService { | ||
| 32 | + | ||
| 33 | + private final TblOutsideCounselMapper baseMapper; | ||
| 34 | + | ||
| 35 | + /** | ||
| 36 | + * 查询【请填写功能名称】 | ||
| 37 | + */ | ||
| 38 | + @Override | ||
| 39 | + public TblOutsideCounselVo queryById(Long id){ | ||
| 40 | + return baseMapper.selectVoById(id); | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + /** | ||
| 44 | + * 查询【请填写功能名称】列表 | ||
| 45 | + */ | ||
| 46 | + @Override | ||
| 47 | + public TableDataInfo<TblOutsideCounselVo> queryPageList(TblOutsideCounselBo bo, PageQuery pageQuery) { | ||
| 48 | + LambdaQueryWrapper<TblOutsideCounsel> lqw = buildQueryWrapper(bo); | ||
| 49 | + Page<TblOutsideCounselVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw); | ||
| 50 | + return TableDataInfo.build(result); | ||
| 51 | + } | ||
| 52 | + | ||
| 53 | + /** | ||
| 54 | + * 查询【请填写功能名称】列表 | ||
| 55 | + */ | ||
| 56 | + @Override | ||
| 57 | + public List<TblOutsideCounselVo> queryList(TblOutsideCounselBo bo) { | ||
| 58 | + LambdaQueryWrapper<TblOutsideCounsel> lqw = buildQueryWrapper(bo); | ||
| 59 | + return baseMapper.selectVoList(lqw); | ||
| 60 | + } | ||
| 61 | + | ||
| 62 | + private LambdaQueryWrapper<TblOutsideCounsel> buildQueryWrapper(TblOutsideCounselBo bo) { | ||
| 63 | + Map<String, Object> params = bo.getParams(); | ||
| 64 | + LambdaQueryWrapper<TblOutsideCounsel> lqw = Wrappers.lambdaQuery(); | ||
| 65 | + lqw.like(StringUtils.isNotBlank(bo.getLawyerName()), TblOutsideCounsel::getLawyerName, bo.getLawyerName()); | ||
| 66 | + lqw.eq(StringUtils.isNotBlank(bo.getSpecial()), TblOutsideCounsel::getSpecial, bo.getSpecial()); | ||
| 67 | + lqw.eq(StringUtils.isNotBlank(bo.getSpecialAttachments()), TblOutsideCounsel::getSpecialAttachments, bo.getSpecialAttachments()); | ||
| 68 | + lqw.eq(StringUtils.isNotBlank(bo.getSponsorAttorney()), TblOutsideCounsel::getSponsorAttorney, bo.getSponsorAttorney()); | ||
| 69 | + lqw.eq(StringUtils.isNotBlank(bo.getTerm()), TblOutsideCounsel::getTerm, bo.getTerm()); | ||
| 70 | + lqw.eq(StringUtils.isNotBlank(bo.getAgreementFees()), TblOutsideCounsel::getAgreementFees, bo.getAgreementFees()); | ||
| 71 | + lqw.eq(StringUtils.isNotBlank(bo.getPaymentTerm()), TblOutsideCounsel::getPaymentTerm, bo.getPaymentTerm()); | ||
| 72 | + lqw.eq(StringUtils.isNotBlank(bo.getOpenOrConsultations()), TblOutsideCounsel::getOpenOrConsultations, bo.getOpenOrConsultations()); | ||
| 73 | + lqw.eq(StringUtils.isNotBlank(bo.getOesumeAttachments()), TblOutsideCounsel::getOesumeAttachments, bo.getOesumeAttachments()); | ||
| 74 | + lqw.eq(StringUtils.isNotBlank(bo.getResult()), TblOutsideCounsel::getResult, bo.getResult()); | ||
| 75 | + lqw.eq(StringUtils.isNotBlank(bo.getNotes()), TblOutsideCounsel::getNotes, bo.getNotes()); | ||
| 76 | + return lqw; | ||
| 77 | + } | ||
| 78 | + | ||
| 79 | + /** | ||
| 80 | + * 新增【请填写功能名称】 | ||
| 81 | + */ | ||
| 82 | + @Override | ||
| 83 | + public Boolean insertByBo(TblOutsideCounselBo bo) { | ||
| 84 | + TblOutsideCounsel add = BeanUtil.toBean(bo, TblOutsideCounsel.class); | ||
| 85 | + validEntityBeforeSave(add); | ||
| 86 | + boolean flag = baseMapper.insert(add) > 0; | ||
| 87 | + if (flag) { | ||
| 88 | + bo.setId(add.getId()); | ||
| 89 | + } | ||
| 90 | + return flag; | ||
| 91 | + } | ||
| 92 | + | ||
| 93 | + /** | ||
| 94 | + * 修改【请填写功能名称】 | ||
| 95 | + */ | ||
| 96 | + @Override | ||
| 97 | + public Boolean updateByBo(TblOutsideCounselBo bo) { | ||
| 98 | + TblOutsideCounsel update = BeanUtil.toBean(bo, TblOutsideCounsel.class); | ||
| 99 | + validEntityBeforeSave(update); | ||
| 100 | + return baseMapper.updateById(update) > 0; | ||
| 101 | + } | ||
| 102 | + | ||
| 103 | + /** | ||
| 104 | + * 保存前的数据校验 | ||
| 105 | + */ | ||
| 106 | + private void validEntityBeforeSave(TblOutsideCounsel entity){ | ||
| 107 | + //TODO 做一些数据校验,如唯一约束 | ||
| 108 | + } | ||
| 109 | + | ||
| 110 | + /** | ||
| 111 | + * 批量删除【请填写功能名称】 | ||
| 112 | + */ | ||
| 113 | + @Override | ||
| 114 | + public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) { | ||
| 115 | + if(isValid){ | ||
| 116 | + //TODO 做一些业务上的校验,判断是否需要校验 | ||
| 117 | + } | ||
| 118 | + return baseMapper.deleteBatchIds(ids) > 0; | ||
| 119 | + } | ||
| 120 | +} |
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
| 2 | +<!DOCTYPE mapper | ||
| 3 | +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 4 | +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
| 5 | +<mapper namespace="com.ruoyi.compliancemanagement.mapper.TblLegalStaffMapper"> | ||
| 6 | + | ||
| 7 | + <resultMap type="com.ruoyi.compliancemanagement.domain.TblLegalStaff" id="TblLegalStaffResult"> | ||
| 8 | + <result property="id" column="id"/> | ||
| 9 | + <result property="staffName" column="staff_name"/> | ||
| 10 | + <result property="ages" column="ages"/> | ||
| 11 | + <result property="learningExperience" column="learning_experience"/> | ||
| 12 | + <result property="job" column="job"/> | ||
| 13 | + <result property="phone" column="phone"/> | ||
| 14 | + <result property="email" column="email"/> | ||
| 15 | + <result property="firmUnit" column="firm_unit"/> | ||
| 16 | + <result property="workExperience" column="work_experience"/> | ||
| 17 | + <result property="specialized" column="specialized"/> | ||
| 18 | + <result property="qualifications" column="qualifications"/> | ||
| 19 | + <result property="createBy" column="create_by"/> | ||
| 20 | + <result property="createTime" column="create_time"/> | ||
| 21 | + <result property="updateBy" column="update_by"/> | ||
| 22 | + <result property="updateTime" column="update_time"/> | ||
| 23 | + </resultMap> | ||
| 24 | + | ||
| 25 | + | ||
| 26 | +</mapper> |
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
| 2 | +<!DOCTYPE mapper | ||
| 3 | +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 4 | +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
| 5 | +<mapper namespace="com.ruoyi.compliancemanagement.mapper.TblOutsideCounselMapper"> | ||
| 6 | + | ||
| 7 | + <resultMap type="com.ruoyi.compliancemanagement.domain.TblOutsideCounsel" id="TblOutsideCounselResult"> | ||
| 8 | + <result property="id" column="id"/> | ||
| 9 | + <result property="lawyerName" column="lawyer_name"/> | ||
| 10 | + <result property="special" column="special"/> | ||
| 11 | + <result property="specialAttachments" column="special_attachments"/> | ||
| 12 | + <result property="sponsorAttorney" column="sponsor_attorney"/> | ||
| 13 | + <result property="term" column="term"/> | ||
| 14 | + <result property="agreementFees" column="agreement_fees"/> | ||
| 15 | + <result property="paymentTerm" column="payment_term"/> | ||
| 16 | + <result property="openOrConsultations" column="open_or_consultations"/> | ||
| 17 | + <result property="oesumeAttachments" column="oesume_attachments"/> | ||
| 18 | + <result property="result" column="result"/> | ||
| 19 | + <result property="notes" column="notes"/> | ||
| 20 | + <result property="createBy" column="create_by"/> | ||
| 21 | + <result property="createTime" column="create_time"/> | ||
| 22 | + <result property="updateBy" column="update_by"/> | ||
| 23 | + <result property="updateTime" column="update_time"/> | ||
| 24 | + </resultMap> | ||
| 25 | + | ||
| 26 | + | ||
| 27 | +</mapper> |
-
请 注册 或 登录 后发表评论