biz_category

This commit is contained in:
thinkgem
2024-05-11 14:23:59 +08:00
parent a3a7bd0230
commit 92870be96e
29 changed files with 247 additions and 192 deletions

View File

@@ -0,0 +1,32 @@
/**
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
*/
package com.jeesite.autoconfigure.sys;
import com.jeesite.common.mybatis.MyBatisFactoryBean;
import com.jeesite.modules.biz.service.BizCategoryService;
import com.jeesite.modules.biz.service.support.BizCategoryServiceSupport;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
/**
* 系统核心实现类
* @author ThinkGem
* @version 2018-10-13
*/
@AutoConfiguration
@ConditionalOnBean(MyBatisFactoryBean.class)
@ConditionalOnProperty(name="user.enabled", havingValue="true", matchIfMissing=true)
public class BizAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public BizCategoryService bizCategoryService(){
return new BizCategoryServiceSupport();
}
}

View File

@@ -0,0 +1,32 @@
/**
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
*/
package com.jeesite.autoconfigure.sys;
import com.jeesite.common.mybatis.MyBatisFactoryBean;
import com.jeesite.modules.msg.service.MsgInnerService;
import com.jeesite.modules.msg.service.support.MsgInnerServiceSupport;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
/**
* 系统核心实现类
* @author ThinkGem
* @version 2018-10-13
*/
@AutoConfiguration
@ConditionalOnBean(MyBatisFactoryBean.class)
@ConditionalOnProperty(name="user.enabled", havingValue="true", matchIfMissing=true)
public class MsgAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public MsgInnerService msgInnerService(){
return new MsgInnerServiceSupport();
}
}

View File

@@ -5,7 +5,6 @@
package com.jeesite.autoconfigure.sys;
import com.jeesite.common.mybatis.MyBatisFactoryBean;
import com.jeesite.modules.msg.service.MsgInnerService;
import com.jeesite.modules.sys.service.*;
import com.jeesite.modules.sys.service.support.*;
import org.springframework.boot.autoconfigure.AutoConfiguration;
@@ -65,17 +64,5 @@ public class SysAutoConfiguration {
public PostService postService(){
return new PostServiceSupport();
}
@Bean
@ConditionalOnMissingBean
public MsgInnerService msgInnerService(){
return new MsgInnerService();
}
@Bean
@ConditionalOnMissingBean
public BizCategoryService bizCategoryService(){
return new BizCategoryServiceSupport();
}
}

View File

@@ -2,11 +2,11 @@
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
*/
package com.jeesite.modules.sys.dao;
package com.jeesite.modules.biz.dao;
import com.jeesite.common.dao.TreeDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.sys.entity.BizCategory;
import com.jeesite.modules.biz.entity.BizCategory;
/**
* 业务分类DAO接口

View File

@@ -2,7 +2,7 @@
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
*/
package com.jeesite.modules.sys.entity;
package com.jeesite.modules.biz.entity;
import com.jeesite.common.entity.BaseEntity;
import com.jeesite.common.entity.DataEntity;
@@ -19,7 +19,7 @@ import jakarta.validation.constraints.Size;
* @author ThinkGem
* @version 2019-08-12
*/
@Table(name="${_prefix}sys_biz_category", alias="a", columns={
@Table(name="${_prefix}biz_category", alias="a", columns={
@Column(name="category_code", attrName="categoryCode", label="业务分类", isPK=true),
@Column(name="view_code", attrName="viewCode", label="业务分类"),
@Column(includeEntity=TreeEntity.class),

View File

@@ -2,10 +2,10 @@
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
*/
package com.jeesite.modules.sys.service;
package com.jeesite.modules.biz.service;
import com.jeesite.common.service.api.TreeServiceApi;
import com.jeesite.modules.sys.entity.BizCategory;
import com.jeesite.modules.biz.entity.BizCategory;
import java.util.List;

View File

@@ -2,12 +2,12 @@
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
*/
package com.jeesite.modules.sys.service.support;
package com.jeesite.modules.biz.service.support;
import com.jeesite.common.service.TreeService;
import com.jeesite.modules.sys.dao.BizCategoryDao;
import com.jeesite.modules.sys.entity.BizCategory;
import com.jeesite.modules.sys.service.BizCategoryService;
import com.jeesite.modules.biz.dao.BizCategoryDao;
import com.jeesite.modules.biz.entity.BizCategory;
import com.jeesite.modules.biz.service.BizCategoryService;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@@ -18,7 +18,7 @@ import java.util.List;
* @version 2019-08-12
*/
public class BizCategoryServiceSupport extends TreeService<BizCategoryDao, BizCategory>
implements BizCategoryService{
implements BizCategoryService {
/**
* 获取单条数据

View File

@@ -2,7 +2,7 @@
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
*/
package com.jeesite.modules.sys.web;
package com.jeesite.modules.biz.web;
import com.jeesite.common.collect.ListUtils;
import com.jeesite.common.collect.MapUtils;
@@ -10,8 +10,8 @@ import com.jeesite.common.config.Global;
import com.jeesite.common.idgen.IdGen;
import com.jeesite.common.lang.StringUtils;
import com.jeesite.common.web.BaseController;
import com.jeesite.modules.sys.entity.BizCategory;
import com.jeesite.modules.sys.service.BizCategoryService;
import com.jeesite.modules.biz.entity.BizCategory;
import com.jeesite.modules.biz.service.BizCategoryService;
import com.jeesite.modules.sys.utils.UserUtils;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.shiro.authz.annotation.RequiresPermissions;
@@ -34,7 +34,7 @@ import java.util.Map;
*/
@Controller
@Tag(name = "BizCategory - 业务分类")
@RequestMapping(value = "${adminPath}/sys/bizCategory")
@RequestMapping(value = "${adminPath}/biz/bizCategory")
public class BizCategoryController extends BaseController {
@Autowired
@@ -51,27 +51,27 @@ public class BizCategoryController extends BaseController {
/**
* 管理首页
*/
@RequiresPermissions("sys:bizCategory:view")
@RequiresPermissions("biz:bizCategory:view")
@RequestMapping(value = "index")
public String index(BizCategory bizCategory, Model model) {
model.addAttribute("bizCategory", bizCategory);
return "modules/sys/bizCategoryIndex";
return "modules/biz/bizCategoryIndex";
}
/**
* 查询列表
*/
@RequiresPermissions("sys:bizCategory:view")
@RequiresPermissions("biz:bizCategory:view")
@RequestMapping(value = {"list", ""})
public String list(BizCategory bizCategory, Model model) {
model.addAttribute("bizCategory", bizCategory);
return "modules/sys/bizCategoryList";
return "modules/biz/bizCategoryList";
}
/**
* 查询列表数据
*/
@RequiresPermissions("sys:bizCategory:view")
@RequiresPermissions("biz:bizCategory:view")
@RequestMapping(value = "listData")
@ResponseBody
public List<BizCategory> listData(BizCategory bizCategory) {
@@ -94,19 +94,19 @@ public class BizCategoryController extends BaseController {
/**
* 查看编辑表单
*/
@RequiresPermissions("sys:bizCategory:view")
@RequiresPermissions("biz:bizCategory:view")
@RequestMapping(value = "form")
public String form(BizCategory bizCategory, Model model) {
// 创建并初始化下一个节点信息
bizCategory = createNextNode(bizCategory);
model.addAttribute("bizCategory", bizCategory);
return "modules/sys/bizCategoryForm";
return "modules/biz/bizCategoryForm";
}
/**
* 创建并初始化下一个节点信息排序号默认值
*/
@RequiresPermissions("sys:bizCategory:edit")
@RequiresPermissions("biz:bizCategory:edit")
@RequestMapping(value = "createNextNode")
@ResponseBody
public BizCategory createNextNode(BizCategory bizCategory) {
@@ -135,7 +135,7 @@ public class BizCategoryController extends BaseController {
/**
* 保存业务分类
*/
@RequiresPermissions("sys:bizCategory:edit")
@RequiresPermissions("biz:bizCategory:edit")
@PostMapping(value = "save")
@ResponseBody
public String save(@Validated BizCategory bizCategory) {
@@ -146,7 +146,7 @@ public class BizCategoryController extends BaseController {
/**
* 停用业务分类
*/
@RequiresPermissions("sys:bizCategory:edit")
@RequiresPermissions("biz:bizCategory:edit")
@RequestMapping(value = "disable")
@ResponseBody
public String disable(BizCategory bizCategory) {
@@ -165,7 +165,7 @@ public class BizCategoryController extends BaseController {
/**
* 启用业务分类
*/
@RequiresPermissions("sys:bizCategory:edit")
@RequiresPermissions("biz:bizCategory:edit")
@RequestMapping(value = "enable")
@ResponseBody
public String enable(BizCategory bizCategory) {
@@ -177,7 +177,7 @@ public class BizCategoryController extends BaseController {
/**
* 删除业务分类
*/
@RequiresPermissions("sys:bizCategory:edit")
@RequiresPermissions("biz:bizCategory:edit")
@RequestMapping(value = "delete")
@ResponseBody
public String delete(BizCategory bizCategory) {
@@ -192,7 +192,7 @@ public class BizCategoryController extends BaseController {
* @param isShowCode 是否显示编码true or 1显示在左侧2显示在右侧false or null不显示
* @return
*/
@RequiresPermissions("sys:bizCategory:view")
@RequiresPermissions("biz:bizCategory:view")
@RequestMapping(value = "treeData")
@ResponseBody
public List<Map<String, Object>> treeData(String excludeCode, String parentCode, String isShowCode) {
@@ -232,7 +232,7 @@ public class BizCategoryController extends BaseController {
/**
* 修复表结构相关数据
*/
@RequiresPermissions("sys:bizCategory:edit")
@RequiresPermissions("biz:bizCategory:edit")
@RequestMapping(value = "fixTreeData")
@ResponseBody
public String fixTreeData(BizCategory bizCategory){

View File

@@ -7,6 +7,8 @@ package com.jeesite.modules.sys.db;
import com.jeesite.common.config.Global;
import com.jeesite.common.idgen.IdGen;
import com.jeesite.common.tests.BaseInitDataTests;
import com.jeesite.modules.biz.entity.BizCategory;
import com.jeesite.modules.biz.service.BizCategoryService;
import com.jeesite.modules.gen.utils.GenUtils;
import com.jeesite.modules.job.dao.JobDao;
import com.jeesite.modules.job.entity.JobEntity;

View File

@@ -1,2 +1,4 @@
com.jeesite.autoconfigure.core.ShiroAutoConfiguration
com.jeesite.autoconfigure.sys.SysAutoConfiguration
com.jeesite.autoconfigure.sys.SysAutoConfiguration
com.jeesite.autoconfigure.sys.BizAutoConfiguration
com.jeesite.autoconfigure.sys.MsgAutoConfiguration

View File

@@ -80,7 +80,7 @@ CREATE TABLE ${_prefix}sys_area
-- 业务分类
CREATE TABLE ${_prefix}sys_biz_category
CREATE TABLE ${_prefix}biz_category
(
category_code varchar(64) NOT NULL,
view_code varchar(500),

View File

@@ -80,7 +80,7 @@ CREATE TABLE ${_prefix}sys_area
-- 业务分类
CREATE TABLE ${_prefix}sys_biz_category
CREATE TABLE ${_prefix}biz_category
(
category_code varchar(64) NOT NULL,
view_code varchar(500),
@@ -1058,25 +1058,25 @@ COMMENT ON COLUMN ${_prefix}sys_area.create_date IS '创建时间';
COMMENT ON COLUMN ${_prefix}sys_area.update_by IS '更新者';
COMMENT ON COLUMN ${_prefix}sys_area.update_date IS '更新时间';
COMMENT ON COLUMN ${_prefix}sys_area.remarks IS '备注信息';
COMMENT ON TABLE ${_prefix}sys_biz_category IS '业务分类';
COMMENT ON COLUMN ${_prefix}sys_biz_category.category_code IS '流程分类';
COMMENT ON COLUMN ${_prefix}sys_biz_category.view_code IS '分类代码';
COMMENT ON COLUMN ${_prefix}sys_biz_category.category_name IS '分类名称';
COMMENT ON COLUMN ${_prefix}sys_biz_category.parent_code IS '父级编号';
COMMENT ON COLUMN ${_prefix}sys_biz_category.parent_codes IS '所有父级编号';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_sort IS '排序号(升序)';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_sorts IS '所有排序号';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_leaf IS '是否最末级';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_level IS '层次级别';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_names IS '全节点名';
COMMENT ON COLUMN ${_prefix}sys_biz_category.status IS '状态0正常 1删除 2停用';
COMMENT ON COLUMN ${_prefix}sys_biz_category.create_by IS '创建者';
COMMENT ON COLUMN ${_prefix}sys_biz_category.create_date IS '创建时间';
COMMENT ON COLUMN ${_prefix}sys_biz_category.update_by IS '更新者';
COMMENT ON COLUMN ${_prefix}sys_biz_category.update_date IS '更新时间';
COMMENT ON COLUMN ${_prefix}sys_biz_category.remarks IS '备注信息';
COMMENT ON COLUMN ${_prefix}sys_biz_category.corp_code IS '租户代码';
COMMENT ON COLUMN ${_prefix}sys_biz_category.corp_name IS '租户名称';
COMMENT ON TABLE ${_prefix}biz_category IS '业务分类';
COMMENT ON COLUMN ${_prefix}biz_category.category_code IS '流程分类';
COMMENT ON COLUMN ${_prefix}biz_category.view_code IS '分类代码';
COMMENT ON COLUMN ${_prefix}biz_category.category_name IS '分类名称';
COMMENT ON COLUMN ${_prefix}biz_category.parent_code IS '父级编号';
COMMENT ON COLUMN ${_prefix}biz_category.parent_codes IS '所有父级编号';
COMMENT ON COLUMN ${_prefix}biz_category.tree_sort IS '排序号(升序)';
COMMENT ON COLUMN ${_prefix}biz_category.tree_sorts IS '所有排序号';
COMMENT ON COLUMN ${_prefix}biz_category.tree_leaf IS '是否最末级';
COMMENT ON COLUMN ${_prefix}biz_category.tree_level IS '层次级别';
COMMENT ON COLUMN ${_prefix}biz_category.tree_names IS '全节点名';
COMMENT ON COLUMN ${_prefix}biz_category.status IS '状态0正常 1删除 2停用';
COMMENT ON COLUMN ${_prefix}biz_category.create_by IS '创建者';
COMMENT ON COLUMN ${_prefix}biz_category.create_date IS '创建时间';
COMMENT ON COLUMN ${_prefix}biz_category.update_by IS '更新者';
COMMENT ON COLUMN ${_prefix}biz_category.update_date IS '更新时间';
COMMENT ON COLUMN ${_prefix}biz_category.remarks IS '备注信息';
COMMENT ON COLUMN ${_prefix}biz_category.corp_code IS '租户代码';
COMMENT ON COLUMN ${_prefix}biz_category.corp_name IS '租户名称';
COMMENT ON TABLE ${_prefix}sys_company IS '公司表';
COMMENT ON COLUMN ${_prefix}sys_company.company_code IS '公司编码';
COMMENT ON COLUMN ${_prefix}sys_company.view_code IS '公司代码';

View File

@@ -80,7 +80,7 @@ CREATE TABLE [${_prefix}sys_area]
-- 业务分类
CREATE TABLE [${_prefix}sys_biz_category]
CREATE TABLE [${_prefix}biz_category]
(
[category_code] varchar(64) NOT NULL,
[view_code] varchar(500),

View File

@@ -81,7 +81,7 @@ CREATE TABLE ${_prefix}sys_area
-- 业务分类
CREATE TABLE ${_prefix}sys_biz_category
CREATE TABLE ${_prefix}biz_category
(
category_code varchar(64) NOT NULL COMMENT '流程分类',
view_code varchar(500) COMMENT '分类代码',

View File

@@ -80,7 +80,7 @@ CREATE TABLE ${_prefix}sys_area
-- 业务分类
CREATE TABLE ${_prefix}sys_biz_category
CREATE TABLE ${_prefix}biz_category
(
category_code varchar2(64) NOT NULL,
view_code varchar2(500),
@@ -1058,25 +1058,25 @@ COMMENT ON COLUMN ${_prefix}sys_area.create_date IS '创建时间';
COMMENT ON COLUMN ${_prefix}sys_area.update_by IS '更新者';
COMMENT ON COLUMN ${_prefix}sys_area.update_date IS '更新时间';
COMMENT ON COLUMN ${_prefix}sys_area.remarks IS '备注信息';
COMMENT ON TABLE ${_prefix}sys_biz_category IS '业务分类';
COMMENT ON COLUMN ${_prefix}sys_biz_category.category_code IS '流程分类';
COMMENT ON COLUMN ${_prefix}sys_biz_category.view_code IS '分类代码';
COMMENT ON COLUMN ${_prefix}sys_biz_category.category_name IS '分类名称';
COMMENT ON COLUMN ${_prefix}sys_biz_category.parent_code IS '父级编号';
COMMENT ON COLUMN ${_prefix}sys_biz_category.parent_codes IS '所有父级编号';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_sort IS '排序号(升序)';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_sorts IS '所有排序号';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_leaf IS '是否最末级';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_level IS '层次级别';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_names IS '全节点名';
COMMENT ON COLUMN ${_prefix}sys_biz_category.status IS '状态0正常 1删除 2停用';
COMMENT ON COLUMN ${_prefix}sys_biz_category.create_by IS '创建者';
COMMENT ON COLUMN ${_prefix}sys_biz_category.create_date IS '创建时间';
COMMENT ON COLUMN ${_prefix}sys_biz_category.update_by IS '更新者';
COMMENT ON COLUMN ${_prefix}sys_biz_category.update_date IS '更新时间';
COMMENT ON COLUMN ${_prefix}sys_biz_category.remarks IS '备注信息';
COMMENT ON COLUMN ${_prefix}sys_biz_category.corp_code IS '租户代码';
COMMENT ON COLUMN ${_prefix}sys_biz_category.corp_name IS '租户名称';
COMMENT ON TABLE ${_prefix}biz_category IS '业务分类';
COMMENT ON COLUMN ${_prefix}biz_category.category_code IS '流程分类';
COMMENT ON COLUMN ${_prefix}biz_category.view_code IS '分类代码';
COMMENT ON COLUMN ${_prefix}biz_category.category_name IS '分类名称';
COMMENT ON COLUMN ${_prefix}biz_category.parent_code IS '父级编号';
COMMENT ON COLUMN ${_prefix}biz_category.parent_codes IS '所有父级编号';
COMMENT ON COLUMN ${_prefix}biz_category.tree_sort IS '排序号(升序)';
COMMENT ON COLUMN ${_prefix}biz_category.tree_sorts IS '所有排序号';
COMMENT ON COLUMN ${_prefix}biz_category.tree_leaf IS '是否最末级';
COMMENT ON COLUMN ${_prefix}biz_category.tree_level IS '层次级别';
COMMENT ON COLUMN ${_prefix}biz_category.tree_names IS '全节点名';
COMMENT ON COLUMN ${_prefix}biz_category.status IS '状态0正常 1删除 2停用';
COMMENT ON COLUMN ${_prefix}biz_category.create_by IS '创建者';
COMMENT ON COLUMN ${_prefix}biz_category.create_date IS '创建时间';
COMMENT ON COLUMN ${_prefix}biz_category.update_by IS '更新者';
COMMENT ON COLUMN ${_prefix}biz_category.update_date IS '更新时间';
COMMENT ON COLUMN ${_prefix}biz_category.remarks IS '备注信息';
COMMENT ON COLUMN ${_prefix}biz_category.corp_code IS '租户代码';
COMMENT ON COLUMN ${_prefix}biz_category.corp_name IS '租户名称';
COMMENT ON TABLE ${_prefix}sys_company IS '公司表';
COMMENT ON COLUMN ${_prefix}sys_company.company_code IS '公司编码';
COMMENT ON COLUMN ${_prefix}sys_company.view_code IS '公司代码';

View File

@@ -80,7 +80,7 @@ CREATE TABLE ${_prefix}sys_area
-- 业务分类
CREATE TABLE ${_prefix}sys_biz_category
CREATE TABLE ${_prefix}biz_category
(
category_code varchar(64) NOT NULL,
view_code varchar(500),
@@ -1058,25 +1058,25 @@ COMMENT ON COLUMN ${_prefix}sys_area.create_date IS '创建时间';
COMMENT ON COLUMN ${_prefix}sys_area.update_by IS '更新者';
COMMENT ON COLUMN ${_prefix}sys_area.update_date IS '更新时间';
COMMENT ON COLUMN ${_prefix}sys_area.remarks IS '备注信息';
COMMENT ON TABLE ${_prefix}sys_biz_category IS '业务分类';
COMMENT ON COLUMN ${_prefix}sys_biz_category.category_code IS '流程分类';
COMMENT ON COLUMN ${_prefix}sys_biz_category.view_code IS '分类代码';
COMMENT ON COLUMN ${_prefix}sys_biz_category.category_name IS '分类名称';
COMMENT ON COLUMN ${_prefix}sys_biz_category.parent_code IS '父级编号';
COMMENT ON COLUMN ${_prefix}sys_biz_category.parent_codes IS '所有父级编号';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_sort IS '排序号(升序)';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_sorts IS '所有排序号';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_leaf IS '是否最末级';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_level IS '层次级别';
COMMENT ON COLUMN ${_prefix}sys_biz_category.tree_names IS '全节点名';
COMMENT ON COLUMN ${_prefix}sys_biz_category.status IS '状态0正常 1删除 2停用';
COMMENT ON COLUMN ${_prefix}sys_biz_category.create_by IS '创建者';
COMMENT ON COLUMN ${_prefix}sys_biz_category.create_date IS '创建时间';
COMMENT ON COLUMN ${_prefix}sys_biz_category.update_by IS '更新者';
COMMENT ON COLUMN ${_prefix}sys_biz_category.update_date IS '更新时间';
COMMENT ON COLUMN ${_prefix}sys_biz_category.remarks IS '备注信息';
COMMENT ON COLUMN ${_prefix}sys_biz_category.corp_code IS '租户代码';
COMMENT ON COLUMN ${_prefix}sys_biz_category.corp_name IS '租户名称';
COMMENT ON TABLE ${_prefix}biz_category IS '业务分类';
COMMENT ON COLUMN ${_prefix}biz_category.category_code IS '流程分类';
COMMENT ON COLUMN ${_prefix}biz_category.view_code IS '分类代码';
COMMENT ON COLUMN ${_prefix}biz_category.category_name IS '分类名称';
COMMENT ON COLUMN ${_prefix}biz_category.parent_code IS '父级编号';
COMMENT ON COLUMN ${_prefix}biz_category.parent_codes IS '所有父级编号';
COMMENT ON COLUMN ${_prefix}biz_category.tree_sort IS '排序号(升序)';
COMMENT ON COLUMN ${_prefix}biz_category.tree_sorts IS '所有排序号';
COMMENT ON COLUMN ${_prefix}biz_category.tree_leaf IS '是否最末级';
COMMENT ON COLUMN ${_prefix}biz_category.tree_level IS '层次级别';
COMMENT ON COLUMN ${_prefix}biz_category.tree_names IS '全节点名';
COMMENT ON COLUMN ${_prefix}biz_category.status IS '状态0正常 1删除 2停用';
COMMENT ON COLUMN ${_prefix}biz_category.create_by IS '创建者';
COMMENT ON COLUMN ${_prefix}biz_category.create_date IS '创建时间';
COMMENT ON COLUMN ${_prefix}biz_category.update_by IS '更新者';
COMMENT ON COLUMN ${_prefix}biz_category.update_date IS '更新时间';
COMMENT ON COLUMN ${_prefix}biz_category.remarks IS '备注信息';
COMMENT ON COLUMN ${_prefix}biz_category.corp_code IS '租户代码';
COMMENT ON COLUMN ${_prefix}biz_category.corp_name IS '租户名称';
COMMENT ON TABLE ${_prefix}sys_company IS '公司表';
COMMENT ON COLUMN ${_prefix}sys_company.company_code IS '公司编码';
COMMENT ON COLUMN ${_prefix}sys_company.view_code IS '公司代码';

View File

@@ -1,6 +1,6 @@
<?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.sys.dao.BizCategoryDao">
<mapper namespace="com.jeesite.modules.biz.dao.BizCategoryDao">
<!-- 查询数据
<select id="findList" resultType="BizCategory">

View File

@@ -9,7 +9,7 @@
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
</div>
</div>
<#form:form id="inputForm" model="${bizCategory}" action="${ctx}/sys/bizCategory/save" method="post" class="form-horizontal">
<#form:form id="inputForm" model="${bizCategory}" action="${ctx}/biz/bizCategory/save" method="post" class="form-horizontal">
<div class="box-body mt10">
<div class="row">
<div class="col-xs-6">
@@ -18,7 +18,7 @@
<div class="col-sm-8">
<#form:treeselect id="parent" title="${text('上级分类')}"
path="parent.id" labelPath="parent.categoryName"
url="${ctx}/sys/bizCategory/treeData?excludeCode=${bizCategory.id}"
url="${ctx}/biz/bizCategory/treeData?excludeCode=${bizCategory.id}"
class="" allowClear="true" canSelectRoot="true" canSelectParent="true"/>
</div>
</div>
@@ -70,7 +70,7 @@
<div class="box-footer">
<div class="row">
<div class="col-sm-offset-2 col-sm-10">
<% if (hasPermi('sys:bizCategory:edit')){ %>
<% if (hasPermi('biz:bizCategory:edit')){ %>
<button type="submit" class="btn btn-sm btn-primary" id="btnSubmit"><i class="fa fa-check"></i> ${text('保 存')}</button>&nbsp;
<% } %>
<button type="button" class="btn btn-sm btn-default" id="btnCancel" onclick="js.closeCurrentTabPage()"><i class="fa fa-reply-all"></i> ${text('关 闭')}</button>
@@ -100,7 +100,7 @@ $('#inputForm').validate({
function treeselectCallback(id, act, index, layero){
if (id == 'parent' && (act == 'ok' || act == 'clear')){
// 创建并初始化下一个节点信息,如:排序号、默认值
$.get('${ctx}/sys/bizCategory/createNextNode?parentCode='
$.get('${ctx}/biz/bizCategory/createNextNode?parentCode='
+$('#parentCode').val(), function(data){
$('#treeSort').val(data.treeSort);
});

View File

@@ -20,7 +20,7 @@
</div>
<div class="ui-layout-center">
<iframe id="mainFrame" name="mainFrame" class="ui-layout-content p0"
src="${ctx}/sys/bizCategory/list"></iframe>
src="${ctx}/biz/bizCategory/list"></iframe>
</div>
<% } %>
<script>
@@ -33,7 +33,7 @@ $('body').layout({
var win = $("#mainFrame")[0].contentWindow;
//# // 树结构初始化加载
var setting = {view:{selectedMulti:false},data:{key:{title:"title"},simpleData:{enable:true}},
async:{enable:true,autoParam:["id=parentCode"],url:"${ctx}/sys/bizCategory/treeData"},
async:{enable:true,autoParam:["id=parentCode"],url:"${ctx}/biz/bizCategory/treeData"},
callback:{onClick:function(event, treeId, treeNode){
tree.expandNode(treeNode);
win.$('button[type=reset]').click();

View File

@@ -10,14 +10,14 @@
<a href="#" class="btn btn-default" id="btnRefreshTree" title="${text('刷新')}"><i class="fa fa-refresh"></i> ${text('刷新')}</a>
<a href="#" class="btn btn-default" id="btnExpandTreeNode" title="${text('展开一级')}"><i class="fa fa-angle-double-down"></i> ${text('展开')}</a>
<a href="#" class="btn btn-default" id="btnCollapseTreeNode" title="${text('折叠全部')}"><i class="fa fa-angle-double-up"></i> ${text('折叠')}</a>
<% if(hasPermi('sys:bizCategory:edit')){ %>
<a href="${ctx}/sys/bizCategory/form" class="btn btn-default btnTool" title="${text('新增分类')}" data-layer="true" data-layer-width="900" data-layer-height="400"><i class="fa fa-plus"></i> ${text('新增')}</a>
<% if(hasPermi('biz:bizCategory:edit')){ %>
<a href="${ctx}/biz/bizCategory/form" class="btn btn-default btnTool" title="${text('新增分类')}" data-layer="true" data-layer-width="900" data-layer-height="350"><i class="fa fa-plus"></i> ${text('新增')}</a>
<% } %>
<a href="#" class="btn btn-default" id="btnSetting" title="${text('设置')}"><i class="fa fa-navicon"></i></a>
</div>
</div>
<div class="box-body">
<#form:form id="searchForm" model="${bizCategory}" action="${ctx}/sys/bizCategory/listData" method="post" class="form-inline hide"
<#form:form id="searchForm" model="${bizCategory}" action="${ctx}/biz/bizCategory/listData" method="post" class="form-inline hide"
data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
<#form:hidden path="categoryCode"/>
<div class="form-group">
@@ -60,7 +60,7 @@ $('#dataGrid').dataGrid({
searchForm: $('#searchForm'),
columnModel: [
{header:'${text("分类名称")}', name:'categoryName', index:'a.category_name', width:250, align:"left", frozen:true, formatter: function(val, obj, row, act){
return '( '+row.viewCode+' ) '+'<a href="${ctx}/sys/bizCategory/form?categoryCode='+row.categoryCode+'" class="btnList" data-title="${text("编辑分类")}" data-layer="true" data-layer-width="900" data-layer-height="400">'+(val||row.id)+'</a>';
return '( '+row.viewCode+' ) '+'<a href="${ctx}/biz/bizCategory/form?categoryCode='+row.categoryCode+'" class="btnList" data-title="${text("编辑分类")}" data-layer="true" data-layer-width="900" data-layer-height="350">'+(val||row.id)+'</a>';
}},
{header:'${text("排序号")}', name:'treeSort', index:'a.tree_sort', width:80, align:"center"},
{header:'${text("更新时间")}', name:'updateDate', index:'a.update_date', width:100, align:"center"},
@@ -70,15 +70,15 @@ $('#dataGrid').dataGrid({
}},
{header:'${text("操作")}', name:'actions', width:120, formatter: function(val, obj, row, act){
var actions = [];
//# if(hasPermi('sys:bizCategory:edit')){
actions.push('<a href="${ctx}/sys/bizCategory/form?categoryCode='+row.categoryCode+'" class="btnList" title="${text("编辑分类")}" data-layer="true" data-layer-width="900" data-layer-height="400"><i class="fa fa-pencil"></i></a>&nbsp;');
//# if(hasPermi('biz:bizCategory:edit')){
actions.push('<a href="${ctx}/biz/bizCategory/form?categoryCode='+row.categoryCode+'" class="btnList" title="${text("编辑分类")}" data-layer="true" data-layer-width="900" data-layer-height="350"><i class="fa fa-pencil"></i></a>&nbsp;');
if (row.status == Global.STATUS_NORMAL){
actions.push('<a href="${ctx}/sys/bizCategory/disable?categoryCode='+row.categoryCode+'" class="btnList" title="${text("停用分类")}" data-confirm="${text("确认要停用该分类吗")}"><i class="glyphicon glyphicon-ban-circle"></i></a>&nbsp;');
actions.push('<a href="${ctx}/biz/bizCategory/disable?categoryCode='+row.categoryCode+'" class="btnList" title="${text("停用分类")}" data-confirm="${text("确认要停用该分类吗")}"><i class="glyphicon glyphicon-ban-circle"></i></a>&nbsp;');
} else if (row.status == Global.STATUS_DISABLE){
actions.push('<a href="${ctx}/sys/bizCategory/enable?categoryCode='+row.categoryCode+'" class="btnList" title="${text("启用分类")}" data-confirm="${text("确认要启用该分类吗")}"><i class="glyphicon glyphicon-ok-circle"></i></a>&nbsp;');
actions.push('<a href="${ctx}/biz/bizCategory/enable?categoryCode='+row.categoryCode+'" class="btnList" title="${text("启用分类")}" data-confirm="${text("确认要启用该分类吗")}"><i class="glyphicon glyphicon-ok-circle"></i></a>&nbsp;');
}
actions.push('<a href="${ctx}/sys/bizCategory/delete?categoryCode='+row.categoryCode+'" class="btnList" title="${text("删除分类")}" data-confirm="${text("确认要删除该分类及所有子分类吗")}" data-deltreenode="'+row.id+'"><i class="fa fa-trash-o"></i></a>&nbsp;');
actions.push('<a href="${ctx}/sys/bizCategory/form?parentCode='+row.id+'" class="btnList" title="${text("新增下级分类")}"><i class="fa fa-plus-square"></i></a>&nbsp;');
actions.push('<a href="${ctx}/biz/bizCategory/delete?categoryCode='+row.categoryCode+'" class="btnList" title="${text("删除分类")}" data-confirm="${text("确认要删除该分类及所有子分类吗")}" data-deltreenode="'+row.id+'"><i class="fa fa-trash-o"></i></a>&nbsp;');
actions.push('<a href="${ctx}/biz/bizCategory/form?parentCode='+row.id+'" class="btnList" title="${text("新增下级分类")}"><i class="fa fa-plus-square"></i></a>&nbsp;');
//# }
return actions.join('');
}}