新增前端vue
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.jeesite.modules.biz.dao;
|
||||
|
||||
import com.jeesite.common.dao.CrudDao;
|
||||
import com.jeesite.common.mybatis.annotation.MyBatisDao;
|
||||
import com.jeesite.modules.biz.entity.BizQuickLogin;
|
||||
|
||||
/**
|
||||
* 系统信息DAO接口
|
||||
* @author gaoxq
|
||||
* @version 2025-11-26
|
||||
*/
|
||||
@MyBatisDao(dataSourceName="work")
|
||||
public interface BizQuickLoginDao extends CrudDao<BizQuickLogin> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,215 @@
|
||||
package com.jeesite.modules.biz.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import com.jeesite.common.mybatis.annotation.JoinTable;
|
||||
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
import com.jeesite.common.entity.DataEntity;
|
||||
import com.jeesite.common.mybatis.annotation.Column;
|
||||
import com.jeesite.common.mybatis.annotation.Table;
|
||||
import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 系统信息Entity
|
||||
* @author gaoxq
|
||||
* @version 2025-11-26
|
||||
*/
|
||||
@Table(name="biz_quick_login", alias="a", label="系统信息信息", columns={
|
||||
@Column(name="create_time", attrName="createTime", label="创建时间", isUpdate=false, isUpdateForce=true),
|
||||
@Column(name="id", attrName="id", label="自增主键", isPK=true),
|
||||
@Column(name="system_name", attrName="systemName", label="系统名称", queryType=QueryType.LIKE),
|
||||
@Column(name="homepage_url", attrName="homepageUrl", label="首页地址", isQuery=false),
|
||||
@Column(name="icon_class", attrName="iconClass", label="图标类名", isQuery=false),
|
||||
@Column(name="icon_color", attrName="iconColor", label="图标颜色", isQuery=false),
|
||||
@Column(name="sort_order", attrName="sortOrder", label="排序序号", isQuery=false),
|
||||
@Column(name="bg_color", attrName="bgColor", label="图标背景色", isQuery=false),
|
||||
@Column(name="mask_color", attrName="maskColor", label="悬浮遮罩色", isQuery=false),
|
||||
@Column(name="is_enabled", attrName="isEnabled", label="是否启用", isQuery=false),
|
||||
@Column(name="update_time", attrName="updateTime", label="更新时间", isQuery=false, isUpdateForce=true),
|
||||
@Column(name="f_tenant_id", attrName="ftenantId", label="租户id", isUpdate=false, isQuery=false),
|
||||
@Column(name="f_flow_id", attrName="fflowId", label="流程id", isUpdate=false, isQuery=false),
|
||||
@Column(name="f_flow_task_id", attrName="fflowTaskId", label="流程任务主键", isUpdate=false, isQuery=false),
|
||||
@Column(name="f_flow_state", attrName="fflowState", label="流程任务状态", isUpdate=false, isQuery=false, isUpdateForce=true),
|
||||
}, orderBy="a.id DESC"
|
||||
)
|
||||
public class BizQuickLogin extends DataEntity<BizQuickLogin> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private Date createTime; // 创建时间
|
||||
private String systemName; // 系统名称
|
||||
private String homepageUrl; // 首页地址
|
||||
private String iconClass; // 图标类名
|
||||
private String iconColor; // 图标颜色
|
||||
private Long sortOrder; // 排序序号
|
||||
private String bgColor; // 图标背景色
|
||||
private String maskColor; // 悬浮遮罩色
|
||||
private Long isEnabled; // 是否启用
|
||||
private Date updateTime; // 更新时间
|
||||
private String ftenantId; // 租户id
|
||||
private String fflowId; // 流程id
|
||||
private String fflowTaskId; // 流程任务主键
|
||||
private Integer fflowState; // 流程任务状态
|
||||
|
||||
public BizQuickLogin() {
|
||||
this(null);
|
||||
}
|
||||
|
||||
public BizQuickLogin(String id){
|
||||
super(id);
|
||||
}
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
@NotBlank(message="系统名称不能为空")
|
||||
@Size(min=0, max=100, message="系统名称长度不能超过 100 个字符")
|
||||
public String getSystemName() {
|
||||
return systemName;
|
||||
}
|
||||
|
||||
public void setSystemName(String systemName) {
|
||||
this.systemName = systemName;
|
||||
}
|
||||
|
||||
@NotBlank(message="首页地址不能为空")
|
||||
@Size(min=0, max=255, message="首页地址长度不能超过 255 个字符")
|
||||
public String getHomepageUrl() {
|
||||
return homepageUrl;
|
||||
}
|
||||
|
||||
public void setHomepageUrl(String homepageUrl) {
|
||||
this.homepageUrl = homepageUrl;
|
||||
}
|
||||
|
||||
@NotBlank(message="图标类名不能为空")
|
||||
@Size(min=0, max=50, message="图标类名长度不能超过 50 个字符")
|
||||
public String getIconClass() {
|
||||
return iconClass;
|
||||
}
|
||||
|
||||
public void setIconClass(String iconClass) {
|
||||
this.iconClass = iconClass;
|
||||
}
|
||||
|
||||
@NotBlank(message="图标颜色不能为空")
|
||||
@Size(min=0, max=20, message="图标颜色长度不能超过 20 个字符")
|
||||
public String getIconColor() {
|
||||
return iconColor;
|
||||
}
|
||||
|
||||
public void setIconColor(String iconColor) {
|
||||
this.iconColor = iconColor;
|
||||
}
|
||||
|
||||
@NotNull(message="排序序号不能为空")
|
||||
public Long getSortOrder() {
|
||||
return sortOrder;
|
||||
}
|
||||
|
||||
public void setSortOrder(Long sortOrder) {
|
||||
this.sortOrder = sortOrder;
|
||||
}
|
||||
|
||||
@NotBlank(message="图标背景色不能为空")
|
||||
@Size(min=0, max=52, message="图标背景色长度不能超过 52 个字符")
|
||||
public String getBgColor() {
|
||||
return bgColor;
|
||||
}
|
||||
|
||||
public void setBgColor(String bgColor) {
|
||||
this.bgColor = bgColor;
|
||||
}
|
||||
|
||||
@NotBlank(message="悬浮遮罩色不能为空")
|
||||
@Size(min=0, max=52, message="悬浮遮罩色长度不能超过 52 个字符")
|
||||
public String getMaskColor() {
|
||||
return maskColor;
|
||||
}
|
||||
|
||||
public void setMaskColor(String maskColor) {
|
||||
this.maskColor = maskColor;
|
||||
}
|
||||
|
||||
@NotNull(message="是否启用不能为空")
|
||||
public Long getIsEnabled() {
|
||||
return isEnabled;
|
||||
}
|
||||
|
||||
public void setIsEnabled(Long isEnabled) {
|
||||
this.isEnabled = isEnabled;
|
||||
}
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
@Size(min=0, max=50, message="租户id长度不能超过 50 个字符")
|
||||
public String getFtenantId() {
|
||||
return ftenantId;
|
||||
}
|
||||
|
||||
public void setFtenantId(String ftenantId) {
|
||||
this.ftenantId = ftenantId;
|
||||
}
|
||||
|
||||
@Size(min=0, max=50, message="流程id长度不能超过 50 个字符")
|
||||
public String getFflowId() {
|
||||
return fflowId;
|
||||
}
|
||||
|
||||
public void setFflowId(String fflowId) {
|
||||
this.fflowId = fflowId;
|
||||
}
|
||||
|
||||
@Size(min=0, max=50, message="流程任务主键长度不能超过 50 个字符")
|
||||
public String getFflowTaskId() {
|
||||
return fflowTaskId;
|
||||
}
|
||||
|
||||
public void setFflowTaskId(String fflowTaskId) {
|
||||
this.fflowTaskId = fflowTaskId;
|
||||
}
|
||||
|
||||
public Integer getFflowState() {
|
||||
return fflowState;
|
||||
}
|
||||
|
||||
public void setFflowState(Integer fflowState) {
|
||||
this.fflowState = fflowState;
|
||||
}
|
||||
|
||||
public Date getCreateTime_gte() {
|
||||
return sqlMap.getWhere().getValue("create_time", QueryType.GTE);
|
||||
}
|
||||
|
||||
public void setCreateTime_gte(Date createTime) {
|
||||
sqlMap.getWhere().and("create_time", QueryType.GTE, createTime);
|
||||
}
|
||||
|
||||
public Date getCreateTime_lte() {
|
||||
return sqlMap.getWhere().getValue("create_time", QueryType.LTE);
|
||||
}
|
||||
|
||||
public void setCreateTime_lte(Date createTime) {
|
||||
sqlMap.getWhere().and("create_time", QueryType.LTE, createTime);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.jeesite.modules.biz.service;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.jeesite.common.entity.Page;
|
||||
import com.jeesite.common.service.CrudService;
|
||||
import com.jeesite.modules.biz.entity.BizQuickLogin;
|
||||
import com.jeesite.modules.biz.dao.BizQuickLoginDao;
|
||||
|
||||
/**
|
||||
* 系统信息Service
|
||||
* @author gaoxq
|
||||
* @version 2025-11-26
|
||||
*/
|
||||
@Service
|
||||
public class BizQuickLoginService extends CrudService<BizQuickLoginDao, BizQuickLogin> {
|
||||
|
||||
/**
|
||||
* 获取单条数据
|
||||
* @param bizQuickLogin 主键
|
||||
*/
|
||||
@Override
|
||||
public BizQuickLogin get(BizQuickLogin bizQuickLogin) {
|
||||
return super.get(bizQuickLogin);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param bizQuickLogin 查询条件
|
||||
* @param bizQuickLogin page 分页对象
|
||||
*/
|
||||
@Override
|
||||
public Page<BizQuickLogin> findPage(BizQuickLogin bizQuickLogin) {
|
||||
return super.findPage(bizQuickLogin);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表数据
|
||||
* @param bizQuickLogin 查询条件
|
||||
*/
|
||||
@Override
|
||||
public List<BizQuickLogin> findList(BizQuickLogin bizQuickLogin) {
|
||||
return super.findList(bizQuickLogin);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存数据(插入或更新)
|
||||
* @param bizQuickLogin 数据对象
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public void save(BizQuickLogin bizQuickLogin) {
|
||||
super.save(bizQuickLogin);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
* @param bizQuickLogin 数据对象
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public void updateStatus(BizQuickLogin bizQuickLogin) {
|
||||
super.updateStatus(bizQuickLogin);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
* @param bizQuickLogin 数据对象
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public void delete(BizQuickLogin bizQuickLogin) {
|
||||
super.delete(bizQuickLogin);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.jeesite.modules.biz.web;
|
||||
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.jeesite.common.config.Global;
|
||||
import com.jeesite.common.entity.Page;
|
||||
import com.jeesite.common.web.BaseController;
|
||||
import com.jeesite.modules.biz.entity.BizQuickLogin;
|
||||
import com.jeesite.modules.biz.service.BizQuickLoginService;
|
||||
|
||||
/**
|
||||
* 系统信息Controller
|
||||
* @author gaoxq
|
||||
* @version 2025-11-26
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping(value = "${adminPath}/biz/quickLogin")
|
||||
public class BizQuickLoginController extends BaseController {
|
||||
|
||||
private final BizQuickLoginService bizQuickLoginService;
|
||||
|
||||
public BizQuickLoginController(BizQuickLoginService bizQuickLoginService) {
|
||||
this.bizQuickLoginService = bizQuickLoginService;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取数据
|
||||
*/
|
||||
@ModelAttribute
|
||||
public BizQuickLogin get(String id, boolean isNewRecord) {
|
||||
return bizQuickLoginService.get(id, isNewRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
@RequiresPermissions("biz:quickLogin:view")
|
||||
@RequestMapping(value = {"list", ""})
|
||||
public String list(BizQuickLogin bizQuickLogin, Model model) {
|
||||
model.addAttribute("bizQuickLogin", bizQuickLogin);
|
||||
return "modules/biz/bizQuickLoginList";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表数据
|
||||
*/
|
||||
@RequiresPermissions("biz:quickLogin:view")
|
||||
@RequestMapping(value = "listData")
|
||||
@ResponseBody
|
||||
public Page<BizQuickLogin> listData(BizQuickLogin bizQuickLogin, HttpServletRequest request, HttpServletResponse response) {
|
||||
bizQuickLogin.setPage(new Page<>(request, response));
|
||||
Page<BizQuickLogin> page = bizQuickLoginService.findPage(bizQuickLogin);
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看编辑表单
|
||||
*/
|
||||
@RequiresPermissions("biz:quickLogin:view")
|
||||
@RequestMapping(value = "form")
|
||||
public String form(BizQuickLogin bizQuickLogin, Model model) {
|
||||
model.addAttribute("bizQuickLogin", bizQuickLogin);
|
||||
return "modules/biz/bizQuickLoginForm";
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存数据
|
||||
*/
|
||||
@RequiresPermissions("biz:quickLogin:edit")
|
||||
@PostMapping(value = "save")
|
||||
@ResponseBody
|
||||
public String save(@Validated BizQuickLogin bizQuickLogin) {
|
||||
bizQuickLoginService.save(bizQuickLogin);
|
||||
return renderResult(Global.TRUE, text("保存系统信息成功!"));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*/
|
||||
@RequiresPermissions("biz:quickLogin:edit")
|
||||
@RequestMapping(value = "delete")
|
||||
@ResponseBody
|
||||
public String delete(BizQuickLogin bizQuickLogin) {
|
||||
bizQuickLoginService.delete(bizQuickLogin);
|
||||
return renderResult(Global.TRUE, text("删除系统信息成功!"));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
# 产品或项目名称、软件开发公司名称
|
||||
productName: My-Worker
|
||||
companyName:
|
||||
companyName: c
|
||||
|
||||
# 产品版本、版权年份
|
||||
productVersion: V5.14
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?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.jeesite.modules.biz.dao.BizQuickLoginDao">
|
||||
|
||||
<!-- 查询数据
|
||||
<select id="findList" resultType="BizQuickLogin">
|
||||
SELECT ${sqlMap.column.toSql()}
|
||||
FROM ${sqlMap.table.toSql()}
|
||||
<where>
|
||||
${sqlMap.where.toSql()}
|
||||
</where>
|
||||
ORDER BY ${sqlMap.order.toSql()}
|
||||
</select> -->
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user