修复已知问题
This commit is contained in:
@@ -87,6 +87,7 @@ public class BaseController {
|
||||
System.out.println("从域名拿ID = " + tenantId);
|
||||
return Integer.valueOf(tenantId);
|
||||
}
|
||||
System.out.println("DeveloperCenter = " + Domain);
|
||||
}
|
||||
// 3 从请求头拿ID
|
||||
String tenantId = request.getHeader("tenantId");
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.gxwebsoft.common.system.controller;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.DesensitizedUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
@@ -14,6 +15,8 @@ import com.gxwebsoft.common.system.mapper.CompanyMapper;
|
||||
import com.gxwebsoft.common.system.mapper.TenantMapper;
|
||||
import com.gxwebsoft.common.system.param.CompanyParam;
|
||||
import com.gxwebsoft.common.system.service.*;
|
||||
import com.gxwebsoft.shop.entity.ShopMerchantApply;
|
||||
import com.gxwebsoft.shop.service.ShopMerchantApplyService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
@@ -40,6 +43,8 @@ public class CompanyController extends BaseController {
|
||||
@Resource
|
||||
private CompanyService companyService;
|
||||
@Resource
|
||||
private ShopMerchantApplyService shopMerchantApplyService;
|
||||
@Resource
|
||||
private CompanyContentService companyContentService;
|
||||
@Resource
|
||||
private CompanyUrlService companyUrlService;
|
||||
@@ -245,12 +250,24 @@ public class CompanyController extends BaseController {
|
||||
@ApiOperation("根据id查询企业信息")
|
||||
@GetMapping("/profile")
|
||||
public ApiResult<Company> profile() {
|
||||
final CompanyParam param = new CompanyParam();
|
||||
param.setTenantId(getTenantId());
|
||||
param.setAuthoritative(true);
|
||||
final List<Company> list = companyService.listRel(param);
|
||||
if(!CollectionUtils.isEmpty(list)){
|
||||
return success(list.get(0));
|
||||
final User loginUser = getLoginUser();
|
||||
if(loginUser != null){
|
||||
final Company company = companyService.getOne(new LambdaQueryWrapper<Company>().eq(Company::getTenantId, loginUser.getTenantId()).eq(Company::getAuthoritative, true).last("limit 1"));
|
||||
if (ObjectUtil.isNotEmpty(company)) {
|
||||
final ShopMerchantApply apply = shopMerchantApplyService.getOne(new LambdaQueryWrapper<ShopMerchantApply>().eq(ShopMerchantApply::getTenantId, loginUser.getTenantId()).last("limit 1"));
|
||||
if (ObjectUtil.isNotEmpty(apply)) {
|
||||
company.setCompanyName(apply.getMerchantName());
|
||||
company.setCompanyType(apply.getShopType());
|
||||
if (apply.getStatus().equals(1)) {
|
||||
company.setAuthentication(1);
|
||||
}
|
||||
}
|
||||
// 即将过期(一周内过期的)
|
||||
company.setSoon(DateUtil.offsetDay(company.getExpirationTime(), -7).compareTo(DateUtil.date()));
|
||||
// 是否过期 -1已过期 大于0 未过期
|
||||
company.setStatus(company.getExpirationTime().compareTo(DateUtil.date()));
|
||||
return success(company);
|
||||
}
|
||||
}
|
||||
return fail("企业不存在",null);
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ public class Company implements Serializable {
|
||||
private String shortName;
|
||||
|
||||
@ApiModelProperty(value = "企业全称")
|
||||
@TableField(exist = false)
|
||||
private String companyName;
|
||||
|
||||
@ApiModelProperty(value = "企业标识")
|
||||
@@ -104,6 +105,9 @@ public class Company implements Serializable {
|
||||
@ApiModelProperty(value = "服务到期时间")
|
||||
private Date expirationTime;
|
||||
|
||||
@ApiModelProperty(value = "即将过期")
|
||||
private Integer soon;
|
||||
|
||||
@ApiModelProperty(value = "应用版本 10体验版 20授权版 30旗舰版")
|
||||
private Integer version;
|
||||
|
||||
|
||||
@@ -103,18 +103,17 @@ public class TenantServiceImpl extends ServiceImpl<TenantMapper, Tenant> impleme
|
||||
dictDataService.save(dictData);
|
||||
|
||||
// 添加超级管理员
|
||||
User admin = new User();
|
||||
admin.setUsername("admin");
|
||||
admin.setNickname("超级管理员");
|
||||
admin.setPhone(company.getPhone());
|
||||
admin.setEmail(company.getEmail());
|
||||
admin.setIsAdmin(true);
|
||||
admin.setRealName(company.getBusinessEntity());
|
||||
admin.setCompanyName(company.getShortName());
|
||||
admin.setPassword(userService.encodePassword(company.getPassword()));
|
||||
admin.setTenantId(company.getTid());
|
||||
boolean result = userService.save(admin);
|
||||
Integer superAdminUserId = admin.getUserId();
|
||||
User superAdmin = new User();
|
||||
superAdmin.setUsername("superAdmin");
|
||||
superAdmin.setNickname("超级管理员");
|
||||
superAdmin.setPhone(company.getPhone());
|
||||
superAdmin.setEmail(company.getEmail());
|
||||
superAdmin.setIsAdmin(true);
|
||||
superAdmin.setRealName(company.getBusinessEntity());
|
||||
superAdmin.setPassword(userService.encodePassword(company.getPassword()));
|
||||
superAdmin.setTenantId(company.getTid());
|
||||
boolean result = userService.save(superAdmin);
|
||||
Integer superAdminUserId = superAdmin.getUserId();
|
||||
|
||||
// 企业资源配置
|
||||
company.setTenantId(company.getTid());
|
||||
@@ -142,7 +141,7 @@ public class TenantServiceImpl extends ServiceImpl<TenantMapper, Tenant> impleme
|
||||
company.setTid(company.getTid());
|
||||
company.setCompanyType("企业");
|
||||
company.setEmail(company.getEmail());
|
||||
company.setUserId(admin.getUserId());
|
||||
company.setUserId(superAdmin.getUserId());
|
||||
company.setExpirationTime(DateUtil.nextMonth());
|
||||
companyService.save(company);
|
||||
|
||||
@@ -157,30 +156,26 @@ public class TenantServiceImpl extends ServiceImpl<TenantMapper, Tenant> impleme
|
||||
|
||||
// 保存超级管理员角色ID
|
||||
Integer superAdminRoleId = role.getRoleId();
|
||||
role.setRoleName("管理员");
|
||||
role.setRoleCode("admin");
|
||||
role.setComments("管理员");
|
||||
roleService.save(role);
|
||||
role.setRoleName("注册用户");
|
||||
role.setRoleCode("user");
|
||||
role.setComments("普通注册用户");
|
||||
roleService.save(role);
|
||||
// role.setRoleName("游客");
|
||||
// role.setRoleCode("guest");
|
||||
// role.setComments("用于未登录时的浏览权限");
|
||||
// roleService.save(role);
|
||||
role.setRoleName("商户管理员");
|
||||
role.setRoleCode("merchant");
|
||||
role.setComments("商户管理员/店长角色");
|
||||
roleService.save(role);
|
||||
role.setRoleName("商户账号");
|
||||
role.setRoleCode("merchantClerk");
|
||||
role.setRoleName("管理人员/店员");
|
||||
Integer guestRoleId = role.getRoleId();
|
||||
// role.setRoleName("商户账号");
|
||||
// role.setRoleCode("merchantClerk");
|
||||
// role.setRoleName("管理人员/店员");
|
||||
// Integer guestRoleId = role.getRoleId();
|
||||
|
||||
// 添加游客账号
|
||||
// User www = new User();
|
||||
// www.setTenantId(company.getTid());
|
||||
// www.setUsername("www");
|
||||
// www.setNickname("游客");
|
||||
// www.setPassword(userService.encodePassword(CommonUtil.randomUUID16()));
|
||||
// userService.save(www);
|
||||
// 添加管理员账号
|
||||
// User admin = new User();
|
||||
// admin.setTenantId(company.getTid());
|
||||
// admin.setUsername("admin");
|
||||
// admin.setNickname("管理员");
|
||||
// admin.setPassword(userService.encodePassword(CommonUtil.randomUUID16()));
|
||||
// userService.save(admin);
|
||||
|
||||
// 添加超管用户角色
|
||||
UserRole userRole = new UserRole();
|
||||
|
||||
@@ -1,7 +1,21 @@
|
||||
package com.gxwebsoft.oa.controller;
|
||||
|
||||
import cn.hutool.core.net.url.UrlBuilder;
|
||||
import cn.hutool.core.net.url.UrlQuery;
|
||||
import cn.hutool.core.util.DesensitizedUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.alibaba.fastjson.TypeReference;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.gxwebsoft.common.core.security.JwtUtil;
|
||||
import com.gxwebsoft.common.core.utils.CommonUtil;
|
||||
import com.gxwebsoft.common.core.utils.RedisUtil;
|
||||
import com.gxwebsoft.common.core.web.BaseController;
|
||||
import com.gxwebsoft.common.system.entity.FileRecord;
|
||||
import com.gxwebsoft.common.system.entity.User;
|
||||
import com.gxwebsoft.oa.entity.OaAppUrl;
|
||||
import com.gxwebsoft.oa.entity.OaAppUser;
|
||||
import com.gxwebsoft.oa.service.OaAppService;
|
||||
import com.gxwebsoft.oa.entity.OaApp;
|
||||
import com.gxwebsoft.oa.param.OaAppParam;
|
||||
@@ -10,13 +24,22 @@ 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.oa.service.OaAppUrlService;
|
||||
import com.gxwebsoft.oa.service.OaAppUserService;
|
||||
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 javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.gxwebsoft.common.core.constants.AppUserConstants.ADMINISTRATOR;
|
||||
|
||||
/**
|
||||
* 应用控制器
|
||||
@@ -30,14 +53,43 @@ import java.util.List;
|
||||
public class OaAppController extends BaseController {
|
||||
@Resource
|
||||
private OaAppService oaAppService;
|
||||
@Resource
|
||||
private OaAppUrlService oaAppUrlService;
|
||||
@Resource
|
||||
private OaAppUserService oaAppUserService;
|
||||
@Resource
|
||||
private RedisUtil redisUtil;
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:app:list')")
|
||||
@ApiOperation("分页查询应用")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<OaApp>> page(OaAppParam param) {
|
||||
// 使用关联查询
|
||||
return success(oaAppService.pageRel(param));
|
||||
public ApiResult<PageResult<OaApp>> page(OaAppParam param, HttpServletRequest request) {
|
||||
final User loginUser = getLoginUser();
|
||||
// 未登录情况
|
||||
if(loginUser == null){
|
||||
String access_token = JwtUtil.getAccessToken(request);
|
||||
param.setToken(access_token);
|
||||
return success("案例列表",caseList(param));
|
||||
}
|
||||
final Integer userId = loginUser.getUserId();
|
||||
loginUser.getRoles().forEach(d -> {
|
||||
if(!StrUtil.equals(d.getRoleCode(),"superAdmin") && !StrUtil.equals(d.getRoleCode(),"admin")){
|
||||
// 非管理员按项目成员权限显示
|
||||
final List<OaAppUser> list = oaAppUserService.list(new LambdaQueryWrapper<OaAppUser>().eq(OaAppUser::getUserId, userId));
|
||||
System.out.println("list = " + list);
|
||||
final Set<Integer> collect = list.stream().map(OaAppUser::getAppId).collect(Collectors.toSet());
|
||||
param.setAppIds(collect);
|
||||
}
|
||||
});
|
||||
// 过滤续费提醒参数
|
||||
if (param.getAppStatus() != null && param.getAppStatus().equals("续费中")) {
|
||||
param.setAppStatus(null);
|
||||
}
|
||||
// 使用关联查询
|
||||
return success(oaAppService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:app:list')")
|
||||
@ApiOperation("查询全部应用")
|
||||
@GetMapping()
|
||||
public ApiResult<List<OaApp>> list(OaAppParam param) {
|
||||
@@ -45,27 +97,55 @@ public class OaAppController extends BaseController {
|
||||
return success(oaAppService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:app:list')")
|
||||
@ApiOperation("根据id查询应用")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<OaApp> get(@PathVariable("id") Integer id) {
|
||||
// 使用关联查询
|
||||
return success(oaAppService.getByIdRel(id));
|
||||
final User loginUser = getLoginUser();
|
||||
// 未登录情况
|
||||
if(loginUser == null){
|
||||
return success("案例详情",getDesensitizedApp(id));
|
||||
}
|
||||
if (!CommonUtil.hasRole(loginUser.getRoles(),"superAdmin") && !CommonUtil.hasRole(loginUser.getRoles(),"admin")) {
|
||||
// 查询权限
|
||||
if (oaAppUserService.count(new LambdaQueryWrapper<OaAppUser>().eq(OaAppUser::getUserId, getLoginUserId()).eq(OaAppUser::getAppId,id)) == 0) {
|
||||
return fail("无查看权限",null);
|
||||
}
|
||||
}
|
||||
// 使用关联查询
|
||||
return success(oaAppService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:app:save')")
|
||||
@ApiOperation("添加应用")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody OaApp oaApp) {
|
||||
// 记录当前登录用户id
|
||||
User loginUser = getLoginUser();
|
||||
public ApiResult<?> save(@RequestBody OaApp app) {
|
||||
// 记录当前登录用户id、租户id、商户编号
|
||||
User loginUser = getLoginUser();
|
||||
OaAppUser appUser = new OaAppUser();
|
||||
if (loginUser != null) {
|
||||
app.setUserId(loginUser.getUserId());
|
||||
app.setTenantId(loginUser.getTenantId());
|
||||
}
|
||||
if (oaAppService.count(new LambdaQueryWrapper<OaApp>()
|
||||
.eq(OaApp::getAppCode, app.getAppCode())) > 0) {
|
||||
return fail("应用标识已存在");
|
||||
}
|
||||
if (oaAppService.save(app)) {
|
||||
// 添加应用管理员
|
||||
if (loginUser != null) {
|
||||
oaApp.setUserId(loginUser.getUserId());
|
||||
appUser.setUserId(loginUser.getUserId());
|
||||
appUser.setNickname(loginUser.getNickname());
|
||||
appUser.setAppId(app.getAppId());
|
||||
appUser.setRole(ADMINISTRATOR);
|
||||
oaAppUserService.save(appUser);
|
||||
}
|
||||
if (oaAppService.save(oaApp)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:app:update')")
|
||||
@ApiOperation("修改应用")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody OaApp oaApp) {
|
||||
@@ -75,6 +155,7 @@ public class OaAppController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:app:remove')")
|
||||
@ApiOperation("删除应用")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
@@ -84,6 +165,7 @@ public class OaAppController extends BaseController {
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:app:save')")
|
||||
@ApiOperation("批量添加应用")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<OaApp> list) {
|
||||
@@ -93,6 +175,7 @@ public class OaAppController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:app:update')")
|
||||
@ApiOperation("批量修改应用")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<OaApp> batchParam) {
|
||||
@@ -102,6 +185,7 @@ public class OaAppController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:app:remove')")
|
||||
@ApiOperation("批量删除应用")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
@@ -111,4 +195,134 @@ public class OaAppController extends BaseController {
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@ApiOperation("统计信息")
|
||||
@GetMapping("/data")
|
||||
public ApiResult<Map<String, Integer>> data() {
|
||||
Map<String, Integer> data = new HashMap<>();
|
||||
Integer totalNum = oaAppService.count(
|
||||
new LambdaQueryWrapper<>()
|
||||
);
|
||||
Integer totalNum2 = oaAppService.count(
|
||||
new LambdaQueryWrapper<OaApp>()
|
||||
.eq(OaApp::getAppStatus, "开发中")
|
||||
);
|
||||
Integer totalNum3 = oaAppService.count(
|
||||
new LambdaQueryWrapper<OaApp>()
|
||||
.eq(OaApp::getAppStatus, "已上架")
|
||||
);
|
||||
Integer totalNum4 = oaAppService.count(
|
||||
new LambdaQueryWrapper<OaApp>()
|
||||
.eq(OaApp::getAppStatus, "已上架")
|
||||
.eq(OaApp::getShowExpiration,false)
|
||||
);
|
||||
Integer totalNum5 = oaAppService.count(
|
||||
new LambdaQueryWrapper<OaApp>()
|
||||
.eq(OaApp::getAppStatus, "已下架")
|
||||
);
|
||||
Integer totalNum6 = oaAppService.count(
|
||||
new LambdaQueryWrapper<OaApp>()
|
||||
.eq(OaApp::getShowCase,true)
|
||||
);
|
||||
Integer totalNum7 = oaAppService.count(
|
||||
new LambdaQueryWrapper<OaApp>()
|
||||
.eq(OaApp::getShowIndex, true)
|
||||
);
|
||||
|
||||
data.put("totalNum", totalNum);
|
||||
data.put("totalNum2", totalNum2);
|
||||
data.put("totalNum3", totalNum3);
|
||||
data.put("totalNum4", totalNum4);
|
||||
data.put("totalNum5", totalNum5);
|
||||
data.put("totalNum6", totalNum6);
|
||||
data.put("totalNum7", totalNum7);
|
||||
return success(data);
|
||||
}
|
||||
|
||||
|
||||
// 读取案例列表
|
||||
private PageResult<OaApp> caseList(OaAppParam param){
|
||||
param.setShowCase(true);
|
||||
final PageResult<OaApp> appPageResult = oaAppService.pageRel(param);
|
||||
appPageResult.getList().forEach(d -> {
|
||||
d.setContent(null);
|
||||
// 读取账号列表
|
||||
d.setAppUrlList(oaAppUrlService.list(new LambdaQueryWrapper<OaAppUrl>().eq(OaAppUrl::getAppId,d.getAppId())));
|
||||
// 读取项目附件(链式构建GET请求)
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
map.put("appId", d.getAppId());
|
||||
final String build = UrlBuilder.of("https://server.gxwebsoft.com/api/file/page").setQuery(new UrlQuery(map)).build();
|
||||
String response = HttpRequest.get(build)
|
||||
.header("Authorization", param.getToken())
|
||||
.header("Tenantid", d.getTenantId().toString())
|
||||
.body(JSONObject.toJSONString(map))//表单内容
|
||||
.timeout(20000)//超时,毫秒
|
||||
.execute().body();
|
||||
|
||||
final ApiResult<PageResult<FileRecord>> userResult = JSONObject.parseObject(response, new TypeReference<ApiResult<PageResult<FileRecord>>>() {
|
||||
});
|
||||
d.setAppFiles(userResult.getData().getList());
|
||||
});
|
||||
return appPageResult;
|
||||
}
|
||||
|
||||
private OaApp getDesensitizedApp(Integer id) {
|
||||
final OaApp app = oaAppService.getByIdRel(id);
|
||||
app.setPhone(DesensitizedUtil.mobilePhone(app.getPhone()));
|
||||
app.setCompanyName(
|
||||
StrUtil.hide(app.getCompanyName(), 2, app.getCompanyName().length() - 2));
|
||||
app.setRequirement(DesensitizedUtil.chineseName(app.getCompanyName()));
|
||||
return app;
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:app:update')")
|
||||
@ApiOperation("重置秘钥")
|
||||
@PostMapping("/updateAppSecret")
|
||||
public ApiResult<?> updateAppSecret(@RequestBody OaApp app) {
|
||||
String key = "code:" + app.getPhone();
|
||||
final String code = redisUtil.get(key);
|
||||
if (app.getAppId() == null) {
|
||||
return fail("appId不合法");
|
||||
}
|
||||
if(app.getAppSecret() == null){
|
||||
return fail("appSecret不合法");
|
||||
}
|
||||
if(app.getAppCode() == null){
|
||||
return fail("短信验证码不正确");
|
||||
}
|
||||
// && !app.getAppCode().equals("170083")
|
||||
if(!app.getAppCode().equals(code)){
|
||||
return fail("短信验证码不正确");
|
||||
}
|
||||
oaAppService.updateById(app);
|
||||
// 保存到redis
|
||||
redisUtil.set("AppSecret:" + app.getAppId(),app.getAppSecret());
|
||||
redisUtil.delete(key);
|
||||
return success("重置成功",app.getAppSecret());
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:app:list')")
|
||||
@ApiOperation("APP应用授权身份效验")
|
||||
@GetMapping("/authentication/{appid}")
|
||||
public ApiResult<?> authentication(@PathVariable("appid") String appid) {
|
||||
final OaApp appInfo = oaAppService.getById(appid);
|
||||
if(appInfo == null){
|
||||
return fail("应用不存在:".concat(appid));
|
||||
}
|
||||
return success("应用信息",appInfo);
|
||||
}
|
||||
|
||||
@ApiOperation("查询我的项目信息")
|
||||
@GetMapping("/getMyApp")
|
||||
public ApiResult<OaApp> getMyApp() {
|
||||
final User loginUser = getLoginUser();
|
||||
// 未登录情况
|
||||
if(loginUser == null){
|
||||
return fail("请先登录",null);
|
||||
}
|
||||
oaAppService.list();
|
||||
|
||||
// 使用关联查询
|
||||
return success("查询成功",null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
* 代码仓库控制器
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:01
|
||||
*/
|
||||
@Api(tags = "代码仓库管理")
|
||||
@RestController
|
||||
@@ -31,6 +31,7 @@ public class OaAssetsCodeController extends BaseController {
|
||||
@Resource
|
||||
private OaAssetsCodeService oaAssetsCodeService;
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsCode:list')")
|
||||
@ApiOperation("分页查询代码仓库")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<OaAssetsCode>> page(OaAssetsCodeParam param) {
|
||||
@@ -38,26 +39,24 @@ public class OaAssetsCodeController extends BaseController {
|
||||
return success(oaAssetsCodeService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsCode:list')")
|
||||
@ApiOperation("查询全部代码仓库")
|
||||
@GetMapping()
|
||||
public ApiResult<List<OaAssetsCode>> list(OaAssetsCodeParam param) {
|
||||
PageParam<OaAssetsCode, OaAssetsCodeParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return success(oaAssetsCodeService.list(page.getOrderWrapper()));
|
||||
// 使用关联查询
|
||||
//return success(oaAssetsCodeService.listRel(param));
|
||||
return success(oaAssetsCodeService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsCode:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("根据id查询代码仓库")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<OaAssetsCode> get(@PathVariable("id") Integer id) {
|
||||
return success(oaAssetsCodeService.getById(id));
|
||||
// 使用关联查询
|
||||
//return success(oaAssetsCodeService.getByIdRel(id));
|
||||
return success(oaAssetsCodeService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsCode:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加代码仓库")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody OaAssetsCode oaAssetsCode) {
|
||||
@@ -72,6 +71,7 @@ public class OaAssetsCodeController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsCode:update')")
|
||||
@ApiOperation("修改代码仓库")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody OaAssetsCode oaAssetsCode) {
|
||||
@@ -81,6 +81,7 @@ public class OaAssetsCodeController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsCode:remove')")
|
||||
@ApiOperation("删除代码仓库")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
@@ -90,6 +91,7 @@ public class OaAssetsCodeController extends BaseController {
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsCode:save')")
|
||||
@ApiOperation("批量添加代码仓库")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<OaAssetsCode> list) {
|
||||
@@ -99,6 +101,7 @@ public class OaAssetsCodeController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsCode:update')")
|
||||
@ApiOperation("批量修改代码仓库")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<OaAssetsCode> batchParam) {
|
||||
@@ -108,6 +111,7 @@ public class OaAssetsCodeController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsCode:remove')")
|
||||
@ApiOperation("批量删除代码仓库")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
|
||||
@@ -19,51 +19,49 @@ import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 服务器资产记录表控制器
|
||||
* 云服务器控制器
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:34:15
|
||||
*/
|
||||
@Api(tags = "服务器资产记录表管理")
|
||||
@Api(tags = "云服务器管理")
|
||||
@RestController
|
||||
@RequestMapping("/api/oa/oa-assets")
|
||||
public class OaAssetsController extends BaseController {
|
||||
@Resource
|
||||
private OaAssetsService oaAssetsService;
|
||||
|
||||
@ApiOperation("分页查询服务器资产记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssets:list')")
|
||||
@ApiOperation("分页查询云服务器")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<OaAssets>> page(OaAssetsParam param) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsService.pageRel(param));
|
||||
}
|
||||
|
||||
@ApiOperation("查询全部服务器资产记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssets:list')")
|
||||
@ApiOperation("查询全部云服务器")
|
||||
@GetMapping()
|
||||
public ApiResult<List<OaAssets>> list(OaAssetsParam param) {
|
||||
PageParam<OaAssets, OaAssetsParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return success(oaAssetsService.list(page.getOrderWrapper()));
|
||||
// 使用关联查询
|
||||
//return success(oaAssetsService.listRel(param));
|
||||
return success(oaAssetsService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssets:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("根据id查询服务器资产记录表")
|
||||
@ApiOperation("根据id查询云服务器")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<OaAssets> get(@PathVariable("id") Integer id) {
|
||||
return success(oaAssetsService.getById(id));
|
||||
// 使用关联查询
|
||||
//return success(oaAssetsService.getByIdRel(id));
|
||||
return success(oaAssetsService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@ApiOperation("添加服务器资产记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssets:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加云服务器")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody OaAssets oaAssets) {
|
||||
// 记录当前登录用户id
|
||||
|
||||
User loginUser = getLoginUser();
|
||||
User loginUser = getLoginUser();
|
||||
if (loginUser != null) {
|
||||
oaAssets.setUserId(loginUser.getUserId());
|
||||
}
|
||||
@@ -72,8 +70,8 @@ public class OaAssetsController extends BaseController {
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@ApiOperation("修改服务器资产记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssets:update')")
|
||||
@ApiOperation("修改云服务器")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody OaAssets oaAssets) {
|
||||
if (oaAssetsService.updateById(oaAssets)) {
|
||||
@@ -82,7 +80,8 @@ public class OaAssetsController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@ApiOperation("删除服务器资产记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssets:remvoe')")
|
||||
@ApiOperation("删除云服务器")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
if (oaAssetsService.removeById(id)) {
|
||||
@@ -91,7 +90,8 @@ public class OaAssetsController extends BaseController {
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@ApiOperation("批量添加服务器资产记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssets:save')")
|
||||
@ApiOperation("批量添加云服务器")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<OaAssets> list) {
|
||||
if (oaAssetsService.saveBatch(list)) {
|
||||
@@ -100,7 +100,8 @@ public class OaAssetsController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@ApiOperation("批量修改服务器资产记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssets:update')")
|
||||
@ApiOperation("批量修改云服务器")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<OaAssets> batchParam) {
|
||||
if (batchParam.update(oaAssetsService, "assets_id")) {
|
||||
@@ -109,7 +110,8 @@ public class OaAssetsController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@ApiOperation("批量删除服务器资产记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssets:remove')")
|
||||
@ApiOperation("批量删除云服务器")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
if (oaAssetsService.removeByIds(ids)) {
|
||||
|
||||
@@ -19,46 +19,45 @@ import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 域名管理记录表控制器
|
||||
* 域名控制器
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Api(tags = "域名管理记录表管理")
|
||||
@Api(tags = "域名管理")
|
||||
@RestController
|
||||
@RequestMapping("/api/oa/oa-assets-domain")
|
||||
public class OaAssetsDomainController extends BaseController {
|
||||
@Resource
|
||||
private OaAssetsDomainService oaAssetsDomainService;
|
||||
|
||||
@ApiOperation("分页查询域名管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsDomain:list')")
|
||||
@ApiOperation("分页查询域名")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<OaAssetsDomain>> page(OaAssetsDomainParam param) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsDomainService.pageRel(param));
|
||||
}
|
||||
|
||||
@ApiOperation("查询全部域名管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsDomain:list')")
|
||||
@ApiOperation("查询全部域名")
|
||||
@GetMapping()
|
||||
public ApiResult<List<OaAssetsDomain>> list(OaAssetsDomainParam param) {
|
||||
PageParam<OaAssetsDomain, OaAssetsDomainParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return success(oaAssetsDomainService.list(page.getOrderWrapper()));
|
||||
// 使用关联查询
|
||||
//return success(oaAssetsDomainService.listRel(param));
|
||||
return success(oaAssetsDomainService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsDomain:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("根据id查询域名管理记录表")
|
||||
@ApiOperation("根据id查询域名")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<OaAssetsDomain> get(@PathVariable("id") Integer id) {
|
||||
return success(oaAssetsDomainService.getById(id));
|
||||
// 使用关联查询
|
||||
//return success(oaAssetsDomainService.getByIdRel(id));
|
||||
return success(oaAssetsDomainService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@ApiOperation("添加域名管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsDomain:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加域名")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody OaAssetsDomain oaAssetsDomain) {
|
||||
// 记录当前登录用户id
|
||||
@@ -72,7 +71,8 @@ public class OaAssetsDomainController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@ApiOperation("修改域名管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsDomain:update')")
|
||||
@ApiOperation("修改域名")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody OaAssetsDomain oaAssetsDomain) {
|
||||
if (oaAssetsDomainService.updateById(oaAssetsDomain)) {
|
||||
@@ -81,7 +81,8 @@ public class OaAssetsDomainController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@ApiOperation("删除域名管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsDomain:remove')")
|
||||
@ApiOperation("删除域名")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
if (oaAssetsDomainService.removeById(id)) {
|
||||
@@ -90,7 +91,8 @@ public class OaAssetsDomainController extends BaseController {
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@ApiOperation("批量添加域名管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsDomain:save')")
|
||||
@ApiOperation("批量添加域名")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<OaAssetsDomain> list) {
|
||||
if (oaAssetsDomainService.saveBatch(list)) {
|
||||
@@ -99,7 +101,8 @@ public class OaAssetsDomainController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@ApiOperation("批量修改域名管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsDomain:update')")
|
||||
@ApiOperation("批量修改域名")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<OaAssetsDomain> batchParam) {
|
||||
if (batchParam.update(oaAssetsDomainService, "domain_id")) {
|
||||
@@ -108,7 +111,8 @@ public class OaAssetsDomainController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@ApiOperation("批量删除域名管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsDomain:remove')")
|
||||
@ApiOperation("批量删除域名")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
if (oaAssetsDomainService.removeByIds(ids)) {
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
* 企业邮箱记录表控制器
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Api(tags = "企业邮箱记录表管理")
|
||||
@RestController
|
||||
@@ -31,6 +31,7 @@ public class OaAssetsEmailController extends BaseController {
|
||||
@Resource
|
||||
private OaAssetsEmailService oaAssetsEmailService;
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsEmail:list')")
|
||||
@ApiOperation("分页查询企业邮箱记录表")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<OaAssetsEmail>> page(OaAssetsEmailParam param) {
|
||||
@@ -38,14 +39,12 @@ public class OaAssetsEmailController extends BaseController {
|
||||
return success(oaAssetsEmailService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsEmail:list')")
|
||||
@ApiOperation("查询全部企业邮箱记录表")
|
||||
@GetMapping()
|
||||
public ApiResult<List<OaAssetsEmail>> list(OaAssetsEmailParam param) {
|
||||
PageParam<OaAssetsEmail, OaAssetsEmailParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return success(oaAssetsEmailService.list(page.getOrderWrapper()));
|
||||
// 使用关联查询
|
||||
//return success(oaAssetsEmailService.listRel(param));
|
||||
return success(oaAssetsEmailService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsEmail:list')")
|
||||
@@ -53,11 +52,12 @@ public class OaAssetsEmailController extends BaseController {
|
||||
@ApiOperation("根据id查询企业邮箱记录表")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<OaAssetsEmail> get(@PathVariable("id") Integer id) {
|
||||
return success(oaAssetsEmailService.getById(id));
|
||||
// 使用关联查询
|
||||
//return success(oaAssetsEmailService.getByIdRel(id));
|
||||
return success(oaAssetsEmailService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsEmail:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加企业邮箱记录表")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody OaAssetsEmail oaAssetsEmail) {
|
||||
@@ -72,6 +72,7 @@ public class OaAssetsEmailController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsEmail:update')")
|
||||
@ApiOperation("修改企业邮箱记录表")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody OaAssetsEmail oaAssetsEmail) {
|
||||
@@ -81,6 +82,7 @@ public class OaAssetsEmailController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsEmail:remove')")
|
||||
@ApiOperation("删除企业邮箱记录表")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
@@ -90,6 +92,7 @@ public class OaAssetsEmailController extends BaseController {
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsEmail:save')")
|
||||
@ApiOperation("批量添加企业邮箱记录表")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<OaAssetsEmail> list) {
|
||||
@@ -99,6 +102,7 @@ public class OaAssetsEmailController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsEmail:update')")
|
||||
@ApiOperation("批量修改企业邮箱记录表")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<OaAssetsEmail> batchParam) {
|
||||
@@ -108,6 +112,7 @@ public class OaAssetsEmailController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsEmail:remove')")
|
||||
@ApiOperation("批量删除企业邮箱记录表")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
|
||||
@@ -0,0 +1,122 @@
|
||||
package com.gxwebsoft.oa.controller;
|
||||
|
||||
import com.gxwebsoft.common.core.web.BaseController;
|
||||
import com.gxwebsoft.common.system.entity.User;
|
||||
import com.gxwebsoft.oa.service.OaAssetsMysqlService;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsMysql;
|
||||
import com.gxwebsoft.oa.param.OaAssetsMysqlParam;
|
||||
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 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 科技小王子
|
||||
* @since 2024-10-18 19:00:20
|
||||
*/
|
||||
@Api(tags = "云数据库管理")
|
||||
@RestController
|
||||
@RequestMapping("/api/oa/oa-assets-mysql")
|
||||
public class OaAssetsMysqlController extends BaseController {
|
||||
@Resource
|
||||
private OaAssetsMysqlService oaAssetsMysqlService;
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsMysql:list')")
|
||||
@ApiOperation("分页查询云数据库")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<OaAssetsMysql>> page(OaAssetsMysqlParam param) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsMysqlService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsMysql:list')")
|
||||
@ApiOperation("查询全部云数据库")
|
||||
@GetMapping()
|
||||
public ApiResult<List<OaAssetsMysql>> list(OaAssetsMysqlParam param) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsMysqlService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsMysql:list')")
|
||||
@ApiOperation("根据id查询云数据库")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<OaAssetsMysql> get(@PathVariable("id") Integer id) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsMysqlService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsMysql:save')")
|
||||
@ApiOperation("添加云数据库")
|
||||
@OperationLog
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody OaAssetsMysql oaAssetsMysql) {
|
||||
// 记录当前登录用户id
|
||||
User loginUser = getLoginUser();
|
||||
if (loginUser != null) {
|
||||
oaAssetsMysql.setUserId(loginUser.getUserId());
|
||||
}
|
||||
if (oaAssetsMysqlService.save(oaAssetsMysql)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsMysql:update')")
|
||||
@ApiOperation("修改云数据库")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody OaAssetsMysql oaAssetsMysql) {
|
||||
if (oaAssetsMysqlService.updateById(oaAssetsMysql)) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsMysql:remove')")
|
||||
@ApiOperation("删除云数据库")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
if (oaAssetsMysqlService.removeById(id)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsMysql:save')")
|
||||
@ApiOperation("批量添加云数据库")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<OaAssetsMysql> list) {
|
||||
if (oaAssetsMysqlService.saveBatch(list)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsMysql:update')")
|
||||
@ApiOperation("批量修改云数据库")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<OaAssetsMysql> batchParam) {
|
||||
if (batchParam.update(oaAssetsMysqlService, "mysql_id")) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsMysql:remove')")
|
||||
@ApiOperation("批量删除云数据库")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
if (oaAssetsMysqlService.removeByIds(ids)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -19,46 +19,45 @@ import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 网站管理记录表控制器
|
||||
* 网站信息记录表控制器
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Api(tags = "网站管理记录表管理")
|
||||
@Api(tags = "网站信息记录表管理")
|
||||
@RestController
|
||||
@RequestMapping("/api/oa/oa-assets-site")
|
||||
public class OaAssetsSiteController extends BaseController {
|
||||
@Resource
|
||||
private OaAssetsSiteService oaAssetsSiteService;
|
||||
|
||||
@ApiOperation("分页查询网站管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSite:list')")
|
||||
@ApiOperation("分页查询网站信息记录表")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<OaAssetsSite>> page(OaAssetsSiteParam param) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsSiteService.pageRel(param));
|
||||
}
|
||||
|
||||
@ApiOperation("查询全部网站管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSite:list')")
|
||||
@ApiOperation("查询全部网站信息记录表")
|
||||
@GetMapping()
|
||||
public ApiResult<List<OaAssetsSite>> list(OaAssetsSiteParam param) {
|
||||
PageParam<OaAssetsSite, OaAssetsSiteParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return success(oaAssetsSiteService.list(page.getOrderWrapper()));
|
||||
// 使用关联查询
|
||||
//return success(oaAssetsSiteService.listRel(param));
|
||||
return success(oaAssetsSiteService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSite:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("根据id查询网站管理记录表")
|
||||
@ApiOperation("根据id查询网站信息记录表")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<OaAssetsSite> get(@PathVariable("id") Integer id) {
|
||||
return success(oaAssetsSiteService.getById(id));
|
||||
// 使用关联查询
|
||||
//return success(oaAssetsSiteService.getByIdRel(id));
|
||||
return success(oaAssetsSiteService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@ApiOperation("添加网站管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSite:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加网站信息记录表")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody OaAssetsSite oaAssetsSite) {
|
||||
// 记录当前登录用户id
|
||||
@@ -72,7 +71,8 @@ public class OaAssetsSiteController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@ApiOperation("修改网站管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSite:update')")
|
||||
@ApiOperation("修改网站信息记录表")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody OaAssetsSite oaAssetsSite) {
|
||||
if (oaAssetsSiteService.updateById(oaAssetsSite)) {
|
||||
@@ -81,7 +81,8 @@ public class OaAssetsSiteController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@ApiOperation("删除网站管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSite:remove')")
|
||||
@ApiOperation("删除网站信息记录表")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
if (oaAssetsSiteService.removeById(id)) {
|
||||
@@ -90,7 +91,8 @@ public class OaAssetsSiteController extends BaseController {
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@ApiOperation("批量添加网站管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSite:save')")
|
||||
@ApiOperation("批量添加网站信息记录表")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<OaAssetsSite> list) {
|
||||
if (oaAssetsSiteService.saveBatch(list)) {
|
||||
@@ -99,16 +101,18 @@ public class OaAssetsSiteController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@ApiOperation("批量修改网站管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSite:update')")
|
||||
@ApiOperation("批量修改网站信息记录表")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<OaAssetsSite> batchParam) {
|
||||
if (batchParam.update(oaAssetsSiteService, "site_id")) {
|
||||
if (batchParam.update(oaAssetsSiteService, "website_id")) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@ApiOperation("批量删除网站管理记录表")
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSite:remove')")
|
||||
@ApiOperation("批量删除网站信息记录表")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
if (oaAssetsSiteService.removeByIds(ids)) {
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
package com.gxwebsoft.oa.controller;
|
||||
|
||||
import com.gxwebsoft.common.core.web.BaseController;
|
||||
import com.gxwebsoft.common.system.entity.User;
|
||||
import com.gxwebsoft.oa.service.OaAssetsSoftwareCertService;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsSoftwareCert;
|
||||
import com.gxwebsoft.oa.param.OaAssetsSoftwareCertParam;
|
||||
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 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 科技小王子
|
||||
* @since 2024-10-18 19:46:21
|
||||
*/
|
||||
@Api(tags = "计算机软件著作权登记管理")
|
||||
@RestController
|
||||
@RequestMapping("/api/oa/oa-assets-software-cert")
|
||||
public class OaAssetsSoftwareCertController extends BaseController {
|
||||
@Resource
|
||||
private OaAssetsSoftwareCertService oaAssetsSoftwareCertService;
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:list')")
|
||||
@ApiOperation("分页查询计算机软件著作权登记")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<OaAssetsSoftwareCert>> page(OaAssetsSoftwareCertParam param) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsSoftwareCertService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:list')")
|
||||
@ApiOperation("查询全部计算机软件著作权登记")
|
||||
@GetMapping()
|
||||
public ApiResult<List<OaAssetsSoftwareCert>> list(OaAssetsSoftwareCertParam param) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsSoftwareCertService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:list')")
|
||||
@ApiOperation("根据id查询计算机软件著作权登记")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<OaAssetsSoftwareCert> get(@PathVariable("id") Integer id) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsSoftwareCertService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加计算机软件著作权登记")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody OaAssetsSoftwareCert oaAssetsSoftwareCert) {
|
||||
// 记录当前登录用户id
|
||||
User loginUser = getLoginUser();
|
||||
if (loginUser != null) {
|
||||
oaAssetsSoftwareCert.setUserId(loginUser.getUserId());
|
||||
}
|
||||
if (oaAssetsSoftwareCertService.save(oaAssetsSoftwareCert)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:update')")
|
||||
@ApiOperation("修改计算机软件著作权登记")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody OaAssetsSoftwareCert oaAssetsSoftwareCert) {
|
||||
if (oaAssetsSoftwareCertService.updateById(oaAssetsSoftwareCert)) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:remove')")
|
||||
@ApiOperation("删除计算机软件著作权登记")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
if (oaAssetsSoftwareCertService.removeById(id)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:save')")
|
||||
@ApiOperation("批量添加计算机软件著作权登记")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<OaAssetsSoftwareCert> list) {
|
||||
if (oaAssetsSoftwareCertService.saveBatch(list)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:update')")
|
||||
@ApiOperation("批量修改计算机软件著作权登记")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<OaAssetsSoftwareCert> batchParam) {
|
||||
if (batchParam.update(oaAssetsSoftwareCertService, "id")) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:remove')")
|
||||
@ApiOperation("批量删除计算机软件著作权登记")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
if (oaAssetsSoftwareCertService.removeByIds(ids)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
package com.gxwebsoft.oa.controller;
|
||||
|
||||
import com.gxwebsoft.common.core.web.BaseController;
|
||||
import com.gxwebsoft.common.system.entity.User;
|
||||
import com.gxwebsoft.oa.service.OaAssetsSslService;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsSsl;
|
||||
import com.gxwebsoft.oa.param.OaAssetsSslParam;
|
||||
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 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.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ssl证书控制器
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:25:40
|
||||
*/
|
||||
@Api(tags = "ssl证书管理")
|
||||
@RestController
|
||||
@RequestMapping("/api/oa/oa-assets-ssl")
|
||||
public class OaAssetsSslController extends BaseController {
|
||||
@Resource
|
||||
private OaAssetsSslService oaAssetsSslService;
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSsl:list')")
|
||||
@ApiOperation("分页查询ssl证书")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<OaAssetsSsl>> page(OaAssetsSslParam param) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsSslService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSsl:list')")
|
||||
@ApiOperation("查询全部ssl证书")
|
||||
@GetMapping()
|
||||
public ApiResult<List<OaAssetsSsl>> list(OaAssetsSslParam param) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsSslService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSsl:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("根据id查询ssl证书")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<OaAssetsSsl> get(@PathVariable("id") Integer id) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsSslService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSsl:save')")
|
||||
@ApiOperation("添加ssl证书")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody OaAssetsSsl oaAssetsSsl) {
|
||||
// 记录当前登录用户id
|
||||
User loginUser = getLoginUser();
|
||||
if (loginUser != null) {
|
||||
oaAssetsSsl.setUserId(loginUser.getUserId());
|
||||
oaAssetsSsl.setTenantId(loginUser.getTenantId());
|
||||
}
|
||||
if (oaAssetsSslService.save(oaAssetsSsl)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSsl:update')")
|
||||
@ApiOperation("修改ssl证书")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody OaAssetsSsl oaAssetsSsl) {
|
||||
if (oaAssetsSslService.updateById(oaAssetsSsl)) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSsl:remove')")
|
||||
@ApiOperation("删除ssl证书")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
if (oaAssetsSslService.removeById(id)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSsl:save')")
|
||||
@ApiOperation("批量添加ssl证书")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<OaAssetsSsl> list) {
|
||||
if (oaAssetsSslService.saveBatch(list)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSsl:update')")
|
||||
@ApiOperation("批量修改ssl证书")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<OaAssetsSsl> batchParam) {
|
||||
if (batchParam.update(oaAssetsSslService, "ssl_id")) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsSsl:remove')")
|
||||
@ApiOperation("批量删除ssl证书")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
if (oaAssetsSslService.removeByIds(ids)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
package com.gxwebsoft.oa.controller;
|
||||
|
||||
import com.gxwebsoft.common.core.web.BaseController;
|
||||
import com.gxwebsoft.common.system.entity.User;
|
||||
import com.gxwebsoft.oa.service.OaAssetsTrademarkService;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsTrademark;
|
||||
import com.gxwebsoft.oa.param.OaAssetsTrademarkParam;
|
||||
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 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 科技小王子
|
||||
* @since 2024-10-18 19:46:21
|
||||
*/
|
||||
@Api(tags = "商标注册管理")
|
||||
@RestController
|
||||
@RequestMapping("/api/oa/oa-assets-trademark")
|
||||
public class OaAssetsTrademarkController extends BaseController {
|
||||
@Resource
|
||||
private OaAssetsTrademarkService oaAssetsTrademarkService;
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsTrademark:list')")
|
||||
@ApiOperation("分页查询商标注册")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<OaAssetsTrademark>> page(OaAssetsTrademarkParam param) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsTrademarkService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsTrademark:list')")
|
||||
@ApiOperation("查询全部商标注册")
|
||||
@GetMapping()
|
||||
public ApiResult<List<OaAssetsTrademark>> list(OaAssetsTrademarkParam param) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsTrademarkService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsTrademark:list')")
|
||||
@ApiOperation("根据id查询商标注册")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<OaAssetsTrademark> get(@PathVariable("id") Integer id) {
|
||||
// 使用关联查询
|
||||
return success(oaAssetsTrademarkService.getByIdRel(id));
|
||||
}
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsTrademark:save')")
|
||||
@ApiOperation("添加商标注册")
|
||||
@OperationLog
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody OaAssetsTrademark oaAssetsTrademark) {
|
||||
// 记录当前登录用户id
|
||||
User loginUser = getLoginUser();
|
||||
if (loginUser != null) {
|
||||
oaAssetsTrademark.setUserId(loginUser.getUserId());
|
||||
}
|
||||
if (oaAssetsTrademarkService.save(oaAssetsTrademark)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsTrademark:update')")
|
||||
@ApiOperation("修改商标注册")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody OaAssetsTrademark oaAssetsTrademark) {
|
||||
if (oaAssetsTrademarkService.updateById(oaAssetsTrademark)) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsTrademark:remove')")
|
||||
@ApiOperation("删除商标注册")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
if (oaAssetsTrademarkService.removeById(id)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsTrademark:save')")
|
||||
@ApiOperation("批量添加商标注册")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<OaAssetsTrademark> list) {
|
||||
if (oaAssetsTrademarkService.saveBatch(list)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsTrademark:update')")
|
||||
@ApiOperation("批量修改商标注册")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<OaAssetsTrademark> batchParam) {
|
||||
if (batchParam.update(oaAssetsTrademarkService, "id")) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsTrademark:remove')")
|
||||
@ApiOperation("批量删除商标注册")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
if (oaAssetsTrademarkService.removeByIds(ids)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
* 虚拟主机记录表控制器
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Api(tags = "虚拟主机记录表管理")
|
||||
@RestController
|
||||
@@ -31,6 +31,7 @@ public class OaAssetsVhostController extends BaseController {
|
||||
@Resource
|
||||
private OaAssetsVhostService oaAssetsVhostService;
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsVhost:list')")
|
||||
@ApiOperation("分页查询虚拟主机记录表")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<OaAssetsVhost>> page(OaAssetsVhostParam param) {
|
||||
@@ -38,26 +39,24 @@ public class OaAssetsVhostController extends BaseController {
|
||||
return success(oaAssetsVhostService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsVhost:list')")
|
||||
@ApiOperation("查询全部虚拟主机记录表")
|
||||
@GetMapping()
|
||||
public ApiResult<List<OaAssetsVhost>> list(OaAssetsVhostParam param) {
|
||||
PageParam<OaAssetsVhost, OaAssetsVhostParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return success(oaAssetsVhostService.list(page.getOrderWrapper()));
|
||||
// 使用关联查询
|
||||
//return success(oaAssetsVhostService.listRel(param));
|
||||
return success(oaAssetsVhostService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsVhost:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("根据id查询虚拟主机记录表")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<OaAssetsVhost> get(@PathVariable("id") Integer id) {
|
||||
return success(oaAssetsVhostService.getById(id));
|
||||
// 使用关联查询
|
||||
//return success(oaAssetsVhostService.getByIdRel(id));
|
||||
return success(oaAssetsVhostService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsVhost:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加虚拟主机记录表")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody OaAssetsVhost oaAssetsVhost) {
|
||||
@@ -72,6 +71,7 @@ public class OaAssetsVhostController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsVhost:update')")
|
||||
@ApiOperation("修改虚拟主机记录表")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody OaAssetsVhost oaAssetsVhost) {
|
||||
@@ -81,6 +81,7 @@ public class OaAssetsVhostController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsVhost:remove')")
|
||||
@ApiOperation("删除虚拟主机记录表")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
@@ -90,6 +91,7 @@ public class OaAssetsVhostController extends BaseController {
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsVhost:save')")
|
||||
@ApiOperation("批量添加虚拟主机记录表")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<OaAssetsVhost> list) {
|
||||
@@ -99,6 +101,7 @@ public class OaAssetsVhostController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsVhost:update')")
|
||||
@ApiOperation("批量修改虚拟主机记录表")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<OaAssetsVhost> batchParam) {
|
||||
@@ -108,6 +111,7 @@ public class OaAssetsVhostController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('oa:oaAssetsVhost:remove')")
|
||||
@ApiOperation("批量删除虚拟主机记录表")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
|
||||
@@ -2,12 +2,15 @@ package com.gxwebsoft.oa.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.gxwebsoft.common.system.entity.FileRecord;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -180,7 +183,7 @@ public class OaApp implements Serializable {
|
||||
private String file3;
|
||||
|
||||
@ApiModelProperty(value = "是否显示续费提醒")
|
||||
private Integer showExpiration;
|
||||
private Boolean showExpiration;
|
||||
|
||||
@ApiModelProperty(value = "是否作为案例展示")
|
||||
private Integer showCase;
|
||||
@@ -228,4 +231,36 @@ public class OaApp implements Serializable {
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private Date updateTime;
|
||||
|
||||
@ApiModelProperty(value = "成员管理")
|
||||
@TableField(exist = false)
|
||||
private List<OaAppUser> users;
|
||||
|
||||
@ApiModelProperty(value = "链接列表")
|
||||
@TableField(exist = false)
|
||||
private List<OaAppUrl> appUrlList;
|
||||
|
||||
@ApiModelProperty(value = "项目附件")
|
||||
@TableField(exist = false)
|
||||
private List<FileRecord> appFiles;
|
||||
|
||||
@ApiModelProperty(value = "主体名称")
|
||||
@TableField(exist = false)
|
||||
private String tenantName;
|
||||
|
||||
@ApiModelProperty(value = "开发者名称")
|
||||
@TableField(exist = false)
|
||||
private String realName;
|
||||
|
||||
@ApiModelProperty(value = "开发者名称")
|
||||
@TableField(exist = false)
|
||||
private String nickname;
|
||||
|
||||
@ApiModelProperty(value = "开发者头像")
|
||||
@TableField(exist = false)
|
||||
private String avatar;
|
||||
|
||||
@ApiModelProperty(value = "手机号码")
|
||||
@TableField(exist = false)
|
||||
private String phone;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,24 +2,26 @@ package com.gxwebsoft.oa.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 服务器资产记录表
|
||||
* 云服务器
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:34:15
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "OaAssets对象", description = "服务器资产记录表")
|
||||
@ApiModel(value = "OaAssets对象", description = "云服务器")
|
||||
public class OaAssets implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -120,6 +122,9 @@ public class OaAssets implements Serializable {
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "机构id")
|
||||
private Integer organizationId;
|
||||
|
||||
@@ -133,6 +138,14 @@ public class OaAssets implements Serializable {
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "应用名称")
|
||||
@TableField(exist = false)
|
||||
private String tenantName;
|
||||
|
||||
@ApiModelProperty(value = "应用图标")
|
||||
@TableField(exist = false)
|
||||
private String logo;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
package com.gxwebsoft.oa.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -15,7 +17,7 @@ import lombok.EqualsAndHashCode;
|
||||
* 代码仓库
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:01
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@@ -27,6 +29,9 @@ public class OaAssetsCode implements Serializable {
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "服务器ID")
|
||||
private Integer assetsId;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@@ -39,21 +44,12 @@ public class OaAssetsCode implements Serializable {
|
||||
@ApiModelProperty(value = "仓库品牌")
|
||||
private String brand;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
private BigDecimal price;
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty(value = "到期时间")
|
||||
private Date endTime;
|
||||
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
private Integer sortNumber;
|
||||
|
||||
@@ -63,6 +59,9 @@ public class OaAssetsCode implements Serializable {
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
@@ -73,6 +72,14 @@ public class OaAssetsCode implements Serializable {
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "应用名称")
|
||||
@TableField(exist = false)
|
||||
private String tenantName;
|
||||
|
||||
@ApiModelProperty(value = "应用图标")
|
||||
@TableField(exist = false)
|
||||
private String logo;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
@@ -2,24 +2,27 @@ package com.gxwebsoft.oa.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 域名管理记录表
|
||||
* 域名
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "OaAssetsDomain对象", description = "域名管理记录表")
|
||||
@ApiModel(value = "OaAssetsDomain对象", description = "域名")
|
||||
public class OaAssetsDomain implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -27,6 +30,9 @@ public class OaAssetsDomain implements Serializable {
|
||||
@TableId(value = "domain_id", type = IdType.AUTO)
|
||||
private Integer domainId;
|
||||
|
||||
@ApiModelProperty(value = "服务器ID")
|
||||
private Integer assetsId;
|
||||
|
||||
@ApiModelProperty(value = "域名")
|
||||
private String name;
|
||||
|
||||
@@ -45,12 +51,6 @@ public class OaAssetsDomain implements Serializable {
|
||||
@ApiModelProperty(value = "价格")
|
||||
private BigDecimal price;
|
||||
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "ssl证书")
|
||||
private String ssl;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private Date startTime;
|
||||
|
||||
@@ -69,6 +69,9 @@ public class OaAssetsDomain implements Serializable {
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
@@ -79,6 +82,14 @@ public class OaAssetsDomain implements Serializable {
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "应用名称")
|
||||
@TableField(exist = false)
|
||||
private String tenantName;
|
||||
|
||||
@ApiModelProperty(value = "应用图标")
|
||||
@TableField(exist = false)
|
||||
private String logo;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
@@ -2,10 +2,13 @@ package com.gxwebsoft.oa.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -15,7 +18,7 @@ import lombok.EqualsAndHashCode;
|
||||
* 企业邮箱记录表
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@@ -27,13 +30,13 @@ public class OaAssetsEmail implements Serializable {
|
||||
@TableId(value = "email_id", type = IdType.AUTO)
|
||||
private Integer emailId;
|
||||
|
||||
@ApiModelProperty(value = "域名")
|
||||
@ApiModelProperty(value = "邮箱名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "域名标识")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "主机型号")
|
||||
@ApiModelProperty(value = "邮箱型号")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(value = "品牌厂商")
|
||||
@@ -48,9 +51,6 @@ public class OaAssetsEmail implements Serializable {
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "ssl证书")
|
||||
private String ssl;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private Date startTime;
|
||||
|
||||
@@ -69,6 +69,9 @@ public class OaAssetsEmail implements Serializable {
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
@@ -79,6 +82,14 @@ public class OaAssetsEmail implements Serializable {
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "应用名称")
|
||||
@TableField(exist = false)
|
||||
private String tenantName;
|
||||
|
||||
@ApiModelProperty(value = "应用图标")
|
||||
@TableField(exist = false)
|
||||
private String logo;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
105
src/main/java/com/gxwebsoft/oa/entity/OaAssetsMysql.java
Normal file
105
src/main/java/com/gxwebsoft/oa/entity/OaAssetsMysql.java
Normal file
@@ -0,0 +1,105 @@
|
||||
package com.gxwebsoft.oa.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 云数据库
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:00:20
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "OaAssetsMysql对象", description = "云数据库")
|
||||
public class OaAssetsMysql implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
@TableId(value = "mysql_id", type = IdType.AUTO)
|
||||
private Integer mysqlId;
|
||||
|
||||
@ApiModelProperty(value = "服务器ID")
|
||||
private Integer assetsId;
|
||||
|
||||
@ApiModelProperty(value = "数据库名")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "数据库标识")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "注册厂商")
|
||||
private String brand;
|
||||
|
||||
@ApiModelProperty(value = "ip地址")
|
||||
private String ip;
|
||||
|
||||
@ApiModelProperty(value = "端口")
|
||||
private String port;
|
||||
|
||||
@ApiModelProperty(value = "初始账号")
|
||||
private String account;
|
||||
|
||||
@ApiModelProperty(value = "初始密码")
|
||||
private String password;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
private BigDecimal price;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty(value = "到期时间")
|
||||
private Date endTime;
|
||||
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@TableLogic
|
||||
private Integer deleted;
|
||||
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "应用名称")
|
||||
@TableField(exist = false)
|
||||
private String tenantName;
|
||||
|
||||
@ApiModelProperty(value = "应用图标")
|
||||
@TableField(exist = false)
|
||||
private String logo;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
@@ -1,76 +1,146 @@
|
||||
package com.gxwebsoft.oa.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 网站管理记录表
|
||||
* 网站信息记录表
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "OaAssetsSite对象", description = "网站管理记录表")
|
||||
@ApiModel(value = "OaAssetsSite对象", description = "网站信息记录表")
|
||||
public class OaAssetsSite implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
@TableId(value = "site_id", type = IdType.AUTO)
|
||||
private Integer siteId;
|
||||
@ApiModelProperty(value = "站点ID")
|
||||
@TableId(value = "website_id", type = IdType.AUTO)
|
||||
private Integer websiteId;
|
||||
|
||||
@ApiModelProperty(value = "网站名称")
|
||||
private String name;
|
||||
private String websiteName;
|
||||
|
||||
@ApiModelProperty(value = "域名标识")
|
||||
private String code;
|
||||
@ApiModelProperty(value = "网站标识")
|
||||
private String websiteCode;
|
||||
|
||||
@ApiModelProperty(value = "主机型号")
|
||||
private String type;
|
||||
@ApiModelProperty(value = "网站LOGO")
|
||||
private String websiteIcon;
|
||||
|
||||
@ApiModelProperty(value = "品牌厂商")
|
||||
private String brand;
|
||||
@ApiModelProperty(value = "网站LOGO")
|
||||
private String websiteLogo;
|
||||
|
||||
@ApiModelProperty(value = "初始账号")
|
||||
private String system;
|
||||
@ApiModelProperty(value = "网站LOGO(深色模式)")
|
||||
private String websiteDarkLogo;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
private BigDecimal price;
|
||||
@ApiModelProperty(value = "网站类型")
|
||||
private String websiteType;
|
||||
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
@ApiModelProperty(value = "网站关键词")
|
||||
private String keywords;
|
||||
|
||||
@ApiModelProperty(value = "ssl证书")
|
||||
private String ssl;
|
||||
@ApiModelProperty(value = "域名前缀")
|
||||
private String prefix;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private Date startTime;
|
||||
@ApiModelProperty(value = "绑定域名")
|
||||
private String domain;
|
||||
|
||||
@ApiModelProperty(value = "到期时间")
|
||||
private Date endTime;
|
||||
@ApiModelProperty(value = "全局样式")
|
||||
private String style;
|
||||
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
@ApiModelProperty(value = "后台管理地址")
|
||||
private String adminUrl;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
@ApiModelProperty(value = "应用版本 10免费版 20授权版 30永久授权")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "服务到期时间")
|
||||
private Date expirationTime;
|
||||
|
||||
@ApiModelProperty(value = "模版ID")
|
||||
private Integer templateId;
|
||||
|
||||
@ApiModelProperty(value = "行业类型(父级)")
|
||||
private String industryParent;
|
||||
|
||||
@ApiModelProperty(value = "行业类型(子级)")
|
||||
private String industryChild;
|
||||
|
||||
@ApiModelProperty(value = "企业ID")
|
||||
private Integer companyId;
|
||||
|
||||
@ApiModelProperty(value = "所在国家")
|
||||
private String country;
|
||||
|
||||
@ApiModelProperty(value = "所在省份")
|
||||
private String province;
|
||||
|
||||
@ApiModelProperty(value = "所在城市")
|
||||
private String city;
|
||||
|
||||
@ApiModelProperty(value = "所在辖区")
|
||||
private String region;
|
||||
|
||||
@ApiModelProperty(value = "经度")
|
||||
private String longitude;
|
||||
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private String latitude;
|
||||
|
||||
@ApiModelProperty(value = "街道地址")
|
||||
private String address;
|
||||
|
||||
@ApiModelProperty(value = "联系电话")
|
||||
private String phone;
|
||||
|
||||
@ApiModelProperty(value = "电子邮箱")
|
||||
private String email;
|
||||
|
||||
@ApiModelProperty(value = "ICP备案号")
|
||||
private String icpNo;
|
||||
|
||||
@ApiModelProperty(value = "公安备案")
|
||||
private String policeNo;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "是否推荐")
|
||||
private Integer recommend;
|
||||
|
||||
@ApiModelProperty(value = "状态 0未开通 1运行中 2维护中 3已关闭 4已欠费停机 5违规关停")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "维护说明")
|
||||
private String statusText;
|
||||
|
||||
@ApiModelProperty(value = "关闭说明")
|
||||
private String statusClose;
|
||||
|
||||
@ApiModelProperty(value = "全局样式")
|
||||
private String styles;
|
||||
|
||||
@ApiModelProperty(value = "排序号")
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String comments;
|
||||
@ApiModelProperty(value = "服务器ID")
|
||||
private Integer assetsId;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@TableLogic
|
||||
@@ -79,6 +149,14 @@ public class OaAssetsSite implements Serializable {
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "应用名称")
|
||||
@TableField(exist = false)
|
||||
private String tenantName;
|
||||
|
||||
@ApiModelProperty(value = "应用图标")
|
||||
@TableField(exist = false)
|
||||
private String logo;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.gxwebsoft.oa.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 计算机软件著作权登记
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:46:21
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "OaAssetsSoftwareCert对象", description = "计算机软件著作权登记")
|
||||
public class OaAssetsSoftwareCert implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "软件著作权标识")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "证书类型")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(value = "品牌厂商")
|
||||
private String brand;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
private BigDecimal price;
|
||||
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "证书下载地址")
|
||||
private String certUrl;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty(value = "到期时间")
|
||||
private Date endTime;
|
||||
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@TableLogic
|
||||
private Integer deleted;
|
||||
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "应用名称")
|
||||
@TableField(exist = false)
|
||||
private String tenantName;
|
||||
|
||||
@ApiModelProperty(value = "应用图标")
|
||||
@TableField(exist = false)
|
||||
private String logo;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
111
src/main/java/com/gxwebsoft/oa/entity/OaAssetsSsl.java
Normal file
111
src/main/java/com/gxwebsoft/oa/entity/OaAssetsSsl.java
Normal file
@@ -0,0 +1,111 @@
|
||||
package com.gxwebsoft.oa.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* ssl证书
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:25:40
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "OaAssetsSsl对象", description = "ssl证书")
|
||||
public class OaAssetsSsl implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
@TableId(value = "ssl_id", type = IdType.AUTO)
|
||||
private Integer sslId;
|
||||
|
||||
@ApiModelProperty(value = "证书名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "证书标识")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "证书类型")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(value = "品牌厂商")
|
||||
private String brand;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
private BigDecimal price;
|
||||
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "证书key")
|
||||
private String certKey;
|
||||
|
||||
@ApiModelProperty(value = "证书pem")
|
||||
private String certPem;
|
||||
|
||||
@ApiModelProperty(value = "证书下载地址")
|
||||
private String certUrl;
|
||||
|
||||
@ApiModelProperty(value = "证书crt")
|
||||
private String certCrt;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty(value = "到期时间")
|
||||
private Date endTime;
|
||||
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "即将过期")
|
||||
private Integer soon;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@TableLogic
|
||||
private Integer deleted;
|
||||
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "应用名称")
|
||||
@TableField(exist = false)
|
||||
private String tenantName;
|
||||
|
||||
@ApiModelProperty(value = "应用图标")
|
||||
@TableField(exist = false)
|
||||
private String logo;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
99
src/main/java/com/gxwebsoft/oa/entity/OaAssetsTrademark.java
Normal file
99
src/main/java/com/gxwebsoft/oa/entity/OaAssetsTrademark.java
Normal file
@@ -0,0 +1,99 @@
|
||||
package com.gxwebsoft.oa.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 商标注册
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:46:21
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "OaAssetsTrademark对象", description = "商标注册")
|
||||
public class OaAssetsTrademark implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "商标名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "商标标识")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "商标类型")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(value = "品牌厂商")
|
||||
private String brand;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
private BigDecimal price;
|
||||
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "证书下载")
|
||||
private String certUrl;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty(value = "到期时间")
|
||||
private Date endTime;
|
||||
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@TableLogic
|
||||
private Integer deleted;
|
||||
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "应用名称")
|
||||
@TableField(exist = false)
|
||||
private String tenantName;
|
||||
|
||||
@ApiModelProperty(value = "应用图标")
|
||||
@TableField(exist = false)
|
||||
private String logo;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
@@ -2,10 +2,12 @@ package com.gxwebsoft.oa.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -15,7 +17,7 @@ import lombok.EqualsAndHashCode;
|
||||
* 虚拟主机记录表
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@@ -40,7 +42,10 @@ public class OaAssetsVhost implements Serializable {
|
||||
private String brand;
|
||||
|
||||
@ApiModelProperty(value = "初始账号")
|
||||
private String system;
|
||||
private String account;
|
||||
|
||||
@ApiModelProperty(value = "初始密码")
|
||||
private String password;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
private BigDecimal price;
|
||||
@@ -66,9 +71,15 @@ public class OaAssetsVhost implements Serializable {
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "服务器ID")
|
||||
private Integer assetsId;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
@@ -79,6 +90,14 @@ public class OaAssetsVhost implements Serializable {
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "应用名称")
|
||||
@TableField(exist = false)
|
||||
private String tenantName;
|
||||
|
||||
@ApiModelProperty(value = "应用图标")
|
||||
@TableField(exist = false)
|
||||
private String logo;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
@@ -2,10 +2,12 @@ package com.gxwebsoft.oa.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -68,10 +70,10 @@ public class OaCompany implements Serializable {
|
||||
private String businessEntity;
|
||||
|
||||
@ApiModelProperty(value = "服务开始时间")
|
||||
private LocalDateTime startTime;
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty(value = "服务到期时间")
|
||||
private LocalDateTime expirationTime;
|
||||
private Date expirationTime;
|
||||
|
||||
@ApiModelProperty(value = "应用版本 10体验版 20授权版 30旗舰版")
|
||||
private Integer version;
|
||||
@@ -173,10 +175,18 @@ public class OaCompany implements Serializable {
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "应用名称")
|
||||
@TableField(exist = false)
|
||||
private String tenantName;
|
||||
|
||||
@ApiModelProperty(value = "应用图标")
|
||||
@TableField(exist = false)
|
||||
private String logo;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private LocalDateTime updateTime;
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,8 +2,10 @@ package com.gxwebsoft.oa.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -47,6 +49,6 @@ public class OaCompanyField implements Serializable {
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
private Date createTime;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,8 +2,10 @@ package com.gxwebsoft.oa.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -44,6 +46,6 @@ public class OaCompanyUser implements Serializable {
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
private Date createTime;
|
||||
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.util.List;
|
||||
* 代码仓库Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:01
|
||||
*/
|
||||
public interface OaAssetsCodeMapper extends BaseMapper<OaAssetsCode> {
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@ import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 域名管理记录表Mapper
|
||||
* 域名Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
public interface OaAssetsDomainMapper extends BaseMapper<OaAssetsDomain> {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.util.List;
|
||||
* 企业邮箱记录表Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
public interface OaAssetsEmailMapper extends BaseMapper<OaAssetsEmail> {
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@ import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 服务器资产记录表Mapper
|
||||
* 云服务器Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:34:15
|
||||
*/
|
||||
public interface OaAssetsMapper extends BaseMapper<OaAssets> {
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.oa.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsMysql;
|
||||
import com.gxwebsoft.oa.param.OaAssetsMysqlParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 云数据库Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:00:20
|
||||
*/
|
||||
public interface OaAssetsMysqlMapper extends BaseMapper<OaAssetsMysql> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<OaAssetsMysql>
|
||||
*/
|
||||
List<OaAssetsMysql> selectPageRel(@Param("page") IPage<OaAssetsMysql> page,
|
||||
@Param("param") OaAssetsMysqlParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<OaAssetsMysql> selectListRel(@Param("param") OaAssetsMysqlParam param);
|
||||
|
||||
}
|
||||
@@ -9,10 +9,10 @@ import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 网站管理记录表Mapper
|
||||
* 网站信息记录表Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
public interface OaAssetsSiteMapper extends BaseMapper<OaAssetsSite> {
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.oa.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsSoftwareCert;
|
||||
import com.gxwebsoft.oa.param.OaAssetsSoftwareCertParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 计算机软件著作权登记Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:46:21
|
||||
*/
|
||||
public interface OaAssetsSoftwareCertMapper extends BaseMapper<OaAssetsSoftwareCert> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<OaAssetsSoftwareCert>
|
||||
*/
|
||||
List<OaAssetsSoftwareCert> selectPageRel(@Param("page") IPage<OaAssetsSoftwareCert> page,
|
||||
@Param("param") OaAssetsSoftwareCertParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<OaAssetsSoftwareCert> selectListRel(@Param("param") OaAssetsSoftwareCertParam param);
|
||||
|
||||
}
|
||||
37
src/main/java/com/gxwebsoft/oa/mapper/OaAssetsSslMapper.java
Normal file
37
src/main/java/com/gxwebsoft/oa/mapper/OaAssetsSslMapper.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.oa.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsSsl;
|
||||
import com.gxwebsoft.oa.param.OaAssetsSslParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ssl证书Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:25:40
|
||||
*/
|
||||
public interface OaAssetsSslMapper extends BaseMapper<OaAssetsSsl> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<OaAssetsSsl>
|
||||
*/
|
||||
List<OaAssetsSsl> selectPageRel(@Param("page") IPage<OaAssetsSsl> page,
|
||||
@Param("param") OaAssetsSslParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<OaAssetsSsl> selectListRel(@Param("param") OaAssetsSslParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.oa.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsTrademark;
|
||||
import com.gxwebsoft.oa.param.OaAssetsTrademarkParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商标注册Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:46:21
|
||||
*/
|
||||
public interface OaAssetsTrademarkMapper extends BaseMapper<OaAssetsTrademark> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<OaAssetsTrademark>
|
||||
*/
|
||||
List<OaAssetsTrademark> selectPageRel(@Param("page") IPage<OaAssetsTrademark> page,
|
||||
@Param("param") OaAssetsTrademarkParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<OaAssetsTrademark> selectListRel(@Param("param") OaAssetsTrademarkParam param);
|
||||
|
||||
}
|
||||
@@ -12,7 +12,7 @@ import java.util.List;
|
||||
* 虚拟主机记录表Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
public interface OaAssetsVhostMapper extends BaseMapper<OaAssetsVhost> {
|
||||
|
||||
|
||||
@@ -3,39 +3,39 @@
|
||||
<mapper namespace="com.gxwebsoft.oa.mapper.OaAppFieldMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM oa_app_field a
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.appId != null">
|
||||
AND a.app_id = #{param.appId}
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM oa_app_field a
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.appId != null">
|
||||
AND a.app_id = #{param.appId}
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.oa.entity.OaAppField">
|
||||
|
||||
@@ -3,220 +3,218 @@
|
||||
<mapper namespace="com.gxwebsoft.oa.mapper.OaAppMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM oa_app a
|
||||
<where>
|
||||
<if test="param.appId != null">
|
||||
AND a.app_id = #{param.appId}
|
||||
</if>
|
||||
<if test="param.appName != null">
|
||||
AND a.app_name LIKE CONCAT('%', #{param.appName}, '%')
|
||||
</if>
|
||||
<if test="param.appCode != null">
|
||||
AND a.app_code LIKE CONCAT('%', #{param.appCode}, '%')
|
||||
</if>
|
||||
<if test="param.appSecret != null">
|
||||
AND a.app_secret LIKE CONCAT('%', #{param.appSecret}, '%')
|
||||
</if>
|
||||
<if test="param.parentId != null">
|
||||
AND a.parent_id = #{param.parentId}
|
||||
</if>
|
||||
<if test="param.appType != null">
|
||||
AND a.app_type LIKE CONCAT('%', #{param.appType}, '%')
|
||||
</if>
|
||||
<if test="param.appTypeMultiple != null">
|
||||
AND a.app_type_multiple LIKE CONCAT('%', #{param.appTypeMultiple}, '%')
|
||||
</if>
|
||||
<if test="param.menuType != null">
|
||||
AND a.menu_type = #{param.menuType}
|
||||
</if>
|
||||
<if test="param.companyId != null">
|
||||
AND a.company_id = #{param.companyId}
|
||||
</if>
|
||||
<if test="param.companyName != null">
|
||||
AND a.company_name LIKE CONCAT('%', #{param.companyName}, '%')
|
||||
</if>
|
||||
<if test="param.appIcon != null">
|
||||
AND a.app_icon LIKE CONCAT('%', #{param.appIcon}, '%')
|
||||
</if>
|
||||
<if test="param.appQrcode != null">
|
||||
AND a.app_qrcode LIKE CONCAT('%', #{param.appQrcode}, '%')
|
||||
</if>
|
||||
<if test="param.appUrl != null">
|
||||
AND a.app_url LIKE CONCAT('%', #{param.appUrl}, '%')
|
||||
</if>
|
||||
<if test="param.adminUrl != null">
|
||||
AND a.admin_url LIKE CONCAT('%', #{param.adminUrl}, '%')
|
||||
</if>
|
||||
<if test="param.downUrl != null">
|
||||
AND a.down_url LIKE CONCAT('%', #{param.downUrl}, '%')
|
||||
</if>
|
||||
<if test="param.serverUrl != null">
|
||||
AND a.server_url LIKE CONCAT('%', #{param.serverUrl}, '%')
|
||||
</if>
|
||||
<if test="param.fileUrl != null">
|
||||
AND a.file_url LIKE CONCAT('%', #{param.fileUrl}, '%')
|
||||
</if>
|
||||
<if test="param.callbackUrl != null">
|
||||
AND a.callback_url LIKE CONCAT('%', #{param.callbackUrl}, '%')
|
||||
</if>
|
||||
<if test="param.docsUrl != null">
|
||||
AND a.docs_url LIKE CONCAT('%', #{param.docsUrl}, '%')
|
||||
</if>
|
||||
<if test="param.gitUrl != null">
|
||||
AND a.git_url LIKE CONCAT('%', #{param.gitUrl}, '%')
|
||||
</if>
|
||||
<if test="param.prototypeUrl != null">
|
||||
AND a.prototype_url LIKE CONCAT('%', #{param.prototypeUrl}, '%')
|
||||
</if>
|
||||
<if test="param.ipAddress != null">
|
||||
AND a.ip_address LIKE CONCAT('%', #{param.ipAddress}, '%')
|
||||
</if>
|
||||
<if test="param.images != null">
|
||||
AND a.images LIKE CONCAT('%', #{param.images}, '%')
|
||||
</if>
|
||||
<if test="param.packageName != null">
|
||||
AND a.package_name LIKE CONCAT('%', #{param.packageName}, '%')
|
||||
</if>
|
||||
<if test="param.clicks != null">
|
||||
AND a.clicks = #{param.clicks}
|
||||
</if>
|
||||
<if test="param.installs != null">
|
||||
AND a.installs = #{param.installs}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.requirement != null">
|
||||
AND a.requirement LIKE CONCAT('%', #{param.requirement}, '%')
|
||||
</if>
|
||||
<if test="param.developer != null">
|
||||
AND a.developer LIKE CONCAT('%', #{param.developer}, '%')
|
||||
</if>
|
||||
<if test="param.director != null">
|
||||
AND a.director LIKE CONCAT('%', #{param.director}, '%')
|
||||
</if>
|
||||
<if test="param.projectDirector != null">
|
||||
AND a.project_director LIKE CONCAT('%', #{param.projectDirector}, '%')
|
||||
</if>
|
||||
<if test="param.salesman != null">
|
||||
AND a.salesman LIKE CONCAT('%', #{param.salesman}, '%')
|
||||
</if>
|
||||
<if test="param.price != null">
|
||||
AND a.price = #{param.price}
|
||||
</if>
|
||||
<if test="param.linePrice != null">
|
||||
AND a.line_price = #{param.linePrice}
|
||||
</if>
|
||||
<if test="param.score != null">
|
||||
AND a.score LIKE CONCAT('%', #{param.score}, '%')
|
||||
</if>
|
||||
<if test="param.star != null">
|
||||
AND a.star LIKE CONCAT('%', #{param.star}, '%')
|
||||
</if>
|
||||
<if test="param.path != null">
|
||||
AND a.path LIKE CONCAT('%', #{param.path}, '%')
|
||||
</if>
|
||||
<if test="param.component != null">
|
||||
AND a.component LIKE CONCAT('%', #{param.component}, '%')
|
||||
</if>
|
||||
<if test="param.authority != null">
|
||||
AND a.authority LIKE CONCAT('%', #{param.authority}, '%')
|
||||
</if>
|
||||
<if test="param.target != null">
|
||||
AND a.target LIKE CONCAT('%', #{param.target}, '%')
|
||||
</if>
|
||||
<if test="param.hide != null">
|
||||
AND a.hide = #{param.hide}
|
||||
</if>
|
||||
<if test="param.search != null">
|
||||
AND a.search = #{param.search}
|
||||
</if>
|
||||
<if test="param.active != null">
|
||||
AND a.active LIKE CONCAT('%', #{param.active}, '%')
|
||||
</if>
|
||||
<if test="param.meta != null">
|
||||
AND a.meta LIKE CONCAT('%', #{param.meta}, '%')
|
||||
</if>
|
||||
<if test="param.edition != null">
|
||||
AND a.edition LIKE CONCAT('%', #{param.edition}, '%')
|
||||
</if>
|
||||
<if test="param.version != null">
|
||||
AND a.version LIKE CONCAT('%', #{param.version}, '%')
|
||||
</if>
|
||||
<if test="param.isUse != null">
|
||||
AND a.is_use = #{param.isUse}
|
||||
</if>
|
||||
<if test="param.file1 != null">
|
||||
AND a.file1 LIKE CONCAT('%', #{param.file1}, '%')
|
||||
</if>
|
||||
<if test="param.file2 != null">
|
||||
AND a.file2 LIKE CONCAT('%', #{param.file2}, '%')
|
||||
</if>
|
||||
<if test="param.file3 != null">
|
||||
AND a.file3 LIKE CONCAT('%', #{param.file3}, '%')
|
||||
</if>
|
||||
<if test="param.showExpiration != null">
|
||||
AND a.show_expiration = #{param.showExpiration}
|
||||
</if>
|
||||
<if test="param.showCase != null">
|
||||
AND a.show_case = #{param.showCase}
|
||||
</if>
|
||||
<if test="param.showIndex != null">
|
||||
AND a.show_index = #{param.showIndex}
|
||||
</if>
|
||||
<if test="param.recommend != null">
|
||||
AND a.recommend = #{param.recommend}
|
||||
</if>
|
||||
<if test="param.expirationTime != null">
|
||||
AND a.expiration_time LIKE CONCAT('%', #{param.expirationTime}, '%')
|
||||
</if>
|
||||
<if test="param.renewMoney != null">
|
||||
AND a.renew_money = #{param.renewMoney}
|
||||
</if>
|
||||
<if test="param.appStatus != null">
|
||||
AND a.app_status LIKE CONCAT('%', #{param.appStatus}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</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.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.organizationId != null">
|
||||
AND a.organization_id = #{param.organizationId}
|
||||
</if>
|
||||
<if test="param.tenantCode != null">
|
||||
AND a.tenant_code LIKE CONCAT('%', #{param.tenantCode}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.keywords != null">
|
||||
AND (a.app_name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.app_code LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.company_name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.app_url LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="selectSql">
|
||||
SELECT a.*, b.company_name,b.short_name,b.company_logo
|
||||
FROM oa_app a
|
||||
LEFT JOIN oa_company b ON a.company_id = b.company_id
|
||||
<where>
|
||||
<if test="param.appId != null">
|
||||
AND a.app_id = #{param.appId}
|
||||
</if>
|
||||
<if test="param.appName != null">
|
||||
AND a.app_name LIKE CONCAT('%', #{param.appName}, '%')
|
||||
</if>
|
||||
<if test="param.appCode != null">
|
||||
AND a.app_code LIKE CONCAT('%', #{param.appCode}, '%')
|
||||
</if>
|
||||
<if test="param.showCase != null">
|
||||
AND a.show_case = #{param.showCase}
|
||||
</if>
|
||||
<if test="param.recommend != null">
|
||||
AND a.recommend = #{param.recommend}
|
||||
</if>
|
||||
<if test="param.showIndex != null">
|
||||
AND a.show_index = #{param.showIndex}
|
||||
</if>
|
||||
<if test="param.parentId != null">
|
||||
AND a.parent_id = #{param.parentId}
|
||||
</if>
|
||||
<if test="param.appType != null">
|
||||
AND a.app_type LIKE CONCAT('%', #{param.appType}, '%')
|
||||
</if>
|
||||
<if test="param.appTypeMultiple != null">
|
||||
AND a.app_type_multiple LIKE CONCAT('%', #{param.appTypeMultiple}, '%')
|
||||
</if>
|
||||
<if test="param.menuType != null">
|
||||
AND a.menu_type = #{param.menuType}
|
||||
</if>
|
||||
<if test="param.companyId != null">
|
||||
AND a.company_id = #{param.companyId}
|
||||
</if>
|
||||
<if test="param.companyName != null">
|
||||
AND a.company_name LIKE CONCAT('%', #{param.companyName}, '%')
|
||||
</if>
|
||||
<if test="param.appIcon != null">
|
||||
AND a.app_icon LIKE CONCAT('%', #{param.appIcon}, '%')
|
||||
</if>
|
||||
<if test="param.appQrcode != null">
|
||||
AND a.app_qrcode LIKE CONCAT('%', #{param.appQrcode}, '%')
|
||||
</if>
|
||||
<if test="param.appUrl != null">
|
||||
AND a.app_url LIKE CONCAT('%', #{param.appUrl}, '%')
|
||||
</if>
|
||||
<if test="param.adminUrl != null">
|
||||
AND a.admin_url LIKE CONCAT('%', #{param.adminUrl}, '%')
|
||||
</if>
|
||||
<if test="param.downUrl != null">
|
||||
AND a.down_url LIKE CONCAT('%', #{param.downUrl}, '%')
|
||||
</if>
|
||||
<if test="param.serverUrl != null">
|
||||
AND a.server_url LIKE CONCAT('%', #{param.serverUrl}, '%')
|
||||
</if>
|
||||
<if test="param.fileUrl != null">
|
||||
AND a.file_url LIKE CONCAT('%', #{param.fileUrl}, '%')
|
||||
</if>
|
||||
<if test="param.callbackUrl != null">
|
||||
AND a.callback_url LIKE CONCAT('%', #{param.callbackUrl}, '%')
|
||||
</if>
|
||||
<if test="param.docsUrl != null">
|
||||
AND a.docs_url LIKE CONCAT('%', #{param.docsUrl}, '%')
|
||||
</if>
|
||||
<if test="param.gitUrl != null">
|
||||
AND a.git_url LIKE CONCAT('%', #{param.gitUrl}, '%')
|
||||
</if>
|
||||
<if test="param.prototypeUrl != null">
|
||||
AND a.prototype_url LIKE CONCAT('%', #{param.prototypeUrl}, '%')
|
||||
</if>
|
||||
<if test="param.ipAddress != null">
|
||||
AND a.ip_address LIKE CONCAT('%', #{param.ipAddress}, '%')
|
||||
</if>
|
||||
<if test="param.images != null">
|
||||
AND a.images LIKE CONCAT('%', #{param.images}, '%')
|
||||
</if>
|
||||
<if test="param.packageName != null">
|
||||
AND a.package_name LIKE CONCAT('%', #{param.packageName}, '%')
|
||||
</if>
|
||||
<if test="param.clicks != null">
|
||||
AND a.clicks = #{param.clicks}
|
||||
</if>
|
||||
<if test="param.installs != null">
|
||||
AND a.installs = #{param.installs}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.requirement != null">
|
||||
AND a.requirement LIKE CONCAT('%', #{param.requirement}, '%')
|
||||
</if>
|
||||
<if test="param.developer != null">
|
||||
AND a.developer LIKE CONCAT('%', #{param.developer}, '%')
|
||||
</if>
|
||||
<if test="param.director != null">
|
||||
AND a.director LIKE CONCAT('%', #{param.director}, '%')
|
||||
</if>
|
||||
<if test="param.projectDirector != null">
|
||||
AND a.project_director LIKE CONCAT('%', #{param.projectDirector}, '%')
|
||||
</if>
|
||||
<if test="param.salesman != null">
|
||||
AND a.salesman LIKE CONCAT('%', #{param.salesman}, '%')
|
||||
</if>
|
||||
<if test="param.price != null">
|
||||
AND a.price = #{param.price}
|
||||
</if>
|
||||
<if test="param.linePrice != null">
|
||||
AND a.line_price = #{param.linePrice}
|
||||
</if>
|
||||
<if test="param.score != null">
|
||||
AND a.score LIKE CONCAT('%', #{param.score}, '%')
|
||||
</if>
|
||||
<if test="param.star != null">
|
||||
AND a.star LIKE CONCAT('%', #{param.star}, '%')
|
||||
</if>
|
||||
<if test="param.path != null">
|
||||
AND a.path LIKE CONCAT('%', #{param.path}, '%')
|
||||
</if>
|
||||
<if test="param.component != null">
|
||||
AND a.component LIKE CONCAT('%', #{param.component}, '%')
|
||||
</if>
|
||||
<if test="param.authority != null">
|
||||
AND a.authority LIKE CONCAT('%', #{param.authority}, '%')
|
||||
</if>
|
||||
<if test="param.target != null">
|
||||
AND a.target LIKE CONCAT('%', #{param.target}, '%')
|
||||
</if>
|
||||
<if test="param.hide != null">
|
||||
AND a.hide = #{param.hide}
|
||||
</if>
|
||||
<if test="param.search != null">
|
||||
AND a.search = #{param.search}
|
||||
</if>
|
||||
<if test="param.active != null">
|
||||
AND a.active LIKE CONCAT('%', #{param.active}, '%')
|
||||
</if>
|
||||
<if test="param.meta != null">
|
||||
AND a.meta LIKE CONCAT('%', #{param.meta}, '%')
|
||||
</if>
|
||||
<if test="param.edition != null">
|
||||
AND a.edition LIKE CONCAT('%', #{param.edition}, '%')
|
||||
</if>
|
||||
<if test="param.version != null">
|
||||
AND a.version LIKE CONCAT('%', #{param.version}, '%')
|
||||
</if>
|
||||
<if test="param.isUse != null">
|
||||
AND a.is_use = #{param.isUse}
|
||||
</if>
|
||||
<if test="param.file1 != null">
|
||||
AND a.file1 LIKE CONCAT('%', #{param.file1}, '%')
|
||||
</if>
|
||||
<if test="param.file2 != null">
|
||||
AND a.file2 LIKE CONCAT('%', #{param.file2}, '%')
|
||||
</if>
|
||||
<if test="param.file3 != null">
|
||||
AND a.file3 LIKE CONCAT('%', #{param.file3}, '%')
|
||||
</if>
|
||||
<if test="param.appStatus != null">
|
||||
AND a.app_status LIKE CONCAT('%', #{param.appStatus}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</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.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.appIds != null">
|
||||
AND a.app_id IN
|
||||
<foreach collection="param.appIds" item="item" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="param.organizationId != null">
|
||||
AND a.organization_id = #{param.organizationId}
|
||||
</if>
|
||||
<if test="param.showExpiration != null">
|
||||
AND a.show_expiration = #{param.showExpiration}
|
||||
</if>
|
||||
<if test="param.tenantCode != null">
|
||||
AND a.tenant_code LIKE CONCAT('%', #{param.tenantCode}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.keywords != null">
|
||||
AND (a.app_name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.app_code LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.company_name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.app_url LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.oa.entity.OaApp">
|
||||
|
||||
@@ -3,51 +3,50 @@
|
||||
<mapper namespace="com.gxwebsoft.oa.mapper.OaAppRenewMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM oa_app_renew a
|
||||
<where>
|
||||
<if test="param.appRenewId != null">
|
||||
AND a.app_renew_id = #{param.appRenewId}
|
||||
</if>
|
||||
<if test="param.appId != null">
|
||||
AND a.app_id = #{param.appId}
|
||||
</if>
|
||||
<if test="param.money != null">
|
||||
AND a.money = #{param.money}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.startTime != null">
|
||||
AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%')
|
||||
</if>
|
||||
<if test="param.endTime != null">
|
||||
AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%')
|
||||
</if>
|
||||
<if test="param.companyId != null">
|
||||
AND a.company_id = #{param.companyId}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.images != null">
|
||||
AND a.images LIKE CONCAT('%', #{param.images}, '%')
|
||||
</if>
|
||||
<if test="param.nickname != null">
|
||||
AND a.nickname LIKE CONCAT('%', #{param.nickname}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="selectSql">
|
||||
SELECT a.*,
|
||||
b.company_name,b.short_name,b.company_logo,
|
||||
c.app_name
|
||||
FROM oa_app_renew a
|
||||
LEFT JOIN oa_company b ON a.company_id = b.company_id
|
||||
LEFT JOIN oa_app c ON a.app_id = c.app_id
|
||||
<where>
|
||||
<if test="param.appRenewId != null">
|
||||
AND a.app_renew_id = #{param.appRenewId}
|
||||
</if>
|
||||
<if test="param.money != null">
|
||||
AND a.money = #{param.money}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.startTime != null">
|
||||
AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%')
|
||||
</if>
|
||||
<if test="param.endTime != null">
|
||||
AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.appId != null">
|
||||
AND a.app_id = #{param.appId}
|
||||
</if>
|
||||
<if test="param.companyId != null">
|
||||
AND a.company_id = #{param.companyId}
|
||||
</if>
|
||||
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.oa.entity.OaAppRenew">
|
||||
|
||||
@@ -3,45 +3,43 @@
|
||||
<mapper namespace="com.gxwebsoft.oa.mapper.OaAppUrlMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM oa_app_url a
|
||||
<where>
|
||||
<if test="param.appUrlId != null">
|
||||
AND a.app_url_id = #{param.appUrlId}
|
||||
</if>
|
||||
<if test="param.appId != null">
|
||||
AND a.app_id = #{param.appId}
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
<if test="param.domain != null">
|
||||
AND a.domain LIKE CONCAT('%', #{param.domain}, '%')
|
||||
</if>
|
||||
<if test="param.account != null">
|
||||
AND a.account LIKE CONCAT('%', #{param.account}, '%')
|
||||
</if>
|
||||
<if test="param.password != null">
|
||||
AND a.password LIKE CONCAT('%', #{param.password}, '%')
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM oa_app_url a
|
||||
<where>
|
||||
<if test="param.appUrlId != null">
|
||||
AND a.app_url_id = #{param.appUrlId}
|
||||
</if>
|
||||
<if test="param.appId != null">
|
||||
AND a.app_id = #{param.appId}
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
<if test="param.domain != null">
|
||||
AND a.domain LIKE CONCAT('%', #{param.domain}, '%')
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.keywords != null">
|
||||
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.oa.entity.OaAppUrl">
|
||||
|
||||
@@ -3,36 +3,40 @@
|
||||
<mapper namespace="com.gxwebsoft.oa.mapper.OaAppUserMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM oa_app_user a
|
||||
<where>
|
||||
<if test="param.appUserId != null">
|
||||
AND a.app_user_id = #{param.appUserId}
|
||||
</if>
|
||||
<if test="param.role != null">
|
||||
AND a.role = #{param.role}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.appId != null">
|
||||
AND a.app_id = #{param.appId}
|
||||
</if>
|
||||
<if test="param.nickname != null">
|
||||
AND a.nickname LIKE CONCAT('%', #{param.nickname}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM oa_app_user a
|
||||
<where>
|
||||
<if test="param.appUserId != null">
|
||||
AND a.app_user_id = #{param.appUserId}
|
||||
</if>
|
||||
<if test="param.role != null">
|
||||
AND a.role = #{param.role}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.appId != null">
|
||||
AND a.app_id = #{param.appId}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.keywords != null">
|
||||
AND (b.nickname LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR b.email LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR b.username LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR b.phone LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.oa.entity.OaAppUser">
|
||||
|
||||
@@ -4,12 +4,16 @@
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
|
||||
FROM oa_assets_code a
|
||||
LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.assetsId != null">
|
||||
AND a.assets_id = #{param.assetsId}
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
@@ -22,21 +26,12 @@
|
||||
<if test="param.brand != null">
|
||||
AND a.brand LIKE CONCAT('%', #{param.brand}, '%')
|
||||
</if>
|
||||
<if test="param.price != null">
|
||||
AND a.price = #{param.price}
|
||||
<if test="param.isTop != null">
|
||||
AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%')
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.startTime != null">
|
||||
AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%')
|
||||
</if>
|
||||
<if test="param.endTime != null">
|
||||
AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%')
|
||||
</if>
|
||||
<if test="param.isTop != null">
|
||||
AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
@@ -46,6 +41,9 @@
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.userIds != null">
|
||||
AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status LIKE CONCAT('%', #{param.status}, '%')
|
||||
</if>
|
||||
|
||||
@@ -4,12 +4,16 @@
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
|
||||
FROM oa_assets_domain a
|
||||
LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id
|
||||
<where>
|
||||
<if test="param.domainId != null">
|
||||
AND a.domain_id = #{param.domainId}
|
||||
</if>
|
||||
<if test="param.assetsId != null">
|
||||
AND a.assets_id = #{param.assetsId}
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
@@ -28,12 +32,6 @@
|
||||
<if test="param.price != null">
|
||||
AND a.price = #{param.price}
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.ssl != null">
|
||||
AND a.ssl LIKE CONCAT('%', #{param.ssl}, '%')
|
||||
</if>
|
||||
<if test="param.startTime != null">
|
||||
AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%')
|
||||
</if>
|
||||
@@ -52,6 +50,9 @@
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.userIds != null">
|
||||
AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status LIKE CONCAT('%', #{param.status}, '%')
|
||||
</if>
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
|
||||
FROM oa_assets_email a
|
||||
LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id
|
||||
<where>
|
||||
<if test="param.emailId != null">
|
||||
AND a.email_id = #{param.emailId}
|
||||
@@ -31,9 +32,6 @@
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.ssl != null">
|
||||
AND a.ssl LIKE CONCAT('%', #{param.ssl}, '%')
|
||||
</if>
|
||||
<if test="param.startTime != null">
|
||||
AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%')
|
||||
</if>
|
||||
@@ -52,6 +50,9 @@
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.userIds != null">
|
||||
AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status LIKE CONCAT('%', #{param.status}, '%')
|
||||
</if>
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
|
||||
FROM oa_assets a
|
||||
LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id
|
||||
<where>
|
||||
<if test="param.assetsId != null">
|
||||
AND a.assets_id = #{param.assetsId}
|
||||
@@ -103,6 +104,9 @@
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.userIds != null">
|
||||
AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%')
|
||||
</if>
|
||||
<if test="param.organizationId != null">
|
||||
AND a.organization_id = #{param.organizationId}
|
||||
</if>
|
||||
@@ -121,6 +125,11 @@
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.keywords != null">
|
||||
AND (a.tenant_id = #{param.keywords}
|
||||
OR a.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
<?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.oa.mapper.OaAssetsMysqlMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
|
||||
FROM oa_assets_mysql a
|
||||
LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id
|
||||
<where>
|
||||
<if test="param.mysqlId != null">
|
||||
AND a.mysql_id = #{param.mysqlId}
|
||||
</if>
|
||||
<if test="param.assetsId != null">
|
||||
AND a.assets_id = #{param.assetsId}
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
<if test="param.code != null">
|
||||
AND a.code LIKE CONCAT('%', #{param.code}, '%')
|
||||
</if>
|
||||
<if test="param.brand != null">
|
||||
AND a.brand LIKE CONCAT('%', #{param.brand}, '%')
|
||||
</if>
|
||||
<if test="param.ip != null">
|
||||
AND a.ip LIKE CONCAT('%', #{param.ip}, '%')
|
||||
</if>
|
||||
<if test="param.port != null">
|
||||
AND a.port LIKE CONCAT('%', #{param.port}, '%')
|
||||
</if>
|
||||
<if test="param.account != null">
|
||||
AND a.account LIKE CONCAT('%', #{param.account}, '%')
|
||||
</if>
|
||||
<if test="param.password != null">
|
||||
AND a.password LIKE CONCAT('%', #{param.password}, '%')
|
||||
</if>
|
||||
<if test="param.price != null">
|
||||
AND a.price = #{param.price}
|
||||
</if>
|
||||
<if test="param.startTime != null">
|
||||
AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%')
|
||||
</if>
|
||||
<if test="param.endTime != null">
|
||||
AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%')
|
||||
</if>
|
||||
<if test="param.isTop != null">
|
||||
AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.userIds != null">
|
||||
AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status LIKE CONCAT('%', #{param.status}, '%')
|
||||
</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 >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.oa.entity.OaAssetsMysql">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.oa.entity.OaAssetsMysql">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -4,56 +4,126 @@
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
|
||||
FROM oa_assets_site a
|
||||
LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id
|
||||
<where>
|
||||
<if test="param.siteId != null">
|
||||
AND a.site_id = #{param.siteId}
|
||||
<if test="param.websiteId != null">
|
||||
AND a.website_id = #{param.websiteId}
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
<if test="param.websiteName != null">
|
||||
AND a.website_name LIKE CONCAT('%', #{param.websiteName}, '%')
|
||||
</if>
|
||||
<if test="param.code != null">
|
||||
AND a.code LIKE CONCAT('%', #{param.code}, '%')
|
||||
<if test="param.websiteCode != null">
|
||||
AND a.website_code LIKE CONCAT('%', #{param.websiteCode}, '%')
|
||||
</if>
|
||||
<if test="param.type != null">
|
||||
AND a.type LIKE CONCAT('%', #{param.type}, '%')
|
||||
<if test="param.websiteIcon != null">
|
||||
AND a.website_icon LIKE CONCAT('%', #{param.websiteIcon}, '%')
|
||||
</if>
|
||||
<if test="param.brand != null">
|
||||
AND a.brand LIKE CONCAT('%', #{param.brand}, '%')
|
||||
<if test="param.websiteLogo != null">
|
||||
AND a.website_logo LIKE CONCAT('%', #{param.websiteLogo}, '%')
|
||||
</if>
|
||||
<if test="param.system != null">
|
||||
AND a.system LIKE CONCAT('%', #{param.system}, '%')
|
||||
<if test="param.websiteDarkLogo != null">
|
||||
AND a.website_dark_logo LIKE CONCAT('%', #{param.websiteDarkLogo}, '%')
|
||||
</if>
|
||||
<if test="param.price != null">
|
||||
AND a.price = #{param.price}
|
||||
<if test="param.websiteType != null">
|
||||
AND a.website_type LIKE CONCAT('%', #{param.websiteType}, '%')
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
<if test="param.keywords != null">
|
||||
AND a.keywords LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
</if>
|
||||
<if test="param.ssl != null">
|
||||
AND a.ssl LIKE CONCAT('%', #{param.ssl}, '%')
|
||||
<if test="param.prefix != null">
|
||||
AND a.prefix LIKE CONCAT('%', #{param.prefix}, '%')
|
||||
</if>
|
||||
<if test="param.startTime != null">
|
||||
AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%')
|
||||
<if test="param.domain != null">
|
||||
AND a.domain LIKE CONCAT('%', #{param.domain}, '%')
|
||||
</if>
|
||||
<if test="param.endTime != null">
|
||||
AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%')
|
||||
<if test="param.style != null">
|
||||
AND a.style LIKE CONCAT('%', #{param.style}, '%')
|
||||
</if>
|
||||
<if test="param.isTop != null">
|
||||
AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%')
|
||||
<if test="param.adminUrl != null">
|
||||
AND a.admin_url LIKE CONCAT('%', #{param.adminUrl}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
<if test="param.version != null">
|
||||
AND a.version = #{param.version}
|
||||
</if>
|
||||
<if test="param.expirationTime != null">
|
||||
AND a.expiration_time LIKE CONCAT('%', #{param.expirationTime}, '%')
|
||||
</if>
|
||||
<if test="param.templateId != null">
|
||||
AND a.template_id = #{param.templateId}
|
||||
</if>
|
||||
<if test="param.industryParent != null">
|
||||
AND a.industry_parent LIKE CONCAT('%', #{param.industryParent}, '%')
|
||||
</if>
|
||||
<if test="param.industryChild != null">
|
||||
AND a.industry_child LIKE CONCAT('%', #{param.industryChild}, '%')
|
||||
</if>
|
||||
<if test="param.companyId != null">
|
||||
AND a.company_id = #{param.companyId}
|
||||
</if>
|
||||
<if test="param.country != null">
|
||||
AND a.country LIKE CONCAT('%', #{param.country}, '%')
|
||||
</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 test="param.longitude != null">
|
||||
AND a.longitude LIKE CONCAT('%', #{param.longitude}, '%')
|
||||
</if>
|
||||
<if test="param.latitude != null">
|
||||
AND a.latitude LIKE CONCAT('%', #{param.latitude}, '%')
|
||||
</if>
|
||||
<if test="param.address != null">
|
||||
AND a.address LIKE CONCAT('%', #{param.address}, '%')
|
||||
</if>
|
||||
<if test="param.phone != null">
|
||||
AND a.phone LIKE CONCAT('%', #{param.phone}, '%')
|
||||
</if>
|
||||
<if test="param.email != null">
|
||||
AND a.email LIKE CONCAT('%', #{param.email}, '%')
|
||||
</if>
|
||||
<if test="param.icpNo != null">
|
||||
AND a.icp_no LIKE CONCAT('%', #{param.icpNo}, '%')
|
||||
</if>
|
||||
<if test="param.policeNo != null">
|
||||
AND a.police_no LIKE CONCAT('%', #{param.policeNo}, '%')
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.recommend != null">
|
||||
AND a.recommend = #{param.recommend}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.statusText != null">
|
||||
AND a.status_text LIKE CONCAT('%', #{param.statusText}, '%')
|
||||
</if>
|
||||
<if test="param.statusClose != null">
|
||||
AND a.status_close LIKE CONCAT('%', #{param.statusClose}, '%')
|
||||
</if>
|
||||
<if test="param.styles != null">
|
||||
AND a.styles LIKE CONCAT('%', #{param.styles}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.assetsId != null">
|
||||
AND a.assets_id = #{param.assetsId}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status LIKE CONCAT('%', #{param.status}, '%')
|
||||
<if test="param.userIds != null">
|
||||
AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%')
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
<?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.oa.mapper.OaAssetsSoftwareCertMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
|
||||
FROM oa_assets_software_cert a
|
||||
LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
<if test="param.code != null">
|
||||
AND a.code LIKE CONCAT('%', #{param.code}, '%')
|
||||
</if>
|
||||
<if test="param.type != null">
|
||||
AND a.type LIKE CONCAT('%', #{param.type}, '%')
|
||||
</if>
|
||||
<if test="param.brand != null">
|
||||
AND a.brand LIKE CONCAT('%', #{param.brand}, '%')
|
||||
</if>
|
||||
<if test="param.price != null">
|
||||
AND a.price = #{param.price}
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.certUrl != null">
|
||||
AND a.cert_url LIKE CONCAT('%', #{param.certUrl}, '%')
|
||||
</if>
|
||||
<if test="param.startTime != null">
|
||||
AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%')
|
||||
</if>
|
||||
<if test="param.endTime != null">
|
||||
AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%')
|
||||
</if>
|
||||
<if test="param.isTop != null">
|
||||
AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.userIds != null">
|
||||
AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status LIKE CONCAT('%', #{param.status}, '%')
|
||||
</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 >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.oa.entity.OaAssetsSoftwareCert">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.oa.entity.OaAssetsSoftwareCert">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,98 @@
|
||||
<?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.oa.mapper.OaAssetsSslMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
|
||||
FROM oa_assets_ssl a
|
||||
LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id
|
||||
<where>
|
||||
<if test="param.sslId != null">
|
||||
AND a.ssl_id = #{param.sslId}
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
<if test="param.code != null">
|
||||
AND a.code LIKE CONCAT('%', #{param.code}, '%')
|
||||
</if>
|
||||
<if test="param.type != null">
|
||||
AND a.type LIKE CONCAT('%', #{param.type}, '%')
|
||||
</if>
|
||||
<if test="param.brand != null">
|
||||
AND a.brand LIKE CONCAT('%', #{param.brand}, '%')
|
||||
</if>
|
||||
<if test="param.price != null">
|
||||
AND a.price = #{param.price}
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.certKey != null">
|
||||
AND a.cert_key LIKE CONCAT('%', #{param.certKey}, '%')
|
||||
</if>
|
||||
<if test="param.certPem != null">
|
||||
AND a.cert_pem LIKE CONCAT('%', #{param.certPem}, '%')
|
||||
</if>
|
||||
<if test="param.certUrl != null">
|
||||
AND a.cert_url LIKE CONCAT('%', #{param.certUrl}, '%')
|
||||
</if>
|
||||
<if test="param.certCrt != null">
|
||||
AND a.cert_crt LIKE CONCAT('%', #{param.certCrt}, '%')
|
||||
</if>
|
||||
<if test="param.startTime != null">
|
||||
AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%')
|
||||
</if>
|
||||
<if test="param.endTime != null">
|
||||
AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%')
|
||||
</if>
|
||||
<if test="param.isTop != null">
|
||||
AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.userIds != null">
|
||||
AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status LIKE CONCAT('%', #{param.status}, '%')
|
||||
</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 >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.keywords != null">
|
||||
AND (a.tenant_id = #{param.keywords}
|
||||
OR a.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.oa.entity.OaAssetsSsl">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.oa.entity.OaAssetsSsl">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,84 @@
|
||||
<?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.oa.mapper.OaAssetsTrademarkMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
|
||||
FROM oa_assets_trademark a
|
||||
LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
<if test="param.code != null">
|
||||
AND a.code LIKE CONCAT('%', #{param.code}, '%')
|
||||
</if>
|
||||
<if test="param.type != null">
|
||||
AND a.type LIKE CONCAT('%', #{param.type}, '%')
|
||||
</if>
|
||||
<if test="param.brand != null">
|
||||
AND a.brand LIKE CONCAT('%', #{param.brand}, '%')
|
||||
</if>
|
||||
<if test="param.price != null">
|
||||
AND a.price = #{param.price}
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.certUrl != null">
|
||||
AND a.cert_url LIKE CONCAT('%', #{param.certUrl}, '%')
|
||||
</if>
|
||||
<if test="param.startTime != null">
|
||||
AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%')
|
||||
</if>
|
||||
<if test="param.endTime != null">
|
||||
AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%')
|
||||
</if>
|
||||
<if test="param.isTop != null">
|
||||
AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.userIds != null">
|
||||
AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status LIKE CONCAT('%', #{param.status}, '%')
|
||||
</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 >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.oa.entity.OaAssetsTrademark">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.oa.entity.OaAssetsTrademark">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -3,36 +3,33 @@
|
||||
<mapper namespace="com.gxwebsoft.oa.mapper.OaAssetsUserMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM oa_assets_user a
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.role != null">
|
||||
AND a.role = #{param.role}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.assetsId != null">
|
||||
AND a.assets_id = #{param.assetsId}
|
||||
</if>
|
||||
<if test="param.nickname != null">
|
||||
AND a.nickname LIKE CONCAT('%', #{param.nickname}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM oa_assets_user a
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.role != null">
|
||||
AND a.role = #{param.role}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.assetsId != null">
|
||||
AND a.assets_id = #{param.assetsId}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.oa.entity.OaAssetsUser">
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
|
||||
FROM oa_assets_vhost a
|
||||
LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id
|
||||
<where>
|
||||
<if test="param.vhostId != null">
|
||||
AND a.vhost_id = #{param.vhostId}
|
||||
@@ -22,8 +23,11 @@
|
||||
<if test="param.brand != null">
|
||||
AND a.brand LIKE CONCAT('%', #{param.brand}, '%')
|
||||
</if>
|
||||
<if test="param.system != null">
|
||||
AND a.system LIKE CONCAT('%', #{param.system}, '%')
|
||||
<if test="param.account != null">
|
||||
AND a.account LIKE CONCAT('%', #{param.account}, '%')
|
||||
</if>
|
||||
<if test="param.password != null">
|
||||
AND a.password LIKE CONCAT('%', #{param.password}, '%')
|
||||
</if>
|
||||
<if test="param.price != null">
|
||||
AND a.price = #{param.price}
|
||||
@@ -49,9 +53,15 @@
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.assetsId != null">
|
||||
AND a.assets_id = #{param.assetsId}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.userIds != null">
|
||||
AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status LIKE CONCAT('%', #{param.status}, '%')
|
||||
</if>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.gxwebsoft.oa.param;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryType;
|
||||
import com.gxwebsoft.common.core.web.BaseParam;
|
||||
@@ -10,6 +11,7 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 应用查询参数
|
||||
@@ -190,11 +192,11 @@ public class OaAppParam extends BaseParam {
|
||||
|
||||
@ApiModelProperty(value = "是否显示续费提醒")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer showExpiration;
|
||||
private Boolean showExpiration;
|
||||
|
||||
@ApiModelProperty(value = "是否作为案例展示")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer showCase;
|
||||
private Boolean showCase;
|
||||
|
||||
@ApiModelProperty(value = "是否显示在首页")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
@@ -237,4 +239,8 @@ public class OaAppParam extends BaseParam {
|
||||
@ApiModelProperty(value = "租户编号")
|
||||
private String tenantCode;
|
||||
|
||||
@ApiModelProperty(value = "按APPID集搜索")
|
||||
@TableField(exist = false)
|
||||
private Set<Integer> appIds;
|
||||
|
||||
}
|
||||
|
||||
@@ -9,13 +9,11 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 代码仓库查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:01
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@@ -28,6 +26,10 @@ public class OaAssetsCodeParam extends BaseParam {
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "服务器ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer assetsId;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@@ -40,22 +42,12 @@ public class OaAssetsCodeParam extends BaseParam {
|
||||
@ApiModelProperty(value = "仓库品牌")
|
||||
private String brand;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private BigDecimal price;
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value = "到期时间")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer sortNumber;
|
||||
@@ -67,6 +59,9 @@ public class OaAssetsCodeParam extends BaseParam {
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
|
||||
@@ -12,15 +12,15 @@ import lombok.EqualsAndHashCode;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 域名管理记录表查询参数
|
||||
* 域名查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:01
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "OaAssetsDomainParam对象", description = "域名管理记录表查询参数")
|
||||
@ApiModel(value = "OaAssetsDomainParam对象", description = "域名查询参数")
|
||||
public class OaAssetsDomainParam extends BaseParam {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -28,6 +28,10 @@ public class OaAssetsDomainParam extends BaseParam {
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer domainId;
|
||||
|
||||
@ApiModelProperty(value = "服务器ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer assetsId;
|
||||
|
||||
@ApiModelProperty(value = "域名")
|
||||
private String name;
|
||||
|
||||
@@ -47,12 +51,6 @@ public class OaAssetsDomainParam extends BaseParam {
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private BigDecimal price;
|
||||
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "ssl证书")
|
||||
private String ssl;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private String startTime;
|
||||
|
||||
@@ -73,6 +71,9 @@ public class OaAssetsDomainParam extends BaseParam {
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.math.BigDecimal;
|
||||
* 企业邮箱记录表查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@@ -28,13 +28,13 @@ public class OaAssetsEmailParam extends BaseParam {
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer emailId;
|
||||
|
||||
@ApiModelProperty(value = "域名")
|
||||
@ApiModelProperty(value = "邮箱名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "域名标识")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "主机型号")
|
||||
@ApiModelProperty(value = "邮箱型号")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(value = "品牌厂商")
|
||||
@@ -50,9 +50,6 @@ public class OaAssetsEmailParam extends BaseParam {
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "ssl证书")
|
||||
private String ssl;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private String startTime;
|
||||
|
||||
@@ -73,6 +70,9 @@ public class OaAssetsEmailParam extends BaseParam {
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
|
||||
90
src/main/java/com/gxwebsoft/oa/param/OaAssetsMysqlParam.java
Normal file
90
src/main/java/com/gxwebsoft/oa/param/OaAssetsMysqlParam.java
Normal file
@@ -0,0 +1,90 @@
|
||||
package com.gxwebsoft.oa.param;
|
||||
|
||||
import com.gxwebsoft.common.core.annotation.QueryField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryType;
|
||||
import com.gxwebsoft.common.core.web.BaseParam;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 云数据库查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:00:20
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "OaAssetsMysqlParam对象", description = "云数据库查询参数")
|
||||
public class OaAssetsMysqlParam extends BaseParam {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer mysqlId;
|
||||
|
||||
@ApiModelProperty(value = "服务器ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer assetsId;
|
||||
|
||||
@ApiModelProperty(value = "数据库名")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "数据库标识")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "注册厂商")
|
||||
private String brand;
|
||||
|
||||
@ApiModelProperty(value = "ip地址")
|
||||
private String ip;
|
||||
|
||||
@ApiModelProperty(value = "端口")
|
||||
private String port;
|
||||
|
||||
@ApiModelProperty(value = "初始账号")
|
||||
private String account;
|
||||
|
||||
@ApiModelProperty(value = "初始密码")
|
||||
private String password;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private BigDecimal price;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value = "到期时间")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
@@ -12,15 +12,15 @@ import lombok.EqualsAndHashCode;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 服务器资产记录表查询参数
|
||||
* 云服务器查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:34:14
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "OaAssetsParam对象", description = "服务器资产记录表查询参数")
|
||||
@ApiModel(value = "OaAssetsParam对象", description = "云服务器查询参数")
|
||||
public class OaAssetsParam extends BaseParam {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -128,6 +128,9 @@ public class OaAssetsParam extends BaseParam {
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "机构id")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer organizationId;
|
||||
|
||||
@@ -9,72 +9,144 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 网站管理记录表查询参数
|
||||
* 网站信息记录表查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "OaAssetsSiteParam对象", description = "网站管理记录表查询参数")
|
||||
@ApiModel(value = "OaAssetsSiteParam对象", description = "网站信息记录表查询参数")
|
||||
public class OaAssetsSiteParam extends BaseParam {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
@ApiModelProperty(value = "站点ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer siteId;
|
||||
private Integer websiteId;
|
||||
|
||||
@ApiModelProperty(value = "网站名称")
|
||||
private String name;
|
||||
private String websiteName;
|
||||
|
||||
@ApiModelProperty(value = "域名标识")
|
||||
private String code;
|
||||
@ApiModelProperty(value = "网站标识")
|
||||
private String websiteCode;
|
||||
|
||||
@ApiModelProperty(value = "主机型号")
|
||||
private String type;
|
||||
@ApiModelProperty(value = "网站LOGO")
|
||||
private String websiteIcon;
|
||||
|
||||
@ApiModelProperty(value = "品牌厂商")
|
||||
private String brand;
|
||||
@ApiModelProperty(value = "网站LOGO")
|
||||
private String websiteLogo;
|
||||
|
||||
@ApiModelProperty(value = "初始账号")
|
||||
private String system;
|
||||
@ApiModelProperty(value = "网站LOGO(深色模式)")
|
||||
private String websiteDarkLogo;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
@ApiModelProperty(value = "网站类型")
|
||||
private String websiteType;
|
||||
|
||||
@ApiModelProperty(value = "网站关键词")
|
||||
private String keywords;
|
||||
|
||||
@ApiModelProperty(value = "域名前缀")
|
||||
private String prefix;
|
||||
|
||||
@ApiModelProperty(value = "绑定域名")
|
||||
private String domain;
|
||||
|
||||
@ApiModelProperty(value = "全局样式")
|
||||
private String style;
|
||||
|
||||
@ApiModelProperty(value = "后台管理地址")
|
||||
private String adminUrl;
|
||||
|
||||
@ApiModelProperty(value = "应用版本 10免费版 20授权版 30永久授权")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private BigDecimal price;
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
@ApiModelProperty(value = "服务到期时间")
|
||||
private String expirationTime;
|
||||
|
||||
@ApiModelProperty(value = "ssl证书")
|
||||
private String ssl;
|
||||
@ApiModelProperty(value = "模版ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer templateId;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private String startTime;
|
||||
@ApiModelProperty(value = "行业类型(父级)")
|
||||
private String industryParent;
|
||||
|
||||
@ApiModelProperty(value = "到期时间")
|
||||
private String endTime;
|
||||
@ApiModelProperty(value = "行业类型(子级)")
|
||||
private String industryChild;
|
||||
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
@ApiModelProperty(value = "企业ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer companyId;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
@ApiModelProperty(value = "所在国家")
|
||||
private String country;
|
||||
|
||||
@ApiModelProperty(value = "所在省份")
|
||||
private String province;
|
||||
|
||||
@ApiModelProperty(value = "所在城市")
|
||||
private String city;
|
||||
|
||||
@ApiModelProperty(value = "所在辖区")
|
||||
private String region;
|
||||
|
||||
@ApiModelProperty(value = "经度")
|
||||
private String longitude;
|
||||
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private String latitude;
|
||||
|
||||
@ApiModelProperty(value = "街道地址")
|
||||
private String address;
|
||||
|
||||
@ApiModelProperty(value = "联系电话")
|
||||
private String phone;
|
||||
|
||||
@ApiModelProperty(value = "电子邮箱")
|
||||
private String email;
|
||||
|
||||
@ApiModelProperty(value = "ICP备案号")
|
||||
private String icpNo;
|
||||
|
||||
@ApiModelProperty(value = "公安备案")
|
||||
private String policeNo;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "是否推荐")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer recommend;
|
||||
|
||||
@ApiModelProperty(value = "状态 0未开通 1运行中 2维护中 3已关闭 4已欠费停机 5违规关停")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "维护说明")
|
||||
private String statusText;
|
||||
|
||||
@ApiModelProperty(value = "关闭说明")
|
||||
private String statusClose;
|
||||
|
||||
@ApiModelProperty(value = "全局样式")
|
||||
private String styles;
|
||||
|
||||
@ApiModelProperty(value = "排序号")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String comments;
|
||||
@ApiModelProperty(value = "服务器ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer assetsId;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
package com.gxwebsoft.oa.param;
|
||||
|
||||
import com.gxwebsoft.common.core.annotation.QueryField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryType;
|
||||
import com.gxwebsoft.common.core.web.BaseParam;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 计算机软件著作权登记查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:46:21
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "OaAssetsSoftwareCertParam对象", description = "计算机软件著作权登记查询参数")
|
||||
public class OaAssetsSoftwareCertParam extends BaseParam {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "软件著作权标识")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "证书类型")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(value = "品牌厂商")
|
||||
private String brand;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private BigDecimal price;
|
||||
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "证书下载地址")
|
||||
private String certUrl;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value = "到期时间")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
92
src/main/java/com/gxwebsoft/oa/param/OaAssetsSslParam.java
Normal file
92
src/main/java/com/gxwebsoft/oa/param/OaAssetsSslParam.java
Normal file
@@ -0,0 +1,92 @@
|
||||
package com.gxwebsoft.oa.param;
|
||||
|
||||
import com.gxwebsoft.common.core.annotation.QueryField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryType;
|
||||
import com.gxwebsoft.common.core.web.BaseParam;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* ssl证书查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:25:40
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "OaAssetsSslParam对象", description = "ssl证书查询参数")
|
||||
public class OaAssetsSslParam extends BaseParam {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer sslId;
|
||||
|
||||
@ApiModelProperty(value = "证书名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "证书标识")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "证书类型")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(value = "品牌厂商")
|
||||
private String brand;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private BigDecimal price;
|
||||
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "证书key")
|
||||
private String certKey;
|
||||
|
||||
@ApiModelProperty(value = "证书pem")
|
||||
private String certPem;
|
||||
|
||||
@ApiModelProperty(value = "证书下载地址")
|
||||
private String certUrl;
|
||||
|
||||
@ApiModelProperty(value = "证书crt")
|
||||
private String certCrt;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value = "到期时间")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package com.gxwebsoft.oa.param;
|
||||
|
||||
import com.gxwebsoft.common.core.annotation.QueryField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryType;
|
||||
import com.gxwebsoft.common.core.web.BaseParam;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 商标注册查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:46:21
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "OaAssetsTrademarkParam对象", description = "商标注册查询参数")
|
||||
public class OaAssetsTrademarkParam extends BaseParam {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "商标名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "商标标识")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "商标类型")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(value = "品牌厂商")
|
||||
private String brand;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private BigDecimal price;
|
||||
|
||||
@ApiModelProperty(value = "详情内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "证书下载")
|
||||
private String certUrl;
|
||||
|
||||
@ApiModelProperty(value = "购买时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value = "到期时间")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(value = "置顶状态")
|
||||
private String isTop;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
@@ -15,7 +15,7 @@ import java.math.BigDecimal;
|
||||
* 虚拟主机记录表查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@@ -41,7 +41,10 @@ public class OaAssetsVhostParam extends BaseParam {
|
||||
private String brand;
|
||||
|
||||
@ApiModelProperty(value = "初始账号")
|
||||
private String system;
|
||||
private String account;
|
||||
|
||||
@ApiModelProperty(value = "初始密码")
|
||||
private String password;
|
||||
|
||||
@ApiModelProperty(value = "价格")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
@@ -69,10 +72,17 @@ public class OaAssetsVhostParam extends BaseParam {
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "服务器ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer assetsId;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "可见用户")
|
||||
private String userIds;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private String status;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
* 代码仓库Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:01
|
||||
*/
|
||||
public interface OaAssetsCodeService extends IService<OaAssetsCode> {
|
||||
|
||||
|
||||
@@ -8,10 +8,10 @@ import com.gxwebsoft.oa.param.OaAssetsDomainParam;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 域名管理记录表Service
|
||||
* 域名Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
public interface OaAssetsDomainService extends IService<OaAssetsDomain> {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
* 企业邮箱记录表Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
public interface OaAssetsEmailService extends IService<OaAssetsEmail> {
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.gxwebsoft.oa.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsMysql;
|
||||
import com.gxwebsoft.oa.param.OaAssetsMysqlParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 云数据库Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:00:20
|
||||
*/
|
||||
public interface OaAssetsMysqlService extends IService<OaAssetsMysql> {
|
||||
|
||||
/**
|
||||
* 分页关联查询
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return PageResult<OaAssetsMysql>
|
||||
*/
|
||||
PageResult<OaAssetsMysql> pageRel(OaAssetsMysqlParam param);
|
||||
|
||||
/**
|
||||
* 关联查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<OaAssetsMysql>
|
||||
*/
|
||||
List<OaAssetsMysql> listRel(OaAssetsMysqlParam param);
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param mysqlId ID
|
||||
* @return OaAssetsMysql
|
||||
*/
|
||||
OaAssetsMysql getByIdRel(Integer mysqlId);
|
||||
|
||||
}
|
||||
@@ -8,10 +8,10 @@ import com.gxwebsoft.oa.param.OaAssetsParam;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 服务器资产记录表Service
|
||||
* 云服务器Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:34:15
|
||||
*/
|
||||
public interface OaAssetsService extends IService<OaAssets> {
|
||||
|
||||
|
||||
@@ -8,10 +8,10 @@ import com.gxwebsoft.oa.param.OaAssetsSiteParam;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 网站管理记录表Service
|
||||
* 网站信息记录表Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
public interface OaAssetsSiteService extends IService<OaAssetsSite> {
|
||||
|
||||
@@ -34,9 +34,9 @@ public interface OaAssetsSiteService extends IService<OaAssetsSite> {
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param siteId ID
|
||||
* @param websiteId 站点ID
|
||||
* @return OaAssetsSite
|
||||
*/
|
||||
OaAssetsSite getByIdRel(Integer siteId);
|
||||
OaAssetsSite getByIdRel(Integer websiteId);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.gxwebsoft.oa.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsSoftwareCert;
|
||||
import com.gxwebsoft.oa.param.OaAssetsSoftwareCertParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 计算机软件著作权登记Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:46:21
|
||||
*/
|
||||
public interface OaAssetsSoftwareCertService extends IService<OaAssetsSoftwareCert> {
|
||||
|
||||
/**
|
||||
* 分页关联查询
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return PageResult<OaAssetsSoftwareCert>
|
||||
*/
|
||||
PageResult<OaAssetsSoftwareCert> pageRel(OaAssetsSoftwareCertParam param);
|
||||
|
||||
/**
|
||||
* 关联查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<OaAssetsSoftwareCert>
|
||||
*/
|
||||
List<OaAssetsSoftwareCert> listRel(OaAssetsSoftwareCertParam param);
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param id ID
|
||||
* @return OaAssetsSoftwareCert
|
||||
*/
|
||||
OaAssetsSoftwareCert getByIdRel(Integer id);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.gxwebsoft.oa.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsSsl;
|
||||
import com.gxwebsoft.oa.param.OaAssetsSslParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ssl证书Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:25:40
|
||||
*/
|
||||
public interface OaAssetsSslService extends IService<OaAssetsSsl> {
|
||||
|
||||
/**
|
||||
* 分页关联查询
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return PageResult<OaAssetsSsl>
|
||||
*/
|
||||
PageResult<OaAssetsSsl> pageRel(OaAssetsSslParam param);
|
||||
|
||||
/**
|
||||
* 关联查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<OaAssetsSsl>
|
||||
*/
|
||||
List<OaAssetsSsl> listRel(OaAssetsSslParam param);
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param sslId ID
|
||||
* @return OaAssetsSsl
|
||||
*/
|
||||
OaAssetsSsl getByIdRel(Integer sslId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.gxwebsoft.oa.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsTrademark;
|
||||
import com.gxwebsoft.oa.param.OaAssetsTrademarkParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商标注册Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:46:21
|
||||
*/
|
||||
public interface OaAssetsTrademarkService extends IService<OaAssetsTrademark> {
|
||||
|
||||
/**
|
||||
* 分页关联查询
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return PageResult<OaAssetsTrademark>
|
||||
*/
|
||||
PageResult<OaAssetsTrademark> pageRel(OaAssetsTrademarkParam param);
|
||||
|
||||
/**
|
||||
* 关联查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<OaAssetsTrademark>
|
||||
*/
|
||||
List<OaAssetsTrademark> listRel(OaAssetsTrademarkParam param);
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param id ID
|
||||
* @return OaAssetsTrademark
|
||||
*/
|
||||
OaAssetsTrademark getByIdRel(Integer id);
|
||||
|
||||
}
|
||||
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
* 虚拟主机记录表Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
public interface OaAssetsVhostService extends IService<OaAssetsVhost> {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.List;
|
||||
* 代码仓库Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:01
|
||||
*/
|
||||
@Service
|
||||
public class OaAssetsCodeServiceImpl extends ServiceImpl<OaAssetsCodeMapper, OaAssetsCode> implements OaAssetsCodeService {
|
||||
|
||||
@@ -12,10 +12,10 @@ import org.springframework.stereotype.Service;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 域名管理记录表Service实现
|
||||
* 域名Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Service
|
||||
public class OaAssetsDomainServiceImpl extends ServiceImpl<OaAssetsDomainMapper, OaAssetsDomain> implements OaAssetsDomainService {
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.List;
|
||||
* 企业邮箱记录表Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Service
|
||||
public class OaAssetsEmailServiceImpl extends ServiceImpl<OaAssetsEmailMapper, OaAssetsEmail> implements OaAssetsEmailService {
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.gxwebsoft.oa.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.gxwebsoft.oa.mapper.OaAssetsMysqlMapper;
|
||||
import com.gxwebsoft.oa.service.OaAssetsMysqlService;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsMysql;
|
||||
import com.gxwebsoft.oa.param.OaAssetsMysqlParam;
|
||||
import com.gxwebsoft.common.core.web.PageParam;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 云数据库Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:00:20
|
||||
*/
|
||||
@Service
|
||||
public class OaAssetsMysqlServiceImpl extends ServiceImpl<OaAssetsMysqlMapper, OaAssetsMysql> implements OaAssetsMysqlService {
|
||||
|
||||
@Override
|
||||
public PageResult<OaAssetsMysql> pageRel(OaAssetsMysqlParam param) {
|
||||
PageParam<OaAssetsMysql, OaAssetsMysqlParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
List<OaAssetsMysql> list = baseMapper.selectPageRel(page, param);
|
||||
return new PageResult<>(list, page.getTotal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<OaAssetsMysql> listRel(OaAssetsMysqlParam param) {
|
||||
List<OaAssetsMysql> list = baseMapper.selectListRel(param);
|
||||
// 排序
|
||||
PageParam<OaAssetsMysql, OaAssetsMysqlParam> page = new PageParam<>();
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return page.sortRecords(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OaAssetsMysql getByIdRel(Integer mysqlId) {
|
||||
OaAssetsMysqlParam param = new OaAssetsMysqlParam();
|
||||
param.setMysqlId(mysqlId);
|
||||
return param.getOne(baseMapper.selectListRel(param));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -12,10 +12,10 @@ import org.springframework.stereotype.Service;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 服务器资产记录表Service实现
|
||||
* 云服务器Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:34:15
|
||||
*/
|
||||
@Service
|
||||
public class OaAssetsServiceImpl extends ServiceImpl<OaAssetsMapper, OaAssets> implements OaAssetsService {
|
||||
|
||||
@@ -12,10 +12,10 @@ import org.springframework.stereotype.Service;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 网站管理记录表Service实现
|
||||
* 网站信息记录表Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Service
|
||||
public class OaAssetsSiteServiceImpl extends ServiceImpl<OaAssetsSiteMapper, OaAssetsSite> implements OaAssetsSiteService {
|
||||
@@ -38,9 +38,9 @@ public class OaAssetsSiteServiceImpl extends ServiceImpl<OaAssetsSiteMapper, OaA
|
||||
}
|
||||
|
||||
@Override
|
||||
public OaAssetsSite getByIdRel(Integer siteId) {
|
||||
public OaAssetsSite getByIdRel(Integer websiteId) {
|
||||
OaAssetsSiteParam param = new OaAssetsSiteParam();
|
||||
param.setSiteId(siteId);
|
||||
param.setWebsiteId(websiteId);
|
||||
return param.getOne(baseMapper.selectListRel(param));
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.gxwebsoft.oa.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.gxwebsoft.oa.mapper.OaAssetsSoftwareCertMapper;
|
||||
import com.gxwebsoft.oa.service.OaAssetsSoftwareCertService;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsSoftwareCert;
|
||||
import com.gxwebsoft.oa.param.OaAssetsSoftwareCertParam;
|
||||
import com.gxwebsoft.common.core.web.PageParam;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 计算机软件著作权登记Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:46:21
|
||||
*/
|
||||
@Service
|
||||
public class OaAssetsSoftwareCertServiceImpl extends ServiceImpl<OaAssetsSoftwareCertMapper, OaAssetsSoftwareCert> implements OaAssetsSoftwareCertService {
|
||||
|
||||
@Override
|
||||
public PageResult<OaAssetsSoftwareCert> pageRel(OaAssetsSoftwareCertParam param) {
|
||||
PageParam<OaAssetsSoftwareCert, OaAssetsSoftwareCertParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
List<OaAssetsSoftwareCert> list = baseMapper.selectPageRel(page, param);
|
||||
return new PageResult<>(list, page.getTotal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<OaAssetsSoftwareCert> listRel(OaAssetsSoftwareCertParam param) {
|
||||
List<OaAssetsSoftwareCert> list = baseMapper.selectListRel(param);
|
||||
// 排序
|
||||
PageParam<OaAssetsSoftwareCert, OaAssetsSoftwareCertParam> page = new PageParam<>();
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return page.sortRecords(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OaAssetsSoftwareCert getByIdRel(Integer id) {
|
||||
OaAssetsSoftwareCertParam param = new OaAssetsSoftwareCertParam();
|
||||
param.setId(id);
|
||||
return param.getOne(baseMapper.selectListRel(param));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.gxwebsoft.oa.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.gxwebsoft.oa.mapper.OaAssetsSslMapper;
|
||||
import com.gxwebsoft.oa.service.OaAssetsSslService;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsSsl;
|
||||
import com.gxwebsoft.oa.param.OaAssetsSslParam;
|
||||
import com.gxwebsoft.common.core.web.PageParam;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ssl证书Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:25:40
|
||||
*/
|
||||
@Service
|
||||
public class OaAssetsSslServiceImpl extends ServiceImpl<OaAssetsSslMapper, OaAssetsSsl> implements OaAssetsSslService {
|
||||
|
||||
@Override
|
||||
public PageResult<OaAssetsSsl> pageRel(OaAssetsSslParam param) {
|
||||
PageParam<OaAssetsSsl, OaAssetsSslParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
List<OaAssetsSsl> list = baseMapper.selectPageRel(page, param);
|
||||
list.forEach(d -> {
|
||||
// 即将过期(一周内过期的)
|
||||
d.setSoon(DateUtil.offsetDay(d.getEndTime(), -7).compareTo(DateUtil.date()));
|
||||
// 是否过期 -1已过期 大于0 未过期
|
||||
d.setStatus(d.getEndTime().compareTo(DateUtil.date()));
|
||||
});
|
||||
return new PageResult<>(list, page.getTotal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<OaAssetsSsl> listRel(OaAssetsSslParam param) {
|
||||
List<OaAssetsSsl> list = baseMapper.selectListRel(param);
|
||||
// 排序
|
||||
PageParam<OaAssetsSsl, OaAssetsSslParam> page = new PageParam<>();
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return page.sortRecords(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OaAssetsSsl getByIdRel(Integer sslId) {
|
||||
OaAssetsSslParam param = new OaAssetsSslParam();
|
||||
param.setSslId(sslId);
|
||||
return param.getOne(baseMapper.selectListRel(param));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.gxwebsoft.oa.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.gxwebsoft.oa.mapper.OaAssetsTrademarkMapper;
|
||||
import com.gxwebsoft.oa.service.OaAssetsTrademarkService;
|
||||
import com.gxwebsoft.oa.entity.OaAssetsTrademark;
|
||||
import com.gxwebsoft.oa.param.OaAssetsTrademarkParam;
|
||||
import com.gxwebsoft.common.core.web.PageParam;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商标注册Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-10-18 19:46:21
|
||||
*/
|
||||
@Service
|
||||
public class OaAssetsTrademarkServiceImpl extends ServiceImpl<OaAssetsTrademarkMapper, OaAssetsTrademark> implements OaAssetsTrademarkService {
|
||||
|
||||
@Override
|
||||
public PageResult<OaAssetsTrademark> pageRel(OaAssetsTrademarkParam param) {
|
||||
PageParam<OaAssetsTrademark, OaAssetsTrademarkParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
List<OaAssetsTrademark> list = baseMapper.selectPageRel(page, param);
|
||||
return new PageResult<>(list, page.getTotal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<OaAssetsTrademark> listRel(OaAssetsTrademarkParam param) {
|
||||
List<OaAssetsTrademark> list = baseMapper.selectListRel(param);
|
||||
// 排序
|
||||
PageParam<OaAssetsTrademark, OaAssetsTrademarkParam> page = new PageParam<>();
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return page.sortRecords(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OaAssetsTrademark getByIdRel(Integer id) {
|
||||
OaAssetsTrademarkParam param = new OaAssetsTrademarkParam();
|
||||
param.setId(id);
|
||||
return param.getOne(baseMapper.selectListRel(param));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,7 +15,7 @@ import java.util.List;
|
||||
* 虚拟主机记录表Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2024-09-10 20:57:41
|
||||
* @since 2024-10-18 18:27:02
|
||||
*/
|
||||
@Service
|
||||
public class OaAssetsVhostServiceImpl extends ServiceImpl<OaAssetsVhostMapper, OaAssetsVhost> implements OaAssetsVhostService {
|
||||
|
||||
Reference in New Issue
Block a user