This commit is contained in:
2025-05-22 10:27:57 +08:00
parent 9139457203
commit bfbde8a0f5
229 changed files with 11846 additions and 3588 deletions

View File

@@ -0,0 +1,22 @@
package com.gxwebsoft.law.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
@Configuration
public class WebSocketConfig
{
@Bean
public ServerEndpointExporter serverEndpointExporter()
{
ServerEndpointExporter exporter = new ServerEndpointExporter();
// 手动注册 WebSocket 端点
exporter.setAnnotatedEndpointClasses(WebSocketServer.class);
return exporter;
}
}

View File

@@ -0,0 +1,87 @@
package com.gxwebsoft.law.config;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import javax.websocket.*;
import javax.websocket.server.PathParam;
import javax.websocket.server.ServerEndpoint;
import java.io.IOException;
import java.util.concurrent.ConcurrentHashMap;
@ServerEndpoint(value = "/chat/{userId}")
@Component
public class WebSocketServer {
/**
* concurrent包的线程安全Set用来存放每个客户端对应的MyWebSocket对象。
*/
private static ConcurrentHashMap<String, WebSocketServer> webSocketMap = new ConcurrentHashMap<>();
/**
* 与某个客户端的连接会话,需要通过它来给客户端发送数据
*/
private Session session;
/**
* 接收userId
*/
private String userId = "";
/**
* 连接建立成功调用的方法
*/
@OnOpen
public void onOpen(Session session, @PathParam("userId") String userId) {
this.session = session;
this.userId = userId;
if (webSocketMap.containsKey(userId)) {
webSocketMap.remove(userId);
webSocketMap.put(userId, this);
//加入set中
} else {
webSocketMap.put(userId, this);
}
try {
sendMessage(userId, "连接成功");
} catch (IOException e) {
}
}
/**
* 连接关闭调用的方法
*/
@OnClose
public void onClose() {
if (webSocketMap.containsKey(userId)) {
webSocketMap.remove(userId);
}
}
/**
* 实现服务器主动推送
*/
public void sendMessage(String userId, String message) throws IOException {
if (webSocketMap.containsKey(userId)) {
Session session1 = webSocketMap.get(userId).session;
if (session1 != null) session1.getBasicRemote().sendText(message);
}
}
/**
* 实现服务器主动推送
*/
public void sendAllMessage(String message) throws IOException {
ConcurrentHashMap.KeySetView<String, WebSocketServer> userIds = webSocketMap.keySet();
for (String userId : userIds) {
WebSocketServer webSocketServer = webSocketMap.get(userId);
webSocketServer.session.getBasicRemote().sendText(message);
}
}
}

View File

@@ -0,0 +1,138 @@
package com.gxwebsoft.law.controller;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.toolkit.sql.StringEscape;
import com.gxwebsoft.common.core.utils.JSONUtil;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.config.WebSocketServer;
import com.gxwebsoft.law.entity.ChatMessage;
import com.gxwebsoft.law.entity.ChatResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@Api(tags = "AI")
@RestController
@RequestMapping("/api/chat")
public class AiController extends BaseController {
@Resource
private WebSocketServer webSocketServer;
@PostMapping("/message")
public ApiResult<?> message(@RequestBody ChatMessage message) throws IOException {
Map<String, Object> params = new HashMap<>();
params.put("query", message.getQuery());
params.put("user", getLoginUserId());
params.put("response_mode", "streaming");
String token = "Bearer app-UxV82WXIRrScpf53exkJ7dIw";
if (message.getType() != null) {
token = "Bearer app-7AFseF5UTEJpZGkW93S0wybh";
}
if (message.getInputs() != null) {
Map<String, Object> inputs = new HashMap<>();
inputs.put("request_type", message.getRequestType());
inputs.put("request_json", message.getInputs());
params.put("inputs", inputs);
} else {
params.put("inputs", new HashMap<>());
}
// 使用 Java 自带的 HttpURLConnection 发送流式请求
try {
URL url = new URL("http://workflow.gxshucheng.com:8010/v1/chat-messages");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("POST");
connection.setRequestProperty("Authorization", token);
connection.setRequestProperty("Content-Type", "application/json");
connection.setDoOutput(true);
connection.setConnectTimeout(600000);
connection.setReadTimeout(600000);
// 写入请求体
try (OutputStream os = connection.getOutputStream()) {
os.write(JSONUtil.toJSONString(params).getBytes(StandardCharsets.UTF_8));
}
StringBuilder responseStr = new StringBuilder();
// 读取响应流
try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) {
String line;
while ((line = br.readLine()) != null) {
System.out.println("Received chunk: " + line); // 打印接收到的每一部分数据
// 这里可以对每一部分数据进行处理,例如解析或发送给前端
if (!line.isEmpty()) {
String[] dataList = line.split("data: ");
if (dataList.length == 2) {
// System.out.println(dataList[1]);
Map data = JSONUtil.parseObject(dataList[1], Map.class);
if (data.get("event") != null && data.get("event").equals("message")) {
String answer = (String) data.get("answer");
String task_id = (String) data.get("task_id");
if (answer != null && !answer.isEmpty()) {
HashMap<String, String> answerData = new HashMap<>();
answerData.put("answer", answer);
answerData.put("taskId", task_id);
webSocketServer.sendMessage(message.getUser(), JSONUtil.toJSONString(answerData));
}
System.out.println(answer);
responseStr.append(answer);
}else if (data.get("event") != null && data.get("event").equals("message_end")) {
String task_id = (String) data.get("task_id");
HashMap<String, String> answerData = new HashMap<>();
answerData.put("answer", "__END__");
answerData.put("taskId", task_id);
webSocketServer.sendMessage(message.getUser(), JSONUtil.toJSONString(answerData));
}
}
}
}
}
} catch (Exception e) {
System.out.println(e.getMessage());
for (StackTraceElement stackTraceElement : e.getStackTrace()) {
System.out.println(stackTraceElement);
}
webSocketServer.sendMessage(message.getUser(), "出错了,请晚点再来提问吧~");
return fail("出错了,请晚点再来提问吧~");
}
// 返回成功响应
return success("Stream processing completed");
}
@PostMapping("/messageStop")
public ApiResult<?> stop(@RequestBody Map<String, Object> data) {
if (data.get("taskId") == null) return success();
String taskId = data.get("taskId").toString();
Map<String, Integer> postData = new HashMap<>();
postData.put("user", getLoginUserId());
String token = "Bearer app-UxV82WXIRrScpf53exkJ7dIw";
if (data.get("type") != null) {
token = "Bearer app-7AFseF5UTEJpZGkW93S0wybh";
}
String res = HttpRequest.post("http://workflow.gxshucheng.com:8010/v1/chat-messages/" + taskId + "/stop")
.header("Authorization", token)
.header("Content-Type", "application/json")
.body(JSONObject.toJSONString(postData))
.execute().body();
System.out.println("stop res:" + res);
return success();
}
}

View File

@@ -0,0 +1,119 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawFeedbackService;
import com.gxwebsoft.law.entity.LawFeedback;
import com.gxwebsoft.law.param.LawFeedbackParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 控制器
*
* @author LX
* @since 2025-05-06 10:27:16
*/
@Api(tags = "管理")
@RestController
@RequestMapping("/api/law/law-feedback")
public class LawFeedbackController extends BaseController {
@Resource
private LawFeedbackService lawFeedbackService;
@ApiOperation("分页查询")
@GetMapping("/page")
public ApiResult<PageResult<LawFeedback>> page(LawFeedbackParam param) {
// 使用关联查询
return success(lawFeedbackService.pageRel(param));
}
@ApiOperation("查询全部")
@GetMapping()
public ApiResult<List<LawFeedback>> list(LawFeedbackParam param) {
User loginUser = getLoginUser();
if (loginUser != null) {
param.setUserId(loginUser.getUserId());
}
// 使用关联查询
return success(lawFeedbackService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawFeedback:list')")
@ApiOperation("根据id查询")
@GetMapping("/{id}")
public ApiResult<LawFeedback> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawFeedbackService.getByIdRel(id));
}
@ApiOperation("添加")
@PostMapping()
public ApiResult<?> save(@RequestBody LawFeedback lawFeedback) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawFeedback.setUserId(loginUser.getUserId());
}
if (lawFeedbackService.save(lawFeedback)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改")
@PutMapping()
public ApiResult<?> update(@RequestBody LawFeedback lawFeedback) {
if (lawFeedbackService.updateById(lawFeedback)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawFeedbackService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawFeedback> list) {
if (lawFeedbackService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawFeedback> batchParam) {
if (batchParam.update(lawFeedbackService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawFeedbackService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,207 @@
package com.gxwebsoft.law.controller;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.ZipUtil;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalAidService;
import com.gxwebsoft.law.entity.LawLegalAid;
import com.gxwebsoft.law.param.LawLegalAidParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.apache.poi.xwpf.usermodel.XWPFTable;
import org.apache.poi.xwpf.usermodel.XWPFTableRow;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
/**
* 法律援助申请控制器
*
* @author LX
* @since 2025-04-17 17:33:28
*/
@Api(tags = "法律援助申请管理")
@RestController
@RequestMapping("/api/law/law-legal-aid")
public class LawLegalAidController extends BaseController {
@Resource
private LawLegalAidService lawLegalAidService;
@Value("${config.upload-path}")
private String uploadPath;
@Value("${config.server-url}")
private String serverUrl;
@ApiOperation("分页查询法律援助申请")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalAid>> page(LawLegalAidParam param) {
// 使用关联查询
return success(lawLegalAidService.pageRel(param));
}
@ApiOperation("查询全部法律援助申请")
@GetMapping()
public ApiResult<List<LawLegalAid>> list(LawLegalAidParam param) {
// 使用关联查询
return success(lawLegalAidService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawLegalAid:list')")
@ApiOperation("根据id查询法律援助申请")
@GetMapping("/{id}")
public ApiResult<LawLegalAid> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalAidService.getByIdRel(id));
}
@ApiOperation("添加法律援助申请")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalAid lawLegalAid) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalAid.setUserId(loginUser.getUserId());
}
if (lawLegalAidService.save(lawLegalAid)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改法律援助申请")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalAid lawLegalAid) {
if (lawLegalAidService.updateById(lawLegalAid)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除法律援助申请")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalAidService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加法律援助申请")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalAid> list) {
if (lawLegalAidService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改法律援助申请")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalAid> batchParam) {
if (batchParam.update(lawLegalAidService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除法律援助申请")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalAidService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("导出")
@PostMapping("/export")
public ApiResult<?> export() throws IOException {
List<LawLegalAid> list = lawLegalAidService.list();
XWPFDocument doc = new XWPFDocument(Files.newInputStream(Paths.get(uploadPath + "/file/法律援助申请表.docx")));
List<String> pathList = new ArrayList<>();
for (LawLegalAid lawLegalAid : list) {
String outputPath = uploadPath + "file/doc/法律援助申请表/" + lawLegalAid.getName() + "-" + lawLegalAid.getId() + ".docx";
pathList.add(outputPath);
FileOutputStream fos = new FileOutputStream(outputPath);
List<XWPFTable> tables = doc.getTables();
XWPFTable table = tables.get(0);
for (int i = 0; i < table.getRows().size(); i++) {
XWPFTableRow row = table.getRow(i);
switch (i) {
case 0: {
row.getCell(2).setText(lawLegalAid.getName());
row.getCell(4).setText(lawLegalAid.getGender().equals(0) ? "" : "");
row.getCell(6).setText(lawLegalAid.getNation());
}
break;
case 1: {
row.getCell(2).setText("身份证 " + lawLegalAid.getIdCard());
}
break;
case 2: {
row.getCell(2).setText(lawLegalAid.getHouseholdAddress());
}
break;
case 3: {
row.getCell(2).setText(lawLegalAid.getLiveAddress());
}
break;
case 5: {
row.getCell(2).setText(lawLegalAid.getCompanyName());
}
break;
case 6: {
row.getCell(2).setText(lawLegalAid.getPhone());
}
break;
case 7: {
row.getCell(2).setText(lawLegalAid.getEmail());
}
break;
case 9: {
if (lawLegalAid.getProxyName() != null && !lawLegalAid.getProxyName().isEmpty())
row.getCell(2).setText(lawLegalAid.getProxyName());
if (lawLegalAid.getProxyRelation() != null && !lawLegalAid.getProxyRelation().isEmpty())
row.getCell(4).setText(lawLegalAid.getProxyRelation());
if (lawLegalAid.getProxyPhone() != null && !lawLegalAid.getProxyPhone().isEmpty())
row.getCell(6).setText(lawLegalAid.getProxyPhone());
}
break;
case 10: {
if (lawLegalAid.getProxyIdCard() != null && !lawLegalAid.getProxyIdCard().isEmpty())
row.getCell(2).setText("身份证 " + lawLegalAid.getProxyIdCard());
}
break;
case 12: {
row.getCell(1).setText(lawLegalAid.getContent());
}
break;
}
}
doc.write(fos);
fos.flush();
fos.close();
}
ZipUtil.zip(uploadPath + "file/doc/法律援助申请表");
for (String path : pathList) {
FileUtil.del(path);
}
return success("导出成功", serverUrl + "/file/doc/法律援助申请表.zip");
}
}

View File

@@ -0,0 +1,115 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalAppraisalService;
import com.gxwebsoft.law.entity.LawLegalAppraisal;
import com.gxwebsoft.law.param.LawLegalAppraisalParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 司法鉴定申请控制器
*
* @author LX
* @since 2025-05-06 17:11:41
*/
@Api(tags = "司法鉴定申请管理")
@RestController
@RequestMapping("/api/law/law-legal-appraisal")
public class LawLegalAppraisalController extends BaseController {
@Resource
private LawLegalAppraisalService lawLegalAppraisalService;
@ApiOperation("分页查询司法鉴定申请")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalAppraisal>> page(LawLegalAppraisalParam param) {
// 使用关联查询
return success(lawLegalAppraisalService.pageRel(param));
}
@ApiOperation("查询全部司法鉴定申请")
@GetMapping()
public ApiResult<List<LawLegalAppraisal>> list(LawLegalAppraisalParam param) {
// 使用关联查询
return success(lawLegalAppraisalService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawLegalAppraisal:list')")
@ApiOperation("根据id查询司法鉴定申请")
@GetMapping("/{id}")
public ApiResult<LawLegalAppraisal> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalAppraisalService.getByIdRel(id));
}
@ApiOperation("添加司法鉴定申请")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalAppraisal lawLegalAppraisal) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalAppraisal.setUserId(loginUser.getUserId());
}
if (lawLegalAppraisalService.save(lawLegalAppraisal)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改司法鉴定申请")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalAppraisal lawLegalAppraisal) {
if (lawLegalAppraisalService.updateById(lawLegalAppraisal)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除司法鉴定申请")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalAppraisalService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加司法鉴定申请")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalAppraisal> list) {
if (lawLegalAppraisalService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改司法鉴定申请")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalAppraisal> batchParam) {
if (batchParam.update(lawLegalAppraisalService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除司法鉴定申请")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalAppraisalService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,223 @@
package com.gxwebsoft.law.controller;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.date.LocalDateTimeUtil;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.ZipUtil;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.entity.LawLegalAid;
import com.gxwebsoft.law.service.LawLegalArbitrateService;
import com.gxwebsoft.law.entity.LawLegalArbitrate;
import com.gxwebsoft.law.param.LawLegalArbitrateParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.poi.xwpf.usermodel.*;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* 法律仲裁申请控制器
*
* @author LX
* @since 2025-05-06 15:56:26
*/
@Api(tags = "法律仲裁申请管理")
@RestController
@RequestMapping("/api/law/law-legal-arbitrate")
public class LawLegalArbitrateController extends BaseController {
@Resource
private LawLegalArbitrateService lawLegalArbitrateService;
@Value("${config.upload-path}")
private String uploadPath;
@Value("${config.server-url}")
private String serverUrl;
@ApiOperation("分页查询法律仲裁申请")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalArbitrate>> page(LawLegalArbitrateParam param) {
// 使用关联查询
return success(lawLegalArbitrateService.pageRel(param));
}
@ApiOperation("查询全部法律仲裁申请")
@GetMapping()
public ApiResult<List<LawLegalArbitrate>> list(LawLegalArbitrateParam param) {
// 使用关联查询
return success(lawLegalArbitrateService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawLegalArbitrate:list')")
@ApiOperation("根据id查询法律仲裁申请")
@GetMapping("/{id}")
public ApiResult<LawLegalArbitrate> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalArbitrateService.getByIdRel(id));
}
@ApiOperation("添加法律仲裁申请")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalArbitrate lawLegalArbitrate) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalArbitrate.setUserId(loginUser.getUserId());
}
if (lawLegalArbitrateService.save(lawLegalArbitrate)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改法律仲裁申请")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalArbitrate lawLegalArbitrate) {
if (lawLegalArbitrateService.updateById(lawLegalArbitrate)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除法律仲裁申请")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalArbitrateService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加法律仲裁申请")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalArbitrate> list) {
if (lawLegalArbitrateService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改法律仲裁申请")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalArbitrate> batchParam) {
if (batchParam.update(lawLegalArbitrateService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除法律仲裁申请")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalArbitrateService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("导出")
@PostMapping("/export")
public ApiResult<?> export() throws IOException {
List<LawLegalArbitrate> list = lawLegalArbitrateService.list();
List<String> pathList = new ArrayList<>();
for (LawLegalArbitrate lawLegalArbitrate : list) {
XWPFDocument doc = new XWPFDocument();
String outputPath = uploadPath + "file/doc/仲裁申请书/" + lawLegalArbitrate.getName() + "-" + lawLegalArbitrate.getId() + ".docx";
pathList.add(outputPath);
FileOutputStream fos = new FileOutputStream(outputPath);
XWPFParagraph paragraph = doc.createParagraph();
paragraph.setAlignment(ParagraphAlignment.CENTER);
XWPFRun titleRun = paragraph.createRun();
titleRun.setFontFamily("宋体");
titleRun.setBold(true);
titleRun.setFontSize(26f);
titleRun.setText("仲裁申请书");
String line0 = " 申请人:";
line0 += lawLegalArbitrate.getName() + "";
line0 += lawLegalArbitrate.getGender().equals(0) ? "男," : "女,";
line0 += lawLegalArbitrate.getBirthday() + "出生,";
line0 += (lawLegalArbitrate.getNation().contains("") ? lawLegalArbitrate.getNation() : lawLegalArbitrate.getNation() + "") + "";
line0 += "" + lawLegalArbitrate.getLiveAddress() + "";
line0 += "身份证号码:" + lawLegalArbitrate.getIdCard() + "";
line0 += "联系电话:" + lawLegalArbitrate.getPhone() + "";
setContent(doc, line0);
String line1 = " 被申请人:";
line1 += lawLegalArbitrate.getBeenName() + "";
line1 += "住所地:" + lawLegalArbitrate.getBeenAddress() + "";
line1 += "统一社会信用代码:" + lawLegalArbitrate.getBeenCode() + "";
line1 += "联系电话:" + lawLegalArbitrate.getBeenPhone() + "";
setContent(doc, line1);
String line2 = " 法定代表人:";
line2 += lawLegalArbitrate.getBeenLegalName() + "" + lawLegalArbitrate.getBeenLegalPosition() + "";
setContent(doc, line2);
setTitle(doc, " 仲裁请求:");
setContent(doc, " " + lawLegalArbitrate.getRequestContent());
setTitle(doc, " 事实和理由:");
setContent(doc, " " + lawLegalArbitrate.getContent());
setContent(doc, " 此致");
setContent(doc, " 贵港仲裁委员会");
setEndContent(doc, "申请人: ");
String date = LocalDateTimeUtil.format(lawLegalArbitrate.getCreateTime(), "yyyy年MM月dd日");
setEndContent(doc, date);
doc.write(fos);
fos.flush();
fos.close();
}
ZipUtil.zip(uploadPath + "file/doc/仲裁申请书");
for (String path : pathList) {
FileUtil.del(path);
}
return success("导出成功", serverUrl + "/file/doc/仲裁申请书.zip");
}
private void setContent(XWPFDocument doc, String content) {
XWPFParagraph paragraph1 = doc.createParagraph();
paragraph1.setAlignment(ParagraphAlignment.LEFT);
XWPFRun pRun1 = paragraph1.createRun();
pRun1.setFontFamily("仿宋");
pRun1.setFontSize(16f);
pRun1.setText(content);
}
private void setEndContent(XWPFDocument doc, String content) {
XWPFParagraph paragraph1 = doc.createParagraph();
paragraph1.setAlignment(ParagraphAlignment.RIGHT);
XWPFRun pRun1 = paragraph1.createRun();
pRun1.setFontFamily("仿宋");
pRun1.setFontSize(16f);
pRun1.setText(content);
}
private void setTitle(XWPFDocument doc, String content) {
XWPFParagraph paragraph1 = doc.createParagraph();
paragraph1.setAlignment(ParagraphAlignment.LEFT);
XWPFRun pRun1 = paragraph1.createRun();
pRun1.setFontFamily("仿宋");
pRun1.setFontSize(16f);
pRun1.setBold(true);
pRun1.setText(content);
}
}

View File

@@ -0,0 +1,115 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalCalConfigService;
import com.gxwebsoft.law.entity.LawLegalCalConfig;
import com.gxwebsoft.law.param.LawLegalCalConfigParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 法律计算器配置控制器
*
* @author LX
* @since 2025-04-17 19:23:47
*/
@Api(tags = "法律计算器配置管理")
@RestController
@RequestMapping("/api/law/law-legal-cal-config")
public class LawLegalCalConfigController extends BaseController {
@Resource
private LawLegalCalConfigService lawLegalCalConfigService;
@ApiOperation("分页查询法律计算器配置")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalCalConfig>> page(LawLegalCalConfigParam param) {
// 使用关联查询
return success(lawLegalCalConfigService.pageRel(param));
}
@ApiOperation("查询全部法律计算器配置")
@GetMapping()
public ApiResult<List<LawLegalCalConfig>> list(LawLegalCalConfigParam param) {
// 使用关联查询
return success(lawLegalCalConfigService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawLegalCalConfig:list')")
@ApiOperation("根据id查询法律计算器配置")
@GetMapping("/{id}")
public ApiResult<LawLegalCalConfig> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalCalConfigService.getByIdRel(id));
}
@ApiOperation("添加法律计算器配置")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalCalConfig lawLegalCalConfig) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalCalConfig.setUserId(loginUser.getUserId());
}
if (lawLegalCalConfigService.save(lawLegalCalConfig)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改法律计算器配置")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalCalConfig lawLegalCalConfig) {
if (lawLegalCalConfigService.updateById(lawLegalCalConfig)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除法律计算器配置")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalCalConfigService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加法律计算器配置")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalCalConfig> list) {
if (lawLegalCalConfigService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改法律计算器配置")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalCalConfig> batchParam) {
if (batchParam.update(lawLegalCalConfigService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除法律计算器配置")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalCalConfigService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,115 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalCalContentService;
import com.gxwebsoft.law.entity.LawLegalCalContent;
import com.gxwebsoft.law.param.LawLegalCalContentParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 用户填写法律计算器内容控制器
*
* @author LX
* @since 2025-04-17 19:23:47
*/
@Api(tags = "用户填写法律计算器内容管理")
@RestController
@RequestMapping("/api/law/law-legal-cal-content")
public class LawLegalCalContentController extends BaseController {
@Resource
private LawLegalCalContentService lawLegalCalContentService;
@ApiOperation("分页查询用户填写法律计算器内容")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalCalContent>> page(LawLegalCalContentParam param) {
// 使用关联查询
return success(lawLegalCalContentService.pageRel(param));
}
@ApiOperation("查询全部用户填写法律计算器内容")
@GetMapping()
public ApiResult<List<LawLegalCalContent>> list(LawLegalCalContentParam param) {
// 使用关联查询
return success(lawLegalCalContentService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawLegalCalContent:list')")
@ApiOperation("根据id查询用户填写法律计算器内容")
@GetMapping("/{id}")
public ApiResult<LawLegalCalContent> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalCalContentService.getByIdRel(id));
}
@ApiOperation("添加用户填写法律计算器内容")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalCalContent lawLegalCalContent) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalCalContent.setUserId(loginUser.getUserId());
}
if (lawLegalCalContentService.save(lawLegalCalContent)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改用户填写法律计算器内容")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalCalContent lawLegalCalContent) {
if (lawLegalCalContentService.updateById(lawLegalCalContent)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除用户填写法律计算器内容")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalCalContentService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加用户填写法律计算器内容")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalCalContent> list) {
if (lawLegalCalContentService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改用户填写法律计算器内容")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalCalContent> batchParam) {
if (batchParam.update(lawLegalCalContentService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除用户填写法律计算器内容")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalCalContentService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,114 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalCalTypeService;
import com.gxwebsoft.law.entity.LawLegalCalType;
import com.gxwebsoft.law.param.LawLegalCalTypeParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 法律计算器配置控制器
*
* @author LX
* @since 2025-04-17 19:23:47
*/
@Api(tags = "法律计算器配置管理")
@RestController
@RequestMapping("/api/law/law-legal-cal-type")
public class LawLegalCalTypeController extends BaseController {
@Resource
private LawLegalCalTypeService lawLegalCalTypeService;
@ApiOperation("分页查询法律计算器配置")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalCalType>> page(LawLegalCalTypeParam param) {
// 使用关联查询
return success(lawLegalCalTypeService.pageRel(param));
}
@ApiOperation("查询全部法律计算器配置")
@GetMapping()
public ApiResult<List<LawLegalCalType>> list(LawLegalCalTypeParam param) {
// 使用关联查询
return success(lawLegalCalTypeService.listRel(param));
}
@ApiOperation("根据id查询法律计算器配置")
@GetMapping("/{id}")
public ApiResult<LawLegalCalType> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalCalTypeService.getByIdRel(id));
}
@ApiOperation("添加法律计算器配置")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalCalType lawLegalCalType) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalCalType.setUserId(loginUser.getUserId());
}
if (lawLegalCalTypeService.save(lawLegalCalType)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改法律计算器配置")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalCalType lawLegalCalType) {
if (lawLegalCalTypeService.updateById(lawLegalCalType)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除法律计算器配置")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalCalTypeService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加法律计算器配置")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalCalType> list) {
if (lawLegalCalTypeService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改法律计算器配置")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalCalType> batchParam) {
if (batchParam.update(lawLegalCalTypeService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除法律计算器配置")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalCalTypeService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,203 @@
package com.gxwebsoft.law.controller;
import cn.hutool.core.date.DateUtil;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalDocConfigService;
import com.gxwebsoft.law.entity.LawLegalDocConfig;
import com.gxwebsoft.law.param.LawLegalDocConfigParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.poi.xwpf.usermodel.ParagraphAlignment;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.apache.poi.xwpf.usermodel.XWPFParagraph;
import org.apache.poi.xwpf.usermodel.XWPFRun;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.MimeMessageHelper;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.mail.Authenticator;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.List;
import java.util.Properties;
/**
* 法律文书配置控制器
*
* @author LX
* @since 2025-04-17 19:06:41
*/
@Api(tags = "法律文书配置管理")
@RestController
@RequestMapping("/api/law/law-legal-doc-config")
public class LawLegalDocConfigController extends BaseController {
@Resource
private LawLegalDocConfigService lawLegalDocConfigService;
@Value("${config.upload-path}")
private String uploadPath;
@Autowired
private JavaMailSender javaMailSender;
@ApiOperation("分页查询法律文书配置")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalDocConfig>> page(LawLegalDocConfigParam param) {
// 使用关联查询
return success(lawLegalDocConfigService.pageRel(param));
}
@ApiOperation("查询全部法律文书配置")
@GetMapping()
public ApiResult<List<LawLegalDocConfig>> list(LawLegalDocConfigParam param) {
// 使用关联查询
return success(lawLegalDocConfigService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawLegalDocConfig:list')")
@ApiOperation("根据id查询法律文书配置")
@GetMapping("/{id}")
public ApiResult<LawLegalDocConfig> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalDocConfigService.getByIdRel(id));
}
@ApiOperation("添加法律文书配置")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalDocConfig lawLegalDocConfig) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalDocConfig.setUserId(loginUser.getUserId());
}
if (lawLegalDocConfigService.save(lawLegalDocConfig)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改法律文书配置")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalDocConfig lawLegalDocConfig) {
if (lawLegalDocConfigService.updateById(lawLegalDocConfig)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除法律文书配置")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalDocConfigService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加法律文书配置")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalDocConfig> list) {
if (lawLegalDocConfigService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改法律文书配置")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalDocConfig> batchParam) {
if (batchParam.update(lawLegalDocConfigService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除法律文书配置")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalDocConfigService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
@PostMapping("/make")
public ApiResult<?> makeDoc(@RequestBody LawLegalDocConfig lawLegalDocConfig) throws IOException {
String filePath = "/file/doc/" + lawLegalDocConfig.getTitle() + DateUtil.currentSeconds() + ".docx";
String levelOutputPath = uploadPath + filePath;
String userContent = lawLegalDocConfig.getUserContent();
XWPFDocument doc = new XWPFDocument();
XWPFParagraph paragraph = doc.createParagraph();
XWPFRun run = paragraph.createRun();
paragraph.setAlignment(ParagraphAlignment.CENTER);
run.setText(lawLegalDocConfig.getTitle());
run.setFontSize(16);
run.setBold(true);
run.addCarriageReturn();
XWPFParagraph newParagraph = doc.createParagraph();
XWPFRun newRun = newParagraph.createRun();
String[] userContentArray = userContent.split("\n");
run.setFontSize(14);
for (String item : userContentArray) {
newRun.setText(item);
newRun.addCarriageReturn();
}
FileOutputStream fos = new FileOutputStream(levelOutputPath);
doc.write(fos);
fos.flush();
fos.close();
return success("生成成功", filePath);
}
@PostMapping("/send-email")
public ApiResult<?> sendEmail(@RequestBody LawLegalDocConfig lawLegalDocConfig) throws IOException, MessagingException {
Properties properties = new Properties();// 创建Properties对象
properties.setProperty("mail.transport.protocol", "smtp");
properties.put("mail.smtp.host", "smtp.qq.com");
properties.setProperty("mail.smtp.auth", "true");
String from = "517289602@qq.com";
Authenticator auth = new MailAuthenticator(from, "fhvgbekxmxrxcaec");
Session session = Session.getDefaultInstance(properties, auth);
MimeMessage mimeMessage = new MimeMessage(session);
MimeMessageHelper helper = new MimeMessageHelper(mimeMessage, true);
helper.setFrom(new InternetAddress(from));
helper.setTo(lawLegalDocConfig.getEmail());
helper.setSubject(lawLegalDocConfig.getTitle());
helper.setText("请注意查收");
File file = new File(uploadPath + lawLegalDocConfig.getFile());
helper.addAttachment(lawLegalDocConfig.getTitle(), file);
javaMailSender.send(mimeMessage);
return success("发送成功");
}
static class MailAuthenticator extends Authenticator {
private final String user;
private final String pwd;
public MailAuthenticator(String user, String pwd) {
this.user = user;
this.pwd = pwd;
}
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(user, pwd);
}
}
}

View File

@@ -0,0 +1,115 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalDocContentService;
import com.gxwebsoft.law.entity.LawLegalDocContent;
import com.gxwebsoft.law.param.LawLegalDocContentParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 用户填写法律文书内容控制器
*
* @author LX
* @since 2025-04-17 19:06:41
*/
@Api(tags = "用户填写法律文书内容管理")
@RestController
@RequestMapping("/api/law/law-legal-doc-content")
public class LawLegalDocContentController extends BaseController {
@Resource
private LawLegalDocContentService lawLegalDocContentService;
@ApiOperation("分页查询用户填写法律文书内容")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalDocContent>> page(LawLegalDocContentParam param) {
// 使用关联查询
return success(lawLegalDocContentService.pageRel(param));
}
@ApiOperation("查询全部用户填写法律文书内容")
@GetMapping()
public ApiResult<List<LawLegalDocContent>> list(LawLegalDocContentParam param) {
// 使用关联查询
return success(lawLegalDocContentService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawLegalDocContent:list')")
@ApiOperation("根据id查询用户填写法律文书内容")
@GetMapping("/{id}")
public ApiResult<LawLegalDocContent> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalDocContentService.getByIdRel(id));
}
@ApiOperation("添加用户填写法律文书内容")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalDocContent lawLegalDocContent) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalDocContent.setUserId(loginUser.getUserId());
}
if (lawLegalDocContentService.save(lawLegalDocContent)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改用户填写法律文书内容")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalDocContent lawLegalDocContent) {
if (lawLegalDocContentService.updateById(lawLegalDocContent)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除用户填写法律文书内容")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalDocContentService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加用户填写法律文书内容")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalDocContent> list) {
if (lawLegalDocContentService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改用户填写法律文书内容")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalDocContent> batchParam) {
if (batchParam.update(lawLegalDocContentService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除用户填写法律文书内容")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalDocContentService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,114 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalDocTypeService;
import com.gxwebsoft.law.entity.LawLegalDocType;
import com.gxwebsoft.law.param.LawLegalDocTypeParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 法律文书配置控制器
*
* @author LX
* @since 2025-04-17 19:06:41
*/
@Api(tags = "法律文书配置管理")
@RestController
@RequestMapping("/api/law/law-legal-doc-type")
public class LawLegalDocTypeController extends BaseController {
@Resource
private LawLegalDocTypeService lawLegalDocTypeService;
@ApiOperation("分页查询法律文书配置")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalDocType>> page(LawLegalDocTypeParam param) {
// 使用关联查询
return success(lawLegalDocTypeService.pageRel(param));
}
@ApiOperation("查询全部法律文书配置")
@GetMapping()
public ApiResult<List<LawLegalDocType>> list(LawLegalDocTypeParam param) {
// 使用关联查询
return success(lawLegalDocTypeService.listRel(param));
}
@ApiOperation("根据id查询法律文书配置")
@GetMapping("/{id}")
public ApiResult<LawLegalDocType> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalDocTypeService.getByIdRel(id));
}
@ApiOperation("添加法律文书配置")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalDocType lawLegalDocType) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalDocType.setUserId(loginUser.getUserId());
}
if (lawLegalDocTypeService.save(lawLegalDocType)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改法律文书配置")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalDocType lawLegalDocType) {
if (lawLegalDocTypeService.updateById(lawLegalDocType)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除法律文书配置")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalDocTypeService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加法律文书配置")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalDocType> list) {
if (lawLegalDocTypeService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改法律文书配置")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalDocType> batchParam) {
if (batchParam.update(lawLegalDocTypeService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除法律文书配置")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalDocTypeService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,115 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalOrgCheckConfigService;
import com.gxwebsoft.law.entity.LawLegalOrgCheckConfig;
import com.gxwebsoft.law.param.LawLegalOrgCheckConfigParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 企业法制体检配置控制器
*
* @author LX
* @since 2025-04-17 17:51:15
*/
@Api(tags = "企业法制体检配置管理")
@RestController
@RequestMapping("/api/law/law-legal-org-check-config")
public class LawLegalOrgCheckConfigController extends BaseController {
@Resource
private LawLegalOrgCheckConfigService lawLegalOrgCheckConfigService;
@ApiOperation("分页查询企业法制体检配置")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalOrgCheckConfig>> page(LawLegalOrgCheckConfigParam param) {
// 使用关联查询
return success(lawLegalOrgCheckConfigService.pageRel(param));
}
@ApiOperation("查询全部企业法制体检配置")
@GetMapping()
public ApiResult<List<LawLegalOrgCheckConfig>> list(LawLegalOrgCheckConfigParam param) {
// 使用关联查询
return success(lawLegalOrgCheckConfigService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawLegalOrgCheckConfig:list')")
@ApiOperation("根据id查询企业法制体检配置")
@GetMapping("/{id}")
public ApiResult<LawLegalOrgCheckConfig> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalOrgCheckConfigService.getByIdRel(id));
}
@ApiOperation("添加企业法制体检配置")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalOrgCheckConfig lawLegalOrgCheckConfig) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalOrgCheckConfig.setUserId(loginUser.getUserId());
}
if (lawLegalOrgCheckConfigService.save(lawLegalOrgCheckConfig)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改企业法制体检配置")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalOrgCheckConfig lawLegalOrgCheckConfig) {
if (lawLegalOrgCheckConfigService.updateById(lawLegalOrgCheckConfig)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除企业法制体检配置")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalOrgCheckConfigService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加企业法制体检配置")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalOrgCheckConfig> list) {
if (lawLegalOrgCheckConfigService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改企业法制体检配置")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalOrgCheckConfig> batchParam) {
if (batchParam.update(lawLegalOrgCheckConfigService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除企业法制体检配置")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalOrgCheckConfigService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,122 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalOrgCheckConfigSuggestService;
import com.gxwebsoft.law.entity.LawLegalOrgCheckConfigSuggest;
import com.gxwebsoft.law.param.LawLegalOrgCheckConfigSuggestParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 法律意见书配置控制器
*
* @author LX
* @since 2025-04-17 18:55:31
*/
@Api(tags = "法律意见书配置管理")
@RestController
@RequestMapping("/api/law/law-legal-org-check-config-suggest")
public class LawLegalOrgCheckConfigSuggestController extends BaseController {
@Resource
private LawLegalOrgCheckConfigSuggestService lawLegalOrgCheckConfigSuggestService;
@ApiOperation("分页查询法律意见书配置")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalOrgCheckConfigSuggest>> page(LawLegalOrgCheckConfigSuggestParam param) {
// 使用关联查询
return success(lawLegalOrgCheckConfigSuggestService.pageRel(param));
}
@ApiOperation("查询全部法律意见书配置")
@GetMapping()
public ApiResult<List<LawLegalOrgCheckConfigSuggest>> list(LawLegalOrgCheckConfigSuggestParam param) {
// 使用关联查询
return success(lawLegalOrgCheckConfigSuggestService.listRel(param));
}
@ApiOperation("树形")
@GetMapping("/tree")
public ApiResult<List<LawLegalOrgCheckConfigSuggest>> tree(LawLegalOrgCheckConfigSuggestParam param) {
// 使用关联查询
return success(lawLegalOrgCheckConfigSuggestService.listByLevel(param));
}
@PreAuthorize("hasAuthority('law:lawLegalOrgCheckConfigSuggest:list')")
@ApiOperation("根据id查询法律意见书配置")
@GetMapping("/{id}")
public ApiResult<LawLegalOrgCheckConfigSuggest> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalOrgCheckConfigSuggestService.getByIdRel(id));
}
@ApiOperation("添加法律意见书配置")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalOrgCheckConfigSuggest lawLegalOrgCheckConfigSuggest) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalOrgCheckConfigSuggest.setUserId(loginUser.getUserId());
}
if (lawLegalOrgCheckConfigSuggestService.save(lawLegalOrgCheckConfigSuggest)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改法律意见书配置")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalOrgCheckConfigSuggest lawLegalOrgCheckConfigSuggest) {
if (lawLegalOrgCheckConfigSuggestService.updateById(lawLegalOrgCheckConfigSuggest)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除法律意见书配置")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalOrgCheckConfigSuggestService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加法律意见书配置")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalOrgCheckConfigSuggest> list) {
if (lawLegalOrgCheckConfigSuggestService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改法律意见书配置")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalOrgCheckConfigSuggest> batchParam) {
if (batchParam.update(lawLegalOrgCheckConfigSuggestService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除法律意见书配置")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalOrgCheckConfigSuggestService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,118 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalOrgCheckContentService;
import com.gxwebsoft.law.entity.LawLegalOrgCheckContent;
import com.gxwebsoft.law.param.LawLegalOrgCheckContentParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 用户填写企业法制体检内容控制器
*
* @author LX
* @since 2025-04-17 17:48:54
*/
@Api(tags = "用户填写企业法制体检内容管理")
@RestController
@RequestMapping("/api/law/law-legal-org-check-content")
public class LawLegalOrgCheckContentController extends BaseController {
@Resource
private LawLegalOrgCheckContentService lawLegalOrgCheckContentService;
@ApiOperation("分页查询用户填写企业法制体检内容")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalOrgCheckContent>> page(LawLegalOrgCheckContentParam param) {
// 使用关联查询
return success(lawLegalOrgCheckContentService.pageRel(param));
}
@ApiOperation("查询全部用户填写企业法制体检内容")
@GetMapping()
public ApiResult<List<LawLegalOrgCheckContent>> list(LawLegalOrgCheckContentParam param) {
// 使用关联查询
User loginUser = getLoginUser();
if (loginUser != null) {
param.setUserId(loginUser.getUserId());
}
return success(lawLegalOrgCheckContentService.listRel(param));
}
@ApiOperation("根据id查询用户填写企业法制体检内容")
@GetMapping("/{id}")
public ApiResult<LawLegalOrgCheckContent> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalOrgCheckContentService.getByIdRel(id));
}
@ApiOperation("添加用户填写企业法制体检内容")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalOrgCheckContent lawLegalOrgCheckContent) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalOrgCheckContent.setUserId(loginUser.getUserId());
}
if (lawLegalOrgCheckContentService.save(lawLegalOrgCheckContent)) {
return success("添加成功", lawLegalOrgCheckContent.getId());
}
return fail("添加失败");
}
@ApiOperation("修改用户填写企业法制体检内容")
@PostMapping("/update")
public ApiResult<?> update(@RequestBody LawLegalOrgCheckContent lawLegalOrgCheckContent) {
if (lawLegalOrgCheckContentService.updateById(lawLegalOrgCheckContent)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除用户填写企业法制体检内容")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalOrgCheckContentService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加用户填写企业法制体检内容")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalOrgCheckContent> list) {
if (lawLegalOrgCheckContentService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改用户填写企业法制体检内容")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalOrgCheckContent> batchParam) {
if (batchParam.update(lawLegalOrgCheckContentService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除用户填写企业法制体检内容")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalOrgCheckContentService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,114 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalOrgCheckContentSuggestService;
import com.gxwebsoft.law.entity.LawLegalOrgCheckContentSuggest;
import com.gxwebsoft.law.param.LawLegalOrgCheckContentSuggestParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 用户填写法律意见书内容控制器
*
* @author LX
* @since 2025-04-17 18:55:31
*/
@Api(tags = "用户填写法律意见书内容管理")
@RestController
@RequestMapping("/api/law/law-legal-org-check-content-suggest")
public class LawLegalOrgCheckContentSuggestController extends BaseController {
@Resource
private LawLegalOrgCheckContentSuggestService lawLegalOrgCheckContentSuggestService;
@ApiOperation("分页查询用户填写法律意见书内容")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalOrgCheckContentSuggest>> page(LawLegalOrgCheckContentSuggestParam param) {
// 使用关联查询
return success(lawLegalOrgCheckContentSuggestService.pageRel(param));
}
@ApiOperation("查询全部用户填写法律意见书内容")
@GetMapping()
public ApiResult<List<LawLegalOrgCheckContentSuggest>> list(LawLegalOrgCheckContentSuggestParam param) {
// 使用关联查询
return success(lawLegalOrgCheckContentSuggestService.listRel(param));
}
@ApiOperation("根据id查询用户填写法律意见书内容")
@GetMapping("/{id}")
public ApiResult<LawLegalOrgCheckContentSuggest> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalOrgCheckContentSuggestService.getByIdRel(id));
}
@ApiOperation("添加用户填写法律意见书内容")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalOrgCheckContentSuggest lawLegalOrgCheckContentSuggest) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalOrgCheckContentSuggest.setUserId(loginUser.getUserId());
}
if (lawLegalOrgCheckContentSuggestService.save(lawLegalOrgCheckContentSuggest)) {
return success("添加成功", lawLegalOrgCheckContentSuggest.getId());
}
return fail("添加失败");
}
@ApiOperation("修改用户填写法律意见书内容")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalOrgCheckContentSuggest lawLegalOrgCheckContentSuggest) {
if (lawLegalOrgCheckContentSuggestService.updateById(lawLegalOrgCheckContentSuggest)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除用户填写法律意见书内容")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalOrgCheckContentSuggestService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加用户填写法律意见书内容")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalOrgCheckContentSuggest> list) {
if (lawLegalOrgCheckContentSuggestService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改用户填写法律意见书内容")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalOrgCheckContentSuggest> batchParam) {
if (batchParam.update(lawLegalOrgCheckContentSuggestService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除用户填写法律意见书内容")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalOrgCheckContentSuggestService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,114 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalOrgCheckTypeService;
import com.gxwebsoft.law.entity.LawLegalOrgCheckType;
import com.gxwebsoft.law.param.LawLegalOrgCheckTypeParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 企业法制体检配置控制器
*
* @author LX
* @since 2025-04-17 18:04:46
*/
@Api(tags = "企业法制体检配置管理")
@RestController
@RequestMapping("/api/law/law-legal-org-check-type")
public class LawLegalOrgCheckTypeController extends BaseController {
@Resource
private LawLegalOrgCheckTypeService lawLegalOrgCheckTypeService;
@ApiOperation("分页查询企业法制体检配置")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalOrgCheckType>> page(LawLegalOrgCheckTypeParam param) {
// 使用关联查询
return success(lawLegalOrgCheckTypeService.pageRel(param));
}
@ApiOperation("查询全部企业法制体检配置")
@GetMapping()
public ApiResult<List<LawLegalOrgCheckType>> list(LawLegalOrgCheckTypeParam param) {
// 使用关联查询
return success(lawLegalOrgCheckTypeService.listRel(param));
}
@ApiOperation("根据id查询企业法制体检配置")
@GetMapping("/{id}")
public ApiResult<LawLegalOrgCheckType> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalOrgCheckTypeService.getByIdRel(id));
}
@ApiOperation("添加企业法制体检配置")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalOrgCheckType lawLegalOrgCheckType) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalOrgCheckType.setUserId(loginUser.getUserId());
}
if (lawLegalOrgCheckTypeService.save(lawLegalOrgCheckType)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改企业法制体检配置")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalOrgCheckType lawLegalOrgCheckType) {
if (lawLegalOrgCheckTypeService.updateById(lawLegalOrgCheckType)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除企业法制体检配置")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalOrgCheckTypeService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加企业法制体检配置")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalOrgCheckType> list) {
if (lawLegalOrgCheckTypeService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改企业法制体检配置")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalOrgCheckType> batchParam) {
if (batchParam.update(lawLegalOrgCheckTypeService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除企业法制体检配置")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalOrgCheckTypeService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,114 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawLegalOrgCheckTypeSuggestService;
import com.gxwebsoft.law.entity.LawLegalOrgCheckTypeSuggest;
import com.gxwebsoft.law.param.LawLegalOrgCheckTypeSuggestParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 法律意见书配置控制器
*
* @author LX
* @since 2025-04-17 18:55:31
*/
@Api(tags = "法律意见书配置管理")
@RestController
@RequestMapping("/api/law/law-legal-org-check-type-suggest")
public class LawLegalOrgCheckTypeSuggestController extends BaseController {
@Resource
private LawLegalOrgCheckTypeSuggestService lawLegalOrgCheckTypeSuggestService;
@ApiOperation("分页查询法律意见书配置")
@GetMapping("/page")
public ApiResult<PageResult<LawLegalOrgCheckTypeSuggest>> page(LawLegalOrgCheckTypeSuggestParam param) {
// 使用关联查询
return success(lawLegalOrgCheckTypeSuggestService.pageRel(param));
}
@ApiOperation("查询全部法律意见书配置")
@GetMapping()
public ApiResult<List<LawLegalOrgCheckTypeSuggest>> list(LawLegalOrgCheckTypeSuggestParam param) {
// 使用关联查询
return success(lawLegalOrgCheckTypeSuggestService.listRel(param));
}
@ApiOperation("根据id查询法律意见书配置")
@GetMapping("/{id}")
public ApiResult<LawLegalOrgCheckTypeSuggest> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawLegalOrgCheckTypeSuggestService.getByIdRel(id));
}
@ApiOperation("添加法律意见书配置")
@PostMapping()
public ApiResult<?> save(@RequestBody LawLegalOrgCheckTypeSuggest lawLegalOrgCheckTypeSuggest) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawLegalOrgCheckTypeSuggest.setUserId(loginUser.getUserId());
}
if (lawLegalOrgCheckTypeSuggestService.save(lawLegalOrgCheckTypeSuggest)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改法律意见书配置")
@PutMapping()
public ApiResult<?> update(@RequestBody LawLegalOrgCheckTypeSuggest lawLegalOrgCheckTypeSuggest) {
if (lawLegalOrgCheckTypeSuggestService.updateById(lawLegalOrgCheckTypeSuggest)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除法律意见书配置")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawLegalOrgCheckTypeSuggestService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加法律意见书配置")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawLegalOrgCheckTypeSuggest> list) {
if (lawLegalOrgCheckTypeSuggestService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改法律意见书配置")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawLegalOrgCheckTypeSuggest> batchParam) {
if (batchParam.update(lawLegalOrgCheckTypeSuggestService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除法律意见书配置")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawLegalOrgCheckTypeSuggestService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,115 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawNotaryConfigService;
import com.gxwebsoft.law.entity.LawNotaryConfig;
import com.gxwebsoft.law.param.LawNotaryConfigParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 公证配置控制器
*
* @author LX
* @since 2025-05-17 16:10:35
*/
@Api(tags = "公证配置管理")
@RestController
@RequestMapping("/api/law/law-notary-config")
public class LawNotaryConfigController extends BaseController {
@Resource
private LawNotaryConfigService lawNotaryConfigService;
@ApiOperation("分页查询公证配置")
@GetMapping("/page")
public ApiResult<PageResult<LawNotaryConfig>> page(LawNotaryConfigParam param) {
// 使用关联查询
return success(lawNotaryConfigService.pageRel(param));
}
@ApiOperation("查询全部公证配置")
@GetMapping()
public ApiResult<List<LawNotaryConfig>> list(LawNotaryConfigParam param) {
// 使用关联查询
return success(lawNotaryConfigService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawNotaryConfig:list')")
@ApiOperation("根据id查询公证配置")
@GetMapping("/{id}")
public ApiResult<LawNotaryConfig> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawNotaryConfigService.getByIdRel(id));
}
@ApiOperation("添加公证配置")
@PostMapping()
public ApiResult<?> save(@RequestBody LawNotaryConfig lawNotaryConfig) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawNotaryConfig.setUserId(loginUser.getUserId());
}
if (lawNotaryConfigService.save(lawNotaryConfig)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改公证配置")
@PutMapping()
public ApiResult<?> update(@RequestBody LawNotaryConfig lawNotaryConfig) {
if (lawNotaryConfigService.updateById(lawNotaryConfig)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除公证配置")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawNotaryConfigService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加公证配置")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawNotaryConfig> list) {
if (lawNotaryConfigService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改公证配置")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawNotaryConfig> batchParam) {
if (batchParam.update(lawNotaryConfigService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除公证配置")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawNotaryConfigService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,115 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawNotaryListService;
import com.gxwebsoft.law.entity.LawNotaryList;
import com.gxwebsoft.law.param.LawNotaryListParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 公证列表控制器
*
* @author LX
* @since 2025-05-17 16:10:35
*/
@Api(tags = "公证列表管理")
@RestController
@RequestMapping("/api/law/law-notary-list")
public class LawNotaryListController extends BaseController {
@Resource
private LawNotaryListService lawNotaryListService;
@ApiOperation("分页查询公证列表")
@GetMapping("/page")
public ApiResult<PageResult<LawNotaryList>> page(LawNotaryListParam param) {
// 使用关联查询
return success(lawNotaryListService.pageRel(param));
}
@ApiOperation("查询全部公证列表")
@GetMapping()
public ApiResult<List<LawNotaryList>> list(LawNotaryListParam param) {
// 使用关联查询
return success(lawNotaryListService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawNotaryList:list')")
@ApiOperation("根据id查询公证列表")
@GetMapping("/{id}")
public ApiResult<LawNotaryList> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawNotaryListService.getByIdRel(id));
}
@ApiOperation("添加公证列表")
@PostMapping()
public ApiResult<?> save(@RequestBody LawNotaryList lawNotaryList) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawNotaryList.setUserId(loginUser.getUserId());
}
if (lawNotaryListService.save(lawNotaryList)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改公证列表")
@PutMapping()
public ApiResult<?> update(@RequestBody LawNotaryList lawNotaryList) {
if (lawNotaryListService.updateById(lawNotaryList)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除公证列表")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawNotaryListService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加公证列表")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawNotaryList> list) {
if (lawNotaryListService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改公证列表")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawNotaryList> batchParam) {
if (batchParam.update(lawNotaryListService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除公证列表")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawNotaryListService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,115 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawOrgCheckLogService;
import com.gxwebsoft.law.entity.LawOrgCheckLog;
import com.gxwebsoft.law.param.LawOrgCheckLogParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 企业法制检查报告控制器
*
* @author LX
* @since 2025-04-20 07:43:09
*/
@Api(tags = "企业法制检查报告管理")
@RestController
@RequestMapping("/api/law/law-org-check-log")
public class LawOrgCheckLogController extends BaseController {
@Resource
private LawOrgCheckLogService lawOrgCheckLogService;
@ApiOperation("分页查询企业法制检查报告")
@GetMapping("/page")
public ApiResult<PageResult<LawOrgCheckLog>> page(LawOrgCheckLogParam param) {
// 使用关联查询
return success(lawOrgCheckLogService.pageRel(param));
}
@ApiOperation("查询全部企业法制检查报告")
@GetMapping()
public ApiResult<List<LawOrgCheckLog>> list(LawOrgCheckLogParam param) {
// 使用关联查询
return success(lawOrgCheckLogService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawOrgCheckLog:list')")
@ApiOperation("根据id查询企业法制检查报告")
@GetMapping("/{id}")
public ApiResult<LawOrgCheckLog> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawOrgCheckLogService.getByIdRel(id));
}
@ApiOperation("添加企业法制检查报告")
@PostMapping()
public ApiResult<?> save(@RequestBody LawOrgCheckLog lawOrgCheckLog) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawOrgCheckLog.setUserId(loginUser.getUserId());
}
if (lawOrgCheckLogService.save(lawOrgCheckLog)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改企业法制检查报告")
@PutMapping()
public ApiResult<?> update(@RequestBody LawOrgCheckLog lawOrgCheckLog) {
if (lawOrgCheckLogService.updateById(lawOrgCheckLog)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除企业法制检查报告")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawOrgCheckLogService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加企业法制检查报告")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawOrgCheckLog> list) {
if (lawOrgCheckLogService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改企业法制检查报告")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawOrgCheckLog> batchParam) {
if (batchParam.update(lawOrgCheckLogService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除企业法制检查报告")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawOrgCheckLogService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,150 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.common.system.entity.Area;
import com.gxwebsoft.common.system.service.AreaService;
import com.gxwebsoft.law.service.LawOrgService;
import com.gxwebsoft.law.entity.LawOrg;
import com.gxwebsoft.law.param.LawOrgParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 机构控制器
*
* @author LX
* @since 2025-04-14 00:35:34
*/
@Api(tags = "机构管理")
@RestController
@RequestMapping("/api/law/law-org")
public class LawOrgController extends BaseController {
@Resource
private LawOrgService lawOrgService;
@Resource
private AreaService areaService;
@ApiOperation("分页查询机构")
@GetMapping("/page")
public ApiResult<PageResult<LawOrg>> page(LawOrgParam param) {
// 使用关联查询
return success(lawOrgService.pageRel(param));
}
@ApiOperation("查询全部机构")
@GetMapping()
public ApiResult<List<LawOrg>> list(LawOrgParam param) {
// 使用关联查询
return success(lawOrgService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawOrg:list')")
@ApiOperation("根据id查询机构")
@GetMapping("/{id}")
public ApiResult<LawOrg> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawOrgService.getByIdRel(id));
}
@ApiOperation("添加机构")
@PostMapping()
public ApiResult<?> save(@RequestBody LawOrg lawOrg) {
if (lawOrg.getProvince() != null) {
Area province = areaService.getProvinceByName(lawOrg.getProvince());
if (province != null) {
lawOrg.setProvinceId(province.getId());
}
}
if (lawOrg.getCity() != null) {
Area city = areaService.getCityByName(lawOrg.getCity());
if (city != null) {
lawOrg.setCityId(city.getId());
}
}
if (lawOrg.getRegion() != null) {
Area region = areaService.getRegionByName(lawOrg.getRegion());
if (region != null) {
lawOrg.setAreaId(region.getId());
}
}
if (lawOrgService.save(lawOrg)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改机构")
@PutMapping()
public ApiResult<?> update(@RequestBody LawOrg lawOrg) {
if (lawOrg.getProvince() != null) {
Area province = areaService.getProvinceByName(lawOrg.getProvince());
if (province != null) {
lawOrg.setProvinceId(province.getId());
}
}
if (lawOrg.getCity() != null) {
Area city = areaService.getCityByName(lawOrg.getCity());
if (city != null) {
lawOrg.setCityId(city.getId());
}
}
if (lawOrg.getRegion() != null) {
Area region = areaService.getRegionByName(lawOrg.getRegion());
if (region != null) {
lawOrg.setAreaId(region.getId());
}
}
if (lawOrgService.updateById(lawOrg)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除机构")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawOrgService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加机构")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawOrg> list) {
if (lawOrgService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改机构")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawOrg> batchParam) {
if (batchParam.update(lawOrgService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除机构")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawOrgService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,115 @@
package com.gxwebsoft.law.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.law.service.LawOrgPeopleService;
import com.gxwebsoft.law.entity.LawOrgPeople;
import com.gxwebsoft.law.param.LawOrgPeopleParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 控制器
*
* @author LX
* @since 2025-04-14 01:31:54
*/
@Api(tags = "管理")
@RestController
@RequestMapping("/api/law/law-org-people")
public class LawOrgPeopleController extends BaseController {
@Resource
private LawOrgPeopleService lawOrgPeopleService;
@ApiOperation("分页查询")
@GetMapping("/page")
public ApiResult<PageResult<LawOrgPeople>> page(LawOrgPeopleParam param) {
// 使用关联查询
return success(lawOrgPeopleService.pageRel(param));
}
@ApiOperation("查询全部")
@GetMapping()
public ApiResult<List<LawOrgPeople>> list(LawOrgPeopleParam param) {
// 使用关联查询
return success(lawOrgPeopleService.listRel(param));
}
@PreAuthorize("hasAuthority('law:lawOrgPeople:list')")
@ApiOperation("根据id查询")
@GetMapping("/{id}")
public ApiResult<LawOrgPeople> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(lawOrgPeopleService.getByIdRel(id));
}
@ApiOperation("添加")
@PostMapping()
public ApiResult<?> save(@RequestBody LawOrgPeople lawOrgPeople) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
lawOrgPeople.setUserId(loginUser.getUserId());
}
if (lawOrgPeopleService.save(lawOrgPeople)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("修改")
@PutMapping()
public ApiResult<?> update(@RequestBody LawOrgPeople lawOrgPeople) {
if (lawOrgPeopleService.updateById(lawOrgPeople)) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("删除")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (lawOrgPeopleService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@ApiOperation("批量添加")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<LawOrgPeople> list) {
if (lawOrgPeopleService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@ApiOperation("批量修改")
@PutMapping("/batch")
public ApiResult<?> updateBatch(@RequestBody BatchParam<LawOrgPeople> batchParam) {
if (batchParam.update(lawOrgPeopleService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@ApiOperation("批量删除")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (lawOrgPeopleService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -0,0 +1,66 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Map;
/**
* 机构
*
* @author LX
* @since 2025-04-14 00:35:34
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawOrg对象", description = "机构")
@TableName("law_org")
public class ChatResponse implements Serializable {
private String event;
private String conversation_id;
private String message_id;
private long created_at;
private String task_id;
private String workflow_run_id;
private String id;
private String answer;
private ChatResponse.Metadata metadata;
private ChatResponse.Data data;
private Object[] files;
public static class Data {
private Usage usage;
}
public static class Metadata {
private String id;
private String node_id;
private String node_type;
private String title;
private String index;
private String predecessor_node_id;
private String inputs;
private String created_at;
private String extras;
}
public static class Usage {
private int prompt_tokens;
private String prompt_unit_price;
private String prompt_price_unit;
private String prompt_price;
private int completion_tokens;
private String completion_unit_price;
private String completion_price_unit;
private String completion_price;
private int total_tokens;
private String total_price;
private String currency;
private double latency;
}
}

View File

@@ -0,0 +1,59 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
*
* @author LX
* @since 2025-05-06 10:27:16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawFeedback对象", description = "")
@TableName("law_feedback")
public class LawFeedback implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer userId;
private String title;
private String company;
private String address;
private String date;
private String pics;
private String video;
private String content;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,78 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律援助申请
*
* @author LX
* @since 2025-04-17 17:33:28
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalAid对象", description = "法律援助申请")
@TableName("law_legal_aid")
public class LawLegalAid implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer userId;
private String name;
private Integer gender;
private String nation;
private String phone;
private String birthday;
private String idCard;
@ApiModelProperty(value = "住所地址")
private String liveAddress;
@ApiModelProperty(value = "户籍地址")
private String householdAddress;
private String companyName;
private String email;
private String proxyName;
private String proxyPhone;
private String proxyRelation;
private String proxyIdCard;
@ApiModelProperty(value = "说明")
private String content;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,77 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 司法鉴定申请
*
* @author LX
* @since 2025-05-06 17:11:41
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalAppraisal对象", description = "司法鉴定申请")
@TableName("law_legal_appraisal")
public class LawLegalAppraisal implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer userId;
private String name;
private Integer gender;
private Integer isNew;
private String phone;
private String birthday;
private String idCard;
private String fileList;
private String standard;
private String application;
@ApiModelProperty(value = "住所地址")
private String liveAddress;
@ApiModelProperty(value = "户籍地址")
private String householdAddress;
private Integer orgId;
@ApiModelProperty(value = "说明")
private String content;
@ApiModelProperty(value = "详情")
private String detail;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
@TableField(exist = false)
private LawOrg lawOrg;
}

View File

@@ -0,0 +1,87 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律仲裁申请
*
* @author LX
* @since 2025-05-06 15:56:26
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalArbitrate对象", description = "法律仲裁申请")
@TableName("law_legal_arbitrate")
public class LawLegalArbitrate implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer userId;
private String name;
private Integer gender;
private String phone;
private String birthday;
private String idCard;
private String nation;
@ApiModelProperty(value = "住所地址")
private String liveAddress;
@ApiModelProperty(value = "户籍地址")
private String householdAddress;
@ApiModelProperty(value = "事实和理由")
private String content;
@ApiModelProperty(value = "仲裁请求")
private String requestContent;
@ApiModelProperty(value = "被申请人")
private String beenName;
@ApiModelProperty(value = "被申请人地址")
private String beenAddress;
@ApiModelProperty(value = "被申请人代码")
private String beenCode;
@ApiModelProperty(value = "被申请人联系方式")
private String beenPhone;
@ApiModelProperty(value = "法定代表人")
private String beenLegalName;
@ApiModelProperty(value = "职位")
private String beenLegalPosition;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,55 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律计算器配置
*
* @author LX
* @since 2025-04-17 19:23:47
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalCalConfig对象", description = "法律计算器配置")
@TableName("law_legal_cal_config")
public class LawLegalCalConfig implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer typeId;
private String title;
@ApiModelProperty(value = "类型")
private String type;
@ApiModelProperty(value = "内容")
private String answer;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,49 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 用户填写法律计算器内容
*
* @author LX
* @since 2025-04-17 19:23:47
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalCalContent对象", description = "用户填写法律计算器内容")
@TableName("law_legal_cal_content")
public class LawLegalCalContent implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer groupId;
private String content;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,52 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律计算器配置
*
* @author LX
* @since 2025-04-17 19:23:47
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalCalType对象", description = "法律计算器配置")
@TableName("law_legal_cal_type")
public class LawLegalCalType implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private String icon;
private String title;
@ApiModelProperty(value = "类型")
private Integer sortNumber;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,61 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律文书配置
*
* @author LX
* @since 2025-04-17 19:06:41
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalDocConfig对象", description = "法律文书配置")
@TableName("law_legal_doc_config")
public class LawLegalDocConfig implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer typeId;
private String title;
@ApiModelProperty(value = "类型")
private String type;
@ApiModelProperty(value = "内容")
private String answer;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
@TableField(exist = false)
private String userContent;
@TableField(exist = false)
private String email;
@TableField(exist = false)
private String file;
}

View File

@@ -0,0 +1,49 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 用户填写法律文书内容
*
* @author LX
* @since 2025-04-17 19:06:41
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalDocContent对象", description = "用户填写法律文书内容")
@TableName("law_legal_doc_content")
public class LawLegalDocContent implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer groupId;
private String content;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,58 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律文书配置
*
* @author LX
* @since 2025-04-17 19:06:41
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalDocType对象", description = "法律文书配置")
@TableName("law_legal_doc_type")
public class LawLegalDocType implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private String icon;
private String title;
private String topContent;
private String extraContent;
private String comment;
@ApiModelProperty(value = "类型")
private Integer sortNumber;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,55 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 企业法制体检配置
*
* @author LX
* @since 2025-04-17 17:51:15
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalOrgCheckConfig对象", description = "企业法制体检配置")
@TableName("law_legal_org_check_config")
public class LawLegalOrgCheckConfig implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer typeId;
private String title;
@ApiModelProperty(value = "类型")
private String type;
@ApiModelProperty(value = "内容")
private String answer;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,60 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律意见书配置
*
* @author LX
* @since 2025-04-17 18:55:31
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalOrgCheckConfigSuggest对象", description = "法律意见书配置")
@TableName("law_legal_org_check_config_suggest")
public class LawLegalOrgCheckConfigSuggest implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer typeId;
private Integer parentId;
private String title;
@ApiModelProperty(value = "类型")
private String type;
@ApiModelProperty(value = "内容")
private String answer;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
@TableField(exist = false)
private List<LawLegalOrgCheckConfigSuggest> children;
}

View File

@@ -0,0 +1,58 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 用户填写企业法制体检内容
*
* @author LX
* @since 2025-04-17 17:48:54
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalOrgCheckContent对象", description = "用户填写企业法制体检内容")
@TableName("law_legal_org_check_content")
public class LawLegalOrgCheckContent implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer groupId;
private String content;
private String title;
private Integer userId;
private BigDecimal point;
private String aiContent;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
@TableField(exist = false)
private User user;
}

View File

@@ -0,0 +1,53 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 用户填写法律意见书内容
*
* @author LX
* @since 2025-04-17 18:55:31
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalOrgCheckContentSuggest对象", description = "用户填写法律意见书内容")
@TableName("law_legal_org_check_content_suggest")
public class LawLegalOrgCheckContentSuggest implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer groupId;
private String content;
private String aiContent;
private String title;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,58 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 企业法制体检配置
*
* @author LX
* @since 2025-04-17 18:04:46
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalOrgCheckType对象", description = "企业法制体检配置")
@TableName("law_legal_org_check_type")
public class LawLegalOrgCheckType implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private String icon;
private String title;
private String fileList;
private String content;
private String scoreConfig;
@ApiModelProperty(value = "类型")
private Integer sortNumber;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,62 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律意见书配置
*
* @author LX
* @since 2025-04-17 18:55:31
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawLegalOrgCheckTypeSuggest对象", description = "法律意见书配置")
@TableName("law_legal_org_check_type_suggest")
public class LawLegalOrgCheckTypeSuggest implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private String icon;
private String title;
private String fileList;
private String tips;
private String methods;
private String urls;
private Integer articleCateId;
@ApiModelProperty(value = "类型")
private Integer sortNumber;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,50 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 公证配置
*
* @author LX
* @since 2025-05-17 16:10:35
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawNotaryConfig对象", description = "公证配置")
@TableName("law_notary_config")
public class LawNotaryConfig implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private String title;
@ApiModelProperty(value = "配置")
private String configList;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,69 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 公证列表
*
* @author LX
* @since 2025-05-17 16:10:35
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawNotaryList对象", description = "公证列表")
@TableName("law_notary_list")
public class LawNotaryList implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer uid;
private String nameList;
private String type;
@ApiModelProperty(value = "公证事项")
private String content;
@ApiModelProperty(value = "用途")
private String application;
@ApiModelProperty(value = "使用地")
private String address;
@ApiModelProperty(value = "译文")
private String translate;
@ApiModelProperty(value = "文件列表")
private String fileList;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
@TableField(exist = false)
private User user;
}

View File

@@ -0,0 +1,68 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 机构
*
* @author LX
* @since 2025-04-14 00:35:34
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawOrg对象", description = "机构")
@TableName("law_org")
public class LawOrg implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private String title;
@ApiModelProperty(value = "0律所 1基层法律服务所 2仲裁机构 3公证处")
private String type;
private Integer provinceId;
private Integer cityId;
private String phone;
private String address;
private Integer areaId;
private String lat;
private String lng;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
@TableField(exist = false)
private String province;
@TableField(exist = false)
private String city;
@TableField(exist = false)
private String region;
}

View File

@@ -0,0 +1,61 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 企业法制检查报告
*
* @author LX
* @since 2025-04-20 07:43:09
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawOrgCheckLog对象", description = "企业法制检查报告")
@TableName("law_org_check_log")
public class LawOrgCheckLog implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private String companyName;
@ApiModelProperty(value = "来访单位")
private String checkCompanyName;
private String checkDate;
private String type;
@ApiModelProperty(value = "本月检查次数")
private Integer checkNum;
private String comment;
private String remark;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,57 @@
package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
*
* @author LX
* @since 2025-04-14 01:31:54
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LawOrgPeople对象", description = "")
@TableName("law_org_people")
public class LawOrgPeople implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Integer orgId;
private String name;
private String phone;
private String position;
private String type;
private String positionType;
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
@TableField(exist = false)
private LawOrg lawOrg;
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawFeedback;
import com.gxwebsoft.law.param.LawFeedbackParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* Mapper
*
* @author LX
* @since 2025-05-06 10:27:16
*/
public interface LawFeedbackMapper extends BaseMapper<LawFeedback> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawFeedback>
*/
List<LawFeedback> selectPageRel(@Param("page") IPage<LawFeedback> page,
@Param("param") LawFeedbackParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawFeedback> selectListRel(@Param("param") LawFeedbackParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalAid;
import com.gxwebsoft.law.param.LawLegalAidParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 法律援助申请Mapper
*
* @author LX
* @since 2025-04-17 17:33:28
*/
public interface LawLegalAidMapper extends BaseMapper<LawLegalAid> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalAid>
*/
List<LawLegalAid> selectPageRel(@Param("page") IPage<LawLegalAid> page,
@Param("param") LawLegalAidParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalAid> selectListRel(@Param("param") LawLegalAidParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalAppraisal;
import com.gxwebsoft.law.param.LawLegalAppraisalParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 司法鉴定申请Mapper
*
* @author LX
* @since 2025-05-06 17:11:41
*/
public interface LawLegalAppraisalMapper extends BaseMapper<LawLegalAppraisal> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalAppraisal>
*/
List<LawLegalAppraisal> selectPageRel(@Param("page") IPage<LawLegalAppraisal> page,
@Param("param") LawLegalAppraisalParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalAppraisal> selectListRel(@Param("param") LawLegalAppraisalParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalArbitrate;
import com.gxwebsoft.law.param.LawLegalArbitrateParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 法律仲裁申请Mapper
*
* @author LX
* @since 2025-05-06 15:56:26
*/
public interface LawLegalArbitrateMapper extends BaseMapper<LawLegalArbitrate> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalArbitrate>
*/
List<LawLegalArbitrate> selectPageRel(@Param("page") IPage<LawLegalArbitrate> page,
@Param("param") LawLegalArbitrateParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalArbitrate> selectListRel(@Param("param") LawLegalArbitrateParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalCalConfig;
import com.gxwebsoft.law.param.LawLegalCalConfigParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 法律计算器配置Mapper
*
* @author LX
* @since 2025-04-17 19:23:47
*/
public interface LawLegalCalConfigMapper extends BaseMapper<LawLegalCalConfig> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalCalConfig>
*/
List<LawLegalCalConfig> selectPageRel(@Param("page") IPage<LawLegalCalConfig> page,
@Param("param") LawLegalCalConfigParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalCalConfig> selectListRel(@Param("param") LawLegalCalConfigParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalCalContent;
import com.gxwebsoft.law.param.LawLegalCalContentParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 用户填写法律计算器内容Mapper
*
* @author LX
* @since 2025-04-17 19:23:47
*/
public interface LawLegalCalContentMapper extends BaseMapper<LawLegalCalContent> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalCalContent>
*/
List<LawLegalCalContent> selectPageRel(@Param("page") IPage<LawLegalCalContent> page,
@Param("param") LawLegalCalContentParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalCalContent> selectListRel(@Param("param") LawLegalCalContentParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalCalType;
import com.gxwebsoft.law.param.LawLegalCalTypeParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 法律计算器配置Mapper
*
* @author LX
* @since 2025-04-17 19:23:47
*/
public interface LawLegalCalTypeMapper extends BaseMapper<LawLegalCalType> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalCalType>
*/
List<LawLegalCalType> selectPageRel(@Param("page") IPage<LawLegalCalType> page,
@Param("param") LawLegalCalTypeParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalCalType> selectListRel(@Param("param") LawLegalCalTypeParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalDocConfig;
import com.gxwebsoft.law.param.LawLegalDocConfigParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 法律文书配置Mapper
*
* @author LX
* @since 2025-04-17 19:06:41
*/
public interface LawLegalDocConfigMapper extends BaseMapper<LawLegalDocConfig> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalDocConfig>
*/
List<LawLegalDocConfig> selectPageRel(@Param("page") IPage<LawLegalDocConfig> page,
@Param("param") LawLegalDocConfigParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalDocConfig> selectListRel(@Param("param") LawLegalDocConfigParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalDocContent;
import com.gxwebsoft.law.param.LawLegalDocContentParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 用户填写法律文书内容Mapper
*
* @author LX
* @since 2025-04-17 19:06:41
*/
public interface LawLegalDocContentMapper extends BaseMapper<LawLegalDocContent> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalDocContent>
*/
List<LawLegalDocContent> selectPageRel(@Param("page") IPage<LawLegalDocContent> page,
@Param("param") LawLegalDocContentParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalDocContent> selectListRel(@Param("param") LawLegalDocContentParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalDocType;
import com.gxwebsoft.law.param.LawLegalDocTypeParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 法律文书配置Mapper
*
* @author LX
* @since 2025-04-17 19:06:41
*/
public interface LawLegalDocTypeMapper extends BaseMapper<LawLegalDocType> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalDocType>
*/
List<LawLegalDocType> selectPageRel(@Param("page") IPage<LawLegalDocType> page,
@Param("param") LawLegalDocTypeParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalDocType> selectListRel(@Param("param") LawLegalDocTypeParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalOrgCheckConfig;
import com.gxwebsoft.law.param.LawLegalOrgCheckConfigParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 企业法制体检配置Mapper
*
* @author LX
* @since 2025-04-17 17:51:15
*/
public interface LawLegalOrgCheckConfigMapper extends BaseMapper<LawLegalOrgCheckConfig> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalOrgCheckConfig>
*/
List<LawLegalOrgCheckConfig> selectPageRel(@Param("page") IPage<LawLegalOrgCheckConfig> page,
@Param("param") LawLegalOrgCheckConfigParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalOrgCheckConfig> selectListRel(@Param("param") LawLegalOrgCheckConfigParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalOrgCheckConfigSuggest;
import com.gxwebsoft.law.param.LawLegalOrgCheckConfigSuggestParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 法律意见书配置Mapper
*
* @author LX
* @since 2025-04-17 18:55:31
*/
public interface LawLegalOrgCheckConfigSuggestMapper extends BaseMapper<LawLegalOrgCheckConfigSuggest> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalOrgCheckConfigSuggest>
*/
List<LawLegalOrgCheckConfigSuggest> selectPageRel(@Param("page") IPage<LawLegalOrgCheckConfigSuggest> page,
@Param("param") LawLegalOrgCheckConfigSuggestParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalOrgCheckConfigSuggest> selectListRel(@Param("param") LawLegalOrgCheckConfigSuggestParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalOrgCheckContent;
import com.gxwebsoft.law.param.LawLegalOrgCheckContentParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 用户填写企业法制体检内容Mapper
*
* @author LX
* @since 2025-04-17 17:48:54
*/
public interface LawLegalOrgCheckContentMapper extends BaseMapper<LawLegalOrgCheckContent> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalOrgCheckContent>
*/
List<LawLegalOrgCheckContent> selectPageRel(@Param("page") IPage<LawLegalOrgCheckContent> page,
@Param("param") LawLegalOrgCheckContentParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalOrgCheckContent> selectListRel(@Param("param") LawLegalOrgCheckContentParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalOrgCheckContentSuggest;
import com.gxwebsoft.law.param.LawLegalOrgCheckContentSuggestParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 用户填写法律意见书内容Mapper
*
* @author LX
* @since 2025-04-17 18:55:31
*/
public interface LawLegalOrgCheckContentSuggestMapper extends BaseMapper<LawLegalOrgCheckContentSuggest> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalOrgCheckContentSuggest>
*/
List<LawLegalOrgCheckContentSuggest> selectPageRel(@Param("page") IPage<LawLegalOrgCheckContentSuggest> page,
@Param("param") LawLegalOrgCheckContentSuggestParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalOrgCheckContentSuggest> selectListRel(@Param("param") LawLegalOrgCheckContentSuggestParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalOrgCheckType;
import com.gxwebsoft.law.param.LawLegalOrgCheckTypeParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 企业法制体检配置Mapper
*
* @author LX
* @since 2025-04-17 18:04:46
*/
public interface LawLegalOrgCheckTypeMapper extends BaseMapper<LawLegalOrgCheckType> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalOrgCheckType>
*/
List<LawLegalOrgCheckType> selectPageRel(@Param("page") IPage<LawLegalOrgCheckType> page,
@Param("param") LawLegalOrgCheckTypeParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalOrgCheckType> selectListRel(@Param("param") LawLegalOrgCheckTypeParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawLegalOrgCheckTypeSuggest;
import com.gxwebsoft.law.param.LawLegalOrgCheckTypeSuggestParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 法律意见书配置Mapper
*
* @author LX
* @since 2025-04-17 18:55:31
*/
public interface LawLegalOrgCheckTypeSuggestMapper extends BaseMapper<LawLegalOrgCheckTypeSuggest> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawLegalOrgCheckTypeSuggest>
*/
List<LawLegalOrgCheckTypeSuggest> selectPageRel(@Param("page") IPage<LawLegalOrgCheckTypeSuggest> page,
@Param("param") LawLegalOrgCheckTypeSuggestParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawLegalOrgCheckTypeSuggest> selectListRel(@Param("param") LawLegalOrgCheckTypeSuggestParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawNotaryConfig;
import com.gxwebsoft.law.param.LawNotaryConfigParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 公证配置Mapper
*
* @author LX
* @since 2025-05-17 16:10:35
*/
public interface LawNotaryConfigMapper extends BaseMapper<LawNotaryConfig> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawNotaryConfig>
*/
List<LawNotaryConfig> selectPageRel(@Param("page") IPage<LawNotaryConfig> page,
@Param("param") LawNotaryConfigParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawNotaryConfig> selectListRel(@Param("param") LawNotaryConfigParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawNotaryList;
import com.gxwebsoft.law.param.LawNotaryListParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 公证列表Mapper
*
* @author LX
* @since 2025-05-17 16:10:35
*/
public interface LawNotaryListMapper extends BaseMapper<LawNotaryList> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawNotaryList>
*/
List<LawNotaryList> selectPageRel(@Param("page") IPage<LawNotaryList> page,
@Param("param") LawNotaryListParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawNotaryList> selectListRel(@Param("param") LawNotaryListParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawOrgCheckLog;
import com.gxwebsoft.law.param.LawOrgCheckLogParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 企业法制检查报告Mapper
*
* @author LX
* @since 2025-04-20 07:43:09
*/
public interface LawOrgCheckLogMapper extends BaseMapper<LawOrgCheckLog> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawOrgCheckLog>
*/
List<LawOrgCheckLog> selectPageRel(@Param("page") IPage<LawOrgCheckLog> page,
@Param("param") LawOrgCheckLogParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawOrgCheckLog> selectListRel(@Param("param") LawOrgCheckLogParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawOrg;
import com.gxwebsoft.law.param.LawOrgParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 机构Mapper
*
* @author LX
* @since 2025-04-14 00:35:34
*/
public interface LawOrgMapper extends BaseMapper<LawOrg> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawOrg>
*/
List<LawOrg> selectPageRel(@Param("page") IPage<LawOrg> page,
@Param("param") LawOrgParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawOrg> selectListRel(@Param("param") LawOrgParam param);
}

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.law.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.law.entity.LawOrgPeople;
import com.gxwebsoft.law.param.LawOrgPeopleParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* Mapper
*
* @author LX
* @since 2025-04-14 01:31:54
*/
public interface LawOrgPeopleMapper extends BaseMapper<LawOrgPeople> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<LawOrgPeople>
*/
List<LawOrgPeople> selectPageRel(@Param("page") IPage<LawOrgPeople> page,
@Param("param") LawOrgPeopleParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<LawOrgPeople> selectListRel(@Param("param") LawOrgPeopleParam param);
}

View File

@@ -0,0 +1,66 @@
<?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.gxwebsoft.law.mapper.LawFeedbackMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_feedback a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.company != null">
AND a.company LIKE CONCAT('%', #{param.company}, '%')
</if>
<if test="param.address != null">
AND a.address LIKE CONCAT('%', #{param.address}, '%')
</if>
<if test="param.date != null">
AND a.date LIKE CONCAT('%', #{param.date}, '%')
</if>
<if test="param.pics != null">
AND a.pics LIKE CONCAT('%', #{param.pics}, '%')
</if>
<if test="param.video != null">
AND a.video LIKE CONCAT('%', #{param.video}, '%')
</if>
<if test="param.content != null">
AND a.content LIKE CONCAT('%', #{param.content}, '%')
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawFeedback">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawFeedback">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,73 @@
<?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.gxwebsoft.law.mapper.LawLegalAidMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_aid a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.name != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%')
</if>
<if test="param.gender != null">
AND a.gender = #{param.gender}
</if>
<if test="param.phone != null">
AND a.phone LIKE CONCAT('%', #{param.phone}, '%')
</if>
<if test="param.birthday != null">
AND a.birthday LIKE CONCAT('%', #{param.birthday}, '%')
</if>
<if test="param.idCard != null">
AND a.id_card LIKE CONCAT('%', #{param.idCard}, '%')
</if>
<if test="param.liveAddress != null">
AND a.live_address LIKE CONCAT('%', #{param.liveAddress}, '%')
</if>
<if test="param.householdAdderss != null">
AND a.household_adderss LIKE CONCAT('%', #{param.householdAdderss}, '%')
</if>
<if test="param.content != null">
AND a.content LIKE CONCAT('%', #{param.content}, '%')
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (
a.name LIKE CONCAT('%', #{param.keywords}, '%')
OR a.phone LIKE CONCAT('%', #{param.keywords}, '%')
OR a.id_card LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
ORDER BY a.create_time DESC
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalAid">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalAid">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,76 @@
<?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.gxwebsoft.law.mapper.LawLegalAppraisalMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_appraisal a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.name != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%')
</if>
<if test="param.gender != null">
AND a.gender = #{param.gender}
</if>
<if test="param.phone != null">
AND a.phone LIKE CONCAT('%', #{param.phone}, '%')
</if>
<if test="param.birthday != null">
AND a.birthday LIKE CONCAT('%', #{param.birthday}, '%')
</if>
<if test="param.idCard != null">
AND a.id_card LIKE CONCAT('%', #{param.idCard}, '%')
</if>
<if test="param.liveAddress != null">
AND a.live_address LIKE CONCAT('%', #{param.liveAddress}, '%')
</if>
<if test="param.householdAddress != null">
AND a.household_address LIKE CONCAT('%', #{param.householdAddress}, '%')
</if>
<if test="param.orgId != null">
AND a.org_id = #{param.orgId}
</if>
<if test="param.content != null">
AND a.content LIKE CONCAT('%', #{param.content}, '%')
</if>
<if test="param.detail != null">
AND a.detail LIKE CONCAT('%', #{param.detail}, '%')
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
ORDER BY a.create_time DESC
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalAppraisal">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalAppraisal">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,94 @@
<?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.gxwebsoft.law.mapper.LawLegalArbitrateMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_arbitrate a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.name != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%')
</if>
<if test="param.gender != null">
AND a.gender = #{param.gender}
</if>
<if test="param.phone != null">
AND a.phone LIKE CONCAT('%', #{param.phone}, '%')
</if>
<if test="param.birthday != null">
AND a.birthday LIKE CONCAT('%', #{param.birthday}, '%')
</if>
<if test="param.idCard != null">
AND a.id_card LIKE CONCAT('%', #{param.idCard}, '%')
</if>
<if test="param.liveAddress != null">
AND a.live_address LIKE CONCAT('%', #{param.liveAddress}, '%')
</if>
<if test="param.householdAddress != null">
AND a.household_address LIKE CONCAT('%', #{param.householdAddress}, '%')
</if>
<if test="param.content != null">
AND a.content LIKE CONCAT('%', #{param.content}, '%')
</if>
<if test="param.requestContent != null">
AND a.request_content LIKE CONCAT('%', #{param.requestContent}, '%')
</if>
<if test="param.beenName != null">
AND a.been_name LIKE CONCAT('%', #{param.beenName}, '%')
</if>
<if test="param.beenAddress != null">
AND a.been_address LIKE CONCAT('%', #{param.beenAddress}, '%')
</if>
<if test="param.beenCode != null">
AND a.been_code LIKE CONCAT('%', #{param.beenCode}, '%')
</if>
<if test="param.beenPhone != null">
AND a.been_phone LIKE CONCAT('%', #{param.beenPhone}, '%')
</if>
<if test="param.beenLegalName != null">
AND a.been_legal_name LIKE CONCAT('%', #{param.beenLegalName}, '%')
</if>
<if test="param.beenLegalPosition != null">
AND a.been_legal_position LIKE CONCAT('%', #{param.beenLegalPosition}, '%')
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (
a.name LIKE CONCAT('%', #{param.keywords}, '%')
OR a.phone LIKE CONCAT('%', #{param.keywords}, '%')
OR a.id_card LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
ORDER BY a.create_time DESC
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalArbitrate">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalArbitrate">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,57 @@
<?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.gxwebsoft.law.mapper.LawLegalCalConfigMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_cal_config a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.typeId != null">
AND a.type_id = #{param.typeId}
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.type != null">
AND a.type LIKE CONCAT('%', #{param.type}, '%')
</if>
<if test="param.answer != null">
AND a.answer LIKE CONCAT('%', #{param.answer}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalCalConfig">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalCalConfig">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,51 @@
<?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.gxwebsoft.law.mapper.LawLegalCalContentMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_cal_content a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.groupId != null">
AND a.group_id = #{param.groupId}
</if>
<if test="param.content != null">
AND a.content LIKE CONCAT('%', #{param.content}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalCalContent">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalCalContent">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,54 @@
<?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.gxwebsoft.law.mapper.LawLegalCalTypeMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_cal_type a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.icon != null">
AND a.icon LIKE CONCAT('%', #{param.icon}, '%')
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalCalType">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalCalType">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,57 @@
<?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.gxwebsoft.law.mapper.LawLegalDocConfigMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_doc_config a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.typeId != null">
AND a.type_id = #{param.typeId}
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.type != null">
AND a.type LIKE CONCAT('%', #{param.type}, '%')
</if>
<if test="param.answer != null">
AND a.answer LIKE CONCAT('%', #{param.answer}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalDocConfig">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalDocConfig">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,51 @@
<?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.gxwebsoft.law.mapper.LawLegalDocContentMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_doc_content a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.groupId != null">
AND a.group_id = #{param.groupId}
</if>
<if test="param.content != null">
AND a.content LIKE CONCAT('%', #{param.content}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalDocContent">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalDocContent">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,54 @@
<?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.gxwebsoft.law.mapper.LawLegalDocTypeMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_doc_type a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.icon != null">
AND a.icon LIKE CONCAT('%', #{param.icon}, '%')
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalDocType">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalDocType">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,57 @@
<?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.gxwebsoft.law.mapper.LawLegalOrgCheckConfigMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_org_check_config a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.typeId != null">
AND a.type_id = #{param.typeId}
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.type != null">
AND a.type LIKE CONCAT('%', #{param.type}, '%')
</if>
<if test="param.answer != null">
AND a.answer LIKE CONCAT('%', #{param.answer}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalOrgCheckConfig">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalOrgCheckConfig">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,60 @@
<?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.gxwebsoft.law.mapper.LawLegalOrgCheckConfigSuggestMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_org_check_config_suggest a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.typeId != null">
AND a.type_id = #{param.typeId}
</if>
<if test="param.parentId != null">
AND a.parent_id = #{param.parentId}
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.type != null">
AND a.type LIKE CONCAT('%', #{param.type}, '%')
</if>
<if test="param.answer != null">
AND a.answer LIKE CONCAT('%', #{param.answer}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalOrgCheckConfigSuggest">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalOrgCheckConfigSuggest">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,51 @@
<?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.gxwebsoft.law.mapper.LawLegalOrgCheckContentMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_org_check_content a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.groupId != null">
AND a.group_id = #{param.groupId}
</if>
<if test="param.content != null">
AND a.content LIKE CONCAT('%', #{param.content}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalOrgCheckContent">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalOrgCheckContent">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,51 @@
<?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.gxwebsoft.law.mapper.LawLegalOrgCheckContentSuggestMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_org_check_content_suggest a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.groupId != null">
AND a.group_id = #{param.groupId}
</if>
<if test="param.content != null">
AND a.content LIKE CONCAT('%', #{param.content}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalOrgCheckContentSuggest">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalOrgCheckContentSuggest">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,54 @@
<?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.gxwebsoft.law.mapper.LawLegalOrgCheckTypeMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_org_check_type a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.icon != null">
AND a.icon LIKE CONCAT('%', #{param.icon}, '%')
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalOrgCheckType">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalOrgCheckType">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,54 @@
<?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.gxwebsoft.law.mapper.LawLegalOrgCheckTypeSuggestMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_legal_org_check_type_suggest a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.icon != null">
AND a.icon LIKE CONCAT('%', #{param.icon}, '%')
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalOrgCheckTypeSuggest">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalOrgCheckTypeSuggest">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,51 @@
<?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.gxwebsoft.law.mapper.LawNotaryConfigMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_notary_config a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.configList != null">
AND a.config_list LIKE CONCAT('%', #{param.configList}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawNotaryConfig">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawNotaryConfig">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,67 @@
<?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.gxwebsoft.law.mapper.LawNotaryListMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_notary_list a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.uid != null">
AND a.uid = #{param.uid}
</if>
<if test="param.nameList != null">
AND a.name_list LIKE CONCAT('%', #{param.nameList}, '%')
</if>
<if test="param.content != null">
AND a.content LIKE CONCAT('%', #{param.content}, '%')
</if>
<if test="param.application != null">
AND a.application LIKE CONCAT('%', #{param.application}, '%')
</if>
<if test="param.address != null">
AND a.address LIKE CONCAT('%', #{param.address}, '%')
</if>
<if test="param.translate != null">
AND a.translate LIKE CONCAT('%', #{param.translate}, '%')
</if>
<if test="param.fileList != null">
AND a.file_list LIKE CONCAT('%', #{param.fileList}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
ORDER BY a.id DESC
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawNotaryList">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawNotaryList">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,66 @@
<?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.gxwebsoft.law.mapper.LawOrgCheckLogMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_org_check_log a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyName != null">
AND a.company_name LIKE CONCAT('%', #{param.companyName}, '%')
</if>
<if test="param.checkCompanyName != null">
AND a.check_company_name LIKE CONCAT('%', #{param.checkCompanyName}, '%')
</if>
<if test="param.checkDate != null">
AND a.check_date LIKE CONCAT('%', #{param.checkDate}, '%')
</if>
<if test="param.type != null">
AND a.type LIKE CONCAT('%', #{param.type}, '%')
</if>
<if test="param.checkNum != null">
AND a.check_num = #{param.checkNum}
</if>
<if test="param.comment != null">
AND a.comment LIKE CONCAT('%', #{param.comment}, '%')
</if>
<if test="param.remark != null">
AND a.remark LIKE CONCAT('%', #{param.remark}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawOrgCheckLog">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawOrgCheckLog">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,63 @@
<?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.gxwebsoft.law.mapper.LawOrgMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_org a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.type != null">
AND a.type = #{param.type}
</if>
<if test="param.provinceId != null">
AND a.province_id = #{param.provinceId}
</if>
<if test="param.cityId != null">
AND a.city_id = #{param.cityId}
</if>
<if test="param.areaId != null">
AND a.area_id = #{param.areaId}
</if>
<if test="param.lat != null">
AND a.lat LIKE CONCAT('%', #{param.lat}, '%')
</if>
<if test="param.lng != null">
AND a.lng LIKE CONCAT('%', #{param.lng}, '%')
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.title LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawOrg">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawOrg">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,60 @@
<?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.gxwebsoft.law.mapper.LawOrgPeopleMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM law_org_people a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.orgId != null">
AND a.org_id = #{param.orgId}
</if>
<if test="param.name != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%')
</if>
<if test="param.phone != null">
AND a.phone LIKE CONCAT('%', #{param.phone}, '%')
</if>
<if test="param.position != null">
AND a.position LIKE CONCAT('%', #{param.position}, '%')
</if>
<if test="param.type != null">
AND a.type LIKE CONCAT('%', #{param.type}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.name LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawOrgPeople">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawOrgPeople">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -0,0 +1,50 @@
package com.gxwebsoft.law.param;
import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 查询参数
*
* @author LX
* @since 2025-05-06 10:27:16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LawFeedbackParam对象", description = "查询参数")
public class LawFeedbackParam extends BaseParam {
private static final long serialVersionUID = 1L;
@QueryField(type = QueryType.EQ)
private Integer id;
@QueryField(type = QueryType.EQ)
private Integer userId;
private String title;
private String company;
private String address;
private String date;
private String pics;
private String video;
private String content;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -0,0 +1,56 @@
package com.gxwebsoft.law.param;
import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律援助申请查询参数
*
* @author LX
* @since 2025-04-17 17:33:28
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LawLegalAidParam对象", description = "法律援助申请查询参数")
public class LawLegalAidParam extends BaseParam {
private static final long serialVersionUID = 1L;
@QueryField(type = QueryType.EQ)
private Integer id;
@QueryField(type = QueryType.EQ)
private Integer userId;
private String name;
@QueryField(type = QueryType.EQ)
private Integer gender;
private String phone;
private String birthday;
private String idCard;
@ApiModelProperty(value = "住所地址")
private String liveAddress;
@ApiModelProperty(value = "户籍地址")
private String householdAdderss;
@ApiModelProperty(value = "说明")
private String content;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -0,0 +1,62 @@
package com.gxwebsoft.law.param;
import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 司法鉴定申请查询参数
*
* @author LX
* @since 2025-05-06 17:11:41
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LawLegalAppraisalParam对象", description = "司法鉴定申请查询参数")
public class LawLegalAppraisalParam extends BaseParam {
private static final long serialVersionUID = 1L;
@QueryField(type = QueryType.EQ)
private Integer id;
@QueryField(type = QueryType.EQ)
private Integer userId;
private String name;
@QueryField(type = QueryType.EQ)
private Integer gender;
private String phone;
private String birthday;
private String idCard;
@ApiModelProperty(value = "住所地址")
private String liveAddress;
@ApiModelProperty(value = "户籍地址")
private String householdAddress;
@QueryField(type = QueryType.EQ)
private Integer orgId;
@ApiModelProperty(value = "说明")
private String content;
@ApiModelProperty(value = "详情")
private String detail;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -0,0 +1,77 @@
package com.gxwebsoft.law.param;
import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律仲裁申请查询参数
*
* @author LX
* @since 2025-05-06 15:56:26
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LawLegalArbitrateParam对象", description = "法律仲裁申请查询参数")
public class LawLegalArbitrateParam extends BaseParam {
private static final long serialVersionUID = 1L;
@QueryField(type = QueryType.EQ)
private Integer id;
@QueryField(type = QueryType.EQ)
private Integer userId;
private String name;
@QueryField(type = QueryType.EQ)
private Integer gender;
private String phone;
private String birthday;
private String idCard;
@ApiModelProperty(value = "住所地址")
private String liveAddress;
@ApiModelProperty(value = "户籍地址")
private String householdAddress;
@ApiModelProperty(value = "事实和理由")
private String content;
@ApiModelProperty(value = "仲裁请求")
private String requestContent;
@ApiModelProperty(value = "被申请人")
private String beenName;
@ApiModelProperty(value = "被申请人地址")
private String beenAddress;
@ApiModelProperty(value = "被申请人代码")
private String beenCode;
@ApiModelProperty(value = "被申请人联系方式")
private String beenPhone;
@ApiModelProperty(value = "法定代表人")
private String beenLegalName;
@ApiModelProperty(value = "职位")
private String beenLegalPosition;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -0,0 +1,47 @@
package com.gxwebsoft.law.param;
import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律计算器配置查询参数
*
* @author LX
* @since 2025-04-17 19:23:47
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LawLegalCalConfigParam对象", description = "法律计算器配置查询参数")
public class LawLegalCalConfigParam extends BaseParam {
private static final long serialVersionUID = 1L;
@QueryField(type = QueryType.EQ)
private Integer id;
@QueryField(type = QueryType.EQ)
private Integer typeId;
private String title;
@ApiModelProperty(value = "类型")
private String type;
@ApiModelProperty(value = "内容")
private String answer;
@QueryField(type = QueryType.EQ)
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -0,0 +1,41 @@
package com.gxwebsoft.law.param;
import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 用户填写法律计算器内容查询参数
*
* @author LX
* @since 2025-04-17 19:23:47
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LawLegalCalContentParam对象", description = "用户填写法律计算器内容查询参数")
public class LawLegalCalContentParam extends BaseParam {
private static final long serialVersionUID = 1L;
@QueryField(type = QueryType.EQ)
private Integer id;
@QueryField(type = QueryType.EQ)
private Integer groupId;
private String content;
@QueryField(type = QueryType.EQ)
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -0,0 +1,44 @@
package com.gxwebsoft.law.param;
import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律计算器配置查询参数
*
* @author LX
* @since 2025-04-17 19:23:47
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LawLegalCalTypeParam对象", description = "法律计算器配置查询参数")
public class LawLegalCalTypeParam extends BaseParam {
private static final long serialVersionUID = 1L;
@QueryField(type = QueryType.EQ)
private Integer id;
private String icon;
private String title;
@ApiModelProperty(value = "类型")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
@QueryField(type = QueryType.EQ)
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -0,0 +1,47 @@
package com.gxwebsoft.law.param;
import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律文书配置查询参数
*
* @author LX
* @since 2025-04-17 19:06:41
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LawLegalDocConfigParam对象", description = "法律文书配置查询参数")
public class LawLegalDocConfigParam extends BaseParam {
private static final long serialVersionUID = 1L;
@QueryField(type = QueryType.EQ)
private Integer id;
@QueryField(type = QueryType.EQ)
private Integer typeId;
private String title;
@ApiModelProperty(value = "类型")
private String type;
@ApiModelProperty(value = "内容")
private String answer;
@QueryField(type = QueryType.EQ)
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -0,0 +1,41 @@
package com.gxwebsoft.law.param;
import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 用户填写法律文书内容查询参数
*
* @author LX
* @since 2025-04-17 19:06:41
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LawLegalDocContentParam对象", description = "用户填写法律文书内容查询参数")
public class LawLegalDocContentParam extends BaseParam {
private static final long serialVersionUID = 1L;
@QueryField(type = QueryType.EQ)
private Integer id;
@QueryField(type = QueryType.EQ)
private Integer groupId;
private String content;
@QueryField(type = QueryType.EQ)
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -0,0 +1,44 @@
package com.gxwebsoft.law.param;
import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律文书配置查询参数
*
* @author LX
* @since 2025-04-17 19:06:41
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LawLegalDocTypeParam对象", description = "法律文书配置查询参数")
public class LawLegalDocTypeParam extends BaseParam {
private static final long serialVersionUID = 1L;
@QueryField(type = QueryType.EQ)
private Integer id;
private String icon;
private String title;
@ApiModelProperty(value = "类型")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
@QueryField(type = QueryType.EQ)
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -0,0 +1,46 @@
package com.gxwebsoft.law.param;
import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 企业法制体检配置查询参数
*
* @author LX
* @since 2025-04-17 17:51:15
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LawLegalOrgCheckConfigParam对象", description = "企业法制体检配置查询参数")
public class LawLegalOrgCheckConfigParam extends BaseParam {
private static final long serialVersionUID = 1L;
@QueryField(type = QueryType.EQ)
private Integer id;
private Integer typeId;
private String title;
@ApiModelProperty(value = "类型")
private String type;
@ApiModelProperty(value = "内容")
private String answer;
@QueryField(type = QueryType.EQ)
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -0,0 +1,49 @@
package com.gxwebsoft.law.param;
import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 法律意见书配置查询参数
*
* @author LX
* @since 2025-04-17 18:55:31
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LawLegalOrgCheckConfigSuggestParam对象", description = "法律意见书配置查询参数")
public class LawLegalOrgCheckConfigSuggestParam extends BaseParam {
private static final long serialVersionUID = 1L;
@QueryField(type = QueryType.EQ)
private Integer id;
@QueryField(type = QueryType.EQ)
private Integer typeId;
private Integer parentId;
private String title;
@ApiModelProperty(value = "类型")
private String type;
@ApiModelProperty(value = "内容")
private String answer;
@QueryField(type = QueryType.EQ)
private Integer userId;
@ApiModelProperty(value = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

Some files were not shown because too many files have changed in this diff Show More