大屏项目初始化
This commit is contained in:
@@ -26,7 +26,7 @@ public class erpJobs {
|
||||
@Resource
|
||||
private ErpTransactionFlowService flowService;
|
||||
|
||||
@Scheduled(cron = "10 30 2 * * ?")
|
||||
@Scheduled(cron = "0 0 */2 * * ?")
|
||||
public void updateErpIndex() {
|
||||
try {
|
||||
final BigDecimal BUDGET_AMOUNT = new BigDecimal("3000");
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.mini.mybigscreen.biz.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 公司信息表,用于存储公司基本信息 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/biz/company")
|
||||
public class CompanyController {
|
||||
|
||||
}
|
||||
@@ -39,9 +39,9 @@ public class ErpTransactionFlowController {
|
||||
.eq(StrUtil.isNotBlank(categoryId), "category_id", categoryId)
|
||||
.eq(StrUtil.isNotBlank(transactionType), "transaction_type", transactionType)
|
||||
.orderByDesc("create_time");
|
||||
List<ErpTransactionFlow> flowList = flowService.list(query);
|
||||
PageUtil<ErpTransactionFlow> util = new PageUtil<>(pageNum, pageSize, flowList);
|
||||
PageResult<?> result = new PageResult<>(util.OkData(), pageNum, pageSize, flowList.size());
|
||||
List<ErpTransactionFlow> list = flowService.list(query);
|
||||
PageUtil<?> util = new PageUtil<>(pageNum, pageSize, list);
|
||||
PageResult<?> result = new PageResult<>(util.OkData(), pageNum, pageSize, list.size());
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,9 +39,9 @@ public class HomeUserController {
|
||||
.eq(StrUtil.isNotBlank(ustatus), "ustatus", ustatus)
|
||||
.eq(StrUtil.isNotBlank(userName), "user_name", userName)
|
||||
.orderByDesc("create_time");
|
||||
List<HomeUser> userList = userService.list(query);
|
||||
PageUtil<HomeUser> util = new PageUtil<>(pageNum, pageSize, userList);
|
||||
PageResult<?> result = new PageResult<>(util.OkData(), pageNum, pageSize, userList.size());
|
||||
List<HomeUser> list = userService.list(query);
|
||||
PageUtil<?> util = new PageUtil<>(pageNum, pageSize, list);
|
||||
PageResult<?> result = new PageResult<>(util.OkData(), pageNum, pageSize, list.size());
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.mini.mybigscreen.biz.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 员工表用于存储公司内部员工的基本信息 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/biz/resumeEmployee")
|
||||
public class ResumeEmployeeController {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.mini.mybigscreen.biz.controller;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.mini.mybigscreen.Model.PageResult;
|
||||
import com.mini.mybigscreen.Model.Result;
|
||||
import com.mini.mybigscreen.biz.domain.WebsiteStorage;
|
||||
import com.mini.mybigscreen.biz.service.WebsiteStorageService;
|
||||
import com.mini.mybigscreen.utils.PageUtil;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 网站信息存储表,用于记录网站登录信息及相关信息 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/biz/websiteStorage")
|
||||
public class WebsiteStorageController {
|
||||
|
||||
|
||||
@Resource
|
||||
private WebsiteStorageService storageService;
|
||||
|
||||
|
||||
@GetMapping("list")
|
||||
public Result<?> getList(Integer pageNum, Integer pageSize,
|
||||
String websiteName) {
|
||||
QueryWrapper<WebsiteStorage> query = new QueryWrapper<>();
|
||||
query.like(StrUtil.isNotBlank(websiteName), "website_name", websiteName)
|
||||
.orderByDesc("create_time");
|
||||
List<WebsiteStorage> list = storageService.list(query);
|
||||
PageUtil<?> util = new PageUtil<>(pageNum, pageSize, list);
|
||||
PageResult<?> result = new PageResult<>(util.OkData(), pageNum, pageSize, list.size());
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
110
src/main/java/com/mini/mybigscreen/biz/domain/Company.java
Normal file
110
src/main/java/com/mini/mybigscreen/biz/domain/Company.java
Normal file
@@ -0,0 +1,110 @@
|
||||
package com.mini.mybigscreen.biz.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 公司信息表,用于存储公司基本信息
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("biz_company")
|
||||
public class Company implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 记录日期
|
||||
*/
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 公司标识
|
||||
*/
|
||||
@TableId(value = "company_id", type = IdType.AUTO)
|
||||
private String companyId;
|
||||
|
||||
/**
|
||||
* 公司名称
|
||||
*/
|
||||
@TableField("company_name")
|
||||
private String companyName;
|
||||
|
||||
/**
|
||||
* 公司地址
|
||||
*/
|
||||
@TableField("address")
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 公司联系人姓名
|
||||
*/
|
||||
@TableField("contact_person")
|
||||
private String contactPerson;
|
||||
|
||||
/**
|
||||
* 公司联系电话
|
||||
*/
|
||||
@TableField("phone_number")
|
||||
private String phoneNumber;
|
||||
|
||||
/**
|
||||
* 公司电子邮箱
|
||||
*/
|
||||
@TableField("email")
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 公司官方网站地址
|
||||
*/
|
||||
@TableField("website_url")
|
||||
private String websiteUrl;
|
||||
|
||||
/**
|
||||
* 其他说明或备注
|
||||
*/
|
||||
@TableField("remarks")
|
||||
private String remarks;
|
||||
|
||||
/**
|
||||
* 公司状态
|
||||
*/
|
||||
@TableField("comp_status")
|
||||
private String compStatus;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
@TableField("f_tenant_id")
|
||||
private String fTenantId;
|
||||
|
||||
/**
|
||||
* 流程id
|
||||
*/
|
||||
@TableField("f_flow_id")
|
||||
private String fFlowId;
|
||||
|
||||
/**
|
||||
* 流程任务主键
|
||||
*/
|
||||
@TableField("f_flow_task_id")
|
||||
private String fFlowTaskId;
|
||||
|
||||
/**
|
||||
* 流程任务状态
|
||||
*/
|
||||
@TableField("f_flow_state")
|
||||
private Integer fFlowState;
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.mini.mybigscreen.biz.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 员工表用于存储公司内部员工的基本信息
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("biz_resume_employee")
|
||||
public class ResumeEmployee implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 记录时间
|
||||
*/
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 唯一标识
|
||||
*/
|
||||
@TableId(value = "employee_id", type = IdType.AUTO)
|
||||
private String employeeId;
|
||||
|
||||
/**
|
||||
* 员工姓名
|
||||
*/
|
||||
@TableField("employee_name")
|
||||
private String employeeName;
|
||||
|
||||
/**
|
||||
* 员工编号
|
||||
*/
|
||||
@TableField("employee_code")
|
||||
private String employeeCode;
|
||||
|
||||
/**
|
||||
* 电子邮件
|
||||
*/
|
||||
@TableField("email")
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 移动电话
|
||||
*/
|
||||
@TableField("phone_number")
|
||||
private String phoneNumber;
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
@TableField("sex")
|
||||
private String sex;
|
||||
|
||||
/**
|
||||
* 职位
|
||||
*/
|
||||
@TableField("employee_position")
|
||||
private String employeePosition;
|
||||
|
||||
/**
|
||||
* 入职日期
|
||||
*/
|
||||
@TableField("hire_date")
|
||||
private String hireDate;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@TableField("employee_status")
|
||||
private String employeeStatus;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
@TableField("f_tenant_id")
|
||||
private String fTenantId;
|
||||
|
||||
/**
|
||||
* 流程id
|
||||
*/
|
||||
@TableField("f_flow_id")
|
||||
private String fFlowId;
|
||||
|
||||
/**
|
||||
* 流程任务主键
|
||||
*/
|
||||
@TableField("f_flow_task_id")
|
||||
private String fFlowTaskId;
|
||||
|
||||
/**
|
||||
* 流程任务状态
|
||||
*/
|
||||
@TableField("f_flow_state")
|
||||
private Integer fFlowState;
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
package com.mini.mybigscreen.biz.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 网站信息存储表,用于记录网站登录信息及相关信息
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("biz_website_storage")
|
||||
public class WebsiteStorage implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 记录日期
|
||||
*/
|
||||
@TableField("create_time")
|
||||
private String createTime;
|
||||
|
||||
/**
|
||||
* 网站标识
|
||||
*/
|
||||
@TableId(value = "website_id", type = IdType.AUTO)
|
||||
private String websiteId;
|
||||
|
||||
/**
|
||||
* 网站的URL地址
|
||||
*/
|
||||
@TableField("website_url")
|
||||
private String websiteUrl;
|
||||
|
||||
/**
|
||||
* 网站的名称
|
||||
*/
|
||||
@TableField("website_name")
|
||||
private String websiteName;
|
||||
|
||||
/**
|
||||
* 登录账号
|
||||
*/
|
||||
@TableField("web_account")
|
||||
private String webAccount;
|
||||
|
||||
/**
|
||||
* 登录密码,建议加密存储
|
||||
*/
|
||||
@TableField("web_password")
|
||||
private String webPassword;
|
||||
|
||||
/**
|
||||
* 其他说明或注意事项
|
||||
*/
|
||||
@TableField("remarks")
|
||||
private String remarks;
|
||||
|
||||
/**
|
||||
* 所属公司名称
|
||||
*/
|
||||
@TableField("company_id")
|
||||
private String companyId;
|
||||
|
||||
/**
|
||||
* 当前使用人姓名或账号
|
||||
*/
|
||||
@TableField("employee_id")
|
||||
private String employeeId;
|
||||
|
||||
@TableField("login_user")
|
||||
private String loginUser;
|
||||
|
||||
/**
|
||||
* 网站状态
|
||||
*/
|
||||
@TableField("storage_status")
|
||||
private String storageStatus;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
@TableField("f_tenant_id")
|
||||
private String fTenantId;
|
||||
|
||||
/**
|
||||
* 流程id
|
||||
*/
|
||||
@TableField("f_flow_id")
|
||||
private String fFlowId;
|
||||
|
||||
/**
|
||||
* 流程任务主键
|
||||
*/
|
||||
@TableField("f_flow_task_id")
|
||||
private String fFlowTaskId;
|
||||
|
||||
/**
|
||||
* 流程任务状态
|
||||
*/
|
||||
@TableField("f_flow_state")
|
||||
private Integer fFlowState;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.mini.mybigscreen.biz.mapper;
|
||||
|
||||
import com.mini.mybigscreen.biz.domain.Company;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 公司信息表,用于存储公司基本信息 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
public interface CompanyMapper extends BaseMapper<Company> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.mini.mybigscreen.biz.mapper;
|
||||
|
||||
import com.mini.mybigscreen.biz.domain.ResumeEmployee;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 员工表用于存储公司内部员工的基本信息 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
public interface ResumeEmployeeMapper extends BaseMapper<ResumeEmployee> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.mini.mybigscreen.biz.mapper;
|
||||
|
||||
import com.mini.mybigscreen.biz.domain.WebsiteStorage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 网站信息存储表,用于记录网站登录信息及相关信息 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
public interface WebsiteStorageMapper extends BaseMapper<WebsiteStorage> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.mini.mybigscreen.biz.service;
|
||||
|
||||
import com.mini.mybigscreen.biz.domain.Company;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 公司信息表,用于存储公司基本信息 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
public interface CompanyService extends IService<Company> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.mini.mybigscreen.biz.service;
|
||||
|
||||
import com.mini.mybigscreen.biz.domain.ResumeEmployee;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 员工表用于存储公司内部员工的基本信息 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
public interface ResumeEmployeeService extends IService<ResumeEmployee> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.mini.mybigscreen.biz.service;
|
||||
|
||||
import com.mini.mybigscreen.biz.domain.WebsiteStorage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 网站信息存储表,用于记录网站登录信息及相关信息 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
public interface WebsiteStorageService extends IService<WebsiteStorage> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mini.mybigscreen.biz.service.impl;
|
||||
|
||||
import com.mini.mybigscreen.biz.domain.Company;
|
||||
import com.mini.mybigscreen.biz.mapper.CompanyMapper;
|
||||
import com.mini.mybigscreen.biz.service.CompanyService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 公司信息表,用于存储公司基本信息 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
@Service
|
||||
public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> implements CompanyService {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mini.mybigscreen.biz.service.impl;
|
||||
|
||||
import com.mini.mybigscreen.biz.domain.ResumeEmployee;
|
||||
import com.mini.mybigscreen.biz.mapper.ResumeEmployeeMapper;
|
||||
import com.mini.mybigscreen.biz.service.ResumeEmployeeService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 员工表用于存储公司内部员工的基本信息 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
@Service
|
||||
public class ResumeEmployeeServiceImpl extends ServiceImpl<ResumeEmployeeMapper, ResumeEmployee> implements ResumeEmployeeService {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mini.mybigscreen.biz.service.impl;
|
||||
|
||||
import com.mini.mybigscreen.biz.domain.WebsiteStorage;
|
||||
import com.mini.mybigscreen.biz.mapper.WebsiteStorageMapper;
|
||||
import com.mini.mybigscreen.biz.service.WebsiteStorageService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 网站信息存储表,用于记录网站登录信息及相关信息 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2026-03-03
|
||||
*/
|
||||
@Service
|
||||
public class WebsiteStorageServiceImpl extends ServiceImpl<WebsiteStorageMapper, WebsiteStorage> implements WebsiteStorageService {
|
||||
|
||||
}
|
||||
@@ -29,7 +29,7 @@ public class demo {
|
||||
.pathInfo(Collections.singletonMap(OutputFile.xml, System.getProperty("user.dir") + "/src/main/resources/mapper"));
|
||||
})
|
||||
.strategyConfig(builder -> {
|
||||
builder.addInclude("erp_transaction_flow_view")
|
||||
builder.addInclude("biz_website_storage")
|
||||
.addTablePrefix("biz_")
|
||||
.entityBuilder()
|
||||
.enableLombok()
|
||||
|
||||
Reference in New Issue
Block a user