From 4747d1bf3d53cf470f844995f25622e8a7c62c0a Mon Sep 17 00:00:00 2001 From: Admin <445720029@qq.com> Date: Fri, 20 Nov 2020 17:26:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E9=99=86=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../baseinfo/BaseBomInfoController.java | 360 +++---- .../src/main/resources/application-druid.yml | 4 +- .../src/main/resources/application.yml | 276 ++--- .../main/resources/static/css/login.min.css | 175 ++- .../templates/baseinfo/bominfo/add.html | 147 +-- .../baseinfo/bominfo/addproduct.html | 168 +-- .../templates/baseinfo/bominfo/bominfo.html | 262 ++--- .../baseinfo/deviceinfo/deviceinfo.html | 2 +- .../templates/baseinfo/deviceinfo/edit.html | 154 +-- .../templates/baseinfo/employeeinfo/edit.html | 2 + .../baseinfo/employeeinfo/employeeinfo.html | 12 +- .../templates/baseinfo/materialinfo/add.html | 4 + .../templates/baseinfo/materialinfo/edit.html | 4 + .../baseinfo/materialtypeinfo/add.html | 4 + .../baseinfo/materialtypeinfo/edit.html | 4 + .../materialtypeinfo/materialtypeinfo.html | 4 +- .../templates/baseinfo/postinfo/edit.html | 2 + .../baseinfo/workingprocedureinfo/edit.html | 29 +- .../workingprocedureinfo.html | 8 +- .../src/main/resources/templates/index.html | 6 +- .../src/main/resources/templates/login.html | 141 ++- .../src/main/resources/templates/main.html | 997 ------------------ .../DeviceAmountDayReport.html | 254 ++--- .../GroupAmountDatReport.html | 228 ++-- .../MaterialCodeAmountDatReport.html | 228 ++-- .../PlanRateAmountDatReport.html | 230 ++-- .../ShiftAmountDatReport.html | 230 ++-- .../WorkProcedureAmountDatReport.html | 230 ++-- .../ruoyi/baseinfo/domain/BaseBomInfo.java | 240 ++--- .../domain/BaseWorkingprocedureInfo.java | 3 + .../baseinfo/mapper/BaseBomInfoMapper.java | 157 +-- .../mapper/BaseMaterialInfoMapper.java | 3 + .../mapper/BaseMaterialtypeInfoMapper.java | 5 + .../service/IBaseMaterialtypeInfoService.java | 3 + .../service/impl/BaseBomInfoServiceImpl.java | 222 ++-- .../impl/BaseMaterialtypeInfoServiceImpl.java | 16 + .../mapper/baseinfo/BaseBomInfoMapper.xml | 246 +++-- .../baseinfo/BaseMaterialInfoMapper.xml | 6 + .../baseinfo/BaseMaterialtypeInfoMapper.xml | 5 + .../BaseWorkingprocedureInfoMapper.xml | 12 +- 40 files changed, 2263 insertions(+), 2820 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/baseinfo/BaseBomInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/baseinfo/BaseBomInfoController.java index 207208f..0303479 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/baseinfo/BaseBomInfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/baseinfo/BaseBomInfoController.java @@ -1,178 +1,182 @@ -package com.ruoyi.web.controller.baseinfo; - -import java.util.List; - -import com.ruoyi.baseinfo.domain.BaseMaterialInfo; -import com.ruoyi.baseinfo.service.IBaseMaterialInfoService; -import com.ruoyi.baseinfo.service.IBaseMaterialtypeInfoService; -import com.ruoyi.system.domain.SysDept; -import org.apache.shiro.authz.annotation.RequiresPermissions; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.ResponseBody; -import com.ruoyi.common.annotation.Log; -import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.baseinfo.domain.BaseBomInfo; -import com.ruoyi.baseinfo.service.IBaseBomInfoService; -import com.ruoyi.common.core.controller.BaseController; -import com.ruoyi.common.core.domain.AjaxResult; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; - -/** - * BOM基础信息Controller - * - * @author CaesarBao - * @date 2020-11-04 - */ -@Controller -@RequestMapping("/baseinfo/bominfo") -public class BaseBomInfoController extends BaseController -{ - private String prefix = "baseinfo/bominfo"; - - @Autowired - private IBaseBomInfoService baseBomInfoService; - @Autowired - private IBaseMaterialtypeInfoService baseMaterialtypeInfoService; - @Autowired - private IBaseMaterialInfoService baseMaterialInfoService; - - @RequiresPermissions("baseinfo:bominfo:view") - @GetMapping() - public String bominfo() - { - return prefix + "/bominfo"; - } - - /** - * 查询BOM基础信息列表 - */ -// @RequiresPermissions("baseinfo:bominfo:list") -// @PostMapping("/list") -// @ResponseBody -// public TableDataInfo list1(BaseBomInfo baseBomInfo) -// { -// startPage(); -// List list = baseBomInfoService.selectBaseBomInfoList(baseBomInfo); -// return getDataTable(list); -// } - - @RequiresPermissions("baseinfo:bominfo:list") - @PostMapping("/list") - @ResponseBody - public List list(BaseBomInfo baseBomInfo) - { - List list = baseBomInfoService.selectBaseBomInfoList(baseBomInfo); - return list; - } - /** - * 导出BOM基础信息列表 - */ - @RequiresPermissions("baseinfo:bominfo:export") - @Log(title = "BOM基础信息", businessType = BusinessType.EXPORT) - @PostMapping("/export") - @ResponseBody - public AjaxResult export(BaseBomInfo baseBomInfo) - { - List list = baseBomInfoService.selectBaseBomInfoList(baseBomInfo); - ExcelUtil util = new ExcelUtil(BaseBomInfo.class); - return util.exportExcel(list, "bominfo"); - } - - /** - * 新增BOM基础信息 - */ - @GetMapping("/add") - public String add(ModelMap mmap) - { - BaseMaterialInfo BaseMaterialInfo = new BaseMaterialInfo(); - mmap.put("cbmaterialtypeInfo",baseMaterialtypeInfoService.selectAddBaseMaterialtypeInfoList()); - mmap.put("cbmaterialInfo",baseMaterialInfoService.selectBaseMaterialInfoList(BaseMaterialInfo)); - return prefix + "/addproduct"; - } - /** - * 新增保存BOM基础信息 - */ - @RequiresPermissions("baseinfo:bominfo:addproduct") - @Log(title = "BOM基础信息", businessType = BusinessType.INSERT) - @PostMapping("/addproduct") - @ResponseBody - public AjaxResult addSaveproduct(BaseBomInfo baseBomInfo) - { - baseBomInfo.setpId(0L); - return toAjax(baseBomInfoService.insertBaseBomInfo(baseBomInfo)); - } - /** - * 新增BOM物料信息 - */ - @GetMapping("/add/{parentId}") - public String add(@PathVariable("parentId") Long parentId, ModelMap mmap) - { - BaseMaterialInfo BaseMaterialInfo = new BaseMaterialInfo(); - mmap.put("parent", baseBomInfoService.selectBaseBomInfoById(parentId)); - mmap.put("cbmaterialtypeInfo",baseMaterialtypeInfoService.selectAddBaseMaterialtypeInfoList()); - mmap.put("cbmaterialInfo",baseMaterialInfoService.selectBaseMaterialInfoList(BaseMaterialInfo)); - return prefix + "/add"; - } - /** - * 新增保存BOM基础信息 - */ - @RequiresPermissions("baseinfo:bominfo:add") - @Log(title = "BOM基础信息", businessType = BusinessType.INSERT) - @PostMapping("/add") - @ResponseBody - public AjaxResult addSave(BaseBomInfo baseBomInfo) - { - BaseBomInfo pbaseBomInfo = new BaseBomInfo(); - pbaseBomInfo = baseBomInfoService.selectBaseBomInfoBymaterialName(baseBomInfo); - baseBomInfo.setpId(pbaseBomInfo.getBomId()); - return toAjax(baseBomInfoService.insertBaseBomInfo(baseBomInfo)); - } - - /** - * 修改BOM基础信息 - */ - @GetMapping("/edit/{objid}") - public String edit(@PathVariable("objid") Long objid, ModelMap mmap) - { - BaseBomInfo baseBomInfo = baseBomInfoService.selectBaseBomInfoById(objid); - mmap.put("cbmaterialtypeInfo",baseMaterialtypeInfoService.selectEditBaseMaterialtypeInfoList(baseBomInfo.getMaterialTypeId())); - mmap.put("cbmaterialInfo",baseMaterialInfoService.selectEditBaseMaterialInfoList(baseBomInfo.getMaterialId())); - mmap.put("baseBomInfo", baseBomInfo); - return prefix + "/edit"; - } - - /** - * 修改保存BOM基础信息 - */ - @RequiresPermissions("baseinfo:bominfo:edit") - @Log(title = "BOM基础信息", businessType = BusinessType.UPDATE) - @PostMapping("/edit") - @ResponseBody - public AjaxResult editSave(BaseBomInfo baseBomInfo) - { - return toAjax(baseBomInfoService.updateBaseBomInfo(baseBomInfo)); - } - - /** - * 删除BOM基础信息 - */ - @Log(title = "BOM基础信息", businessType = BusinessType.DELETE) - @RequiresPermissions("system:dept:remove") - @GetMapping("/remove/{bomId}") - @ResponseBody - public AjaxResult remove(@PathVariable("bomId") Long bomId) - { - if (baseBomInfoService.selectBomCount(bomId) > 0) - { - return AjaxResult.warn("存在下级节点,不允许删除"); - } - return toAjax(baseBomInfoService.deleteBaseBomInfoById(bomId)); - } -} +package com.ruoyi.web.controller.baseinfo; + +import java.util.ArrayList; +import java.util.List; + +import com.ruoyi.baseinfo.domain.BaseMaterialInfo; +import com.ruoyi.baseinfo.service.IBaseMaterialInfoService; +import com.ruoyi.baseinfo.service.IBaseMaterialtypeInfoService; +import com.ruoyi.common.core.domain.CxSelect; +import com.ruoyi.system.domain.SysDept; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.baseinfo.domain.BaseBomInfo; +import com.ruoyi.baseinfo.service.IBaseBomInfoService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * BOM基础信息Controller + * + * @author CaesarBao + * @date 2020-11-04 + */ +@Controller +@RequestMapping("/baseinfo/bominfo") +public class BaseBomInfoController extends BaseController +{ + private String prefix = "baseinfo/bominfo"; + + @Autowired + private IBaseBomInfoService baseBomInfoService; + @Autowired + private IBaseMaterialtypeInfoService baseMaterialtypeInfoService; + @Autowired + private IBaseMaterialInfoService baseMaterialInfoService; + + @RequiresPermissions("baseinfo:bominfo:view") + @GetMapping() + public String bominfo() + { + return prefix + "/bominfo"; + } + + /** + * 查询BOM基础信息列表 + */ +// @RequiresPermissions("baseinfo:bominfo:list") +// @PostMapping("/list") +// @ResponseBody +// public TableDataInfo list1(BaseBomInfo baseBomInfo) +// { +// startPage(); +// List list = baseBomInfoService.selectBaseBomInfoList(baseBomInfo); +// return getDataTable(list); +// } + + @RequiresPermissions("baseinfo:bominfo:list") + @PostMapping("/list") + @ResponseBody + public List list(BaseBomInfo baseBomInfo) + { + List list = baseBomInfoService.selectBaseBomInfoList(baseBomInfo); + return list; + } + /** + * 导出BOM基础信息列表 + */ + @RequiresPermissions("baseinfo:bominfo:export") + @Log(title = "BOM基础信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(BaseBomInfo baseBomInfo) + { + List list = baseBomInfoService.selectBaseBomInfoList(baseBomInfo); + ExcelUtil util = new ExcelUtil(BaseBomInfo.class); + return util.exportExcel(list, "bominfo"); + } + + /** + * 新增BOM基础信息 + */ + @GetMapping("/add") + public String add(ModelMap mmap) + { + BaseMaterialInfo BaseMaterialInfo = new BaseMaterialInfo(); + mmap.put("data",baseMaterialtypeInfoService.selectCxSelectList()); + mmap.put("cbmaterialtypeInfo",baseMaterialtypeInfoService.selectAddBaseMaterialtypeInfoList()); + mmap.put("cbmaterialInfo",baseMaterialInfoService.selectBaseMaterialInfoList(BaseMaterialInfo)); + return prefix + "/addproduct"; + } + /** + * 新增保存BOM基础信息 + */ + @RequiresPermissions("baseinfo:bominfo:addproduct") + @Log(title = "BOM基础信息", businessType = BusinessType.INSERT) + @PostMapping("/addproduct") + @ResponseBody + public AjaxResult addSaveproduct(BaseBomInfo baseBomInfo) + { + baseBomInfo.setpId(0L); + return toAjax(baseBomInfoService.insertBaseBomInfo(baseBomInfo)); + } + /** + * 新增BOM物料信息 + */ + @GetMapping("/add/{parentId}") + public String add(@PathVariable("parentId") Long parentId, ModelMap mmap) + { + BaseMaterialInfo BaseMaterialInfo = new BaseMaterialInfo(); + mmap.put("data",baseMaterialtypeInfoService.selectCxSelectList()); + mmap.put("parent", baseBomInfoService.selectBaseBomInfoById(parentId)); + mmap.put("cbmaterialtypeInfo",baseMaterialtypeInfoService.selectAddBaseMaterialtypeInfoList()); + mmap.put("cbmaterialInfo",baseMaterialInfoService.selectBaseMaterialInfoList(BaseMaterialInfo)); + return prefix + "/add"; + } + /** + * 新增保存BOM基础信息 + */ + @RequiresPermissions("baseinfo:bominfo:add") + @Log(title = "BOM基础信息", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(BaseBomInfo baseBomInfo) + { +// BaseBomInfo pbaseBomInfo = new BaseBomInfo(); +// pbaseBomInfo = baseBomInfoService.selectBaseBomInfoById(baseBomInfo.getBomId()); +// baseBomInfo.setpId(pbaseBomInfo.getBomId()); + return toAjax(baseBomInfoService.insertBaseBomInfo(baseBomInfo)); + } + + /** + * 修改BOM基础信息 + */ + @GetMapping("/edit/{objid}") + public String edit(@PathVariable("objid") Long objid, ModelMap mmap) + { + BaseBomInfo baseBomInfo = baseBomInfoService.selectBaseBomInfoById(objid); + mmap.put("cbmaterialtypeInfo",baseMaterialtypeInfoService.selectEditBaseMaterialtypeInfoList(baseBomInfo.getMaterialTypeId())); + mmap.put("cbmaterialInfo",baseMaterialInfoService.selectEditBaseMaterialInfoList(baseBomInfo.getMaterialId())); + mmap.put("baseBomInfo", baseBomInfo); + return prefix + "/edit"; + } + + /** + * 修改保存BOM基础信息 + */ + @RequiresPermissions("baseinfo:bominfo:edit") + @Log(title = "BOM基础信息", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(BaseBomInfo baseBomInfo) + { + return toAjax(baseBomInfoService.updateBaseBomInfo(baseBomInfo)); + } + + /** + * 删除BOM基础信息 + */ + @Log(title = "BOM基础信息", businessType = BusinessType.DELETE) + @RequiresPermissions("system:dept:remove") + @GetMapping("/remove/{bomId}") + @ResponseBody + public AjaxResult remove(@PathVariable("bomId") Long bomId) + { + if (baseBomInfoService.selectBomCount(bomId) > 0) + { + return AjaxResult.warn("存在下级节点,不允许删除"); + } + return toAjax(baseBomInfoService.deleteBaseBomInfoById(bomId)); + } +} diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml index fa1bb77..38dd3ec 100644 --- a/ruoyi-admin/src/main/resources/application-druid.yml +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -6,9 +6,9 @@ spring: druid: # 主库数据源 master: - url: jdbc:sqlserver://127.0.0.1:1433;SelectMethod=cursor;DatabaseName=manufacture_db + url: jdbc:sqlserver://10.11.0.141:1433;SelectMethod=cursor;DatabaseName=manufacture_db username: sa - password: 123456 + password: haiwei@123 # 从库数据源 slave: # 从数据源开关/默认关闭 diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 169cb41..236cb17 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -1,138 +1,138 @@ -# 项目相关配置 -ruoyi: - # 名称 - name: RuoYi - # 版本 - version: 4.3.1 - # 版权年份 - copyrightYear: 2019 - # 实例演示开关 - demoEnabled: true - # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) - profile: D:/ruoyi/uploadPath -# profile: /Users/sxile/MyWorkSpase/WorkSpase/uploadPath/RuoYi-SqlServer - # 获取ip地址开关 - addressEnabled: false - -# 开发环境配置 -server: - # 服务器的HTTP端口,默认为80 - port: 8088 - servlet: - # 应用的访问路径 - context-path: / - tomcat: - # tomcat的URI编码 - uri-encoding: UTF-8 - # tomcat最大线程数,默认为200 - max-threads: 800 - # Tomcat启动初始化的线程数,默认值25 - min-spare-threads: 30 - -# 日志配置 -logging: - level: - com.ruoyi: debug - org.springframework: warn - -# 用户配置 -user: - password: - # 密码错误{maxRetryCount}次锁定10分钟 - maxRetryCount: 5 - -# Spring配置 -spring: - # 模板引擎 - thymeleaf: - mode: HTML - encoding: utf-8 - # 禁用缓存 - cache: false - # 资源信息 - messages: - # 国际化资源文件路径 - basename: static/i18n/messages - jackson: - time-zone: GMT+8 - date-format: yyyy-MM-dd HH:mm:ss - profiles: - active: druid - # 文件上传 - servlet: - multipart: - # 单个文件大小 - max-file-size: 10MB - # 设置总上传的文件大小 - max-request-size: 20MB - # 服务模块 - devtools: - restart: - # 热部署开关 - enabled: true - -# MyBatis -mybatis: - # 搜索指定包别名 - typeAliasesPackage: com.ruoyi.**.domain - # 配置mapper的扫描,找到所有的mapper.xml映射文件 - mapperLocations: classpath*:mapper/**/*Mapper.xml - # 加载全局的配置文件 - configLocation: classpath:mybatis/mybatis-config.xml - -# PageHelper分页插件 -pagehelper: - helperDialect: sqlserver - reasonable: true - supportMethodsArguments: true - params: count=countSql - -# Shiro -shiro: - user: - # 登录地址 - loginUrl: /login - # 权限认证失败地址 - unauthorizedUrl: /unauth - # 首页地址 - indexUrl: /index - # 验证码开关 - captchaEnabled: false - # 验证码类型 math 数组计算 char 字符 - captchaType: math - cookie: - # 设置Cookie的域名 默认空,即当前访问的域名 - domain: - # 设置cookie的有效访问路径 - path: / - # 设置HttpOnly属性 - httpOnly: true - # 设置Cookie的过期时间,天为单位 - maxAge: 30 - # 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)KeyGenerator keygen = KeyGenerator.getInstance("AES"); SecretKey deskey = keygen.generateKey(); System.out.println(Base64.encodeToString(deskey.getEncoded())); - cipherKey: zSyK5Kp6PZAAjlT+eeNMlg== - session: - # Session超时时间,-1代表永不过期(默认30分钟) - expireTime: 30 - # 同步session到数据库的周期(默认1分钟) - dbSyncPeriod: 1 - # 相隔多久检查一次session的有效性,默认就是10分钟 - validationInterval: 10 - # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制) - maxSession: -1 - # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户 - kickoutAfter: false - -# 防止XSS攻击 -xss: - # 过滤开关 - enabled: true - # 排除链接(多个用逗号分隔) - excludes: /system/notice/* - # 匹配链接 - urlPatterns: /system/*,/monitor/*,/tool/* - -# Swagger配置 -swagger: - # 是否开启swagger - enabled: true +# 项目相关配置 +ruoyi: + # 名称 + name: HighWayIOT + # 版本 + version: 4.3.1 + # 版权年份 + copyrightYear: 2020 + # 实例演示开关 + demoEnabled: false + # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) + profile: D:/ruoyi/uploadPath +# profile: /Users/sxile/MyWorkSpase/WorkSpase/uploadPath/RuoYi-SqlServer + # 获取ip地址开关 + addressEnabled: false + +# 开发环境配置 +server: + # 服务器的HTTP端口,默认为80 + port: 8088 + servlet: + # 应用的访问路径 + context-path: / + tomcat: + # tomcat的URI编码 + uri-encoding: UTF-8 + # tomcat最大线程数,默认为200 + max-threads: 800 + # Tomcat启动初始化的线程数,默认值25 + min-spare-threads: 30 + +# 日志配置 +logging: + level: + com.ruoyi: debug + org.springframework: warn + +# 用户配置 +user: + password: + # 密码错误{maxRetryCount}次锁定10分钟 + maxRetryCount: 5 + +# Spring配置 +spring: + # 模板引擎 + thymeleaf: + mode: HTML + encoding: utf-8 + # 禁用缓存 + cache: false + # 资源信息 + messages: + # 国际化资源文件路径 + basename: static/i18n/messages + jackson: + time-zone: GMT+8 + date-format: yyyy-MM-dd HH:mm:ss + profiles: + active: druid + # 文件上传 + servlet: + multipart: + # 单个文件大小 + max-file-size: 10MB + # 设置总上传的文件大小 + max-request-size: 20MB + # 服务模块 + devtools: + restart: + # 热部署开关 + enabled: true + +# MyBatis +mybatis: + # 搜索指定包别名 + typeAliasesPackage: com.ruoyi.**.domain + # 配置mapper的扫描,找到所有的mapper.xml映射文件 + mapperLocations: classpath*:mapper/**/*Mapper.xml + # 加载全局的配置文件 + configLocation: classpath:mybatis/mybatis-config.xml + +# PageHelper分页插件 +pagehelper: + helperDialect: sqlserver + reasonable: true + supportMethodsArguments: true + params: count=countSql + +# Shiro +shiro: + user: + # 登录地址 + loginUrl: /login + # 权限认证失败地址 + unauthorizedUrl: /unauth + # 首页地址 + indexUrl: /index + # 验证码开关 + captchaEnabled: false + # 验证码类型 math 数组计算 char 字符 + captchaType: math + cookie: + # 设置Cookie的域名 默认空,即当前访问的域名 + domain: + # 设置cookie的有效访问路径 + path: / + # 设置HttpOnly属性 + httpOnly: true + # 设置Cookie的过期时间,天为单位 + maxAge: 30 + # 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)KeyGenerator keygen = KeyGenerator.getInstance("AES"); SecretKey deskey = keygen.generateKey(); System.out.println(Base64.encodeToString(deskey.getEncoded())); + cipherKey: zSyK5Kp6PZAAjlT+eeNMlg== + session: + # Session超时时间,-1代表永不过期(默认30分钟) + expireTime: 30 + # 同步session到数据库的周期(默认1分钟) + dbSyncPeriod: 1 + # 相隔多久检查一次session的有效性,默认就是10分钟 + validationInterval: 10 + # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制) + maxSession: -1 + # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户 + kickoutAfter: false + +# 防止XSS攻击 +xss: + # 过滤开关 + enabled: true + # 排除链接(多个用逗号分隔) + excludes: /system/notice/* + # 匹配链接 + urlPatterns: /system/*,/monitor/*,/tool/* + +# Swagger配置 +swagger: + # 是否开启swagger + enabled: true diff --git a/ruoyi-admin/src/main/resources/static/css/login.min.css b/ruoyi-admin/src/main/resources/static/css/login.min.css index 79ec232..97a0773 100644 --- a/ruoyi-admin/src/main/resources/static/css/login.min.css +++ b/ruoyi-admin/src/main/resources/static/css/login.min.css @@ -1 +1,174 @@ -html{height:100%}body.signin{height:auto;background:url(../img/login-background.jpg) no-repeat center fixed;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;color:rgba(255,255,255,.95)}.signinpanel{width:750px;margin:10% auto 0}.signinpanel .logopanel{float:none;width:auto;padding:0;background:0}.signinpanel .signin-info ul{list-style:none;padding:0;margin:20px 0}.signinpanel .form-control{display:block;margin-top:15px}.signinpanel .uname{background:#fff url(../img/user.png) no-repeat 95% center;color:#333}.signinpanel .pword{background:#fff url(../img/locked.png) no-repeat 95% center;color:#333}.signinpanel .code{background:#fff no-repeat 95% center;color:#333;margin:0 0 15px 0}.signinpanel .btn{margin-top:15px}.signinpanel form{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.3);-moz-box-shadow:0 3px 0 rgba(12,12,12,.03);-webkit-box-shadow:0 3px 0 rgba(12,12,12,.03);box-shadow:0 3px 0 rgba(12,12,12,.03);-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding:30px}.signup-footer{border-top:solid 1px rgba(255,255,255,.3);margin:20px 0;padding-top:15px}@media screen and (max-width:768px){.signinpanel,.signuppanel{margin:0 auto;width:420px!important;padding:20px}.signinpanel form{margin-top:20px}.signup-footer,.signuppanel .form-control{margin-bottom:10px}.signup-footer .pull-left,.signup-footer .pull-right{float:none!important;text-align:center}.signinpanel .signin-info ul{display:none}}@media screen and (max-width:320px){.signinpanel,.signuppanel{margin:0 20px;width:auto}}.checkbox-custom{position:relative;padding:0 15px 0 25px;margin-bottom:7px;display:inline-block}.checkbox-custom input[type="checkbox"]{opacity:0;position:absolute;cursor:pointer;z-index:2;margin:-6px 0 0 0;top:50%;left:3px}.checkbox-custom label:before{content:'';position:absolute;top:50%;left:0;margin-top:-9px;width:18px;height:17px;display:inline-block;border-radius:2px;border:1px solid #bbb;background:#fff}.checkbox-custom input[type="checkbox"]:checked+label:after{position:absolute;display:inline-block;font-family:'Glyphicons Halflings';content:"\e013";top:42%;left:3px;margin-top:-5px;font-size:11px;line-height:1;width:16px;height:16px;color:#333}.checkbox-custom label{cursor:pointer;line-height:1.2;font-weight:normal;margin-bottom:0;text-align:left}.form-control,.form-control:focus,.has-error .form-control:focus,.has-success .form-control:focus,.has-warning .form-control:focus,.navbar-collapse,.navbar-form,.navbar-form-custom .form-control:focus,.navbar-form-custom .form-control:hover,.open .btn.dropdown-toggle,.panel,.popover,.progress,.progress-bar{box-shadow:none}.form-control{border-radius:1px!important;padding:6px 12px!important;height:34px!important}.form-control:focus{border-color:#1ab394!important} \ No newline at end of file +html { + height: 100% +} + +body.signin { + height: auto; + /*background: url(../img/login-background.jpg) no-repeat center fixed;*/ + -webkit-background-size: cover; + -moz-background-size: cover; + -o-background-size: cover; + background-size: cover; + color: rgba(255, 255, 255, .95) +} + +.signinpanel { + width: 750px; + margin: 10% auto 0 +} + +.signinpanel .logopanel { + float: none; + width: auto; + padding: 0; + background: 0 +} + +.signinpanel .signin-info ul { + list-style: none; + padding: 0; + margin: 20px 0 +} + +.signinpanel .form-control { + display: block; + margin-top: 15px +} + +.signinpanel .uname { + background: #fff url(../img/user.png) no-repeat 95% center; + color: #333 +} + +.signinpanel .pword { + background: #fff url(../img/locked.png) no-repeat 95% center; + color: #333 +} + +.signinpanel .code { + background: #fff no-repeat 95% center; + color: #333; + margin: 0 0 15px 0 +} + +.signinpanel .btn { + margin-top: 15px +} + +.signinpanel form { + background: rgba(255, 255, 255, .2); + border: 1px solid rgba(255, 255, 255, .3); + -moz-box-shadow: 0 3px 0 rgba(12, 12, 12, .03); + -webkit-box-shadow: 0 3px 0 rgba(12, 12, 12, .03); + box-shadow: 0 3px 0 rgba(12, 12, 12, .03); + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + padding: 30px +} + +.signup-footer { + border-top: solid 1px rgba(255, 255, 255, .3); + margin: 20px 0; + padding-top: 15px +} + +@media screen and (max-width: 768px) { + .signinpanel, .signuppanel { + margin: 0 auto; + width: 420px !important; + padding: 20px + } + + .signinpanel form { + margin-top: 20px + } + + .signup-footer, .signuppanel .form-control { + margin-bottom: 10px + } + + .signup-footer .pull-left, .signup-footer .pull-right { + float: none !important; + text-align: center + } + + .signinpanel .signin-info ul { + display: none + } +} + +@media screen and (max-width: 320px) { + .signinpanel, .signuppanel { + margin: 0 20px; + width: auto + } +} + +.checkbox-custom { + position: relative; + padding: 0 15px 0 25px; + margin-bottom: 7px; + display: inline-block +} + +.checkbox-custom input[type="checkbox"] { + opacity: 0; + position: absolute; + cursor: pointer; + z-index: 2; + margin: -6px 0 0 0; + top: 50%; + left: 3px +} + +.checkbox-custom label:before { + content: ''; + position: absolute; + top: 50%; + left: 0; + margin-top: -9px; + width: 18px; + height: 17px; + display: inline-block; + border-radius: 2px; + border: 1px solid #bbb; + background: #fff +} + +.checkbox-custom input[type="checkbox"]:checked + label:after { + position: absolute; + display: inline-block; + font-family: 'Glyphicons Halflings'; + content: "\e013"; + top: 42%; + left: 3px; + margin-top: -5px; + font-size: 11px; + line-height: 1; + width: 16px; + height: 16px; + color: #333 +} + +.checkbox-custom label { + cursor: pointer; + line-height: 1.2; + font-weight: normal; + margin-bottom: 0; + text-align: left +} + +.form-control, .form-control:focus, .has-error .form-control:focus, .has-success .form-control:focus, .has-warning .form-control:focus, .navbar-collapse, .navbar-form, .navbar-form-custom .form-control:focus, .navbar-form-custom .form-control:hover, .open .btn.dropdown-toggle, .panel, .popover, .progress, .progress-bar { + box-shadow: none +} + +.form-control { + border-radius: 1px !important; + padding: 6px 12px !important; + height: 34px !important +} + +.form-control:focus { + border-color: #1ab394 !important +} \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/baseinfo/bominfo/add.html b/ruoyi-admin/src/main/resources/templates/baseinfo/bominfo/add.html index ad712ca..95eb93f 100644 --- a/ruoyi-admin/src/main/resources/templates/baseinfo/bominfo/add.html +++ b/ruoyi-admin/src/main/resources/templates/baseinfo/bominfo/add.html @@ -1,67 +1,82 @@ - - - - - - - - -
-
- - - - - - -
- -
-
- -
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - - + + + + + + + + +
+
+ + + + + + + +
+ +
+
+ +
+
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/baseinfo/bominfo/addproduct.html b/ruoyi-admin/src/main/resources/templates/baseinfo/bominfo/addproduct.html index 4161fe1..93e4a43 100644 --- a/ruoyi-admin/src/main/resources/templates/baseinfo/bominfo/addproduct.html +++ b/ruoyi-admin/src/main/resources/templates/baseinfo/bominfo/addproduct.html @@ -1,67 +1,103 @@ - - - - - - - - -
-
- - - - - - - - - - - - - - -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - - + + + + + + + + +
+
+ + + + + + + + + + + + + + +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/baseinfo/bominfo/bominfo.html b/ruoyi-admin/src/main/resources/templates/baseinfo/bominfo/bominfo.html index 76b519b..675037a 100644 --- a/ruoyi-admin/src/main/resources/templates/baseinfo/bominfo/bominfo.html +++ b/ruoyi-admin/src/main/resources/templates/baseinfo/bominfo/bominfo.html @@ -1,130 +1,134 @@ - - - - - - -
-
-
-
-
-
    - - - - -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • -  搜索 -  重置 -
  • -
-
-
-
- - -
-
-
-
-
- - - - + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + + + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/baseinfo/deviceinfo/deviceinfo.html b/ruoyi-admin/src/main/resources/templates/baseinfo/deviceinfo/deviceinfo.html index c98b013..3f90b26 100644 --- a/ruoyi-admin/src/main/resources/templates/baseinfo/deviceinfo/deviceinfo.html +++ b/ruoyi-admin/src/main/resources/templates/baseinfo/deviceinfo/deviceinfo.html @@ -24,7 +24,7 @@
  • - +
  • diff --git a/ruoyi-admin/src/main/resources/templates/baseinfo/deviceinfo/edit.html b/ruoyi-admin/src/main/resources/templates/baseinfo/deviceinfo/edit.html index b0cf947..b9db0c7 100644 --- a/ruoyi-admin/src/main/resources/templates/baseinfo/deviceinfo/edit.html +++ b/ruoyi-admin/src/main/resources/templates/baseinfo/deviceinfo/edit.html @@ -1,77 +1,79 @@ - - - - - - - - -
    -
    - -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - - - - - + + + + + + + + + +
    +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/baseinfo/employeeinfo/edit.html b/ruoyi-admin/src/main/resources/templates/baseinfo/employeeinfo/edit.html index 1581fb1..27a1a3f 100644 --- a/ruoyi-admin/src/main/resources/templates/baseinfo/employeeinfo/edit.html +++ b/ruoyi-admin/src/main/resources/templates/baseinfo/employeeinfo/edit.html @@ -3,6 +3,7 @@ + @@ -73,6 +74,7 @@ + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/baseinfo/workingprocedureinfo/workingprocedureinfo.html b/ruoyi-admin/src/main/resources/templates/baseinfo/workingprocedureinfo/workingprocedureinfo.html index 70992bd..b5aebce 100644 --- a/ruoyi-admin/src/main/resources/templates/baseinfo/workingprocedureinfo/workingprocedureinfo.html +++ b/ruoyi-admin/src/main/resources/templates/baseinfo/workingprocedureinfo/workingprocedureinfo.html @@ -18,10 +18,10 @@
  • -
  • - - -
  • + + + +
  • @@ -64,13 +138,17 @@
    + + + + @@ -80,5 +158,26 @@ + diff --git a/ruoyi-admin/src/main/resources/templates/main.html b/ruoyi-admin/src/main/resources/templates/main.html index d622df2..2f382d9 100644 --- a/ruoyi-admin/src/main/resources/templates/main.html +++ b/ruoyi-admin/src/main/resources/templates/main.html @@ -13,1005 +13,8 @@ -
    -
    -
    - 领取阿里云通用云产品1888优惠券 -
    https://www.aliyun.com/minisite/goods?userCode=brki8iof
    - 领取腾讯云通用云产品2860优惠券 -
    https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console
    -

    云产品通用红包,可叠加官网常规优惠使用。(仅限新用户)

    -
    -
    -
    -
    -

    Hello,Guest

    - 移动设备访问请扫描以下二维码: -
    -
    - -
    -
    -
    -

    若依后台管理框架

    -

    一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适自己的。于是利用空闲休息时间开始自己写一套后台系统。如此有了若依管理系统。,她可以用于所有的Web应用程序,如网站管理后台网站会员中心CMSCRMOA等等,当然,您也可以对她进行深度定制,以做出更强系统。所有前端后台代码封装过后十分精简易上手,出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。

    -

    - 当前版本:v[[${version}]] -

    -

    - ¥免费开源 -

    -
    -

    - - 访问码云 - - - 访问主页 - -

    -
    -
    -

    技术选型:

    -
      -
    1. 核心框架:Spring Boot。
    2. -
    3. 安全框架:Apache Shiro。
    4. -
    5. 模板引擎:Thymeleaf。
    6. -
    7. 持久层框架:MyBatis。
    8. -
    9. 定时任务:Quartz。
    10. -
    11. 数据库连接池:Druid。
    12. -
    13. 工具类:Fastjson。
    14. -
    15. 更多……
    16. -
    -
    -
    -
    -
    -
    - -
    -
    -
    联系信息
    - -
    -
    -

    官网:http://www.ruoyi.vip -

    -

    QQ群:满1389287 满1679294 满1529866 满1772718 满1366522 满1382251 满1145125 满86752435 满134072510 满210336300 339522636 -

    -

    微信:/ *若依 -

    -

    支付宝:/ *若依 -

    -
    -
    -
    -
    -
    -
    -
    更新日志
    -
    -
    -
    -
    -
    -
    -
    - v4.3.12020.07.05 -
    -
    -
    -
    -
      -
    1. 国家信息安全漏洞(请务必保持cipherKey密钥唯一性)
    2. -
    3. 升级shiro到最新版1.5.3 阻止权限绕过漏洞
    4. -
    5. 修改验证码在使用后清除,防止多次使用
    6. -
    7. 检查字符支持小数点&降级改成异常提醒
    8. -
    9. openOptions函数中加入自定义maxmin属性
    10. -
    11. 支持openOptions方法最大化
    12. -
    13. 支持openOptions方法多个按钮回调
    14. -
    15. 新增isLinkage支持页签与菜单联动
    16. -
    17. 修改代码生成导入表结构出现异常页面不提醒问题
    18. -
    19. 优化用户头像发生错误,则显示一个默认头像
    20. -
    21. Excel导出支持字典类型
    22. -
    -
    -
    -
    -
    -
    -
    - v4.3.02020.06.22 -
    -
    -
    -
    -
      -
    1. 代码生成模板支持主子表
    2. -
    3. 代码生成显示类型支持复选框
    4. -
    5. 前端表单样式修改成圆角
    6. -
    7. 新增回显数据字典(字符串数组)
    8. -
    9. 修复浏览器手动缩放比例后菜单无法自适应问题
    10. -
    11. 限制用户不允许选择系统管理员角色
    12. -
    13. 用户信息添加输入框组图标&鼠标按下显示密码
    14. -
    15. 升级fastjson到最新版1.2.70 修复高危安全漏洞
    16. -
    17. 升级Bootstrap版本到v3.3.7
    18. -
    19. 修复selectColumns方法获取子对象数据无效问题
    20. -
    21. 修改数据源类型优先级,先根据方法,再根据类
    22. -
    23. 修改上级部门(选择项排除本身和下级)
    24. -
    25. 首页菜单显示调整
    26. -
    27. 添加是否开启swagger配置
    28. -
    29. 新增示例(主子表提交)
    30. -
    31. 新增示例(多级联动下拉示例)
    32. -
    33. 新增示例(表格属性data数据加载)
    34. -
    35. 新增表格列参数(是否列选项可见ignore)
    36. -
    37. 新增表格参数(是否启用显示卡片视图cardView)
    38. -
    39. 新增表格参数(是否显示全屏按钮showFullscreen)
    40. -
    41. 新增表格参数(是否启用分页条无限循环的功能paginationLoop)
    42. -
    43. 新增表格参数(是否显示表头showHeader)
    44. -
    45. 表格添加显示/隐藏所有列方法 showAllColumns/hideAllColumns
    46. -
    47. 修复部分情况节点不展开问题
    48. -
    49. 修复关闭标签页后刷新还是上次地址问题
    50. -
    51. 修复选择菜单后刷新页面,菜单箭头显示不对问题
    52. -
    53. 修复jquery表单序列化时复选框未选中不会序列化到对象中问题
    54. -
    55. Excel支持readConverterExp读取字符串组内容
    56. -
    57. 更换IP地址查询接口
    58. -
    59. 默认关闭获取ip地址
    60. -
    61. 操作处理ajaxSuccess判断修正
    62. -
    63. HttpUtils.sendPost()方法,参数无需拼接参数到url
    64. -
    65. 通用http发送方法增加参数 contentType 编码类型
    66. -
    67. HTML过滤器不替换&实体
    68. -
    69. 代码生成浮点型改用BigDecimal
    70. -
    71. 修复表单构建单选和多选框渲染问题
    72. -
    73. 代码生成模板调整,字段为String并且必填则加空串条件
    74. -
    75. 字典数据查询列表根据dictSort升序排序
    76. -
    77. 修复树表对imageView和tooltip方法无效问题
    78. -
    79. 修复Long类型比较相等问题调整
    80. -
    81. 示例demo页面清除html链接,防止点击后跳转出现404
    82. -
    83. 在线用户强退方法合并
    84. -
    85. 添加校验部门包含未停用的子部门
    86. -
    87. 取消回车自动提交表单
    88. -
    89. 'A','I','BUTTON' 标签忽略clickToSelect事件,防止点击操作按钮时选中
    90. -
    91. 邮箱显示截取部分字符串,防止低分辨率错位
    92. -
    93. 代码生成列属性根据sort排序
    94. -
    95. 修复更多操作部分浏览器不兼容情况
    96. -
    97. 图片预览事件属性修正
    98. -
    99. 修复冻结列排序样式无效问题
    100. -
    101. 修复context-path的情况下个人中心刷新导致样式问题
    102. -
    103. 全屏editFull打开适配表树
    104. -
    105. 其他细节优化
    106. -
    -
    -
    -
    -
    -
    -
    - v4.2.02020.03.23 -
    -
    -
    -
    -
      -
    1. 用户管理添加分配角色页面
    2. -
    3. 定时任务添加调度日志按钮
    4. -
    5. 新增是否开启用户注册功能
    6. -
    7. 新增页面滚动显示返回顶部按钮
    8. -
    9. 用户&角色&任务添加更多操作按钮
    10. -
    11. iframe框架页会话过期弹出超时提示
    12. -
    13. 移动端登录不显示左侧菜单
    14. -
    15. 侧边栏添加一套深蓝色主题
    16. -
    17. 首页logo固定,不随菜单滚动
    18. -
    19. 支持mode配置history(表示去掉地址栏的#)
    20. -
    21. 任务分组字典翻译(调度日志详细)
    22. -
    23. 字典管理添加缓存读取
    24. -
    25. 字典数据列表标签显示样式
    26. -
    27. 参数管理支持缓存操作
    28. -
    29. 日期控件清空结束时间设置开始默认值为2099-12-31
    30. -
    31. 表格树添加获取数据后响应回调处理
    32. -
    33. 批量替换表前缀调整
    34. -
    35. 支持表格导入模板的弹窗表单加入其它输入控件
    36. -
    37. 表单重置刷新表格树
    38. -
    39. 新增支持导出数据字段排序
    40. -
    41. 新增表格参数(是否单选checkbox)
    42. -
    43. druid未授权不允许访问
    44. -
    45. 表格树父节点兼容0,'0','',null
    46. -
    47. 表单必填的项添加星号
    48. -
    49. 修复select2不显示校验错误信息
    50. -
    51. 添加自定义HTML过滤器
    52. -
    53. 修复多数据源下开关关闭出现异常问题
    54. -
    55. 修复翻页记住选择项数据问题
    56. -
    57. 用户邮箱长度限制20
    58. -
    59. 修改错误页面返回主页出现嵌套问题
    60. -
    61. 表格浮动提示单双引号转义
    62. -
    63. 支持配置四级菜单
    64. -
    65. 升级shiro到最新版1.4.2 阻止rememberMe漏洞攻击
    66. -
    67. 升级summernote到最新版本v0.8.12
    68. -
    69. 导入Excel根据dateFormat属性格式处理
    70. -
    71. 修复War部署无法正常shutdown,ehcache内存泄漏
    72. -
    73. 修复代码生成短字段无法识别问题
    74. -
    75. 修复serviceImpl模版,修改方法判断日期错误
    76. -
    77. 代码生成模板增加导出功能日志记录
    78. -
    79. 代码生成唯一编号调整为tableId
    80. -
    81. 代码生成查询时忽略大小写
    82. -
    83. 代码生成支持翻页记住选中
    84. -
    85. 代码生成表注释未填写也允许导入
    86. -
    87. Global全局配置类修改为注解,防止多环境配置下读取问题
    88. -
    89. 修复多表格情况下,firstLoad只对第一个表格生效
    90. -
    91. 处理Maven打包出现警告问题
    92. -
    93. 默认主题样式,防止网速慢情况下出现空白
    94. -
    95. 修复文件上传多级目录识别问题
    96. -
    97. 锚链接解码url,防止中文导致页面不能加载问题
    98. -
    99. 修复右键Tab页刷新事件重复请求问题
    100. -
    101. 角色禁用&菜单隐藏不查询权限
    102. -
    103. 其他细节优化
    104. -
    -
    -
    -
    -
    -
    -
    - v4.1.02019.10.22 -
    -
    -
    -
    -
      -
    1. 支持多表格实例操作
    2. -
    3. 浮动提示方法tooltip支持弹窗
    4. -
    5. 代码生成&字典数据支持模糊条件查询
    6. -
    7. 增加页签全屏方法
    8. -
    9. 增加清除表单验证错误信息方法
    10. -
    11. 支持iframe局部刷新页面
    12. -
    13. 支持在线切换主题
    14. -
    15. 修改图片预览设置的高宽参数颠倒问题
    16. -
    17. 操作日志新增解锁账户功能
    18. -
    19. 管理员用户&角色不允许操作
    20. -
    21. 去掉jsoup包调用自定义转义工具
    22. -
    23. 添加时间轴示例
    24. -
    25. 修复翻页记住选择时获取指定列值的问题
    26. -
    27. 代码生成sql脚本添加导出按钮
    28. -
    29. 添加表格父子视图示例
    30. -
    31. 添加表格行内编辑示例
    32. -
    33. 升级fastjson到最新版1.2.60 阻止漏洞攻击
    34. -
    35. 升级echarts到最新版4.2.1
    36. -
    37. 操作日志新增返回参数
    38. -
    39. 支持mybatis通配符扫描任意多个包
    40. -
    41. 权限验证多种情况处理
    42. -
    43. 修复树形类型的代码生成的部分必要属性无法显示
    44. -
    45. 修复非表格插件情况下重置出现异常
    46. -
    47. 修复富文本编辑器有序列表冲突
    48. -
    49. 代码生成表前缀配置支持多个
    50. -
    51. 修复自动去除表前缀配置无效问题
    52. -
    53. 菜单列表按钮数据可见不显示(权限标识控制)
    54. -
    55. 修复设置会话超时时间无效问题
    56. -
    57. 新增本地资源通用下载方法
    58. -
    59. 操作日志记录新增请求方式
    60. -
    61. 代码生成单选按钮属性重名修复
    62. -
    63. 优化select2下拉框宽度不会随浏览器改变
    64. -
    65. 修复代码生成树表异常
    66. -
    67. 其他细节优化
    68. -
    -
    -
    -
    -
    -
    -
    - v4.0.02019.08.08 -
    -
    -
    -
    -
      -
    1. 代码生成支持预览、编辑,保存方案
    2. -
    3. 新增防止表单重复提交注解
    4. -
    5. 新增后端校验(和前端保持一致)
    6. -
    7. 新增同一个用户最大会话数控制
    8. -
    9. Excel导出子对象支持多个字段
    10. -
    11. 定时任务支持静态调用和多参数
    12. -
    13. 定时任务增加分组条件查询
    14. -
    15. 字典类型增加任务分组数据
    16. -
    17. 新增表格是否首次加载数据
    18. -
    19. 新增parentTab选项卡可在同一页签打开
    20. -
    21. 多数据源支持类注解(允许继承父类的注解)
    22. -
    23. 部门及以下数据权限(调整为以下及所有子节点)
    24. -
    25. 新增角色数据权限配(仅本人数据权限)
    26. -
    27. 修改菜单权限显示问题
    28. -
    29. 上传文件修改路径及返回名称
    30. -
    31. 添加报表插件及示例
    32. -
    33. 添加首页统计模板
    34. -
    35. 添加表格拖拽示例
    36. -
    37. 添加卡片列表示例
    38. -
    39. 添加富文本编辑器示例
    40. -
    41. 添加表格动态增删改查示例
    42. -
    43. 添加用户页面岗位选择框提示
    44. -
    45. 点击菜单操作添加背景高亮显示
    46. -
    47. 表格树新增showSearch是否显示检索信息
    48. -
    49. 解决表格列设置sortName无效问题
    50. -
    51. 表格图片预览支持自定义设置宽高
    52. -
    53. 添加表格列浮动提示(单击文本复制)
    54. -
    55. PC端收起菜单后支持浮动显示
    56. -
    57. 详细操作样式调整
    58. -
    59. 修改用户更新描述空串不更新问题
    60. -
    61. 导入修改为模板渲染
    62. -
    63. 修改菜单及部门排序规则
    64. -
    65. 角色导出数据范围表达式翻译
    66. -
    67. 添加summernote富文本字体大小
    68. -
    69. 优化表格底部下边框防重叠&汇总像素问题
    70. -
    71. 树表格支持属性多层级访问
    72. -
    73. 修复IE浏览器用户管理界面右侧留白问题
    74. -
    75. 重置按钮刷新表格
    76. -
    77. 重置密码更新用户缓存
    78. -
    79. 优化验证码属性参数
    80. -
    81. 支持数据监控配置用户名和密码
    82. -
    83. 文件上传修改按钮背景及加载动画
    84. -
    85. 支持配置一级菜单href跳转
    86. -
    87. 侧边栏添加一套浅色主题
    88. -
    89. 树表格添加回调函数(校验异常状态)
    90. -
    91. 用户个人中心适配手机端显示
    92. -
    93. Excel支持设置导出类型&更换样式
    94. -
    95. 检查属性改变修改为克隆方式(防止热部署强转异常)
    96. -
    97. 其他细节优化
    98. -
    -
    -
    -
    -
    -
    -
    - v3.4.02019.06.03 -
    -
    -
    -
    -
      -
    1. 新增实例演示菜单及demo
    2. -
    3. 新增页签右键操作
    4. -
    5. 菜单管理新增打开方式
    6. -
    7. 新增点击某行触发的事件
    8. -
    9. 新增双击某行触发的事件
    10. -
    11. 新增单击某格触发的事件
    12. -
    13. 新增双击某格触发的事件
    14. -
    15. 新增是否启用显示细节视图
    16. -
    17. 支持上传任意格式文件
    18. -
    19. 修复角色权限注解失效问题
    20. -
    21. 左侧的菜单栏宽度调整
    22. -
    23. 新增响应完成后自定义回调函数
    24. -
    25. 支持前端及其他模块直接获取用户信息
    26. -
    27. 升级swagger到最新版2.9.2
    28. -
    29. 升级jquery.slimscroll到最新版1.3.8
    30. -
    31. 升级select2到最新版4.0.7
    32. -
    33. 新增角色配置本部门数据权限
    34. -
    35. 新增角色配置本部门及以下数据权限
    36. -
    37. 优化底部操作防止跳到页面顶端
    38. -
    39. 修改冻结列选框无效及样式问题
    40. -
    41. 修复部门四层级修改祖级无效问题
    42. -
    43. 更换开关切换按钮样式
    44. -
    45. 新增select2-bootstrap美化下拉框
    46. -
    47. 添加表格内图片预览方法
    48. -
    49. 修复权限校验失败跳转页面路径错误
    50. -
    51. 国际化资源文件调整
    52. -
    53. 通知公告布局调整
    54. -
    55. 删除页签操作功能
    56. -
    57. 表格树新增查询指定列值
    58. -
    59. 更改系统接口扫描方式及完善测试案例
    60. -
    61. 表格列浮动提示及字典回显默认去背景
    62. -
    63. 修复启用翻页记住前面的选择check没选中问题
    64. -
    65. 去除监控页面底部的广告
    66. -
    67. 日期控件功问题修复及data功能增强
    68. -
    69. 新增角色权限可见性(前端直接调用)
    70. -
    71. 新增获取当前登录用户方法(前端及子模块调用)
    72. -
    73. 修复热部署重启导致菜单丢失问题
    74. -
    75. 优化业务校验失败普通请求跳转页面
    76. -
    77. 操作日志新增状态条件查询
    78. -
    79. 操作类型支持多选条件查询
    80. -
    81. 通知公告防止滚动触底回弹优化
    82. -
    83. 其他细节优化
    84. -
    -
    -
    -
    -
    -
    -
    - v3.3.02019.04.01 -
    -
    -
    -
    -
      -
    1. 新增线程池统一管理
    2. -
    3. 新增支持左右冻结列
    4. -
    5. 新增表格字符超长浮动提示
    6. -
    7. 升级datepicker拓展并汉化
    8. -
    9. 升级druid到最新版本v1.1.14
    10. -
    11. 修复个人头像为图片服务器跨域问题
    12. -
    13. 修改上传文件按日期存储
    14. -
    15. 新增表格客户端分页选项
    16. -
    17. 新增表格的高度参数
    18. -
    19. 新增表格销毁方法
    20. -
    21. 新增表格下拉按钮切换方法
    22. -
    23. 新增表格分页跳转到指定页码
    24. -
    25. 新增表格启用点击选中行参数
    26. -
    27. 修复表格数据重新加载未触发部分按钮禁用
    28. -
    29. 使用jsonview展示操作日志参数
    30. -
    31. 新增方法(addTab、editTab)
    32. -
    33. 修改用户管理界面为Tab打开方式
    34. -
    35. 表单验证代码优化
    36. -
    37. 修复@Excel注解 prompt 属性使用报错
    38. -
    39. 修复combo属性Excel兼容性问题
    40. -
    41. 新增@Excel导入导出支持父类字段
    42. -
    43. 修复关闭最后选项卡无法激活滚动问题
    44. -
    45. 增加日期控件显示类型及回显格式扩展选项
    46. -
    47. 修复定时任务执行失败后入库状态为成功状态
    48. -
    49. 支持定时任务并发开关控制
    50. -
    51. 优化权限校验失败普通请求跳转页面
    52. -
    53. 捕获线程池执行任务抛出的异常
    54. -
    55. 修复IE浏览器导出功能报错
    56. -
    57. 新增角色管理分配用户功能
    58. -
    59. 新增表格翻页记住前面的选择
    60. -
    61. 调整用户个人中心页面
    62. -
    63. 修复界面存在的一些安全问题
    64. -
    65. 其他细节优化
    66. -
    -
    -
    -
    -
    -
    -
    - v3.2.02019.01.18 -
    -
    -
    -
    -
      -
    1. 部门修改时不允许选择最后节点
    2. -
    3. 修复部门菜单排序字段无效
    4. -
    5. 修复光驱磁盘导致服务监控异常
    6. -
    7. 登录界面去除check插件
    8. -
    9. 验证码文本字符间距修正
    10. -
    11. 升级SpringBoot到最新版本2.1.1
    12. -
    13. 升级MYSQL驱动
    14. -
    15. 修正登录必填项位置偏移
    16. -
    17. Session会话检查优化
    18. -
    19. Excel注解支持多级获取
    20. -
    21. 新增序列号生成方法
    22. -
    23. 修复WAR部署tomcat退出线程异常
    24. -
    25. 全屏操作增加默认确认/关闭
    26. -
    27. 修复个人信息可能导致漏洞
    28. -
    29. 字典数据根据下拉选择新增类型
    30. -
    31. 升级Summernote到最新版本v0.8.11
    32. -
    33. 新增用户数据导入
    34. -
    35. 首页主题样式更换
    36. -
    37. layer扩展主题更换
    38. -
    39. 用户管理移动端默认隐藏左侧布局
    40. -
    41. 详细信息弹出层显示在顶层
    42. -
    43. 表格支持切换状态(用户/角色/定时任务)
    44. -
    45. Druid数据源支持配置继承
    46. -
    47. 修正部分iPhone手机端表格适配问题
    48. -
    49. 新增防止重复提交表单方法
    50. -
    51. 新增表格数据统计汇总方法
    52. -
    53. 支持富文本上传图片文件
    54. -
    -
    -
    -
    -
    -
    -
    - v3.1.02018.12.03 -
    -
    -
    -
    -
      -
    1. 新增内网不获取IP地址
    2. -
    3. 新增cron表达式有效校验
    4. -
    5. 定时任务新增详细信息
    6. -
    7. 定时任务默认策略修改(不触发立即执行)
    8. -
    9. 定时任务显示下一个执行周期
    10. -
    11. 支持前端任意日期格式处理
    12. -
    13. 上传头像删除多余提交按钮
    14. -
    15. 表格增加行间隔色配置项
    16. -
    17. 表格增加转义HTML字符串配置项
    18. -
    19. 表格增加显示/隐藏指定列
    20. -
    21. 代码生成优化
    22. -
    23. 操作日志参数格式化显示
    24. -
    25. 页签新增新增全屏显示
    26. -
    27. 新增一键打包部署
    28. -
    29. Excel注解新增多个参数
    30. -
    31. 新增提交静默更新表格方法
    32. -
    33. 新增服务监控菜单
    34. -
    -
    -
    -
    -
    -
    -
    - v3.0.02018.10.08 -
    -
    -
    -
    -
      -
    1. 升级poi到最新版3.17
    2. -
    3. 导出修改临时目录绝对路径
    4. -
    5. 升级laydate到最新版5.0.9
    6. -
    7. 升级SpringBoot到最新版本2.0.5
    8. -
    9. 优化开始/结束时间校验限制
    10. -
    11. 重置密码参数表中获取默认值
    12. -
    13. 修复头像修改显示问题
    14. -
    15. 新增数据权限过滤注解
    16. -
    17. 新增表格检索折叠按钮
    18. -
    19. 新增清空(登录、操作、调度)日志
    20. -
    21. 固定按钮位置(提交/关闭)
    22. -
    23. 部门/菜单支持(展开/折叠)
    24. -
    25. 部分细节调整优化
    26. -
    27. 项目采用分模块
    28. -
    -
    -
    -
    -
    -
    -
    - v2.4.02018.09.03 -
    -
    -
    -
    -
      -
    1. 支持部门多级查询
    2. -
    3. 修复菜单状态查询无效
    4. -
    5. 支持IP地址开关
    6. -
    7. 支持XSS开关
    8. -
    9. 记录日志异步处理
    10. -
    11. 字典回显样式更改为下拉框
    12. -
    13. 菜单类型必填校验
    14. -
    15. 修复在线用户排序报错
    16. -
    17. 增加重置按钮
    18. -
    19. 支持注解导入数据
    20. -
    21. 支持弹层外区域关闭
    22. -
    23. 备注更换为文本区域
    24. -
    25. 新增角色逻辑删除
    26. -
    27. 新增部门逻辑删除
    28. -
    29. 支持部门数据权限
    30. -
    31. 管理员默认拥有所有授权
    32. -
    33. 字典数据采用分页
    34. -
    35. 部分细节调整优化
    36. -
    -
    -
    -
    -
    -
    -
    - v2.3.02018.08.06 -
    -
    -
    -
    -
      -
    1. 支持表格不分页开关控制
    2. -
    3. 修改字典类型同步修改字典数据
    4. -
    5. 代码生成新增修改后缀处理
    6. -
    7. 代码生成新增实体toString
    8. -
    9. 代码生成非字符串去除!=''
    10. -
    11. 导出数据前加载遮罩层
    12. -
    13. 部门删除校验条件修改
    14. -
    15. 搜索查询下载优化
    16. -
    17. 手机打开弹出层自适应
    18. -
    19. 角色岗位禁用显示置灰
    20. -
    21. 角色禁用不显示菜单
    22. -
    23. 新增导出权限
    24. -
    25. 角色权限唯一校验
    26. -
    27. 岗位名称编码唯一校验
    28. -
    29. TreeTable优化
    30. -
    31. 支持多数据源
    32. -
    33. 其他细节优化
    34. -
    -
    -
    -
    -
    -
    -
    - v2.2.02018.07.23 -
    -
    -
    -
    -
      -
    1. 修复批量生成代码异常问题
    2. -
    3. 修复定时器保存失败问题
    4. -
    5. 修复热部署转换问题
    6. -
    7. 支持查询菜单管理,部门管理
    8. -
    9. 大多数功能支持时间查询
    10. -
    11. 自定义导出注解自动匹配column
    12. -
    13. 新增任务执行策略
    14. -
    15. 操作详细动态显示类型
    16. -
    17. 支持动态回显字典数据
    18. -
    19. 后台代码优化调整
    20. -
    21. 其他细节优化
    22. -
    -
    -
    -
    -
    -
    -
    - v2.1.02018.07.10 -
    -
    -
    -
    -
      -
    1. 新增登陆超时提醒
    2. -
    3. 修复定时器热部署转换问题
    4. -
    5. 修复登录验证码校验无效问题
    6. -
    7. 定时任务新增立即执行一次
    8. -
    9. 存在字典数据不允许删除字典
    10. -
    11. 字典数据支持按名称查询
    12. -
    13. 代码生成增加日志注解&表格优化
    14. -
    15. 修复用户逻辑删除后能登录问题
    16. -
    17. 表格支持多字段动态排序
    18. -
    19. 支持三级菜单显示
    20. -
    21. 新增ry.sh启动程序脚本
    22. -
    23. 其他细节优化
    24. -
    -
    -
    -
    -
    -
    -
    - v2.0.02018.07.02 -
    -
    -
    -
    -
      -
    1. 升级SpringBoot到最新版本2.0.3
    2. -
    3. 新增公告管理
    4. -
    5. 表单校验示提体验优化
    6. -
    7. 前端通用方法封装调整
    8. -
    9. 前端去除js文件,合并到html
    10. -
    11. 操作加载遮罩层
    12. -
    13. 支持全屏模式操作
    14. -
    15. 支持注解导出数据
    16. -
    17. 系统支持多查询&下载
    18. -
    19. 系统样式调整
    20. -
    -
    -
    -
    -
    -
    -
    - v1.1.62018.06.04 -
    -
    -
    -
    -
      -
    1. 新增用户列表部门列
    2. -
    3. 新增登录地点
    4. -
    5. 新增swagger
    6. -
    7. 修复排序数字校验
    8. -
    9. 优化头像上传文件类型限定为图片
    10. -
    11. 新增XSS过滤
    12. -
    13. 新增热部署提高开发效率
    14. -
    15. 修复treegrid居中无效
    16. -
    17. 角色多条件查询
    18. -
    -
    -
    -
    -
    -
    -
    - v1.1.52018.05.28 -
    -
    -
    -
    -
      -
    1. 优化登录失败刷新验证码
    2. -
    3. 新增用户登陆地址时间
    4. -
    5. 修复ajax超时退出问题
    6. -
    7. 新增html调用数据字典(若依首创)
    8. -
    9. 调整系统部分样式
    10. -
    11. 新增用户逻辑删除
    12. -
    13. 新增管理员不允许删除修改
    14. -
    15. 升级bootstrapTable到最新版本1.12.1
    16. -
    17. 升级layer到最新版本3.1.1
    18. -
    -
    -
    -
    -
    -
    -
    - v1.1.42018.05.20 -
    -
    -
    -
    -
      -
    1. 新增参数管理
    2. -
    3. 修复头像上传bug
    4. -
    5. 手机邮箱唯一校验
    6. -
    7. 支持手机邮箱登录
    8. -
    9. 代码生成优化
    10. -
    11. 支持模糊查询
    12. -
    13. 支持切换主题皮肤
    14. -
    15. 修改权限即时生效
    16. -
    17. 修复页签Tab关闭问题
    18. -
    -
    -
    -
    -
    -
    -
    - v1.1.32018.05.14 -
    -
    -
    -
    -
      -
    1. 新增验证码(数组计算、字符验证)
    2. -
    3. 新增cookie记住我
    4. -
    5. 新增头像上传
    6. -
    7. 用户名密码长度限制
    8. -
    9. 通用字段提取
    10. -
    11. 支持自定义条件查询
    12. -
    13. 部门名称必填、时间格式调整
    14. -
    15. 其他细节优化
    16. -
    -
    -
    -
    -
    -
    -
    - v1.1.22018.05.07 -
    -
    -
    -
    -
      -
    1. 新增个人信息修改
    2. -
    3. 菜单存在子菜单不允许删除
    4. -
    5. 菜单分配角色不允许删除
    6. -
    7. 角色分配人员不允许删除
    8. -
    9. 岗位使用后不允许删除
    10. -
    11. 保证用户的数据完整性加入事物
    12. -
    13. 新增环境使用手册、数据建模
    14. -
    15. Thymeleaf升级到3.0
    16. -
    17. 支持非ROOT部署
    18. -
    -
    -
    -
    -
    -
    -
    - v1.1.12018.04.23 -
    -
    -
    -
    -
      -
    1. 新增表单构建器
    2. -
    3. 代码生成优化
    4. -
    5. 支持新增主部门
    6. -
    7. 支持选择上级部门、上级菜单
    8. -
    9. 新增字典管理单条删除
    10. -
    11. 优化一些其他细节
    12. -
    -
    -
    -
    -
    -
    -
    - v1.1.02018.04.20 -
    -
    -
    -
    -
      -
    1. 支持密码盐
    2. -
    3. 支持新增主目录
    4. -
    5. 支持批量生成代码
    6. -
    7. 支持表格导出(csv、txt、doc、excel)
    8. -
    9. 自动适应宽高模式窗体
    10. -
    11. 重复校验(角色名、菜单名、部门名)
    12. -
    13. 优化一些其他细节
    14. -
    -
    -
    -
    -
    -
    -
    - v1.0.92018.04.14 -
    -
    -
    -
    -
      -
    1. 新增代码生成(生成包括 java、html、js、xml、sql)
    2. -
    3. 新增按钮权限控制隐藏(若依首创)
    4. -
    -
    -
    -
    -
    -
    -
    - v1.0.82018.04.08 -
    -
    -
    -
    -
      -
    1. 新增定时任务(新增、修改、删除、查询、启动/暂停)
    2. -
    3. 新增调度日志(查询、删除)
    4. -
    -
    -
    -
    -
    -
    -
    - v1.0.72018.04.04 -
    -
    -
    -
    -
      -
    1. 新增岗位管理(新增、修改、删除、查询)
    2. -
    3. 优化用户管理,菜单管理部分细节
    4. -
    -
    -
    -
    -
    -
    -
    - v1.0.62018.03.15 -
    -
    -
    -
    -
      -
    1. 新增字典管理(新增、删除、修改、查询、数据选择)
    2. -
    3. 新增用户密码重置
    4. -
    5. 优化一些其他细节
    6. -
    -
    -
    -
    -
    -
    -
    - v1.0.52018.03.12 -
    -
    -
    -
    -
      -
    1. 新增菜单管理(新增、删除、修改、查询、图标选择)
    2. -
    3. 部门管理优化(添加责任人、联系电话、邮箱、修改者)
    4. -
    -
    -
    -
    -
    -
    -
    - v1.0.42018.03.11 -
    -
    -
    -
    -
      -
    1. 新增角色管理(新增、删除、修改、查询、菜单选择)
    2. -
    -
    -
    -
    -
    -
    -
    - v1.0.32018.03.08 -
    -
    -
    -
    -
      -
    1. 新增用户管理(新增、删除、修改、查询、部门选择)
    2. -
    -
    -
    -
    -
    -
    -
    - v1.0.22018.03.04 -
    -
    -
    -
    -
      -
    1. 新增部门管理 (新增、删除、修改、查询)
    2. -
    -
    -
    -
    -
    -
    -
    - v1.0.12018.03.03 -
    -
    -
    -
    -
      -
    1. 新增在线用户 (批量强退、单条强退、查询)
    2. -
    3. 新增登录日志 (批量删除、查询)
    4. -
    5. 新增操作日志 (批量删除、查询、详细)
    6. -
    7. 新增数据监控 (监控DB池连接和SQL的执行)
    8. -
    -
    -
    -
    -
    -
    -

    - v1.0.02018.03.01 -

    -
    -
    -
    -
      -
    1. 若依管理系统正式发布。
    2. -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    捐赠
    -
    -
    -
    - 请作者喝杯咖啡(点击图片放大) -
    -

    - 请使用手机支付宝或者微信扫码支付 - -

    - -
    -
    -
    -
    -
    diff --git a/ruoyi-admin/src/main/resources/templates/report/DeviceAmountDayReport/DeviceAmountDayReport.html b/ruoyi-admin/src/main/resources/templates/report/DeviceAmountDayReport/DeviceAmountDayReport.html index e88d09b..cd73cdd 100644 --- a/ruoyi-admin/src/main/resources/templates/report/DeviceAmountDayReport/DeviceAmountDayReport.html +++ b/ruoyi-admin/src/main/resources/templates/report/DeviceAmountDayReport/DeviceAmountDayReport.html @@ -1,126 +1,130 @@ - - - - - - -
    -
    -
    -
    -
    -
      -
    • - - -
    • -
    • - - -
    • -
    • - - - - - -
    • -
    • -  搜索 -  重置 -
    • -
    -
    -
    -
    - -
    - - - - - - - - - - - 导出 - -
    -
    -
    -
    -
    -
    - - - + + + + + + +
    +
    +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + + - + +
    • +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    + +
    + + + + + + + + + + + 导出 + +
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/report/GroupAmountDatReport/GroupAmountDatReport.html b/ruoyi-admin/src/main/resources/templates/report/GroupAmountDatReport/GroupAmountDatReport.html index 0077055..6dfebd4 100644 --- a/ruoyi-admin/src/main/resources/templates/report/GroupAmountDatReport/GroupAmountDatReport.html +++ b/ruoyi-admin/src/main/resources/templates/report/GroupAmountDatReport/GroupAmountDatReport.html @@ -1,115 +1,115 @@ - - - - - - -
    -
    -
    -
    -
    -
      -
    • - - -
    • -
    • - - -
    • -
    • - - - - - -
    • -
    • -  搜索 -  重置 -
    • -
    -
    -
    -
    - -
    - - - - - - - - - - - 导出 - -
    -
    -
    -
    -
    -
    - - - + + + + + + +
    +
    +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + + - + +
    • +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    + +
    + + + + + + + + + + + 导出 + +
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/report/MaterialCodeAmountDatReport/MaterialCodeAmountDatReport.html b/ruoyi-admin/src/main/resources/templates/report/MaterialCodeAmountDatReport/MaterialCodeAmountDatReport.html index 83a1e53..31b8537 100644 --- a/ruoyi-admin/src/main/resources/templates/report/MaterialCodeAmountDatReport/MaterialCodeAmountDatReport.html +++ b/ruoyi-admin/src/main/resources/templates/report/MaterialCodeAmountDatReport/MaterialCodeAmountDatReport.html @@ -1,115 +1,115 @@ - - - - - - -
    -
    -
    -
    -
    -
      -
    • - - -
    • -
    • - - -
    • -
    • - - - - - -
    • -
    • -  搜索 -  重置 -
    • -
    -
    -
    -
    - -
    - - - - - - - - - - - 导出 - -
    -
    -
    -
    -
    -
    - - - + + + + + + +
    +
    +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + + - + +
    • +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    + +
    + + + + + + + + + + + 导出 + +
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/report/PlanRateAmountDatReport/PlanRateAmountDatReport.html b/ruoyi-admin/src/main/resources/templates/report/PlanRateAmountDatReport/PlanRateAmountDatReport.html index eccfaad..2d64296 100644 --- a/ruoyi-admin/src/main/resources/templates/report/PlanRateAmountDatReport/PlanRateAmountDatReport.html +++ b/ruoyi-admin/src/main/resources/templates/report/PlanRateAmountDatReport/PlanRateAmountDatReport.html @@ -1,116 +1,116 @@ - - - - - - -
    -
    -
    -
    -
    -
      -
    • - - -
    • -
    • - - -
    • -
    • - - -
    • -
    • - - - - - -
    • -
    • -  搜索 -  重置 -
    • -
    -
    -
    -
    - -
    - - - - - - - - - - - 导出 - -
    -
    -
    -
    -
    -
    - - - + + + + + + +
    +
    +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + + - + +
    • +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    + +
    + + + + + + + + + + + 导出 + +
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/report/ShiftAmountDatReport/ShiftAmountDatReport.html b/ruoyi-admin/src/main/resources/templates/report/ShiftAmountDatReport/ShiftAmountDatReport.html index 396c67c..8721fbf 100644 --- a/ruoyi-admin/src/main/resources/templates/report/ShiftAmountDatReport/ShiftAmountDatReport.html +++ b/ruoyi-admin/src/main/resources/templates/report/ShiftAmountDatReport/ShiftAmountDatReport.html @@ -1,116 +1,116 @@ - - - - - - -
    -
    -
    -
    -
    -
      -
    • - - -
    • -
    • - - -
    • -
    • - - - - - -
    • -
    • -  搜索 -  重置 -
    • -
    -
    -
    -
    - -
    - - - - - - - - - - - 导出 - -
    -
    -
    -
    -
    -
    - - - + + + + + + +
    +
    +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + + - + +
    • +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    + +
    + + + + + + + + + + + 导出 + +
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/report/WorkProcedureAmountDatReport/WorkProcedureAmountDatReport.html b/ruoyi-admin/src/main/resources/templates/report/WorkProcedureAmountDatReport/WorkProcedureAmountDatReport.html index eb3313c..3be2f70 100644 --- a/ruoyi-admin/src/main/resources/templates/report/WorkProcedureAmountDatReport/WorkProcedureAmountDatReport.html +++ b/ruoyi-admin/src/main/resources/templates/report/WorkProcedureAmountDatReport/WorkProcedureAmountDatReport.html @@ -1,116 +1,116 @@ - - - - - - -
    -
    -
    -
    -
    -
      -
    • - - -
    • -
    • - - -
    • -
    • - - - - - -
    • -
    • -  搜索 -  重置 -
    • -
    -
    -
    -
    - -
    - - - - - - - - - - - 导出 - -
    -
    -
    -
    -
    -
    - - - + + + + + + +
    +
    +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + + - + +
    • +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    + +
    + + + + + + + + + + + 导出 + +
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/domain/BaseBomInfo.java b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/domain/BaseBomInfo.java index 8216171..5e57592 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/domain/BaseBomInfo.java +++ b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/domain/BaseBomInfo.java @@ -1,119 +1,121 @@ -package com.ruoyi.baseinfo.domain; - -import lombok.Data; -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; -import com.ruoyi.common.annotation.Excel; -import com.ruoyi.common.core.domain.BaseEntity; - -/** - * BOM基础信息对象 base_bom_info - * - * @author CaesarBao - * @date 2020-11-04 - */ -@Data -public class BaseBomInfo extends BaseEntity -{ - private static final long serialVersionUID = 1L; - - /** 主键ID */ - private Long bomId; - - /** 父节点ID */ - @Excel(name = "父节点ID") - private Long pId; - - - /** 物料类型ID */ - @Excel(name = "物料类型ID") - private String materialTypeId; - - /** 物料ID */ - @Excel(name = "物料ID") - private String materialId; - - /** 状态标志(0代表可用 1代表停用) */ - @Excel(name = "状态标志", readConverterExp = "0=代表可用,1=代表停用") - private String status; - - /** 删除标志(0代表存在 1代表删除) */ - private String delFlag; - - private String materialTypeName; - - private String materialName; - - public void setBomId(Long objid) - { - this.bomId = objid; - } - - public Long getBomId() - { - return bomId; - } - public void setpId(Long pId) - { - this.pId = pId; - } - - public Long getpId() - { - return pId; - } - - public void setMaterialTypeId(String materialTypeId) - { - this.materialTypeId = materialTypeId; - } - - public String getMaterialTypeId() - { - return materialTypeId; - } - public void setMaterialId(String materialId) - { - this.materialId = materialId; - } - - public String getMaterialId() - { - return materialId; - } - public void setStatus(String status) - { - this.status = status; - } - - public String getStatus() - { - return status; - } - public void setDelFlag(String delFlag) - { - this.delFlag = delFlag; - } - - public String getDelFlag() - { - return delFlag; - } - - @Override - public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("bomId", getBomId()) - .append("pId", getpId()) - .append("materialTypeId", getMaterialTypeId()) - .append("materialId", getMaterialId()) - .append("status", getStatus()) - .append("remark", getRemark()) - .append("createBy", getCreateBy()) - .append("createTime", getCreateTime()) - .append("updateBy", getUpdateBy()) - .append("updateTime", getUpdateTime()) - .append("delFlag", getDelFlag()) - .toString(); - } -} +package com.ruoyi.baseinfo.domain; + +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * BOM基础信息对象 base_bom_info + * + * @author CaesarBao + * @date 2020-11-04 + */ +@Data +public class BaseBomInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键ID */ + private Long bomId; + + /** 父节点ID */ + @Excel(name = "父节点ID") + private Long pId; + + + /** 物料类型ID */ + @Excel(name = "物料类型ID") + private String materialTypeId; + + /** 物料ID */ + @Excel(name = "物料ID") + private String materialId; + + /** 状态标志(0代表可用 1代表停用) */ + @Excel(name = "状态标志", readConverterExp = "0=代表可用,1=代表停用") + private String status; + + /** 删除标志(0代表存在 1代表删除) */ + private String delFlag; + + private String materialTypeName; + + private String materialName; + + private String materialCode; + + public void setBomId(Long objid) + { + this.bomId = objid; + } + + public Long getBomId() + { + return bomId; + } + public void setpId(Long pId) + { + this.pId = pId; + } + + public Long getpId() + { + return pId; + } + + public void setMaterialTypeId(String materialTypeId) + { + this.materialTypeId = materialTypeId; + } + + public String getMaterialTypeId() + { + return materialTypeId; + } + public void setMaterialId(String materialId) + { + this.materialId = materialId; + } + + public String getMaterialId() + { + return materialId; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + public void setDelFlag(String delFlag) + { + this.delFlag = delFlag; + } + + public String getDelFlag() + { + return delFlag; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("bomId", getBomId()) + .append("pId", getpId()) + .append("materialTypeId", getMaterialTypeId()) + .append("materialId", getMaterialId()) + .append("status", getStatus()) + .append("remark", getRemark()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("delFlag", getDelFlag()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/domain/BaseWorkingprocedureInfo.java b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/domain/BaseWorkingprocedureInfo.java index 5bc193d..8f9a11b 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/domain/BaseWorkingprocedureInfo.java +++ b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/domain/BaseWorkingprocedureInfo.java @@ -1,5 +1,6 @@ package com.ruoyi.baseinfo.domain; +import com.ruoyi.system.domain.SysDept; import lombok.Data; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; @@ -41,6 +42,8 @@ public class BaseWorkingprocedureInfo extends BaseEntity private String deptName; + private SysDept dept; + private boolean flag = false; public void setObjid(Long objid) diff --git a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/mapper/BaseBomInfoMapper.java b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/mapper/BaseBomInfoMapper.java index 9038804..a59e88f 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/mapper/BaseBomInfoMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/mapper/BaseBomInfoMapper.java @@ -1,77 +1,80 @@ -package com.ruoyi.baseinfo.mapper; - -import java.util.List; -import com.ruoyi.baseinfo.domain.BaseBomInfo; - -/** - * BOM基础信息Mapper接口 - * - * @author CaesarBao - * @date 2020-11-04 - */ -public interface BaseBomInfoMapper -{ - /** - * 查询BOM基础信息 - * - * @param objid BOM基础信息ID - * @return BOM基础信息 - */ - public BaseBomInfo selectBaseBomInfoById(Long objid); - - /** - * 查询BOM基础信息列表 - * - * @param baseBomInfo BOM基础信息 - * @return BOM基础信息集合 - */ - public List selectBaseBomInfoList(BaseBomInfo baseBomInfo); - - /** - * 新增BOM基础信息 - * - * @param baseBomInfo BOM基础信息 - * @return 结果 - */ - public int insertBaseBomInfo(BaseBomInfo baseBomInfo); - - /** - * 修改BOM基础信息 - * - * @param baseBomInfo BOM基础信息 - * @return 结果 - */ - public int updateBaseBomInfo(BaseBomInfo baseBomInfo); - - /** - * 删除BOM基础信息 - * - * @param objid BOM基础信息ID - * @return 结果 - */ - public int deleteBaseBomInfoById(Long objid); - - /** - * 批量删除BOM基础信息 - * - * @param objids 需要删除的数据ID - * @return 结果 - */ - public int deleteBaseBomInfoByIds(String[] objids); - - - /** - * 查询BOM基础信息 - * - * @param materialName BOM上级节点得物料名称 - * @return 结果 - */ - public BaseBomInfo selectBaseBomInfoBymaterialName(BaseBomInfo baseBomInfo); - /** - * 查询BOM节点数量 - * - * @param parentId 父部门ID - * @return 结果 - */ - public int selectBomCount(BaseBomInfo baseBomInfo); -} +package com.ruoyi.baseinfo.mapper; + +import java.util.List; +import com.ruoyi.baseinfo.domain.BaseBomInfo; +import org.apache.ibatis.annotations.Param; + +/** + * BOM基础信息Mapper接口 + * + * @author CaesarBao + * @date 2020-11-04 + */ +public interface BaseBomInfoMapper +{ + /** + * 查询BOM基础信息 + * + * @param objid BOM基础信息ID + * @return BOM基础信息 + */ + public BaseBomInfo selectBaseBomInfoById(Long objid); + + /** + * 查询BOM基础信息列表 + * + * @param baseBomInfo BOM基础信息 + * @return BOM基础信息集合 + */ + public List selectBaseBomInfoList(BaseBomInfo baseBomInfo); + + /** + * 新增BOM基础信息 + * + * @param baseBomInfo BOM基础信息 + * @return 结果 + */ + public int insertBaseBomInfo(BaseBomInfo baseBomInfo); + + /** + * 修改BOM基础信息 + * + * @param baseBomInfo BOM基础信息 + * @return 结果 + */ + public int updateBaseBomInfo(BaseBomInfo baseBomInfo); + + /** + * 删除BOM基础信息 + * + * @param objid BOM基础信息ID + * @return 结果 + */ + public int deleteBaseBomInfoById(Long objid); + + /** + * 批量删除BOM基础信息 + * + * @param objids 需要删除的数据ID + * @return 结果 + */ + public int deleteBaseBomInfoByIds(String[] objids); + + + /** + * 查询BOM基础信息 + * + * @param materialName BOM上级节点得物料名称 + * @param materialTypeId + * @param materialId + * @return 结果 + */ + public BaseBomInfo selectBaseBomInfoBymaterialName(@Param("materialName") String materialName, @Param("materialTypeId") String materialTypeId,@Param("materialId") String materialId); + /** + * 查询BOM节点数量 + * + * @param baseBomInfo 父部门ID + * @return 结果 + */ + public int selectBomCount(BaseBomInfo baseBomInfo); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/mapper/BaseMaterialInfoMapper.java b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/mapper/BaseMaterialInfoMapper.java index a3e8a26..f03bfc8 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/mapper/BaseMaterialInfoMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/mapper/BaseMaterialInfoMapper.java @@ -2,6 +2,7 @@ package com.ruoyi.baseinfo.mapper; import java.util.List; import com.ruoyi.baseinfo.domain.BaseMaterialInfo; +import com.ruoyi.common.core.domain.CxSelect; /** * 物料基础信息Mapper接口 @@ -58,4 +59,6 @@ public interface BaseMaterialInfoMapper * @return 结果 */ public int deleteBaseMaterialInfoByIds(String[] objids); + + public List selectCxSelectChildList(String materialTypeId); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/mapper/BaseMaterialtypeInfoMapper.java b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/mapper/BaseMaterialtypeInfoMapper.java index e96387f..3dd08fa 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/mapper/BaseMaterialtypeInfoMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/mapper/BaseMaterialtypeInfoMapper.java @@ -1,7 +1,10 @@ package com.ruoyi.baseinfo.mapper; import java.util.List; +import java.util.Map; + import com.ruoyi.baseinfo.domain.BaseMaterialtypeInfo; +import com.ruoyi.common.core.domain.CxSelect; /** * 物料类型基础信息Mapper接口 @@ -61,4 +64,6 @@ public interface BaseMaterialtypeInfoMapper public List selectAddBaseMaterialtypeInfoList(); + public List selectCxSelectList(); + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/service/IBaseMaterialtypeInfoService.java b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/service/IBaseMaterialtypeInfoService.java index 7de8d7a..012f4a2 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/service/IBaseMaterialtypeInfoService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/service/IBaseMaterialtypeInfoService.java @@ -2,6 +2,7 @@ package com.ruoyi.baseinfo.service; import java.util.List; import com.ruoyi.baseinfo.domain.BaseMaterialtypeInfo; +import com.ruoyi.common.core.domain.CxSelect; /** * 物料类型基础信息Service接口 @@ -63,4 +64,6 @@ public interface IBaseMaterialtypeInfoService public List selectEditBaseMaterialtypeInfoList(String materialTypeId); + public List selectCxSelectList(); + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/service/impl/BaseBomInfoServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/service/impl/BaseBomInfoServiceImpl.java index d74e6c0..59ac250 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/service/impl/BaseBomInfoServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/service/impl/BaseBomInfoServiceImpl.java @@ -1,110 +1,112 @@ -package com.ruoyi.baseinfo.service.impl; - -import java.util.List; -import com.ruoyi.common.utils.DateUtils; -import com.ruoyi.system.domain.SysDept; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import com.ruoyi.baseinfo.mapper.BaseBomInfoMapper; -import com.ruoyi.baseinfo.domain.BaseBomInfo; -import com.ruoyi.baseinfo.service.IBaseBomInfoService; -import com.ruoyi.common.core.text.Convert; - -/** - * BOM基础信息Service业务层处理 - * - * @author CaesarBao - * @date 2020-11-04 - */ -@Service -public class BaseBomInfoServiceImpl implements IBaseBomInfoService -{ - @Autowired - private BaseBomInfoMapper baseBomInfoMapper; - - /** - * 查询BOM基础信息 - * - * @param objid BOM基础信息ID - * @return BOM基础信息 - */ - @Override - public BaseBomInfo selectBaseBomInfoById(Long objid) - { - return baseBomInfoMapper.selectBaseBomInfoById(objid); - } - - /** - * 查询BOM基础信息列表 - * - * @param baseBomInfo BOM基础信息 - * @return BOM基础信息 - */ - @Override - public List selectBaseBomInfoList(BaseBomInfo baseBomInfo) - { - return baseBomInfoMapper.selectBaseBomInfoList(baseBomInfo); - } - - /** - * 新增BOM基础信息 - * - * @param baseBomInfo BOM基础信息 - * @return 结果 - */ - @Override - public int insertBaseBomInfo(BaseBomInfo baseBomInfo) - { - baseBomInfo.setCreateTime(DateUtils.getNowDate()); - return baseBomInfoMapper.insertBaseBomInfo(baseBomInfo); - } - - /** - * 修改BOM基础信息 - * - * @param baseBomInfo BOM基础信息 - * @return 结果 - */ - @Override - public int updateBaseBomInfo(BaseBomInfo baseBomInfo) - { - baseBomInfo.setUpdateTime(DateUtils.getNowDate()); - return baseBomInfoMapper.updateBaseBomInfo(baseBomInfo); - } - - /** - * 删除BOM基础信息对象 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - @Override - public int deleteBaseBomInfoByIds(String ids) - { - return baseBomInfoMapper.deleteBaseBomInfoByIds(Convert.toStrArray(ids)); - } - - /** - * 删除BOM基础信息信息 - * - * @param objid BOM基础信息ID - * @return 结果 - */ - @Override - public int deleteBaseBomInfoById(Long objid) - { - return baseBomInfoMapper.deleteBaseBomInfoById(objid); - } - - @Override - public BaseBomInfo selectBaseBomInfoBymaterialName(BaseBomInfo baseBomInfo) { - return baseBomInfoMapper.selectBaseBomInfoBymaterialName(baseBomInfo); - } - - @Override - public int selectBomCount(Long parentId) { - BaseBomInfo baseBomInfo = new BaseBomInfo(); - baseBomInfo.setpId(parentId); - return baseBomInfoMapper.selectBomCount(baseBomInfo); - } -} +package com.ruoyi.baseinfo.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.system.domain.SysDept; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.baseinfo.mapper.BaseBomInfoMapper; +import com.ruoyi.baseinfo.domain.BaseBomInfo; +import com.ruoyi.baseinfo.service.IBaseBomInfoService; +import com.ruoyi.common.core.text.Convert; + +/** + * BOM基础信息Service业务层处理 + * + * @author CaesarBao + * @date 2020-11-04 + */ +@Service +public class BaseBomInfoServiceImpl implements IBaseBomInfoService +{ + @Autowired + private BaseBomInfoMapper baseBomInfoMapper; + + /** + * 查询BOM基础信息 + * + * @param objid BOM基础信息ID + * @return BOM基础信息 + */ + @Override + public BaseBomInfo selectBaseBomInfoById(Long objid) + { + return baseBomInfoMapper.selectBaseBomInfoById(objid); + } + + /** + * 查询BOM基础信息列表 + * + * @param baseBomInfo BOM基础信息 + * @return BOM基础信息 + */ + @Override + public List selectBaseBomInfoList(BaseBomInfo baseBomInfo) + { + return baseBomInfoMapper.selectBaseBomInfoList(baseBomInfo); + } + + /** + * 新增BOM基础信息 + * + * @param baseBomInfo BOM基础信息 + * @return 结果 + */ + @Override + public int insertBaseBomInfo(BaseBomInfo baseBomInfo) + { + baseBomInfo.setCreateTime(DateUtils.getNowDate()); + return baseBomInfoMapper.insertBaseBomInfo(baseBomInfo); + } + + /** + * 修改BOM基础信息 + * + * @param baseBomInfo BOM基础信息 + * @return 结果 + */ + @Override + public int updateBaseBomInfo(BaseBomInfo baseBomInfo) + { + baseBomInfo.setUpdateTime(DateUtils.getNowDate()); + return baseBomInfoMapper.updateBaseBomInfo(baseBomInfo); + } + + /** + * 删除BOM基础信息对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteBaseBomInfoByIds(String ids) + { + return baseBomInfoMapper.deleteBaseBomInfoByIds(Convert.toStrArray(ids)); + } + + /** + * 删除BOM基础信息信息 + * + * @param objid BOM基础信息ID + * @return 结果 + */ + @Override + public int deleteBaseBomInfoById(Long objid) + { + return baseBomInfoMapper.deleteBaseBomInfoById(objid); + } + + @Override + public BaseBomInfo selectBaseBomInfoBymaterialName(BaseBomInfo baseBomInfo) { + BaseBomInfo baseBomInfolist = new BaseBomInfo(); + baseBomInfolist = baseBomInfoMapper.selectBaseBomInfoBymaterialName(baseBomInfo.getMaterialName(),baseBomInfo.getMaterialTypeId(),baseBomInfo.getMaterialId()); + return baseBomInfolist; + } + + @Override + public int selectBomCount(Long parentId) { + BaseBomInfo baseBomInfo = new BaseBomInfo(); + baseBomInfo.setpId(parentId); + return baseBomInfoMapper.selectBomCount(baseBomInfo); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/service/impl/BaseMaterialtypeInfoServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/service/impl/BaseMaterialtypeInfoServiceImpl.java index 7cbde69..7791a65 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/baseinfo/service/impl/BaseMaterialtypeInfoServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/baseinfo/service/impl/BaseMaterialtypeInfoServiceImpl.java @@ -1,6 +1,10 @@ package com.ruoyi.baseinfo.service.impl; import java.util.List; +import java.util.Map; + +import com.ruoyi.baseinfo.mapper.BaseMaterialInfoMapper; +import com.ruoyi.common.core.domain.CxSelect; import com.ruoyi.common.utils.DateUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -20,6 +24,8 @@ public class BaseMaterialtypeInfoServiceImpl implements IBaseMaterialtypeInfoSer { @Autowired private BaseMaterialtypeInfoMapper baseMaterialtypeInfoMapper; + @Autowired + private BaseMaterialInfoMapper baseMaterialInfoMapper; /** * 查询物料类型基础信息 @@ -114,4 +120,14 @@ public class BaseMaterialtypeInfoServiceImpl implements IBaseMaterialtypeInfoSer } return cbEditMaterialtypeInfoList; } + + @Override + public List selectCxSelectList() { + List CxSelectList = baseMaterialtypeInfoMapper.selectCxSelectList(); + for (CxSelect a:CxSelectList + ) { + a.setS(baseMaterialInfoMapper.selectCxSelectChildList(a.getV())); + } + return CxSelectList; + } } diff --git a/ruoyi-system/src/main/resources/mapper/baseinfo/BaseBomInfoMapper.xml b/ruoyi-system/src/main/resources/mapper/baseinfo/BaseBomInfoMapper.xml index b7f0d5b..317437a 100644 --- a/ruoyi-system/src/main/resources/mapper/baseinfo/BaseBomInfoMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/baseinfo/BaseBomInfoMapper.xml @@ -1,124 +1,122 @@ - - - - - - - - - - - - - - - - - - - - - - select bom_id, p_id, material_type_id, material_id, status, remark, create_by, create_time, update_by, update_time, del_flag from base_bom_info - - - - - - - - insert into base_bom_info - - bom_id, - p_id, - material_type_id, - material_id, - status, - remark, - create_by, - create_time, - update_by, - update_time, - del_flag, - - - #{bom_id}, - #{pId}, - #{materialTypeId}, - #{materialId}, - #{status}, - #{remark}, - #{createBy}, - #{createTime}, - #{updateBy}, - #{updateTime}, - #{delFlag}, - - - - - update base_bom_info - - p_id = #{pId}, - material_type_id = #{materialTypeId}, - material_id = #{materialId}, - status = #{status}, - remark = #{remark}, - create_by = #{createBy}, - create_time = #{createTime}, - update_by = #{updateBy}, - update_time = #{updateTime}, - del_flag = #{delFlag}, - - where bom_id = #{bomId} - - - - delete from base_bom_info where bom_id = #{bomId} - - - - delete from base_bom_info where bom_id in - - #{bomId} - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + select bom_id, p_id, material_type_id, material_id, status, remark, create_by, create_time, update_by, update_time, del_flag from base_bom_info + + + + + + + + insert into base_bom_info + + bom_id, + p_id, + material_type_id, + material_id, + status, + remark, + create_by, + create_time, + update_by, + update_time, + del_flag, + + + #{bom_id}, + #{pId}, + #{materialTypeId}, + #{materialId}, + #{status}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + + + + + update base_bom_info + + p_id = #{pId}, + material_type_id = #{materialTypeId}, + material_id = #{materialId}, + status = #{status}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + + where bom_id = #{bomId} + + + + delete from base_bom_info where bom_id = #{bomId} + + + + delete from base_bom_info where bom_id in + + #{bomId} + + + + + + + + diff --git a/ruoyi-system/src/main/resources/mapper/baseinfo/BaseMaterialInfoMapper.xml b/ruoyi-system/src/main/resources/mapper/baseinfo/BaseMaterialInfoMapper.xml index a242681..908392a 100644 --- a/ruoyi-system/src/main/resources/mapper/baseinfo/BaseMaterialInfoMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/baseinfo/BaseMaterialInfoMapper.xml @@ -102,4 +102,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + diff --git a/ruoyi-system/src/main/resources/mapper/baseinfo/BaseMaterialtypeInfoMapper.xml b/ruoyi-system/src/main/resources/mapper/baseinfo/BaseMaterialtypeInfoMapper.xml index 8576895..656ab0a 100644 --- a/ruoyi-system/src/main/resources/mapper/baseinfo/BaseMaterialtypeInfoMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/baseinfo/BaseMaterialtypeInfoMapper.xml @@ -99,4 +99,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + diff --git a/ruoyi-system/src/main/resources/mapper/baseinfo/BaseWorkingprocedureInfoMapper.xml b/ruoyi-system/src/main/resources/mapper/baseinfo/BaseWorkingprocedureInfoMapper.xml index db78e71..7c94aae 100644 --- a/ruoyi-system/src/main/resources/mapper/baseinfo/BaseWorkingprocedureInfoMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/baseinfo/BaseWorkingprocedureInfoMapper.xml @@ -17,8 +17,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + + + + + + - select objid, working_procedure_id, working_procedure_name, dept_id, status, remark, create_by, create_time, update_by, update_time, del_flag from base_workingprocedure_info @@ -34,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"