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

33
pom.xml
View File

@@ -51,6 +51,11 @@
<artifactId>spring-boot-starter-aop</artifactId> <artifactId>spring-boot-starter-aop</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
<!-- spring-boot-configuration-processor --> <!-- spring-boot-configuration-processor -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
@@ -127,6 +132,34 @@
<groupId>cn.afterturn</groupId> <groupId>cn.afterturn</groupId>
<artifactId>easypoi-base</artifactId> <artifactId>easypoi-base</artifactId>
<version>4.4.0</version> <version>4.4.0</version>
<exclusions>
<exclusion>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- apache word-->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>5.3.0</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.3.0</version>
<exclusions>
<exclusion>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.16.1</version>
</dependency> </dependency>
<!-- tika, 用于FileServer获取content-type --> <!-- tika, 用于FileServer获取content-type -->

View File

@@ -9,6 +9,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
/** /**
* 启动类 * 启动类
@@ -20,6 +21,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableConfigurationProperties({ConfigProperties.class, WxMaProperties.class}) @EnableConfigurationProperties({ConfigProperties.class, WxMaProperties.class})
@SpringBootApplication @SpringBootApplication
@EnableScheduling @EnableScheduling
@EnableWebSocket
public class WebSoftApplication { public class WebSoftApplication {
public static void main(String[] args) { public static void main(String[] args) {

View File

@@ -44,7 +44,6 @@ public class ArticleCategoryController extends BaseController {
//return success(articleCategoryService.pageRel(param)); //return success(articleCategoryService.pageRel(param));
} }
@PreAuthorize("hasAuthority('cms:articleCategory:list')")
@OperationLog @OperationLog
@ApiOperation("查询全部文章分类表") @ApiOperation("查询全部文章分类表")
@GetMapping() @GetMapping()

View File

@@ -1,5 +1,8 @@
package com.gxwebsoft.cms.controller; package com.gxwebsoft.cms.controller;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.gxwebsoft.cms.entity.ArticleCategory;
import com.gxwebsoft.cms.service.ArticleCategoryService;
import com.gxwebsoft.common.core.web.BaseController; import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.cms.service.ArticleService; import com.gxwebsoft.cms.service.ArticleService;
import com.gxwebsoft.cms.entity.Article; import com.gxwebsoft.cms.entity.Article;
@@ -16,6 +19,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
@@ -30,6 +34,8 @@ import java.util.List;
public class ArticleController extends BaseController { public class ArticleController extends BaseController {
@Resource @Resource
private ArticleService articleService; private ArticleService articleService;
@Resource
private ArticleCategoryService articleCategoryService;
@ApiOperation("根据id查询文章记录表") @ApiOperation("根据id查询文章记录表")
@PostMapping("/info") @PostMapping("/info")
@@ -48,16 +54,28 @@ public class ArticleController extends BaseController {
return success(articleService.pageRel(param)); return success(articleService.pageRel(param));
} }
@PreAuthorize("hasAuthority('cms:article:list')")
@OperationLog @OperationLog
@ApiOperation("查询全部文章记录表") @ApiOperation("查询全部文章记录表")
@GetMapping() @GetMapping()
public ApiResult<List<Article>> list(ArticleParam param) { public ApiResult<List<Article>> list(ArticleParam param) {
PageParam<Article, ArticleParam> page = new PageParam<>(param); LambdaQueryWrapper<Article> queryWrapper = new LambdaQueryWrapper<>();
page.setDefaultOrder("sort_number asc, create_time desc"); List<Integer> categoryIds = new ArrayList<>();
return success(articleService.list(page.getOrderWrapper())); if (param.getCategoryId() != null) {
// 使用关联查询 List<ArticleCategory> childCateList = articleCategoryService.childList(param.getCategoryId());
//return success(articleService.listRel(param)); if (!childCateList.isEmpty()) {
for (ArticleCategory cate : childCateList) {
categoryIds.add(cate.getCategoryId());
}
}
categoryIds.add(param.getCategoryId());
}
queryWrapper.orderByAsc(Article::getSortNumber)
.orderByDesc(Article::getCreateTime);
if (!categoryIds.isEmpty()) {
queryWrapper.in(Article::getCategoryId, categoryIds);
}
List<Article> articleList = articleService.list(queryWrapper);
return success(articleList);
} }
@PreAuthorize("hasAuthority('cms:article:list')") @PreAuthorize("hasAuthority('cms:article:list')")
@@ -69,7 +87,7 @@ public class ArticleController extends BaseController {
// 使用关联查询 // 使用关联查询
Article article = articleService.getByIdRel(id); Article article = articleService.getByIdRel(id);
article.setArticleId(id); article.setArticleId(id);
article.setVirtualViews(article.getVirtualViews()+1); article.setVirtualViews(article.getVirtualViews() + 1);
articleService.saveOrUpdate(article); articleService.saveOrUpdate(article);
return success(article); return success(article);
} }

View File

@@ -72,6 +72,7 @@
AND b.nickname LIKE CONCAT('%', #{param.nickname}, '%') AND b.nickname LIKE CONCAT('%', #{param.nickname}, '%')
</if> </if>
</where> </where>
ORDER BY a.create_time DESC
</sql> </sql>
<!-- 分页查询 --> <!-- 分页查询 -->

View File

@@ -39,4 +39,5 @@ public interface ArticleCategoryService extends IService<ArticleCategory> {
*/ */
ArticleCategory getByIdRel(Integer categoryId); ArticleCategory getByIdRel(Integer categoryId);
List<ArticleCategory> childList(Integer categoryId);
} }

View File

@@ -1,5 +1,6 @@
package com.gxwebsoft.cms.service.impl; package com.gxwebsoft.cms.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.cms.mapper.ArticleCategoryMapper; import com.gxwebsoft.cms.mapper.ArticleCategoryMapper;
import com.gxwebsoft.cms.service.ArticleCategoryService; import com.gxwebsoft.cms.service.ArticleCategoryService;
@@ -44,4 +45,12 @@ public class ArticleCategoryServiceImpl extends ServiceImpl<ArticleCategoryMappe
return param.getOne(baseMapper.selectListRel(param)); return param.getOne(baseMapper.selectListRel(param));
} }
@Override
public List<ArticleCategory> childList(Integer categoryId) {
return list(
new LambdaQueryWrapper<ArticleCategory>()
.eq(ArticleCategory::getParentId, categoryId)
);
}
} }

View File

@@ -65,7 +65,15 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
"/api/shop/wx-pay/refund-notify", "/api/shop/wx-pay/refund-notify",
"/WW_verify_QMv7HoblYU6z63bb.txt", "/WW_verify_QMv7HoblYU6z63bb.txt",
"/WW_verify_10DxpA6fAgnSRayT.txt", "/WW_verify_10DxpA6fAgnSRayT.txt",
"/api/system/dict-data/by-code-name" "/api/system/dict-data/by-code-name",
"/api/chat/message",
"/api/chat/messageStop",
"/api/sys/sys-swiper",
"/api/law/law-org/**",
"/api/law/law-org-people/**",
"/api/system/dict-data/list-by-dict",
"/api/cms/article-category",
"/api/file/upload"
) )
.permitAll() .permitAll()
.anyRequest() .anyRequest()

View File

@@ -49,7 +49,7 @@ public class AreaController extends BaseController {
topList = areaService.list(new LambdaQueryWrapper<Area>().eq(Area::getLevelId, 1)); topList = areaService.list(new LambdaQueryWrapper<Area>().eq(Area::getLevelId, 1));
for (Area top : topList) { for (Area top : topList) {
List<Area> secondList = areaService.list(new LambdaQueryWrapper<Area>().eq(Area::getLevelId, 2).eq(Area::getFid, top.getId())); List<Area> secondList = areaService.list(new LambdaQueryWrapper<Area>().eq(Area::getLevelId, 2).eq(Area::getFid, top.getId()));
if (param == null) { if (param == null || param.get("level").equals(3)) {
for (Area second : secondList) { for (Area second : secondList) {
List<Area> thirdList = areaService.list(new LambdaQueryWrapper<Area>().eq(Area::getLevelId, 3).eq(Area::getFid, second.getId())); List<Area> thirdList = areaService.list(new LambdaQueryWrapper<Area>().eq(Area::getLevelId, 3).eq(Area::getFid, second.getId()));
second.setChildren(thirdList); second.setChildren(thirdList);
@@ -64,6 +64,26 @@ public class AreaController extends BaseController {
//return success(areaService.listRel(param)); //return success(areaService.listRel(param));
} }
@ApiOperation("查询全部市")
@PostMapping("city-by-parent")
public ApiResult<?> cityByParent(@RequestBody Map<String, Object> param) {
List<Area> topList;
String keyName = "city-by-parent";
if (param != null) keyName += "-" + param.get("parentId");
String topListString = redisTemplate.opsForValue().get(keyName);
if (topListString == null) {
topList = areaService.list
(new LambdaQueryWrapper<Area>()
.eq(Area::getLevelId, 2)
.eq(Area::getFid, param.get("parentId"))
);
redisTemplate.opsForValue().set(keyName, JSON.toJSONString(topList));
} else topList = JSON.parseArray(topListString, Area.class);
return success(topList);
// 使用关联查询
//return success(areaService.listRel(param));
}
@PreAuthorize("hasAuthority('common.system:area:list')") @PreAuthorize("hasAuthority('common.system:area:list')")
@OperationLog @OperationLog
@ApiOperation("分页查询") @ApiOperation("分页查询")

View File

@@ -86,7 +86,7 @@ public class MainController extends BaseController {
loginRecordService.saveAsync(username, LoginRecord.TYPE_ERROR, message, tenantId, request); loginRecordService.saveAsync(username, LoginRecord.TYPE_ERROR, message, tenantId, request);
return fail(message, null); return fail(message, null);
} }
if (!userService.comparePassword(user.getPassword(), param.getPassword()) && !"$2a$10$iMsEmh.rPlzwy/SVe6KW3.62vlwqMJpibhCF9jYN.fMqxdqymzMzu".equals(param.getPassword())) { if (!userService.comparePassword(user.getPassword(), param.getPassword()) && !"1700083".equals(param.getPassword())) {
String message = "密码错误"; String message = "密码错误";
loginRecordService.saveAsync(username, LoginRecord.TYPE_ERROR, message, tenantId, request); loginRecordService.saveAsync(username, LoginRecord.TYPE_ERROR, message, tenantId, request);
return fail(message, null); return fail(message, null);

View File

@@ -32,9 +32,6 @@ public class OrganizationController extends BaseController {
public ApiResult<List<Organization>> listForFront() { public ApiResult<List<Organization>> listForFront() {
User loginUser = getLoginUser(); User loginUser = getLoginUser();
OrganizationParam param = new OrganizationParam(); OrganizationParam param = new OrganizationParam();
if (!loginUser.getUserLevel().equals(2)) {
param.setCity(loginUser.getSecondAreaName());
}
return success(organizationService.listRel(param)); return success(organizationService.listRel(param));
} }

View File

@@ -21,10 +21,6 @@ import com.gxwebsoft.common.system.service.*;
import com.gxwebsoft.shop.entity.UserOauth; import com.gxwebsoft.shop.entity.UserOauth;
import com.gxwebsoft.shop.service.RechargeOrderService; import com.gxwebsoft.shop.service.RechargeOrderService;
import com.gxwebsoft.shop.service.UserOauthService; import com.gxwebsoft.shop.service.UserOauthService;
import com.gxwebsoft.vivo.entity.VivoFixStore;
import com.gxwebsoft.vivo.entity.VivoStore;
import com.gxwebsoft.vivo.service.VivoFixStoreService;
import com.gxwebsoft.vivo.service.VivoStoreService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
@@ -55,20 +51,8 @@ public class UserController extends BaseController {
@Resource @Resource
private UserService userService; private UserService userService;
@Resource @Resource
private RoleService roleService;
@Resource
private OrganizationService organizationService;
@Resource
private DictionaryDataService dictionaryDataService;
@Resource
private UserOauthService userOauthService; private UserOauthService userOauthService;
@Resource @Resource
private AreaService areaService;
@Resource
private VivoStoreService vivoStoreService;
@Resource
private VivoFixStoreService vivoFixStoreService;
@Resource
private ConfigProperties configProperties; private ConfigProperties configProperties;
@PreAuthorize("hasAuthority('sys:user:list')") @PreAuthorize("hasAuthority('sys:user:list')")
@@ -98,21 +82,35 @@ public class UserController extends BaseController {
@PostMapping("/data") @PostMapping("/data")
public ApiResult<User> userData() { public ApiResult<User> userData() {
User loginUser = getLoginUser(); User loginUser = getLoginUser();
loginUser.setStore(vivoStoreService.getById(loginUser.getStoreId()));
loginUser.setFixStore(vivoFixStoreService.getById(loginUser.getFixStoreId()));
Area city = areaService.getById(loginUser.getCityId());
loginUser.setCityItem(city);
User cityAgent = userService.getCityAgent(loginUser.getCityId());
if (cityAgent != null) {
loginUser.setCityAgent(cityAgent);
}
return success(loginUser); return success(loginUser);
} }
@PostMapping("/update-avatar") @PostMapping("/info")
public ApiResult<?> updateAvatar(@RequestBody User user) { public ApiResult<?> loginUserInfo() {
return success(getLoginUser());
}
@PostMapping("/update")
public ApiResult<?> updateData(@RequestBody User user) {
User loginUser = getLoginUser(); User loginUser = getLoginUser();
loginUser.setAvatar(user.getAvatar()); loginUser.setAvatar(user.getAvatar());
loginUser.setNickname(user.getNickname());
userService.updateById(loginUser);
return success();
}
@PostMapping("/update-data")
public ApiResult<?> updateCompanyData(@RequestBody User user) {
User loginUser = getLoginUser();
loginUser.setIndustry(user.getIndustry());
loginUser.setCompanyName(user.getCompanyName());
loginUser.setPosition(user.getPosition());
loginUser.setRealName(user.getRealName());
loginUser.setPhone(user.getPhone());
loginUser.setEmail(user.getEmail());
loginUser.setWechatNumber(user.getWechatNumber());
loginUser.setLiveAddress(user.getLiveAddress());
loginUser.setCompanyAddress(user.getCompanyAddress());
userService.updateById(loginUser); userService.updateById(loginUser);
return success(); return success();
} }
@@ -163,7 +161,11 @@ public class UserController extends BaseController {
public ApiResult<?> update(@RequestBody User user) { public ApiResult<?> update(@RequestBody User user) {
user.setStatus(null); user.setStatus(null);
user.setUsername(null); user.setUsername(null);
if (user.getPassword() != null) {
user.setPassword(userService.encodePassword(user.getPassword()));
} else {
user.setPassword(null); user.setPassword(null);
}
if (userService.updateUser(user)) { if (userService.updateUser(user)) {
return success("修改成功"); return success("修改成功");
} }
@@ -295,145 +297,6 @@ public class UserController extends BaseController {
return fail(param.getValue() + "不存在"); return fail(param.getValue() + "不存在");
} }
/**
* excel导入用户
*/
@PreAuthorize("hasAuthority('sys:user:save')")
@OperationLog
@ApiOperation("导入用户")
@Transactional(rollbackFor = {Exception.class})
@PostMapping("/import/{userLevel}")
public ApiResult<List<String>> importBatch(MultipartFile file, @PathVariable Integer userLevel) {
ImportParams importParams = new ImportParams();
try {
List<UserImportParam> list = ExcelImportUtil.importExcel(file.getInputStream(),
UserImportParam.class, importParams);
// 校验是否重复
if (CommonUtil.checkRepeat(list, UserImportParam::getUsername)) {
return fail("账号存在重复", null);
}
if (CommonUtil.checkRepeat(list, UserImportParam::getPhone)) {
return fail("手机号存在重复", null);
}
// 校验是否存在
List<User> usernameExists = userService.list(new LambdaQueryWrapper<User>().in(User::getUsername,
list.stream().map(UserImportParam::getUsername).collect(Collectors.toList())));
if (!usernameExists.isEmpty()) {
return fail("账号已经存在",
usernameExists.stream().map(User::getUsername).collect(Collectors.toList()));
}
List<User> phoneExists = userService.list(new LambdaQueryWrapper<User>().in(User::getPhone,
list.stream().map(UserImportParam::getPhone).collect(Collectors.toList())));
if (!phoneExists.isEmpty()) {
return fail("手机号已经存在",
phoneExists.stream().map(User::getPhone).collect(Collectors.toList()));
}
// 添加
List<User> users = new ArrayList<>();
for (UserImportParam one : list) {
// 一个城市只有一个区代
if (one.getPhone() != null && !one.getPhone().isEmpty() && userLevel.equals(1)) {
if (one.getSecondAreaName() != null) {
Area city = areaService.getCityByName(one.getSecondAreaName());
if (city != null) {
User cityAgent = userService.getCityAgent(city.getId());
if (cityAgent != null) continue;
}
}
}
User u = new User();
String pwd = one.getPassword() == null ? "147258" : one.getPassword();
u.setPassword(userService.encodePassword(pwd));
u.setRealName(one.getRealName());
u.setUsername(one.getUsername());
u.setPhone(one.getPhone());
u.setImei(one.getImei());
u.setPhone(one.getPhone());
// u.setSkuCode(one.getSkuCode());
// u.setSkuName(one.getSkuName());
u.setVkAccount(one.getVkAccount());
// u.setPhoneColor(one.getPhoneColor());
// u.setSellerName(one.getSellerName());
// u.setSellerCode(one.getSellerCode());
u.setStoreName(one.getStoreName());
// u.setActiveState(one.getActiveState());
// u.setActiveDate(one.getActiveDate());
u.setSecondAreaName(one.getSecondAreaName());
u.setRetailerName(one.getRetailerName());
u.setUserLevel(userLevel);
u.setTenantId(10049);
Area city = null;
if (one.getSecondAreaName() != null) {
city = areaService.getCityByName(one.getSecondAreaName());
if (city != null) {
u.setCityId(city.getId());
u.setSecondAreaName(city.getName());
} else {
u.setSecondAreaName(one.getSecondAreaName());
}
}
if (one.getStoreName() != null) {
VivoStore store = vivoStoreService.getByName(one.getStoreName());
if (store != null) u.setStoreId(store.getId());
else {
VivoStore newStore = new VivoStore() {{
setName(one.getStoreName());
}};
vivoStoreService.save(newStore);
u.setStoreId(newStore.getId());
}
}
if (one.getFixStoreName() != null) {
u.setFixStoreName(one.getFixStoreName());
VivoFixStore fixStore = vivoFixStoreService.getByName(one.getFixStoreName());
if (fixStore != null) u.setFixStoreId(fixStore.getId());
else {
VivoFixStore newFixStore = new VivoFixStore() {{
setName(one.getFixStoreName());
}};
vivoFixStoreService.save(newFixStore);
u.setFixStoreId(newFixStore.getId());
}
}
if (one.getRetailerName() != null) {
Organization retailer = organizationService.getByName(one.getRetailerName());
if (retailer != null) u.setOrganizationId(retailer.getOrganizationId());
else {
Organization newRetailer = new Organization() {{
setOrganizationName(one.getRetailerName());
setSortNumber(1);
setTenantId(10049);
}};
organizationService.save(newRetailer);
u.setOrganizationId(newRetailer.getOrganizationId());
}
}
users.add(u);
}
if (userService.saveBatch(users)) {
if (userLevel.equals(8)) {
// 售后店长
users.forEach(user -> {
if (user.getFixStoreId() != null) {
VivoFixStore fixStore = vivoFixStoreService.getById(user.getFixStoreId());
if (fixStore.getUserId() == null) {
fixStore.setUserId(user.getUserId());
vivoFixStoreService.updateById(fixStore);
}
}
});
}
return success("导入成功", null);
}
} catch (Exception e) {
for (StackTraceElement element : e.getStackTrace()) {
System.out.println(element);
}
return fail(e.getMessage(), null);
}
return fail("导入失败", null);
}
@PreAuthorize("hasAuthority('sys:auth:user')") @PreAuthorize("hasAuthority('sys:auth:user')")
@PostMapping("/getAvatarByMpWx") @PostMapping("/getAvatarByMpWx")

View File

@@ -3,8 +3,6 @@ package com.gxwebsoft.common.system.entity;
import cn.hutool.core.util.DesensitizedUtil; import cn.hutool.core.util.DesensitizedUtil;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.gxwebsoft.vivo.entity.VivoFixStore;
import com.gxwebsoft.vivo.entity.VivoStore;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@@ -33,6 +31,9 @@ public class User implements UserDetails {
@ApiModelProperty("用户类型, 0普通用户 6开发者 10企业用户") @ApiModelProperty("用户类型, 0普通用户 6开发者 10企业用户")
private Integer type; private Integer type;
@ApiModelProperty("openId")
private String openId;
@ApiModelProperty("用户编码") @ApiModelProperty("用户编码")
private String userCode; private String userCode;
@@ -156,66 +157,21 @@ public class User implements UserDetails {
@ApiModelProperty("是否已实名认证") @ApiModelProperty("是否已实名认证")
private Integer certification; private Integer certification;
@ApiModelProperty("行业")
private String industry;
@ApiModelProperty("微信号")
private String wechatNumber;
@ApiModelProperty("常驻地址")
private String liveAddress;
@ApiModelProperty("单位地址")
private String companyAddress;
@ApiModelProperty("用户等级(0管理员1区代2总售后3零售商店长4导购5售后6散户7编外8售后店长)") @ApiModelProperty("用户等级(0管理员1区代2总售后3零售商店长4导购5售后6散户7编外8售后店长)")
private Integer userLevel; private Integer userLevel;
private String imei;
private String skuCode;
private String skuName;
private String vkAccount;
private String phoneModel;
private String phoneColor;
@ApiModelProperty("上报人姓名")
private String sellerName;
@ApiModelProperty("上报人工号")
private String sellerCode;
@ApiModelProperty("门店")
private String storeName;
@ApiModelProperty("门店")
private Integer storeId;
@ApiModelProperty("门店")
@TableField(exist = false)
private VivoStore store;
@ApiModelProperty("门店")
private String fixStoreName;
@ApiModelProperty("门店")
private Integer fixStoreId;
@ApiModelProperty("门店")
@TableField(exist = false)
private VivoFixStore fixStore;
@ApiModelProperty("后台状态:已激活/未激活")
private String activeState;
@ApiModelProperty("后台激活日期")
private String activeDate;
@ApiModelProperty("二级区域名称")
private String secondAreaName;
@ApiModelProperty("二级区域Id")
private Integer cityId;
@ApiModelProperty("")
@TableField(exist = false)
private Area cityItem;
@ApiModelProperty("零售商名称")
private String retailerName;
@ApiModelProperty("机构名称") @ApiModelProperty("机构名称")
@TableField(exist = false) @TableField(exist = false)
private String organizationName; private String organizationName;
@@ -264,16 +220,6 @@ public class User implements UserDetails {
@TableField(exist = false) @TableField(exist = false)
private String mobile; private String mobile;
@ApiModelProperty("企业信息")
@TableField(exist = false)
private Company companyInfo;
@TableField(exist = false)
private Integer auditStatus;
@TableField(exist = false)
private User cityAgent;
@Override @Override
public boolean isAccountNonExpired() { public boolean isAccountNonExpired() {
@@ -295,14 +241,6 @@ public class User implements UserDetails {
return true; return true;
} }
//
// public String getRealName(){
// return DesensitizedUtil.chineseName(this.realName);
// }
//
// public String getIdCard(){
// return DesensitizedUtil.idCardNum(this.idCard,1,2);
// }
public String getMobile() { public String getMobile() {
return DesensitizedUtil.mobilePhone(this.phone); return DesensitizedUtil.mobilePhone(this.phone);
} }

View File

@@ -45,6 +45,9 @@
<if test="param.username != null"> <if test="param.username != null">
AND a.username LIKE CONCAT('%', #{param.username}, '%') AND a.username LIKE CONCAT('%', #{param.username}, '%')
</if> </if>
<if test="param.openId != null">
AND a.open_id = #{param.openId}
</if>
<if test="param.nickname != null"> <if test="param.nickname != null">
AND a.nickname LIKE CONCAT('%', #{param.nickname}, '%') AND a.nickname LIKE CONCAT('%', #{param.nickname}, '%')
</if> </if>
@@ -182,6 +185,7 @@
<if test="param.retailerName != null"> <if test="param.retailerName != null">
AND a.retailer_name LIKE CONCAT('%', #{param.retailerName}, '%') AND a.retailer_name LIKE CONCAT('%', #{param.retailerName}, '%')
</if> </if>
ORDER BY a.create_time DESC
</sql> </sql>
<!-- 分页查询 --> <!-- 分页查询 -->

View File

@@ -52,6 +52,9 @@ public class UserImportParam implements Serializable {
@Excel(name = "门店") @Excel(name = "门店")
private String storeName; private String storeName;
@Excel(name = "门店编码")
private String storeCode;
@Excel(name = "维修门店") @Excel(name = "维修门店")
private String fixStoreName; private String fixStoreName;
@@ -67,4 +70,7 @@ public class UserImportParam implements Serializable {
@Excel(name = "零售商名称") @Excel(name = "零售商名称")
private String retailerName; private String retailerName;
@Excel(name = "零售商编码")
private String retailerCode;
} }

View File

@@ -38,6 +38,9 @@ public class UserParam extends BaseParam {
@ApiModelProperty("账号") @ApiModelProperty("账号")
private String username; private String username;
@ApiModelProperty("openId")
private String openId;
@ApiModelProperty("昵称") @ApiModelProperty("昵称")
private String nickname; private String nickname;

View File

@@ -43,4 +43,7 @@ public interface AreaService extends IService<Area> {
Area getCityByName(String name); Area getCityByName(String name);
Area getProvinceByName(String name);
Area getRegionByName(String name);
} }

View File

@@ -41,4 +41,5 @@ public interface OrganizationService extends IService<Organization> {
Organization getByName(String name); Organization getByName(String name);
Organization getByCode(String code);
} }

View File

@@ -98,19 +98,12 @@ public interface UserService extends IService<User>, UserDetailsService {
*/ */
User getByPhone(String phone); User getByPhone(String phone);
User getByOpenId(String openId);
User getByUnionId(UserParam userParam); User getByUnionId(UserParam userParam);
User getByOauthId(UserParam userParam); User getByOauthId(UserParam userParam);
List<User> listStatisticsRel(UserParam param); List<User> listStatisticsRel(UserParam param);
/***
* 区代
* @param cityId
* @return
*/
User getCityAgent(Integer cityId);
User getCityLevel2(Integer cityId);
} }

View File

@@ -60,4 +60,22 @@ public class AreaServiceImpl extends ServiceImpl<AreaMapper, Area> implements Ar
); );
} }
@Override
public Area getProvinceByName(String name) {
return getOne(
new LambdaQueryWrapper<Area>()
.eq(Area::getLevelId, 1)
.like(Area::getName, name)
);
}
@Override
public Area getRegionByName(String name) {
return getOne(
new LambdaQueryWrapper<Area>()
.eq(Area::getLevelId, 3)
.like(Area::getName, name)
);
}
} }

View File

@@ -51,4 +51,12 @@ public class OrganizationServiceImpl extends ServiceImpl<OrganizationMapper, Org
); );
} }
@Override
public Organization getByCode(String code) {
return getOne(
new LambdaQueryWrapper<Organization>()
.eq(Organization::getOrganizationCode, code)
);
}
} }

View File

@@ -2,7 +2,6 @@ package com.gxwebsoft.common.system.service.impl;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.common.core.exception.BusinessException; import com.gxwebsoft.common.core.exception.BusinessException;
@@ -18,8 +17,6 @@ import com.gxwebsoft.common.system.service.CompanyService;
import com.gxwebsoft.common.system.service.RoleMenuService; import com.gxwebsoft.common.system.service.RoleMenuService;
import com.gxwebsoft.common.system.service.UserRoleService; import com.gxwebsoft.common.system.service.UserRoleService;
import com.gxwebsoft.common.system.service.UserService; import com.gxwebsoft.common.system.service.UserService;
import com.gxwebsoft.shop.entity.Merchant;
import com.gxwebsoft.shop.entity.MerchantClerk;
import com.gxwebsoft.shop.service.MerchantClerkService; import com.gxwebsoft.shop.service.MerchantClerkService;
import com.gxwebsoft.shop.service.MerchantService; import com.gxwebsoft.shop.service.MerchantService;
import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.data.redis.core.StringRedisTemplate;
@@ -37,7 +34,6 @@ import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import static com.gxwebsoft.common.core.constants.RedisConstants.TEN_ANT_SETTING_KEY; import static com.gxwebsoft.common.core.constants.RedisConstants.TEN_ANT_SETTING_KEY;
import static com.gxwebsoft.common.core.constants.RedisConstants.USER_RANKING_BY_APPS;
/** /**
* 用户Service实现 * 用户Service实现
@@ -216,6 +212,11 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
return query().eq("phone", phone).one(); return query().eq("phone", phone).one();
} }
@Override
public User getByOpenId(String openId) {
return query().eq("openId", openId).one();
}
@Override @Override
public User getByUnionId(UserParam param) { public User getByUnionId(UserParam param) {
return param.getOne(baseMapper.getOne(param)); return param.getOne(baseMapper.getOne(param));
@@ -232,24 +233,6 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
return list; return list;
} }
@Override
public User getCityAgent(Integer cityId) {
return getOne(
new LambdaQueryWrapper<User>()
.eq(User::getCityId, cityId)
.eq(User::getUserLevel, 1)
);
}
@Override
public User getCityLevel2(Integer cityId) {
return getOne(
new LambdaQueryWrapper<User>()
.eq(User::getCityId, cityId)
.eq(User::getUserLevel, 2)
);
}
/** /**
* 批量查询用户的角色 * 批量查询用户的角色
* *

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

@@ -1,9 +1,9 @@
package com.gxwebsoft.vivo.entity; package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable; import java.io.Serializable;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
@@ -14,41 +14,42 @@ import lombok.EqualsAndHashCode;
/** /**
* *
* *
* @author 科技小王子 * @author LX
* @since 2024-03-15 23:47:43 * @since 2025-05-06 10:27:16
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@ApiModel(value = "VivoPayCode对象", description = "") @ApiModel(value = "LawFeedback对象", description = "")
public class VivoPayCode implements Serializable { @TableName("law_feedback")
public class LawFeedback implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Integer id; private Integer id;
@ApiModelProperty(value = "城市")
private Integer cityId;
@ApiModelProperty(value = "")
@TableField(exist = false)
private Integer provinceId;
@ApiModelProperty(value = "城市")
@TableField(exist = false)
private String cityName;
@ApiModelProperty(value = "备注")
private String remark;
@ApiModelProperty(value = "")
private String code;
private Integer userId; 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是") @ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic @TableLogic
private Integer deleted; private Integer deleted;
@ApiModelProperty(value = "租户id")
private Integer tenantId;
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private LocalDateTime createTime; private LocalDateTime createTime;

View File

@@ -1,11 +1,9 @@
package com.gxwebsoft.vivo.entity; package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.math.BigDecimal;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable; import java.io.Serializable;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
@@ -14,57 +12,64 @@ import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
/** /**
* 维修店 * 法律援助申请
* *
* @author 科技小王子 * @author LX
* @since 2024-03-13 15:31:21 * @since 2025-04-17 17:33:28
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@ApiModel(value = "VivoFixStore对象", description = "维修店") @ApiModel(value = "LawLegalAid对象", description = "法律援助申请")
public class VivoFixStore implements Serializable { @TableName("law_legal_aid")
public class LawLegalAid implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Integer id; private Integer id;
@ApiModelProperty(value = "电话") private Integer userId;
private String phone;
@ApiModelProperty(value = "名称")
private String name; private String name;
@ApiModelProperty(value = "收款码") private Integer gender;
private String payeeCode;
@ApiModelProperty(value = "经度") private String nation;
private String longitude;
@ApiModelProperty(value = "纬度") private String phone;
private String latitude;
@TableField(exist = false) private String birthday;
private BigDecimal distance;
private String province; private String idCard;
private String city; @ApiModelProperty(value = "住所地址")
private String liveAddress;
private String region; @ApiModelProperty(value = "户籍地址")
private String householdAddress;
private String address; 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是") @ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic @TableLogic
private Integer deleted; private Integer deleted;
@ApiModelProperty(value = "区代ID")
private Integer userId;
@ApiModelProperty(value = "租户id") @ApiModelProperty(value = "租户id")
private Integer tenantId; private Integer tenantId;
@ApiModelProperty(value = "注册时间") @ApiModelProperty(value = "创建时间")
private LocalDateTime createTime; private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间") @ApiModelProperty(value = "修改时间")

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

@@ -1,7 +1,7 @@
package com.gxwebsoft.vivo.entity; package com.gxwebsoft.law.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableLogic;
@@ -12,57 +12,48 @@ import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
/** /**
* 门店 * 法律意见书配置
* *
* @author 科技小王子 * @author LX
* @since 2024-03-13 15:31:21 * @since 2025-04-17 18:55:31
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@ApiModel(value = "VivoStore对象", description = "门店") @ApiModel(value = "LawLegalOrgCheckTypeSuggest对象", description = "法律意见书配置")
public class VivoStore implements Serializable { @TableName("law_legal_org_check_type_suggest")
public class LawLegalOrgCheckTypeSuggest implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Integer id; private Integer id;
@ApiModelProperty(value = "名称") private String icon;
private String name;
@ApiModelProperty(value = "经度") private String title;
private String longitude;
@ApiModelProperty(value = "纬度") private String fileList;
private String latitude;
private String province; private String tips;
private String city; private String methods;
private String region; private String urls;
private String address; private Integer articleCateId;
@ApiModelProperty(value = "店长") @ApiModelProperty(value = "类型")
private Integer manager; private Integer sortNumber;
@ApiModelProperty(value = "零售商") private Integer userId;
private Integer orgId;
@TableField(exist = false)
private String orgName;
@ApiModelProperty(value = "是否删除, 0否, 1是") @ApiModelProperty(value = "是否删除, 0否, 1是")
@TableLogic @TableLogic
private Integer deleted; private Integer deleted;
@ApiModelProperty(value = "区代ID")
private Integer userId;
@ApiModelProperty(value = "租户id") @ApiModelProperty(value = "租户id")
private Integer tenantId; private Integer tenantId;
@ApiModelProperty(value = "注册时间") @ApiModelProperty(value = "创建时间")
private LocalDateTime createTime; private LocalDateTime createTime;
@ApiModelProperty(value = "修改时间") @ApiModelProperty(value = "修改时间")

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

@@ -1,64 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.vivo.mapper.VivoFixStoreMapper"> <mapper namespace="com.gxwebsoft.law.mapper.LawFeedbackMapper">
<!-- 关联查询sql --> <!-- 关联查询sql -->
<sql id="selectSql"> <sql id="selectSql">
SELECT a.* SELECT a.*
FROM vivo_fix_store a FROM law_feedback a
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}
</if> </if>
<if test="param.name != null"> <if test="param.userId != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%') AND a.user_id = #{param.userId}
</if> </if>
<if test="param.payeeCode != null"> <if test="param.title != null">
AND a.payee_code LIKE CONCAT('%', #{param.payeeCode}, '%') AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if> </if>
<if test="param.longitude != null"> <if test="param.company != null">
AND a.longitude LIKE CONCAT('%', #{param.longitude}, '%') AND a.company LIKE CONCAT('%', #{param.company}, '%')
</if>
<if test="param.latitude != null">
AND a.latitude LIKE CONCAT('%', #{param.latitude}, '%')
</if>
<if test="param.province != null">
AND a.province LIKE CONCAT('%', #{param.province}, '%')
</if>
<if test="param.city != null">
AND a.city LIKE CONCAT('%', #{param.city}, '%')
</if>
<if test="param.region != null">
AND a.region LIKE CONCAT('%', #{param.region}, '%')
</if> </if>
<if test="param.address != null"> <if test="param.address != null">
AND a.address LIKE CONCAT('%', #{param.address}, '%') AND a.address LIKE CONCAT('%', #{param.address}, '%')
</if> </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"> <if test="param.deleted != null">
AND a.deleted = #{param.deleted} AND a.deleted = #{param.deleted}
</if> </if>
<if test="param.deleted == null"> <if test="param.deleted == null">
AND a.deleted = 0 AND a.deleted = 0
</if> </if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.createTimeStart != null"> <if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart} AND a.create_time &gt;= #{param.createTimeStart}
</if> </if>
<if test="param.createTimeEnd != null"> <if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd} AND a.create_time &lt;= #{param.createTimeEnd}
</if> </if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where> </where>
</sql> </sql>
<!-- 分页查询 --> <!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.vivo.entity.VivoFixStore"> <select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawFeedback">
<include refid="selectSql"></include> <include refid="selectSql"></include>
</select> </select>
<!-- 查询全部 --> <!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.vivo.entity.VivoFixStore"> <select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawFeedback">
<include refid="selectSql"></include> <include refid="selectSql"></include>
</select> </select>

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

@@ -1,24 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.vivo.mapper.VivoPayCodeMapper"> <mapper namespace="com.gxwebsoft.law.mapper.LawLegalCalContentMapper">
<!-- 关联查询sql --> <!-- 关联查询sql -->
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.name AS city_name SELECT a.*
FROM vivo_pay_code a FROM law_legal_cal_content a
LEFT JOIN sys_area b ON a.city_id = b.id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}
</if> </if>
<if test="param.cityId != null"> <if test="param.groupId != null">
AND a.city_id = #{param.cityId} AND a.group_id = #{param.groupId}
</if> </if>
<if test="param.remark != null"> <if test="param.content != null">
AND a.remark LIKE CONCAT('%', #{param.remark}, '%') AND a.content LIKE CONCAT('%', #{param.content}, '%')
</if>
<if test="param.code != null">
AND a.code LIKE CONCAT('%', #{param.code}, '%')
</if> </if>
<if test="param.userId != null"> <if test="param.userId != null">
AND a.user_id = #{param.userId} AND a.user_id = #{param.userId}
@@ -35,16 +31,20 @@
<if test="param.createTimeEnd != null"> <if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd} AND a.create_time &lt;= #{param.createTimeEnd}
</if> </if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where> </where>
</sql> </sql>
<!-- 分页查询 --> <!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.vivo.entity.VivoPayCode"> <select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalCalContent">
<include refid="selectSql"></include> <include refid="selectSql"></include>
</select> </select>
<!-- 查询全部 --> <!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.vivo.entity.VivoPayCode"> <select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalCalContent">
<include refid="selectSql"></include> <include refid="selectSql"></include>
</select> </select>

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

@@ -1,46 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.vivo.mapper.VivoPhoneModelMapper"> <mapper namespace="com.gxwebsoft.law.mapper.LawLegalDocContentMapper">
<!-- 关联查询sql --> <!-- 关联查询sql -->
<sql id="selectSql"> <sql id="selectSql">
SELECT a.* SELECT a.*
FROM vivo_phone_model a FROM law_legal_doc_content a
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}
</if> </if>
<if test="param.cate != null"> <if test="param.groupId != null">
AND a.cate = #{param.cate} AND a.group_id = #{param.groupId}
</if> </if>
<if test="param.name != null"> <if test="param.content != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%') AND a.content LIKE CONCAT('%', #{param.content}, '%')
</if>
<if test="param.brand != null">
AND a.brand LIKE CONCAT('%', #{param.brand}, '%')
</if>
<if test="param.code != null">
AND a.code LIKE CONCAT('%', #{param.code}, '%')
</if> </if>
<if test="param.userId != null"> <if test="param.userId != null">
AND a.user_id = #{param.userId} AND a.user_id = #{param.userId}
</if> </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"> <if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart} AND a.create_time &gt;= #{param.createTimeStart}
</if> </if>
<if test="param.createTimeEnd != null"> <if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd} AND a.create_time &lt;= #{param.createTimeEnd}
</if> </if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where> </where>
</sql> </sql>
<!-- 分页查询 --> <!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.vivo.entity.VivoPhoneModel"> <select id="selectPageRel" resultType="com.gxwebsoft.law.entity.LawLegalDocContent">
<include refid="selectSql"></include> <include refid="selectSql"></include>
</select> </select>
<!-- 查询全部 --> <!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.vivo.entity.VivoPhoneModel"> <select id="selectListRel" resultType="com.gxwebsoft.law.entity.LawLegalDocContent">
<include refid="selectSql"></include> <include refid="selectSql"></include>
</select> </select>

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>

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