提交 15ef357e 编写于 作者: Skyeye云's avatar Skyeye云

商业版后台

上级 be3d3808

要显示的变更太多。

To preserve performance only 1000 of 1000+ files are displayed.
此差异已折叠。
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
# skyeye
#### 项目介绍
# 开源版请下载`master`分支
智能办公OA系统[SpringBoot2-快速开发平台],适用于医院,学校,中小型企业等机构的管理。包含文件在线操作、工作日志、多班次考勤、CRM、ERP进销存、项目管理、EHR、拖拽式生成问卷、日程、笔记、工作计划、行政办公、薪资模块、动态表单、知识库、公告模块、企业论坛、云售后模块、生产模块、系统模块化同步模块等多种复杂业务功能。
- 开源不易,给个`star`
- erp+生产演示视频:https://mp.weixin.qq.com/s/CrFM_VZShi-FIJ8zD0_Nqg
- 需要进微信群(加我拉你进群,wzq_598748873),请提供自己的邮箱,默认订阅每周更新内容推送。
- 不需要进群的,请直接加微信:ZhiJinShuLi
- `本项目分为开源版和企业版,不喜勿喷,谢谢。`
- 企业版信息:https://docs.qq.com/doc/DQlRxcVRMWWVjbU1i?_from=1&disableReturnList=1
- 不会搭建环境的,可以出钱让作者帮忙搭建,一次100,先付。
- 现接受财务模块+ERP模块的功能扩展需求,有意向的可将需求文档发送给作者。
- [说明文档](https://gitee.com/doc_wei01/skyeye/blob/master/%E9%A1%B9%E7%9B%AE%E6%96%87%E6%A1%A3.md)
- 采用Redis缓存做单点登录功能,全新风格的后台管理系统
- [MIT协议的高性能报表软件](https://gitee.com/doc_wei01/skyeye-report)
#### 功能介绍
功能|简介|功能|简介
-------|-------|-------|-------
菜单管理|配置系统菜单,操作权限,按钮权限标识等,用户可自定义桌面展示LOGO|员工管理|操作企业内部的员工信息,进行统一管理
用户管理|用户是系统操作者,该功能主要完成系统用户配置。|角色管理|角色菜单权限分配、设置角色按机构进行数据范围权限划分。
权限管理|给角色进行赋权|资源图标|系统中允许使用的font图标库
日志管理|系统正常操作日志记录和查询;系统异常信息日志记录和查询。|登录日志|系统登录日志记录查询包含登录异常。
多桌面管理|多个桌面程序,用户可通过鼠标滚动进行切换|系统基础设置|系统的基础信息设置
代码生成器|只能适用于该框架的代码生成器,配置模板即可生成,然后下载压缩包解压复制到项目中即可|自定义桌面菜单|用户可将自己常用的网站添加到系统中方便记录
在线性能监控|监视当前系统CPU、内存、磁盘、堆栈等相关信息。|多桌面|[演示](https://www.bilibili.com/video/av43650484)
聊天功能|[演示](https://www.bilibili.com/video/av43650782),支持单聊,群聊,进群申请,组建群组,在线用户监控等。|[我的日程](https://gitee.com/doc_wei01/skyeye/blob/master/%E5%8A%9F%E8%83%BD%E6%96%87%E6%A1%A3%E4%BB%8B%E7%BB%8D/%E6%97%A5%E7%A8%8B%E6%A8%A1%E5%9D%97.md)(企业版)|[演示](https://www.bilibili.com/video/av45854959)|APP菜单管理(企业版)|手机端菜单以及权限管理
小程序管理(企业版)|微信小程序、H5手机自适应页面拖拽生成,可自定义配置小程序组件|多系统集成(企业版)|可以将多个系统进行应用集成,无需多次登陆,无需记录多个网址
流程图规划(企业版)|规划项目的流程图|问卷调查(企业版)|拖拽式生成问卷,可分页、复制、查看统计信息等
轻应用(企业版)|系统中提供各种小应用,如快递查询、高德地图等,用户可添加到自己的桌面上|开发文档(企业版)|系统支持二次开发,包含开发文档
工作日志(企业版)|记录每个员工的日报,周报,月报等,可同时发送多人,按时间轴查看等|多班次考勤管理(企业版)|记录每个员工的考勤打卡信息,包含报表,打卡,班次设置等
[我的笔记](https://gitee.com/doc_wei01/skyeye/blob/master/%E5%8A%9F%E8%83%BD%E6%96%87%E6%A1%A3%E4%BB%8B%E7%BB%8D/%E7%AC%94%E8%AE%B0%E6%A8%A1%E5%9D%97.md)(企业版)|员工可记录自己日常的笔记,目前支持MD,富文本,表格操作|报表管理(企业版)|统计功能信息,可根据客户自定义免费定制
[文件管理](https://gitee.com/doc_wei01/skyeye/blob/master/%E5%8A%9F%E8%83%BD%E6%96%87%E6%A1%A3%E4%BB%8B%E7%BB%8D/%E6%96%87%E4%BB%B6%E7%AE%A1%E7%90%86.md)(企业版)|公司内部、员工个人的文件管理,支持多格式文件在线查看,文档多人协作,在线解压缩等|附件管理(企业版)|保留员工所有上传过的附件,方便下次使用
邮件管理(企业版)|目前打通与QQ邮箱的交互,可以发邮件,收邮件,保存为草稿等|[工作流管理](https://gitee.com/doc_wei01/skyeye/blob/master/%E5%8A%9F%E8%83%BD%E6%96%87%E6%A1%A3%E4%BB%8B%E7%BB%8D/%E5%B7%A5%E4%BD%9C%E6%B5%81%E4%BB%8B%E7%BB%8D%E6%96%87%E6%A1%A3.md)(企业版)|动态表单结合工作流生成自定义业务流程审核,可进行审批、撤回、回退、节点化表单项编辑设置、驳回、终止转办等功能,目前已支持四十多种流程管理
论坛(企业版)|包括标签管理,关键词管理,举报审核等操作,用户可自由发表文章,系统通过过滤算法进行关键词过滤|计划管理(企业版)|方便公司进行公司计划、部门计划、个人计划的规划,可根据类型(日计划、周计划、月计划、季度计划等)进行定义
动态表单(企业版)|通过自定义的方式生成提交表单页,可与动态数据进行结合,目前已和工作流结合|行政管理(企业版)|包含车辆管理、会议室管理、用品管理、印章管理、财产管理、证照管理。所有功能审核已和工作流结合
内部公告(企业版)|系统内部公告通知,可设置邮件通知,定时通知,人员选择等|通讯录(企业版)|记录个人、公司内部、公共通讯录信息
知识库(企业版)|企业文化支柱;[效果地址](https://gitee.com/doc_wei01/knowlg-pro)|[CRM客户管理](https://gitee.com/doc_wei01/skyeye/blob/master/%E5%8A%9F%E8%83%BD%E6%96%87%E6%A1%A3%E4%BB%8B%E7%BB%8D/CRM%E5%AE%A2%E6%88%B7%E7%AE%A1%E7%90%86%E6%A8%A1%E5%9D%97.md)(企业版)|包含客户、商机、跟单、合同等多个模块化功能
[ERP进销存管理](https://gitee.com/doc_wei01/erp-pro)(企业版)|包含采购、销售、零售、客户、供应商等多个模块化功能;[效果地址](https://gitee.com/doc_wei01/erp-pro)|[项目管理](https://gitee.com/doc_wei01/skyeye/blob/master/%E5%8A%9F%E8%83%BD%E6%96%87%E6%A1%A3%E4%BB%8B%E7%BB%8D/%E9%A1%B9%E7%9B%AE%E7%AE%A1%E7%90%86.md)(企业版)|包含项目、工作量、讨论帖、项目文档、成本费用等功能
[云售后管理系统](https://gitee.com/doc_wei01/skyeye/blob/master/%E5%8A%9F%E8%83%BD%E6%96%87%E6%A1%A3%E4%BB%8B%E7%BB%8D/%E5%94%AE%E5%90%8E%E5%B7%A5%E5%8D%95%E6%A8%A1%E5%9D%97.md)(企业版)|包含工单的派工,接单,签到,配件申领审批,完工,评价,审核等操作|生产模块(企业版)|已完成,[演示视频](https://www.bilibili.com/video/BV1yA411e7mm/)
|学校模块以及考试模块(企业版)|[地址](https://gitee.com/doc_wei01/schoolExam)|EHR模块(企业版)|管理企业员工的基础信息|
|薪资模块(企业版)|员工薪资管理,支持多种类型设定|||
#### 技术选型
##### 后端技术:
技术|名称|官网
---|---|---
SpringBoot|核心框架|http://spring.io/projects/spring-boot
MyBatis|ORM框架|http://www.mybatis.org/mybatis-3/zh/index.html
Druid|数据库连接池|https://github.com/alibaba/druid
Maven|项目构建管理|http://maven.apache.org/
redis|key-value存储系统|https://redis.io/
webSocket|浏览器与服务器全双工(full-duplex)通信|http://www.runoob.com/html/html5-websocket.html
Activiti|工作流引擎|https://www.activiti.org/
spring mvc|视图框架|http://spring.io/
quartz 2.2.2|定时任务|http://www.quartz-scheduler.org/
ActiveMQ|消息队列|http://activemq.apache.org/replicated-leveldb-store.html
solr|企业级搜索应用服务器|https://lucene.apache.org/solr/
Spring Cloud|微服务框架(目前用户APP端接口)|https://springcloud.cc/
##### 前端技术:
技术|名称|官网
---|---|---
jQuery|函式库|http://jquery.com/
zTree|树插件|http://www.treejs.cn/v3/
layui|模块化前端UI|https://www.layui.com/
winui|win10风格UI|https://gitee.com/doc_wei01_admin/skyeye
codemirror|codemirror代码编辑器|https://codemirror.net/
handlebars|js模板引擎|http://www.ghostchina.com/introducing-the-handlebars-js-templating-engine/
webSocket|浏览器与服务器全双工(full-duplex)通信|http://www.runoob.com/html/html5-websocket.html
G6|流程图开发|https://antv.alipay.com/zh-cn/index.html
FullCalendar|日历插件|https://blog.csdn.net/qw_xingzhe/article/details/44920943
#### 代码描述
##### 前后台接口映射
```
<url id="前端请求id" path="后台接口" val="备注" allUse="是否需要登录">
<property id="前端请求key" name="后台接收key" ref="限制条件(参考项目内文档)" var="key含义"/>
</url>
```
##### 后台代码编写规范
###### 控制层
```
@RequestMapping("后台接口")
@ResponseBody
public void 方法名(InputObject inputObject, OutputObject outputObject) throws Exception{
服务层接口对象.方法名(inputObject, outputObject);
}
```
###### 服务层
```
@Override
public void 方法名(InputObject inputObject, OutputObject outputObject) throws Exception {
Map<String, Object> map = inputObject.getParams();//接收参数
Map<String, Object> user = inputObject.getLogParams();//获取当前登录用户信息
/**
* 业务逻辑
*/
outputObject.setBean(bean);//返回单个实体Bean
outputObject.setBeans(beans);//返回集合
outputObject.settotal(total);//返回数量
outputObject.setreturnMessage("信息");//返回前端的错误信息
outputObject.setreturnMessage("信息", 错误码);//返回前端的错误信息,同时抛出异常(不常用)
}
```
#### 效果图
|效果图|效果图|
| ------------- | ------------- |
|![](https://s2.ax1x.com/2019/04/16/Avo0c8.png "1.png")|![](https://images.gitee.com/uploads/images/2019/0623/142954_6c8612f2_1541735.png "1.png")|
|![](https://images.gitee.com/uploads/images/2018/1107/104734_d9304e60_1541735.png "2.png")|![](https://images.gitee.com/uploads/images/2018/1107/104903_f244dfde_1541735.png "3.png")|
|![](https://s2.ax1x.com/2019/06/23/ZPS5h4.png)|![](https://images.gitee.com/uploads/images/2018/1118/191634_497ea929_1541735.png "微信图片_20181118191516.png")|
|![](https://images.gitee.com/uploads/images/2018/1118/193301_72d0bb49_1541735.png "微信截图_20181118193254.png")|![](https://s2.ax1x.com/2019/04/16/Av7lee.png "微信截图_20181120154643.png")|
|![](https://images.gitee.com/uploads/images/2018/1121/105120_65de9434_1541735.png "1.png")|![](https://images.gitee.com/uploads/images/2019/0623/145248_4a51c610_1541735.png)|
|![](https://images.gitee.com/uploads/images/2019/0122/113516_b0600e8f_1541735.png "1.png")|![](https://images.gitee.com/uploads/images/2018/1207/123501_3248346e_1541735.png "微信截图_20181207123447.png")|
|![](https://images.gitee.com/uploads/images/2019/0113/114947_1c7fa387_1541735.png "微信截图_20190113114922.png")|![](https://images.gitee.com/uploads/images/2019/0202/130711_7ed57951_1541735.png "3.png")|
|![](https://s2.ax1x.com/2019/06/23/ZPC6cd.png)|![](https://images.gitee.com/uploads/images/2019/0623/145351_dd55da65_1541735.png)|
|![](https://images.gitee.com/uploads/images/2019/0623/143810_e76aec71_1541735.png)|![](https://images.gitee.com/uploads/images/2019/0623/144143_1063782a_1541735.png)|
|![](https://images.gitee.com/uploads/images/2019/0904/143828_b7ef9748_1541735.png)|![](https://images.gitee.com/uploads/images/2019/0904/143937_42519798_1541735.png)|
#### 传统风格界面效果图
|效果图|效果图|
| ------------- | ------------- |
|![](https://images.gitee.com/uploads/images/2019/0904/143634_0c9da9ad_1541735.png)|![](https://images.gitee.com/uploads/images/2019/0904/143639_2e442328_1541735.png)|
|![输入图片说明](https://images.gitee.com/uploads/images/2019/1101/170700_738ed970_1541735.png "在这里输入图片标题")||
#### 合作方式
- 购买企业版源码
- 购买企业版Jar包
- 客户可提供文字版合作方式
### 捐助
如果您觉得我们的开源软件对你有所帮助,请扫下方二维码打赏我们一杯咖啡。
| 支付宝 | 微信 | 更新资讯公众号 |
| ------ | ---- | ---- |
| ![ ](https://images.gitee.com/uploads/images/2019/1016/094014_96f92c56_1541735.png "微信截图_20191016093832.png") | ![ ](https://images.gitee.com/uploads/images/2019/1016/094025_65ba24f0_1541735.png "微信截图_20191016093850.png")|![输入图片说明](https://images.gitee.com/uploads/images/2021/0320/091531_8c3ba4d8_1541735.jpeg "qrcode_for_gh_e7f97ff1beda_430.jpg")|
server.port = 8081
IMAGES_PATH = D:/other-pro/skyeye-kaiyuan/images/
java.request.url.mappimg = mapping/reqmapping.xml,mapping/reqcommon.xml,mapping/reqcompany.xml,mapping/reqcodemodel.xml,mapping/reqdsform.xml,mapping/reqrmxcx.xml,mapping/reqsys.xml
jdbc.database.driverClassName = com.mysql.jdbc.Driver
jdbc.database.name = ky_eve
jdbc.database.username = root
jdbc.database.password = 123456
jdbc.maxActive = 10
jdbc.initialSize = 1
jdbc.minIdle = 5
jdbc.poolPreparedStatements = true
jdbc.maxWait = 60000
jdbc.maxPoolPreparedStatementPerConnectionSize = 33
spring.resources.static-locations = classpath:/template/
activiti.database.name = ky_activitidb
activiti.database.username = root
activiti.database.password = 123456
redis.ip1 = 192.168.1.140
redis.host1 = 9000
redis.ip2 = 192.168.1.140
redis.host2 = 9001
redis.ip3 = 192.168.1.140
redis.host3 = 9002
redis.ip4 = 192.168.1.140
redis.host4 = 9003
redis.ip5 = 192.168.1.140
redis.host5 = 9004
redis.ip6 = 192.168.1.140
redis.host6 = 9005
redis.commandTimeout = 1000
如果需要提需求,请按照一下模板提供:
- 标题(必填):采购订单提供最晚时间规格
- 需求背景(必填):提供支持用户查看到货时间功能,到货前N天发送系统消息、短信、邮件通知订单创建人
- 需求规格(必填):用户可以在采购订单功能中查阅到货物的到货时间,并在到货时间即将过期时进行消息通知
- 功能点(必填):
- 1.采购订单新增和编辑页面增加【最晚到货时间】标识,可任意修改,对时间没有任何限制
- 2.采购订单列表增加【最晚到货时间】列展示
- 3.到货前N天,如果用户未更新实际到货时间,则需要发送系统消息、短信、邮件通知订单创建人(定时任务:如果【最晚到货时间】是当前时间之前的,则不设置)
- 原型图(非必填):
此差异已折叠。
此差异已折叠。
From 425fa0c0ae90722ca9fa841a6067a75b4d15244e Mon Sep 17 00:00:00 2001
From: doc_wei <598748873@qq.com>
Date: Fri, 18 Sep 2020 12:55:38 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20CHANGELOG?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
CHANGELOG | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 CHANGELOG
diff --git a/CHANGELOG b/CHANGELOG
new file mode 100644
index 0000000..e69de29
--
2.21.0.windows.1
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.skyeye</groupId>
<artifactId>skyeye-promote</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.5.RELEASE</version>
</parent>
<modules>
<module>skyeye-web</module>
<module>skyeye-common</module>
<module>skyeye-entity</module>
<module>skyeye-activiti</module>
<module>skyeye-quartz</module>
<module>skyeye-mq</module>
<module>skyeye-solr</module>
<module>skyeye-dsform</module>
<module>skyeye-userauth</module>
<module>skyeye-threed</module>
<module>skyeye-crm</module>
<module>skyeye-rmprogram</module>
<module>skyeye-message</module>
<module>skyeye-knowlg</module>
<module>skyeye-pro</module>
<module>skyeye-erp</module>
<module>skyeye-admin-assistant</module>
<module>skyeye-forum</module>
<module>skyeye-disk-cloud</module>
<module>skyeye-seal-service</module>
<module>skyeye-note</module>
<module>skyeye-light-app</module>
<module>skyeye-code-doc</module>
<module>skyeye-survey</module>
<module>skyeye-jobdiary</module>
<module>skyeye-checkwork</module>
<module>skyeye-email</module>
<module>skyeye-mail</module>
<module>skyeye-schedule</module>
<module>skyeye-planpro</module>
<module>skyeye-workplan</module>
<module>skyeye-user-phone</module>
<module>skyeye-exam</module>
<module>skyeye-school</module>
<module>skyeye-school-phone</module>
<module>skyeye-erp-produce</module>
<module>skyeye-gateway</module>
<module>skyeye-md2file</module>
<module>skyeye-ehr</module>
<module>skyeye-wages</module>
<module>skyeye-organization</module>
<module>skyeye-api</module>
<module>skyeye-ifs</module>
</modules>
<properties>
<netjson.version>2.4</netjson.version>
<quartz.version>2.2.2</quartz.version>
<commons-fileupload.version>1.3.1</commons-fileupload.version>
<druid.version>1.0.20</druid.version>
<aliyun.java.sdk.core.version>3.7.1</aliyun.java.sdk.core.version>
<aliyun.java.sdk.dysmsapi.version>1.1.0</aliyun.java.sdk.dysmsapi.version>
<commons-lang3.version>3.3.2</commons-lang3.version>
<activiti.version>5.22.0</activiti.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<!-- SpringBoot相关配置 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- webSocket -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
<!-- aop切面 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<!-- 日志处理 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j</artifactId>
<version>1.3.8.RELEASE</version>
</dependency>
<!-- 重要的是这个POM配置,MyBatis相关操作都在这个包中 -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.2</version>
</dependency>
<!-- pagehelper分页插件 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.5</version>
</dependency>
<!-- MySql数据库连接包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.34</version>
</dependency>
<!--commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<!-- jsoup解析 -->
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.7.3</version>
</dependency>
<!-- json-lib -->
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>${netjson.version}</version>
<classifier>jdk15</classifier>
</dependency>
<!-- httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
<!-- quartz任务调度框架 -->
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.persistence/persistence-api -->
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0.2</version>
</dependency>
<!-- 单元测试 -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<!-- 时间操作组件 -->
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
<!--热更新,热加载,不用每次重启启动�?????? -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
<!-- 文件上传组件 -->
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>${commons-fileupload.version}</version>
</dependency>
<!-- redis依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
</dependency>
<!-- solr客户 -->
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
</dependency>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
</dependency>
<!-- JMail组件 -->
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
</dependency>
<!-- pdf导出jar -->
<!-- https://mvnrepository.com/artifact/com.lowagie/itext -->
<dependency>
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
<version>4.2.2</version>
</dependency>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itext-asian</artifactId>
<version>5.2.0</version>
</dependency>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itextpdf</artifactId>
<version>5.4.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>28.0-jre</version>
</dependency>
<!-- apollo -->
<dependency>
<groupId>com.ctrip.framework.apollo</groupId>
<artifactId>apollo-client</artifactId>
<version>1.3.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.2</version>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>skyeye-promote</artifactId>
<groupId>com.skyeye</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>skyeye-activiti</artifactId>
<name>skyeye-activiti</name>
<url>http://www.example.com</url>
<dependencies>
<!-- 引入dsform动态表单的依赖 -->
<dependency>
<groupId>com.skyeye</groupId>
<artifactId>skyeye-dsform</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<!-- 引入基础模块的依赖 -->
<dependency>
<groupId>com.skyeye</groupId>
<artifactId>skyeye-userauth</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<!-- activiti工作流 -->
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-spring-boot-starter-basic</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-spring-boot-starter-actuator</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-rest</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-codec</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-css</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-svg-dom</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-svggen</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-explorer</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>org.vaadin.addons</groupId>
<artifactId>dcharts-widget</artifactId>
<version>0.10.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/dcharts-widget-0.10.0.jar</systemPath>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-modeler</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-diagram-rest</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-simple-workflow</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-spring</artifactId>
<version>${activiti.version}</version>
</dependency>
</dependencies>
<build>
</build>
</project>
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
public class AssetArticlesPurchaseEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"责任人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
GOODS("goods", "{\"name\": \"用品\", \"orderBy\": \"4\", \"showType\": \"5\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"6\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
Map<String, Object> jObject;
for (Entity q : Entity.values()){
jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"typeName\", \"title\": \"用品类别\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"articleName\", \"title\": \"用品名称\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"specificationsName\", \"title\": \"规格(单位)\", \"align\": \"left\", \"width\": 200},"
+ "{ \"field\": \"applyPurchaseNum\", \"title\": \"申请采购数量\", \"align\": \"left\", \"width\": 140},"
+ "{ \"field\": \"actualPurchaseNum\", \"title\": \"实购数量\", \"align\": \"left\", \"width\": 140},"
+ "{ \"field\": \"stateName\", \"title\": \"状态\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
public class AssetArticlesUseEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"责任人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
GOODS("goods", "{\"name\": \"用品\", \"orderBy\": \"4\", \"showType\": \"5\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"6\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"typeName\", \"title\": \"用品类别\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"articleName\", \"title\": \"用品名称\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"specificationsName\", \"title\": \"规格(单位)\", \"align\": \"left\", \"width\": 200},"
+ "{ \"field\": \"applyUseNum\", \"title\": \"领用数量\", \"align\": \"left\", \"width\": 140},"
+ "{ \"field\": \"actualUseNum\", \"title\": \"实发数量\", \"align\": \"left\", \"width\": 140},"
+ "{ \"field\": \"stateName\", \"title\": \"状态\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
public class AssetPurchaseEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"责任人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
GOODS("goods", "{\"name\": \"资产\", \"orderBy\": \"4\", \"showType\": \"5\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"6\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"typeName\", \"title\": \"资产类别\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"managementName\", \"title\": \"资产名称\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"managementImg\", \"title\": \"图片\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"assetNum\", \"title\": \"编号\", \"align\": \"left\", \"width\": 140},"
+ "{ \"field\": \"fromId\", \"title\": \"来源\", \"align\": \"left\", \"width\": 140},"
+ "{ \"field\": \"unitPrice\", \"title\": \"单价\", \"align\": \"left\", \"width\": 140},"
+ "{ \"field\": \"stateName\", \"title\": \"状态\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
public class AssetReturnEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"责任人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
GOODS("goods", "{\"name\": \"资产\", \"orderBy\": \"4\", \"showType\": \"5\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"6\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"typeName\", \"title\": \"资产类别\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"assetName\", \"title\": \"资产名称\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"specificationsName\", \"title\": \"规格\", \"align\": \"left\", \"width\": 200},"
+ "{ \"field\": \"assetNum\", \"title\": \"编号\", \"align\": \"left\", \"width\": 140},"
+ "{ \"field\": \"stateName\", \"title\": \"状态\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
public class AssetUseEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"责任人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
GOODS("goods", "{\"name\": \"资产\", \"orderBy\": \"4\", \"showType\": \"5\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"6\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"typeName\", \"title\": \"资产类别\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"assetName\", \"title\": \"资产名称\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"specificationsName\", \"title\": \"规格\", \"align\": \"left\", \"width\": 200},"
+ "{ \"field\": \"assetNum\", \"title\": \"编号\", \"align\": \"left\", \"width\": 140},"
+ "{ \"field\": \"stateName\", \"title\": \"状态\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName: CheckWorkBusinessTripEntity
* @Description: 构造出差申请提交到工作流的对象
* @author: skyeye云系列--卫志强
* @date: 2021/8/13 22:08
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class CheckWorkBusinessTripEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"申请人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
BUSINESS_TRIP_ADDRESS("businessTripAddress", "{\"name\": \"出差地点\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"12\"}"),
BUSINESS_TRIP_REASON("businessTripReason", "{\"name\": \"出差事由\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"12\"}"),
GOODS("businessTripDay", "{\"name\": \"日期\", \"orderBy\": \"6\", \"showType\": \"5\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"7\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"8\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"timeName\", \"title\": \"班次\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"businessTravelDay\", \"title\": \"出差日期\", \"align\": \"center\", \"width\": 100},"
+ "{ \"field\": \"timeStartTime\", \"title\": \"出差开始时间\", \"align\": \"left\", \"width\": 100},"
+ "{ \"field\": \"timeEndTime\", \"title\": \"出差结束时间\", \"align\": \"left\", \"width\": 100},"
+ "{ \"field\": \"businessTravelHour\", \"title\": \"出差工时\", \"align\": \"left\", \"width\": 100},"
+ "{ \"field\": \"stateName\", \"title\": \"状态\", \"align\": \"left\", \"width\": 120},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName: CheckWorkCancelLeaveEntity
* @Description: 构造销假申请提交到工作流的对象
* @author: skyeye云系列--卫志强
* @date: 2021/8/14 11:50
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class CheckWorkCancelLeaveEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"申请人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
GOODS("cancelLeaveDay", "{\"name\": \"日期\", \"orderBy\": \"4\", \"showType\": \"5\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"6\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"timeName\", \"title\": \"班次\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"timeStartTime\", \"title\": \"班次打卡时间(上班)\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"timeEndTime\", \"title\": \"班次打卡时间(上班)\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"cancelDay\", \"title\": \"销假日期\", \"align\": \"center\", \"width\": 100},"
+ "{ \"field\": \"cancelStartTime\", \"title\": \"开始时间\", \"align\": \"left\", \"width\": 100},"
+ "{ \"field\": \"cancelEndTime\", \"title\": \"结束时间\", \"align\": \"left\", \"width\": 100},"
+ "{ \"field\": \"cancelHour\", \"title\": \"销假工时\", \"align\": \"left\", \"width\": 100},"
+ "{ \"field\": \"stateName\", \"title\": \"状态\", \"align\": \"left\", \"width\": 120},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName: CheckWorkLeaveEntity
* @Description: 构造请假申请提交到工作流的对象
* @author: skyeye云系列--卫志强
* @date: 2021/8/14 13:10
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class CheckWorkLeaveEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"申请人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
GOODS("leaveDay", "{\"name\": \"日期\", \"orderBy\": \"4\", \"showType\": \"5\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"6\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"timeName\", \"title\": \"班次\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"timeStartTime\", \"title\": \"班次打卡时间(上班)\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"timeEndTime\", \"title\": \"班次打卡时间(上班)\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"leaveTypeName\", \"title\": \"假期类型\", \"align\": \"left\", \"width\": 100},"
+ "{ \"field\": \"leaveDay\", \"title\": \"请假日期\", \"align\": \"center\", \"width\": 100},"
+ "{ \"field\": \"leaveStartTime\", \"title\": \"开始时间\", \"align\": \"left\", \"width\": 100},"
+ "{ \"field\": \"leaveEndTime\", \"title\": \"结束时间\", \"align\": \"left\", \"width\": 100},"
+ "{ \"field\": \"leaveHour\", \"title\": \"请假工时\", \"align\": \"left\", \"width\": 100},"
+ "{ \"field\": \"stateName\", \"title\": \"状态\", \"align\": \"left\", \"width\": 120},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName: CheckWorkOvertimeEntity
* @Description: 构造加班申请提交到工作流的对象
* @author: skyeye云系列--卫志强
* @date: 2021/8/14 13:43
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class CheckWorkOvertimeEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"申请人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CONTENT("content", "{\"name\": \"加班事由\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"6\"}"),
GOODS("overtimeDay", "{\"name\": \"日期\", \"orderBy\": \"5\", \"showType\": \"5\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"7\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"overtimeDay\", \"title\": \"加班日期\", \"align\": \"center\", \"width\": 100},"
+ "{ \"field\": \"overtimeStartTime\", \"title\": \"开始时间\", \"align\": \"left\", \"width\": 100},"
+ "{ \"field\": \"overtimeEndTime\", \"title\": \"结束时间\", \"align\": \"left\", \"width\": 100},"
+ "{ \"field\": \"overtimeHour\", \"title\": \"加班工时\", \"align\": \"left\", \"width\": 100},"
+ "{ \"field\": \"stateName\", \"title\": \"状态\", \"align\": \"left\", \"width\": 120},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName: ConferenceRoomReserveEntity
* @Description: 会议室预定实体类
* @author: skyeye云系列--卫志强
* @date: 2021/8/1 16:47
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class ConferenceRoomReserveEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"申请人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
RESERVESTATENAME("reserveStateName", "{\"name\": \"预定状态\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CONFERENCEROOM("conferenceRoom", "{\"name\": \"会议室\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
STARTTIME("startTime", "{\"name\": \"开始时间\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ENDTIME("endTime", "{\"name\": \"结束时间\", \"orderBy\": \"7\", \"showType\": \"1\", \"proportion\": \"6\"}"),
RESERVEREASON("reserveReason", "{\"name\": \"使用事由\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"备注\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"10\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName: CrmContractEntity
* @Description: 客户合同提交到工作流中的对象
* @author: skyeye云系列--卫志强
* @date: 2021/8/14 15:43
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class CrmContractEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
CUSTOMERID("customerId", "{\"name\": \"客户\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CITY("city", "{\"name\": \"所在城市\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DETAILADDRESS("detailAddress", "{\"name\": \"详细地址\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"12\"}"),
TITLE("title", "{\"name\": \"合同名称\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"6\"}"),
NUM("num", "{\"name\": \"合同编号\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PRICE("price", "{\"name\": \"合同金额\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
SIGNINGTIME("signingTime", "{\"name\": \"签约日期\", \"orderBy\": \"7\", \"showType\": \"1\", \"proportion\": \"6\"}"),
EFFECTTIME("effectTime", "{\"name\": \"生效日期\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"6\"}"),
SERVICEENDTIME("serviceEndTime", "{\"name\": \"服务期至\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CONTACTS("contacts", "{\"name\": \"联系人\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"6\"}"),
WORKPHONE("workPhone", "{\"name\": \"固定电话\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"6\"}"),
MOBILEPHONE("mobilePhone", "{\"name\": \"移动电话\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"6\"}"),
QQ("qq", "{\"name\": \"QQ号\", \"orderBy\": \"13\", \"showType\": \"1\", \"proportion\": \"6\"}"),
EMAIL("email", "{\"name\": \"邮箱\", \"orderBy\": \"14\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DEPARTMENTID("departmentId", "{\"name\": \"合同所属部门\", \"orderBy\": \"15\", \"showType\": \"1\", \"proportion\": \"6\"}"),
RELATIONUSERID("relationUserId", "{\"name\": \"合同关联人员\", \"orderBy\": \"16\", \"showType\": \"1\", \"proportion\": \"6\"}"),
STATE("stateName", "{\"name\": \"状态\", \"orderBy\": \"17\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USERNAME("userName", "{\"name\": \"创建人\", \"orderBy\": \"18\", \"showType\": \"1\", \"proportion\": \"6\"}"),
TECHNICALTERMS("technicalTerms", "{\"name\": \"主要技术条款\", \"orderBy\": \"19\", \"showType\": \"1\", \"proportion\": \"12\"}"),
BUSINESSTERMS("businessTerms", "{\"name\": \"主要商务条款\", \"orderBy\": \"20\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"21\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName: CrmOpportunityTypeOneEntity
* @Description: 商机审核一阶段对象类
* @author: skyeye云系列--卫志强
* @date: 2021/8/14 16:53
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class CrmOpportunityTypeOneEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
CUSTOMERID("customerId", "{\"name\": \"客户名称\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"6\"}"),
INDUSTRYID("industryId", "{\"name\": \"所属行业\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CITY("city", "{\"name\": \"所在城市\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DETAILADDRESS("detailAddress", "{\"name\": \"详细地址\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"6\"}"),
TITLE("title", "{\"name\": \"商机名称\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
FROMID("fromId", "{\"name\": \"商机来源\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ESTIMATEPRICE("estimatePrice", "{\"name\": \"预成交金\", \"orderBy\": \"7\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ESTIMATEENDTIME("estimateEndTime", "{\"name\": \"预结单日\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CONTACTS("contacts", "{\"name\": \"联系人\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DEPARTMENT("department", "{\"name\": \"部门\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"6\"}"),
JOB("job", "{\"name\": \"职务\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"6\"}"),
WORKPHONE("workPhone", "{\"name\": \"办公电话\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"6\"}"),
MOBILEPHONE("mobilePhone", "{\"name\": \"移动电话\", \"orderBy\": \"13\", \"showType\": \"1\", \"proportion\": \"6\"}"),
EMAIL("email", "{\"name\": \"邮件\", \"orderBy\": \"14\", \"showType\": \"1\", \"proportion\": \"6\"}"),
QQ("qq", "{\"name\": \"QQ\", \"orderBy\": \"15\", \"showType\": \"1\", \"proportion\": \"6\"}"),
BUSINESSNEED("businessNeed", "{\"name\": \"主要业务\", \"orderBy\": \"16\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"附件资料\", \"orderBy\": \"17\", \"showType\": \"2\", \"proportion\": \"12\"}"),
SUBDEPARTMENTS("subDepartments", "{\"name\": \"所属部门\", \"orderBy\": \"18\", \"showType\": \"1\", \"proportion\": \"6\"}"),
RESPONSID("responsId", "{\"name\": \"负责人\", \"orderBy\": \"19\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PARTID("partId", "{\"name\": \"参与人\", \"orderBy\": \"20\", \"showType\": \"1\", \"proportion\": \"6\"}"),
FOLLOWID("followId", "{\"name\": \"关注人\", \"orderBy\": \"21\", \"showType\": \"1\", \"proportion\": \"6\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName: LicenceBorrowEntity
* @Description: 证照借用对象类
* @author: skyeye云系列--卫志强
* @date: 2021/7/24 23:12
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class LicenceBorrowEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"借用人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
GOODS("goods", "{\"name\": \"证照\", \"orderBy\": \"4\", \"showType\": \"5\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"6\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"licenceName\", \"title\": \"证照名称\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"stateName\", \"title\": \"状态\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName: LicenceRevertEntity
* @Description: 证照归还对象类
* @author: skyeye云系列--卫志强
* @date: 2021/8/1 11:18
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class LicenceRevertEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"归还人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
GOODS("goods", "{\"name\": \"证照\", \"orderBy\": \"4\", \"showType\": \"5\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"6\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"licenceName\", \"title\": \"证照名称\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"stateName\", \"title\": \"状态\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName: ProCostExpenseEntity
* @Description: 项目费用报销对象类
* @author: skyeye云系列--卫志强
* @date: 2021/8/11 22:41
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class ProCostExpenseEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"主题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
WRITEPEOPLE("userName", "{\"name\": \"报销人\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
WORKLOADTYPE("departmentName", "{\"name\": \"所属部门\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PROJECTNAME("projectName", "{\"name\": \"所属项目\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PROJECTNUMBER("reimbursementTime", "{\"name\": \"报销日期\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
TASKS("purposes", "{\"name\": \"任务\", \"orderBy\": \"6\", \"showType\": \"5\", \"proportion\": \"12\"}"),
ALLWORKLOAD("allPrice", "{\"name\": \"合计\", \"orderBy\": \"7\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"附件\", \"orderBy\": \"8\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"expenseTypeId\", \"title\": \"支出分类\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"purposeContent\", \"title\": \"用途说明\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"price\", \"title\": \"费用金额\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"opposUnit\", \"title\": \"对方单位\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"experiencedPerson\", \"title\": \"经手人\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName: ProFileEntity
* @Description: 项目文档审批对象类
* @author: skyeye云系列--卫志强
* @date: 2021/8/10 21:17
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class ProFileEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
title("title", "{\"name\": \"名称\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"6\"}"),
typeName("typeName", "{\"name\": \"所属分类\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
projectName("projectName", "{\"name\": \"所属项目\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
createName("userName", "{\"name\": \"创建人\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"6\"}"),
content("content", "{\"name\": \"内容\", \"orderBy\": \"5\", \"showType\": \"3\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"附件\", \"orderBy\": \"6\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName: ProProjectEntity
* @Description: 项目立项申请提交到工作流的对象
* @author: skyeye云系列--卫志强
* @date: 2021/8/5 20:29
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class ProProjectEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
PROJECTNAME("projectName", "{\"name\": \"项目名称\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"6\"}"),
TYPENAME("typeName", "{\"name\": \"项目分类\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PROJECTNUMBER("projectNumber", "{\"name\": \"项目编号\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DEPARTMENTNAME("departmentName", "{\"name\": \"所属部门\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"6\"}"),
STARTTIME("startTime", "{\"name\": \"计划开始时间\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ENDTIME("endTime", "{\"name\": \"计划完成时间\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CUSTOMERNAME("customerName", "{\"name\": \"客户名称\", \"orderBy\": \"7\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CONTRACTNAME("contractName", "{\"name\": \"关联合同\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CONTACTNAME("contactName", "{\"name\": \"对方联系人\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"6\"}"),
TELPHONE("telphone", "{\"name\": \"固定电话\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"6\"}"),
MOBILE("mobile", "{\"name\": \"移动电话\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"6\"}"),
QQ("qq", "{\"name\": \"QQ号\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"6\"}"),
MAIL("mail", "{\"name\": \"邮箱\", \"orderBy\": \"13\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ESTIMATEDWORKLOAD("estimatedWorkload", "{\"name\": \"预估工作量\", \"orderBy\": \"14\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ESTIMATEDCOST("estimatedCost", "{\"name\": \"预估成本费用\", \"orderBy\": \"15\", \"showType\": \"1\", \"proportion\": \"6\"}"),
STATENAME("stateName", "{\"name\": \"状态\", \"orderBy\": \"16\", \"showType\": \"1\", \"proportion\": \"6\"}"),
BUSINESSCONTENT("businessContent", "{\"name\": \"需求和目标\", \"orderBy\": \"17\", \"showType\": \"3\", \"proportion\": \"12\"}"),
BUSINESSENCLOSUREINFO("businessEnclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"18\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName: ProTaskEntity
* @Description: 项目任务实体类
* @author: skyeye云系列--卫志强
* @date: 2021/8/1 20:12
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class ProTaskEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
FATHERORSON("fatherOrSon", "{\"name\": \"任务类型\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
TASKNAME("taskName", "{\"name\": \"名称\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
TASKTYPENAME("taskTypeName", "{\"name\": \"所属分类\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PROJECTNAME("projectName", "{\"name\": \"所属项目\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DEPARTMENTS("departments", "{\"name\": \"所属部门\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CREATEUSERNAME("userName", "{\"name\": \"创建人\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CREATETIME("createTime", "{\"name\": \"创建时间\", \"orderBy\": \"7\", \"showType\": \"1\", \"proportion\": \"6\"}"),
STARTTIME("startTime", "{\"name\": \"开始时间\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ENDTIME("endTime", "{\"name\": \"结束时间\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PERFORMID("performId", "{\"name\": \"执行人\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ESTIMATEDWORKLOAD("estimatedWorkload", "{\"name\": \"预估工作量\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"6\"}"),
TASKINSTRUCTIONS("taskInstructions", "{\"name\": \"任务说明\", \"orderBy\": \"12\", \"showType\": \"3\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"附件\", \"orderBy\": \"13\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
*
* @ClassName: ProWorkloadEntity
* @Description: 项目工作量提交到工作流的实体类
* @author: skyeye云系列--卫志强
* @date: 2021/8/8 13:18
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class ProWorkloadEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"主题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
WRITEPEOPLE("userName", "{\"name\": \"填报人\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
WORKLOADTYPE("workLoadType", "{\"name\": \"日期类型\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PROJECTNAME("projectName", "{\"name\": \"所属项目\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PROJECTNUMBER("projectNumber", "{\"name\": \"项目编号\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
TASKS("tasks", "{\"name\": \"任务\", \"orderBy\": \"6\", \"showType\": \"5\", \"proportion\": \"12\"}"),
ALLWORKLOAD("allworkload", "{\"name\": \"合计\", \"orderBy\": \"7\", \"showType\": \"1\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"附加描述\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"附件\", \"orderBy\": \"9\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
List<Map<String, Object>> items = map.containsKey(q.getNameCode()) ? (ArrayList<Map<String, Object>>) map.get(q.getNameCode()) : new ArrayList<>();
Map<String, Object> item = items.get(0);
jObject.put("headerTitle", "[{ \"field\": \"taskContent\", \"title\": \"填报人相关任务\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"executePeople\", \"title\": \"任务执行人\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"monAmount\", \"title\": \"周一(" + item.get("monTime").toString() + ")\", \"align\": \"left\", \"width\": 200},"
+ "{ \"field\": \"tuesAmount\", \"title\": \"周二(" + item.get("tuesTime").toString() + ")\", \"align\": \"left\", \"width\": 200},"
+ "{ \"field\": \"wedAmount\", \"title\": \"周三(" + item.get("wedTime").toString() + ")\", \"align\": \"left\", \"width\": 200},"
+ "{ \"field\": \"thurAmount\", \"title\": \"周四(" + item.get("thurTime").toString() + ")\", \"align\": \"left\", \"width\": 200},"
+ "{ \"field\": \"friAmount\", \"title\": \"周五(" + item.get("friTime").toString() + ")\", \"align\": \"left\", \"width\": 200},"
+ "{ \"field\": \"satuAmount\", \"title\": \"周六(" + item.get("satuTime").toString() + ")\", \"align\": \"left\", \"width\": 200},"
+ "{ \"field\": \"sunAmount\", \"title\": \"周日(" + item.get("sunTime").toString() + ")\", \"align\": \"left\", \"width\": 200},"
+ "{ \"field\": \"allWorkLoad\", \"title\": \"小计\", \"align\": \"left\", \"width\": 70}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
public class SealBorrowEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"借用人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
GOODS("goods", "{\"name\": \"印章\", \"orderBy\": \"4\", \"showType\": \"5\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"6\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"sealName\", \"title\": \"印章名称\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"stateName\", \"title\": \"状态\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
public class SealRevertEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"归还人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
GOODS("goods", "{\"name\": \"印章\", \"orderBy\": \"4\", \"showType\": \"5\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"6\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"sealName\", \"title\": \"印章名称\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"stateName\", \"title\": \"状态\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 150}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
public class VehicleUseEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
TITLE("title", "{\"name\": \"标题\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ODD_NUMBER("oddNumber", "{\"name\": \"单号\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
USER_NAME("userName", "{\"name\": \"责任人\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PASSENGERNUM("passengerNum", "{\"name\": \"乘车人数\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PASSENGERINFO("passengerInfo", "{\"name\": \"乘车人信息\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ISSELFDRIVE("isSelfDrive", "{\"name\": \"是否自驾\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DRIVERNAME("driverName", "{\"name\": \"驾驶人信息\", \"orderBy\": \"7\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DEPARTURETIME("departureTime", "{\"name\": \"用车时间段\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"12\"}"),
DESIGNATEDVEHICLEINFO("designatedVehicleInfo", "{\"name\": \"指定车辆\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"12\"}"),
TIMEANDPLACEOFTRAVEL("timeAndPlaceOfTravel", "{\"name\": \"乘车时间地点\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"12\"}"),
VEHICLESTATENAME("vehicleStateName", "{\"name\": \"用车状态\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"12\"}"),
VEHICLEINFO("vehicleInfo", "{\"name\": \"实际用车\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"12\"}"),
VEHICLEIMG("vehicleImg", "{\"name\": \"车图片\", \"orderBy\": \"13\", \"showType\": \"4\", \"proportion\": \"12\"}"),
FUELCONSUMPTION("fuelConsumption", "{\"name\": \"用车油耗(L)\", \"orderBy\": \"14\", \"showType\": \"1\", \"proportion\": \"6\"}"),
VEHICLECOST("vehicleCost", "{\"name\": \"用车费用(元)\", \"orderBy\": \"15\", \"showType\": \"1\", \"proportion\": \"6\"}"),
REASONSFORUSINGCAR("reasonsForUsingCar", "{\"name\": \"用车事由\", \"orderBy\": \"16\", \"showType\": \"1\", \"proportion\": \"12\"}"),
REMARK("remark", "{\"name\": \"相关描述\", \"orderBy\": \"17\", \"showType\": \"1\", \"proportion\": \"12\"}"),
ENCLOSUREINFO("enclosureInfo", "{\"name\": \"相关附件\", \"orderBy\": \"18\", \"showType\": \"2\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
for (Entity q : Entity.values()){
Map<String, Object> jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity.erp;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
* @ClassName: PurchaseOrderEntity
* @Description: 其他出库单提交到工作流的实体类
* @author: skyeye云系列--卫志强
* @date: 2021/8/19 22:31
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class OtherOutLetsEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
SUPPLIER_NAME("supplierName", "{\"name\": \"客户\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_TIME("operTime", "{\"name\": \"单据日期\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DEFAULT_NUMBER("defaultNumber", "{\"name\": \"单据编号\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_PERSON_NAME("operPersonName", "{\"name\": \"操作人\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CREATE_TIME("createTime", "{\"name\": \"操作日期\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ITEMS("items", "{\"name\": \"列表项\", \"orderBy\": \"7\", \"showType\": \"5\", \"proportion\": \"12\"}"),
ACCOUNT_NAME("accountName", "{\"name\": \"结算账户\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"4\"}"),
PAY_TYPE("payType", "{\"name\": \"收款类型\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"4\"}"),
TOTAL_PRICE("totalPrice", "{\"name\": \"金额合计\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"3\"}"),
TAX_LAST_MONEY_PRICE("taxLastMoneyPrice", "{\"name\": \"价税合计(元)\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"3\"}"),
REMARK("remark", "{\"name\": \"备注\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"12\"}"),
DISCOUNT("discount", "{\"name\": \"优惠率%\", \"orderBy\": \"13\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_MONEY("discountMoney", "{\"name\": \"优惠金额\", \"orderBy\": \"14\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_LAST_MONEY("discountLastMoney", "{\"name\": \"优惠后金额\", \"orderBy\": \"15\", \"showType\": \"1\", \"proportion\": \"3\"}"),
CHANGE_AMOUNT("changeAmount", "{\"name\": \"本次收款\", \"orderBy\": \"16\", \"showType\": \"1\", \"proportion\": \"3\"}"),
ARREARS("arrears", "{\"name\": \"本次欠款\", \"orderBy\": \"17\", \"showType\": \"1\", \"proportion\": \"6\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
Map<String, Object> jObject;
for (Entity q : Entity.values()){
jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
getItemListHeaderTitle(jObject);
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
private static void getItemListHeaderTitle(Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"deportName\", \"title\": \"仓库\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"materialNames\", \"title\": \"产品(型号)\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"unitName\", \"title\": \"单位\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"operNumber\", \"title\": \"数量\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"unitPrice\", \"title\": \"单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"allPrice\", \"title\": \"金额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxRate\", \"title\": \"税率(%)\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxMoney\", \"title\": \"税额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxUnitPrice\", \"title\": \"含税单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxLastMoney\", \"title\": \"合计价税\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 100}]");
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity.erp;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
* @ClassName: PurchaseOrderEntity
* @Description: 其他入库单提交到工作流的实体类
* @author: skyeye云系列--卫志强
* @date: 2021/8/19 22:31
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class OtherWareHousEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
SUPPLIER_NAME("supplierName", "{\"name\": \"供应商\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_TIME("operTime", "{\"name\": \"单据日期\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DEFAULT_NUMBER("defaultNumber", "{\"name\": \"单据编号\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_PERSON_NAME("operPersonName", "{\"name\": \"操作人\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CREATE_TIME("createTime", "{\"name\": \"操作日期\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ITEMS("items", "{\"name\": \"列表项\", \"orderBy\": \"7\", \"showType\": \"5\", \"proportion\": \"12\"}"),
ACCOUNT_NAME("accountName", "{\"name\": \"结算账户\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"4\"}"),
PAY_TYPE("payType", "{\"name\": \"付款类型\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"4\"}"),
TOTAL_PRICE("totalPrice", "{\"name\": \"金额合计\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"3\"}"),
TAX_LAST_MONEY_PRICE("taxLastMoneyPrice", "{\"name\": \"价税合计(元)\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"3\"}"),
REMARK("remark", "{\"name\": \"备注\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"12\"}"),
DISCOUNT("discount", "{\"name\": \"优惠率%\", \"orderBy\": \"13\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_MONEY("discountMoney", "{\"name\": \"优惠金额\", \"orderBy\": \"14\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_LAST_MONEY("discountLastMoney", "{\"name\": \"优惠后金额\", \"orderBy\": \"15\", \"showType\": \"1\", \"proportion\": \"3\"}"),
CHANGE_AMOUNT("changeAmount", "{\"name\": \"本次付款\", \"orderBy\": \"16\", \"showType\": \"1\", \"proportion\": \"3\"}"),
ARREARS("arrears", "{\"name\": \"本次欠款\", \"orderBy\": \"17\", \"showType\": \"1\", \"proportion\": \"6\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
Map<String, Object> jObject;
for (Entity q : Entity.values()){
jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
getItemListHeaderTitle(jObject);
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
private static void getItemListHeaderTitle(Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"deportName\", \"title\": \"仓库\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"materialNames\", \"title\": \"产品(型号)\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"unitName\", \"title\": \"单位\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"operNumber\", \"title\": \"数量\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"unitPrice\", \"title\": \"单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"allPrice\", \"title\": \"金额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxRate\", \"title\": \"税率(%)\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxMoney\", \"title\": \"税额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxUnitPrice\", \"title\": \"含税单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxLastMoney\", \"title\": \"合计价税\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 100}]");
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity.erp;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
* @ClassName: PurchaseOrderEntity
* @Description: 采购订单提交到工作流的实体类
* @author: skyeye云系列--卫志强
* @date: 2021/8/19 22:31
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class PurchaseOrderEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
SUPPLIER_NAME("supplierName", "{\"name\": \"供应商\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_TIME("operTime", "{\"name\": \"单据日期\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DEFAULT_NUMBER("defaultNumber", "{\"name\": \"单据编号\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PRODUCITON_ORDER_NUM("producitonOrderNum", "{\"name\": \"生产计划单\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_PERSON_NAME("operPersonName", "{\"name\": \"操作人\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CREATE_TIME("createTime", "{\"name\": \"操作日期\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ITEMS("items", "{\"name\": \"列表项\", \"orderBy\": \"7\", \"showType\": \"5\", \"proportion\": \"12\"}"),
ACCOUNT_NAME("accountName", "{\"name\": \"支付账户\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"4\"}"),
PAY_TYPE("payType", "{\"name\": \"付款类型\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"4\"}"),
TOTAL_PRICE("totalPrice", "{\"name\": \"金额合计\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"3\"}"),
TAX_LAST_MONEY_PRICE("taxLastMoneyPrice", "{\"name\": \"价税合计(元)\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"3\"}"),
REMARK("remark", "{\"name\": \"备注\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"12\"}"),
DISCOUNT("discount", "{\"name\": \"优惠率%\", \"orderBy\": \"13\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_MONEY("discountMoney", "{\"name\": \"优惠金额\", \"orderBy\": \"14\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_LAST_MONEY("discountLastMoney", "{\"name\": \"优惠后金额\", \"orderBy\": \"15\", \"showType\": \"1\", \"proportion\": \"3\"}"),
CHANGE_AMOUNT("changeAmount", "{\"name\": \"支付金额\", \"orderBy\": \"16\", \"showType\": \"1\", \"proportion\": \"3\"}"),
ARREARS("arrears", "{\"name\": \"本次欠款\", \"orderBy\": \"17\", \"showType\": \"1\", \"proportion\": \"6\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
Map<String, Object> jObject;
for (Entity q : Entity.values()){
jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
jObject.put("headerTitle", "[{ \"field\": \"materialNames\", \"title\": \"产品(型号)\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"unitName\", \"title\": \"单位\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"operNumber\", \"title\": \"数量\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"unitPrice\", \"title\": \"单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"allPrice\", \"title\": \"金额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxRate\", \"title\": \"税率(%)\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxMoney\", \"title\": \"税额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxUnitPrice\", \"title\": \"含税单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxLastMoney\", \"title\": \"合计价税\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 100}]");
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity.erp;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
* @ClassName: PurchaseOrderEntity
* @Description: 采购入库单提交到工作流的实体类
* @author: skyeye云系列--卫志强
* @date: 2021/8/19 22:31
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class PurchasePutEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
SUPPLIER_NAME("supplierName", "{\"name\": \"供应商\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_TIME("operTime", "{\"name\": \"单据日期\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DEFAULT_NUMBER("defaultNumber", "{\"name\": \"单据编号\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PRODUCITON_ORDER_NUM("linkNumber", "{\"name\": \"所属采购单\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_PERSON_NAME("operPersonName", "{\"name\": \"操作人\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CREATE_TIME("createTime", "{\"name\": \"操作日期\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ITEMS("items", "{\"name\": \"列表项\", \"orderBy\": \"7\", \"showType\": \"5\", \"proportion\": \"12\"}"),
ACCOUNT_NAME("accountName", "{\"name\": \"结算账户\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"4\"}"),
PAY_TYPE("payType", "{\"name\": \"付款类型\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"4\"}"),
TOTAL_PRICE("totalPrice", "{\"name\": \"金额合计\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"3\"}"),
TAX_LAST_MONEY_PRICE("taxLastMoneyPrice", "{\"name\": \"价税合计(元)\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"3\"}"),
REMARK("remark", "{\"name\": \"备注\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"12\"}"),
DISCOUNT("discount", "{\"name\": \"优惠率%\", \"orderBy\": \"13\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_MONEY("discountMoney", "{\"name\": \"优惠金额\", \"orderBy\": \"14\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_LAST_MONEY("discountLastMoney", "{\"name\": \"优惠后金额\", \"orderBy\": \"15\", \"showType\": \"1\", \"proportion\": \"3\"}"),
CHANGE_AMOUNT("changeAmount", "{\"name\": \"本次付款\", \"orderBy\": \"16\", \"showType\": \"1\", \"proportion\": \"3\"}"),
ARREARS("arrears", "{\"name\": \"本次欠款\", \"orderBy\": \"17\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OTHER_MONEY_LIST("otherMoneyList", "{\"name\": \"其他费用\", \"orderBy\": \"18\", \"showType\": \"5\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
Map<String, Object> jObject;
for (Entity q : Entity.values()){
jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
if("items".equals(q.getNameCode())){
getItemListHeaderTitle(jObject);
} else if("otherMoneyList".equals(q.getNameCode())){
getOtherMoneyListHeaderTitle(map, jObject);
}
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
private static void getOtherMoneyListHeaderTitle(Map<String, Object> map, Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"name\", \"title\": \"支出项目\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"otherPrice\", \"title\": \"费用合计:" + map.get("otherMoney").toString() + "元\", \"align\": \"left\", \"width\": 200}]");
}
private static void getItemListHeaderTitle(Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"deportName\", \"title\": \"仓库\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"materialNames\", \"title\": \"产品(型号)\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"unitName\", \"title\": \"单位\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"operNumber\", \"title\": \"数量\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"unitPrice\", \"title\": \"单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"allPrice\", \"title\": \"金额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxRate\", \"title\": \"税率(%)\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxMoney\", \"title\": \"税额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxUnitPrice\", \"title\": \"含税单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxLastMoney\", \"title\": \"合计价税\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 100}]");
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity.erp;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
* @ClassName: PurchaseOrderEntity
* @Description: 采购退货单提交到工作流的实体类
* @author: skyeye云系列--卫志强
* @date: 2021/8/19 22:31
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class PurchaseReturnsEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
SUPPLIER_NAME("supplierName", "{\"name\": \"供应商\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_TIME("operTime", "{\"name\": \"单据日期\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DEFAULT_NUMBER("defaultNumber", "{\"name\": \"单据编号\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_PERSON_NAME("operPersonName", "{\"name\": \"操作人\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CREATE_TIME("createTime", "{\"name\": \"操作日期\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ITEMS("items", "{\"name\": \"列表项\", \"orderBy\": \"7\", \"showType\": \"5\", \"proportion\": \"12\"}"),
ACCOUNT_NAME("accountName", "{\"name\": \"结算账户\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"4\"}"),
PAY_TYPE("payType", "{\"name\": \"付款类型\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"4\"}"),
TOTAL_PRICE("totalPrice", "{\"name\": \"金额合计\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"3\"}"),
TAX_LAST_MONEY_PRICE("taxLastMoneyPrice", "{\"name\": \"价税合计(元)\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"3\"}"),
REMARK("remark", "{\"name\": \"备注\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"12\"}"),
DISCOUNT("discount", "{\"name\": \"优惠率%\", \"orderBy\": \"13\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_MONEY("discountMoney", "{\"name\": \"优惠金额\", \"orderBy\": \"14\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_LAST_MONEY("discountLastMoney", "{\"name\": \"优惠后金额\", \"orderBy\": \"15\", \"showType\": \"1\", \"proportion\": \"3\"}"),
CHANGE_AMOUNT("changeAmount", "{\"name\": \"本次退款\", \"orderBy\": \"16\", \"showType\": \"1\", \"proportion\": \"3\"}"),
ARREARS("arrears", "{\"name\": \"本次欠款\", \"orderBy\": \"17\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OTHER_MONEY_LIST("otherMoneyList", "{\"name\": \"其他费用\", \"orderBy\": \"18\", \"showType\": \"5\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
Map<String, Object> jObject;
for (Entity q : Entity.values()){
jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
if("items".equals(q.getNameCode())){
getItemListHeaderTitle(jObject);
} else if("otherMoneyList".equals(q.getNameCode())){
getOtherMoneyListHeaderTitle(map, jObject);
}
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
private static void getOtherMoneyListHeaderTitle(Map<String, Object> map, Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"name\", \"title\": \"支出项目\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"otherPrice\", \"title\": \"费用合计:" + map.get("otherMoney").toString() + "元\", \"align\": \"left\", \"width\": 200}]");
}
private static void getItemListHeaderTitle(Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"deportName\", \"title\": \"仓库\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"materialNames\", \"title\": \"产品(型号)\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"unitName\", \"title\": \"单位\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"operNumber\", \"title\": \"数量\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"unitPrice\", \"title\": \"单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"allPrice\", \"title\": \"金额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxRate\", \"title\": \"税率(%)\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxMoney\", \"title\": \"税额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxUnitPrice\", \"title\": \"含税单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxLastMoney\", \"title\": \"合计价税\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 100}]");
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity.erp;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
* @ClassName: PurchaseOrderEntity
* @Description: 零售出库单提交到工作流的实体类
* @author: skyeye云系列--卫志强
* @date: 2021/8/19 22:31
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class RetailOutLetEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
SUPPLIER_NAME("supplierName", "{\"name\": \"会员\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"3\"}"),
OPER_TIME("operTime", "{\"name\": \"单据日期\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"3\"}"),
ACCOUNT_NAME("accountName", "{\"name\": \"结算账户\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"3\"}"),
PAY_TYPE("payType", "{\"name\": \"收款类型\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DEFAULT_NUMBER("defaultNumber", "{\"name\": \"单据编号\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_PERSON_NAME("operPersonName", "{\"name\": \"操作人\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CREATE_TIME("createTime", "{\"name\": \"操作日期\", \"orderBy\": \"7\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ITEMS("items", "{\"name\": \"列表项\", \"orderBy\": \"8\", \"showType\": \"5\", \"proportion\": \"12\"}"),
TOTAL_PRICE("totalPrice", "{\"name\": \"共计金额\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"4\"}"),
CHANGE_AMOUNT("changeAmount", "{\"name\": \"收款金额\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"4\"}"),
DISCOUNT("giveChange", "{\"name\": \"找零金额\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"4\"}"),
REMARK("remark", "{\"name\": \"备注\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
Map<String, Object> jObject;
for (Entity q : Entity.values()){
jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
getItemListHeaderTitle(jObject);
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
private static void getItemListHeaderTitle(Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"deportName\", \"title\": \"仓库\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"materialNames\", \"title\": \"产品(型号)\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"unitName\", \"title\": \"单位\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"operNumber\", \"title\": \"数量\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"unitPrice\", \"title\": \"单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"allPrice\", \"title\": \"金额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 100}]");
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity.erp;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
* @ClassName: PurchaseOrderEntity
* @Description: 零售退货单提交到工作流的实体类
* @author: skyeye云系列--卫志强
* @date: 2021/8/19 22:31
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class RetailReturnsEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
SUPPLIER_NAME("supplierName", "{\"name\": \"会员\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"3\"}"),
OPER_TIME("operTime", "{\"name\": \"单据日期\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"3\"}"),
ACCOUNT_NAME("accountName", "{\"name\": \"结算账户\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"3\"}"),
PAY_TYPE("payType", "{\"name\": \"退款类型\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DEFAULT_NUMBER("defaultNumber", "{\"name\": \"单据编号\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_PERSON_NAME("operPersonName", "{\"name\": \"操作人\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CREATE_TIME("createTime", "{\"name\": \"操作日期\", \"orderBy\": \"7\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ITEMS("items", "{\"name\": \"列表项\", \"orderBy\": \"8\", \"showType\": \"5\", \"proportion\": \"12\"}"),
TOTAL_PRICE("totalPrice", "{\"name\": \"共计金额\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"4\"}"),
CHANGE_AMOUNT("changeAmount", "{\"name\": \"退款金额\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"4\"}"),
DISCOUNT("giveChange", "{\"name\": \"折损扣费\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"4\"}"),
REMARK("remark", "{\"name\": \"备注\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
Map<String, Object> jObject;
for (Entity q : Entity.values()){
jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
getItemListHeaderTitle(jObject);
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
private static void getItemListHeaderTitle(Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"deportName\", \"title\": \"仓库\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"materialNames\", \"title\": \"产品(型号)\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"unitName\", \"title\": \"单位\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"operNumber\", \"title\": \"数量\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"unitPrice\", \"title\": \"单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"allPrice\", \"title\": \"金额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 100}]");
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity.erp;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
* @ClassName: PurchaseOrderEntity
* @Description: 销售订单提交到工作流的实体类
* @author: skyeye云系列--卫志强
* @date: 2021/8/19 22:31
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class SalesOrderEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
SUPPLIER_NAME("supplierName", "{\"name\": \"客户\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_TIME("operTime", "{\"name\": \"单据日期\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DEFAULT_NUMBER("defaultNumber", "{\"name\": \"单据编号\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_PERSON_NAME("operPersonName", "{\"name\": \"操作人\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CREATE_TIME("createTime", "{\"name\": \"录入日期\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ITEMS("items", "{\"name\": \"列表项\", \"orderBy\": \"7\", \"showType\": \"5\", \"proportion\": \"12\"}"),
ACCOUNT_NAME("accountName", "{\"name\": \"结算账户\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"4\"}"),
PAY_TYPE("payType", "{\"name\": \"收款类型\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"4\"}"),
TOTAL_PRICE("totalPrice", "{\"name\": \"金额合计\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"3\"}"),
TAX_LAST_MONEY_PRICE("taxLastMoneyPrice", "{\"name\": \"价税合计(元)\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"3\"}"),
REMARK("remark", "{\"name\": \"备注\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"12\"}"),
DISCOUNT("discount", "{\"name\": \"优惠率%\", \"orderBy\": \"13\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_MONEY("discountMoney", "{\"name\": \"优惠金额\", \"orderBy\": \"14\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_LAST_MONEY("discountLastMoney", "{\"name\": \"优惠后金额\", \"orderBy\": \"15\", \"showType\": \"1\", \"proportion\": \"3\"}"),
CHANGE_AMOUNT("changeAmount", "{\"name\": \"收款金额\", \"orderBy\": \"16\", \"showType\": \"1\", \"proportion\": \"3\"}"),
ARREARS("arrears", "{\"name\": \"本次欠款\", \"orderBy\": \"17\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OTHER_MONEY_LIST("otherMoneyList", "{\"name\": \"其他费用\", \"orderBy\": \"18\", \"showType\": \"5\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
Map<String, Object> jObject;
for (Entity q : Entity.values()){
jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
if("items".equals(q.getNameCode())){
getItemListHeaderTitle(jObject);
} else if("otherMoneyList".equals(q.getNameCode())){
getOtherMoneyListHeaderTitle(map, jObject);
}
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
private static void getOtherMoneyListHeaderTitle(Map<String, Object> map, Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"name\", \"title\": \"支出项目\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"otherPrice\", \"title\": \"费用合计:" + map.get("otherMoney").toString() + "元\", \"align\": \"left\", \"width\": 200}]");
}
private static void getItemListHeaderTitle(Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"materialNames\", \"title\": \"产品(型号)\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"unitName\", \"title\": \"单位\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"operNumber\", \"title\": \"数量\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"unitPrice\", \"title\": \"单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"allPrice\", \"title\": \"金额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxRate\", \"title\": \"税率(%)\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxMoney\", \"title\": \"税额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxUnitPrice\", \"title\": \"含税单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxLastMoney\", \"title\": \"合计价税\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 100}]");
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity.erp;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
* @ClassName: PurchaseOrderEntity
* @Description: 销售出库单提交到工作流的实体类
* @author: skyeye云系列--卫志强
* @date: 2021/8/19 22:31
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class SalesOutLetEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
SUPPLIER_NAME("supplierName", "{\"name\": \"客户\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_TIME("operTime", "{\"name\": \"单据日期\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DEFAULT_NUMBER("defaultNumber", "{\"name\": \"单据编号\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
PRODUCITON_ORDER_NUM("linkNumber", "{\"name\": \"所属销售单\", \"orderBy\": \"4\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_PERSON_NAME("operPersonName", "{\"name\": \"操作人\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CREATE_TIME("createTime", "{\"name\": \"操作日期\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ITEMS("items", "{\"name\": \"列表项\", \"orderBy\": \"7\", \"showType\": \"5\", \"proportion\": \"12\"}"),
ACCOUNT_NAME("accountName", "{\"name\": \"结算账户\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"4\"}"),
PAY_TYPE("payType", "{\"name\": \"收款类型\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"4\"}"),
TOTAL_PRICE("totalPrice", "{\"name\": \"金额合计\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"3\"}"),
TAX_LAST_MONEY_PRICE("taxLastMoneyPrice", "{\"name\": \"价税合计(元)\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"3\"}"),
REMARK("remark", "{\"name\": \"备注\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"12\"}"),
DISCOUNT("discount", "{\"name\": \"优惠率%\", \"orderBy\": \"13\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_MONEY("discountMoney", "{\"name\": \"优惠金额\", \"orderBy\": \"14\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_LAST_MONEY("discountLastMoney", "{\"name\": \"优惠后金额\", \"orderBy\": \"15\", \"showType\": \"1\", \"proportion\": \"3\"}"),
CHANGE_AMOUNT("changeAmount", "{\"name\": \"本次收款\", \"orderBy\": \"16\", \"showType\": \"1\", \"proportion\": \"3\"}"),
ARREARS("arrears", "{\"name\": \"本次欠款\", \"orderBy\": \"17\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OTHER_MONEY_LIST("otherMoneyList", "{\"name\": \"其他费用\", \"orderBy\": \"18\", \"showType\": \"5\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
Map<String, Object> jObject;
for (Entity q : Entity.values()){
jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
if("items".equals(q.getNameCode())){
getItemListHeaderTitle(jObject);
} else if("otherMoneyList".equals(q.getNameCode())){
getOtherMoneyListHeaderTitle(map, jObject);
}
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
private static void getOtherMoneyListHeaderTitle(Map<String, Object> map, Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"name\", \"title\": \"支出项目\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"otherPrice\", \"title\": \"费用合计:" + map.get("otherMoney").toString() + "元\", \"align\": \"left\", \"width\": 200}]");
}
private static void getItemListHeaderTitle(Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"deportName\", \"title\": \"仓库\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"materialNames\", \"title\": \"产品(型号)\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"unitName\", \"title\": \"单位\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"operNumber\", \"title\": \"数量\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"unitPrice\", \"title\": \"单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"allPrice\", \"title\": \"金额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxRate\", \"title\": \"税率(%)\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxMoney\", \"title\": \"税额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxUnitPrice\", \"title\": \"含税单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxLastMoney\", \"title\": \"合计价税\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 100}]");
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.json.entity.erp;
import cn.hutool.json.JSONUtil;
import java.util.HashMap;
import java.util.Map;
/**
* @ClassName: PurchaseOrderEntity
* @Description: 销售退货单提交到工作流的实体类
* @author: skyeye云系列--卫志强
* @date: 2021/8/19 22:31
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public class SalesReturnsEntity {
public static Map<String, Object> transform(Map<String, Object> map) {
return Entity.getClockInState(map);
}
public static enum Entity {
SUPPLIER_NAME("supplierName", "{\"name\": \"客户\", \"orderBy\": \"1\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_TIME("operTime", "{\"name\": \"单据日期\", \"orderBy\": \"2\", \"showType\": \"1\", \"proportion\": \"6\"}"),
DEFAULT_NUMBER("defaultNumber", "{\"name\": \"单据编号\", \"orderBy\": \"3\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OPER_PERSON_NAME("operPersonName", "{\"name\": \"操作人\", \"orderBy\": \"5\", \"showType\": \"1\", \"proportion\": \"6\"}"),
CREATE_TIME("createTime", "{\"name\": \"操作日期\", \"orderBy\": \"6\", \"showType\": \"1\", \"proportion\": \"6\"}"),
ITEMS("items", "{\"name\": \"列表项\", \"orderBy\": \"7\", \"showType\": \"5\", \"proportion\": \"12\"}"),
ACCOUNT_NAME("accountName", "{\"name\": \"结算账户\", \"orderBy\": \"8\", \"showType\": \"1\", \"proportion\": \"4\"}"),
PAY_TYPE("payType", "{\"name\": \"退款类型\", \"orderBy\": \"9\", \"showType\": \"1\", \"proportion\": \"4\"}"),
TOTAL_PRICE("totalPrice", "{\"name\": \"金额合计\", \"orderBy\": \"10\", \"showType\": \"1\", \"proportion\": \"3\"}"),
TAX_LAST_MONEY_PRICE("taxLastMoneyPrice", "{\"name\": \"价税合计(元)\", \"orderBy\": \"11\", \"showType\": \"1\", \"proportion\": \"3\"}"),
REMARK("remark", "{\"name\": \"备注\", \"orderBy\": \"12\", \"showType\": \"1\", \"proportion\": \"12\"}"),
DISCOUNT("discount", "{\"name\": \"优惠率%\", \"orderBy\": \"13\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_MONEY("discountMoney", "{\"name\": \"退款优惠金额\", \"orderBy\": \"14\", \"showType\": \"1\", \"proportion\": \"3\"}"),
DISCOUNT_LAST_MONEY("discountLastMoney", "{\"name\": \"优惠后金额\", \"orderBy\": \"15\", \"showType\": \"1\", \"proportion\": \"3\"}"),
CHANGE_AMOUNT("changeAmount", "{\"name\": \"本次退款\", \"orderBy\": \"16\", \"showType\": \"1\", \"proportion\": \"3\"}"),
ARREARS("arrears", "{\"name\": \"本次欠款\", \"orderBy\": \"17\", \"showType\": \"1\", \"proportion\": \"6\"}"),
OTHER_MONEY_LIST("otherMoneyList", "{\"name\": \"其他费用\", \"orderBy\": \"18\", \"showType\": \"5\", \"proportion\": \"12\"}");
private String nameCode;
private String str;
Entity(String nameCode, String str){
this.nameCode = nameCode;
this.str = str;
}
public static Map<String, Object> getClockInState(Map<String, Object> map){
Map<String, Object> bean = new HashMap<>();
Map<String, Object> jObject;
for (Entity q : Entity.values()){
jObject = JSONUtil.toBean(q.getStr(), null);
jObject.put("value", map.containsKey(q.getNameCode()) ? map.get(q.getNameCode()) : "");
if("5".equals(jObject.get("showType").toString())){//展示为表格,特殊处理
if("items".equals(q.getNameCode())){
getItemListHeaderTitle(jObject);
} else if("otherMoneyList".equals(q.getNameCode())){
getOtherMoneyListHeaderTitle(map, jObject);
}
}
bean.put(q.getNameCode(), jObject);
}
return bean;
}
public String getNameCode() {
return nameCode;
}
public String getStr() {
return str;
}
}
private static void getOtherMoneyListHeaderTitle(Map<String, Object> map, Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"name\", \"title\": \"支出项目\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"otherPrice\", \"title\": \"费用合计:" + map.get("otherMoney").toString() + "元\", \"align\": \"left\", \"width\": 200}]");
}
private static void getItemListHeaderTitle(Map<String, Object> jObject) {
jObject.put("headerTitle", "[{ \"field\": \"deportName\", \"title\": \"仓库\", \"align\": \"left\", \"width\": 150},"
+ "{ \"field\": \"materialNames\", \"title\": \"产品(型号)\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"unitName\", \"title\": \"单位\", \"align\": \"left\", \"width\": 70},"
+ "{ \"field\": \"operNumber\", \"title\": \"数量\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"unitPrice\", \"title\": \"单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"allPrice\", \"title\": \"金额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxRate\", \"title\": \"税率(%)\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxMoney\", \"title\": \"税额\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxUnitPrice\", \"title\": \"含税单价\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"taxLastMoney\", \"title\": \"合计价税\", \"align\": \"left\", \"width\": 80},"
+ "{ \"field\": \"remark\", \"title\": \"备注\", \"align\": \"left\", \"width\": 100}]");
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.skyeye.activiti.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.skyeye.activiti.service.ActivitiModelService;
import com.skyeye.common.object.InputObject;
import com.skyeye.common.object.OutputObject;
@Controller
public class ActivitiModelController {
@Autowired
private ActivitiModelService activitiModelService;
/**
*
* @Title: insertNewActivitiModel
* @Description: 新建一个空模型
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/insertNewActivitiModel")
@ResponseBody
public void insertNewActivitiModel(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.insertNewActivitiModel(inputObject, outputObject);
}
/**
*
* @Title: queryActivitiModelList
* @Description: 获取所有模型
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/queryActivitiModelList")
@ResponseBody
public void queryActivitiModelList(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.queryActivitiModelList(inputObject, outputObject);
}
/**
*
* @Title: editActivitiModelToDeploy
* @Description: 发布模型为流程定义
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/editActivitiModelToDeploy")
@ResponseBody
public void editActivitiModelToDeploy(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.editActivitiModelToDeploy(inputObject, outputObject);
}
/**
*
* @Title: editActivitiModelToStartProcess
* @Description: 启动流程
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/editActivitiModelToStartProcess")
@ResponseBody
public void editActivitiModelToStartProcess(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.editActivitiModelToStartProcess(inputObject, outputObject);
}
/**
*
* @Title: editActivitiModelToRun
* @Description: 提交任务
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/editActivitiModelToRun")
@ResponseBody
public void editActivitiModelToRun(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.editActivitiModelToRun(inputObject, outputObject);
}
/**
*
* @Title: deleteActivitiModelById
* @Description: 删除模型
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/deleteActivitiModelById")
@ResponseBody
public void deleteActivitiModelById(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.deleteActivitiModelById(inputObject, outputObject);
}
/**
*
* @Title: deleteReleasedActivitiModelById
* @Description: 取消发布
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/deleteReleasedActivitiModelById")
@ResponseBody
public void deleteReleasedActivitiModelById(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.deleteReleasedActivitiModelById(inputObject, outputObject);
}
/**
*
* @Title: queryUserAgencyTasksListByUserId
* @Description: 获取用户待办任务
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/queryUserAgencyTasksListByUserId")
@ResponseBody
public void queryUserAgencyTasksListByUserId(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.queryUserAgencyTasksListByUserId(inputObject, outputObject);
}
/**
*
* @Title: queryReleaseActivitiModelList
* @Description: 获取已发布模型
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/queryReleaseActivitiModelList")
@ResponseBody
public void queryReleaseActivitiModelList(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.queryReleaseActivitiModelList(inputObject, outputObject);
}
/**
*
* @Title: editApprovalActivitiTaskListByUserId
* @Description: 导出model的xml文件
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/editApprovalActivitiTaskListByUserId")
@ResponseBody
public void editApprovalActivitiTaskListByUserId(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.editApprovalActivitiTaskListByUserId(inputObject, outputObject);
}
/**
*
* @Title: queryUserListToActiviti
* @Description: 获取人员选择
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/queryUserListToActiviti")
@ResponseBody
public void queryUserListToActiviti(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.queryUserListToActiviti(inputObject, outputObject);
}
/**
*
* @Title: queryUserGroupListToActiviti
* @Description: 获取组人员选择
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/queryUserGroupListToActiviti")
@ResponseBody
public void queryUserGroupListToActiviti(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.queryUserGroupListToActiviti(inputObject, outputObject);
}
/**
*
* @Title: queryStartProcessNotSubByUserId
* @Description: 获取我启动的流程
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/queryStartProcessNotSubByUserId")
@ResponseBody
public void queryStartProcessNotSubByUserId(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.queryStartProcessNotSubByUserId(inputObject, outputObject);
}
/**
*
* @Title: queryMyHistoryTaskByUserId
* @Description: 获取我的历史任务
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/queryMyHistoryTaskByUserId")
@ResponseBody
public void queryMyHistoryTaskByUserId(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.queryMyHistoryTaskByUserId(inputObject, outputObject);
}
/**
*
* @Title: insertSyncUserListMationToAct
* @Description: 用户以及用户组信息同步到act表中
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/insertSyncUserListMationToAct")
@ResponseBody
public void insertSyncUserListMationToAct(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.insertSyncUserListMationToAct(inputObject, outputObject);
}
/**
*
* @Title: querySubFormMationByTaskId
* @Description: 获取用户提交的表单信息根据taskid
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/querySubFormMationByTaskId")
@ResponseBody
public void querySubFormMationByTaskId(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.querySubFormMationByTaskId(inputObject, outputObject);
}
/**
*
* @Title: queryApprovalTasksHistoryByProcessInstanceId
* @Description: 获取历史审批列表
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/queryApprovalTasksHistoryByProcessInstanceId")
@ResponseBody
public void queryApprovalTasksHistoryByProcessInstanceId(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.queryApprovalTasksHistoryByProcessInstanceId(inputObject, outputObject);
}
/**
*
* @Title: queryAllComplateProcessList
* @Description: 获取所有已完成的流程信息
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/queryAllComplateProcessList")
@ResponseBody
public void queryAllComplateProcessList(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.queryAllComplateProcessList(inputObject, outputObject);
}
/**
*
* @Title: queryAllConductProcessList
* @Description: 获取所有待办的流程信息
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/queryAllConductProcessList")
@ResponseBody
public void queryAllConductProcessList(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.queryAllConductProcessList(inputObject, outputObject);
}
/**
*
* @Title: updateProcessToHangUp
* @Description: 流程挂起
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/updateProcessToHangUp")
@ResponseBody
public void updateProcessToHangUp(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.updateProcessToHangUp(inputObject, outputObject);
}
/**
*
* @Title: updateProcessToActivation
* @Description: 流程激活
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/updateProcessToActivation")
@ResponseBody
public void updateProcessToActivation(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.updateProcessToActivation(inputObject, outputObject);
}
/**
*
* @Title: insertDSFormProcess
* @Description: 提交审批
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/insertDSFormProcess")
@ResponseBody
public void insertDSFormProcess(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.insertDSFormProcess(inputObject, outputObject);
}
/**
*
* @Title: querySubFormMationByProcessInstanceId
* @Description: 获取用户提交的表单信息根据流程id
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/querySubFormMationByProcessInstanceId")
@ResponseBody
public void querySubFormMationByProcessInstanceId(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.querySubFormMationByProcessInstanceId(inputObject, outputObject);
}
/**
*
* @Title: editProcessInstanceWithDraw
* @Description: 流程撤回
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/editProcessInstanceWithDraw")
@ResponseBody
public void editProcessInstanceWithDraw(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.editProcessInstanceWithDraw(inputObject, outputObject);
}
/**
*
* @Title: editProcessInstancePicToRefresh
* @Description: 刷新流程图
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/editProcessInstancePicToRefresh")
@ResponseBody
public void editProcessInstancePicToRefresh(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.editProcessInstancePicToRefresh(inputObject, outputObject);
}
/**
*
* @Title: editDsFormContentToRevokeByProcessInstanceId
* @Description: 动态表单提交项进行撤销操作
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/editDsFormContentToRevokeByProcessInstanceId")
@ResponseBody
public void editDsFormContentToRevokeByProcessInstanceId(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.editDsFormContentToRevokeByProcessInstanceId(inputObject, outputObject);
}
/**
*
* @Title: copyModelByModelId
* @Description: 流程模型拷贝
* @param inputObject
* @param outputObject
* @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/ActivitiModelController/copyModelByModelId")
@ResponseBody
public void copyModelByModelId(InputObject inputObject, OutputObject outputObject) throws Exception{
activitiModelService.copyModelByModelId(inputObject, outputObject);
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.skyeye.activiti.entity;
import javax.persistence.*;
@Table(name = "act_assignee")
public class ActAssignee {
@Id
@Column(name = "id")
private String id;
/**
* 节点id
*/
private String sid;
/**
* 办理人
*/
private String assignee;
/**
* 候选组(角色)
*/
@Column(name = "role_id")
private String roleId;
/**
* 办理人类型1办理人2候选人3组
*/
@Column(name = "assignee_type")
private Integer assigneeType;
/**
* 节点名称
*/
@Column(name = "activti_name")
private String activtiName;
/**
* @return id
*/
public String getId() {
return id;
}
/**
* @param id
*/
public void setId(String id) {
this.id = id == null ? null : id.trim();
}
/**
* 获取节点id
*
* @return sid - 节点id
*/
public String getSid() {
return sid;
}
/**
* 设置节点id
*
* @param sid
* 节点id
*/
public void setSid(String sid) {
this.sid = sid == null ? null : sid.trim();
}
/**
* 获取办理人
*
* @return assignee - 办理人
*/
public String getAssignee() {
return assignee;
}
/**
* 设置办理人
*
* @param assignee
* 办理人
*/
public void setAssignee(String assignee) {
this.assignee = assignee == null ? null : assignee.trim();
}
/**
* 获取候选组(角色)
*
* @return role_id - 候选组(角色)
*/
public String getRoleId() {
return roleId;
}
/**
* 设置候选组(角色)
*
* @param roleId
* 候选组(角色)
*/
public void setRoleId(String roleId) {
this.roleId = roleId == null ? null : roleId.trim();
}
/**
* 获取办理人类型1办理人2候选人3组
*
* @return assignee_type - 办理人类型1办理人2候选人3组
*/
public Integer getAssigneeType() {
return assigneeType;
}
/**
* 设置办理人类型1办理人2候选人3组
*
* @param assigneeType
* 办理人类型1办理人2候选人3组
*/
public void setAssigneeType(Integer assigneeType) {
this.assigneeType = assigneeType;
}
/**
* 获取节点名称
*
* @return activti_name - 节点名称
*/
public String getActivtiName() {
return activtiName;
}
/**
* 设置节点名称
*
* @param activtiName
* 节点名称
*/
public void setActivtiName(String activtiName) {
this.activtiName = activtiName == null ? null : activtiName.trim();
}
public ActAssignee() {
}
public ActAssignee(String sid) {
this.sid = sid;
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.skyeye.activiti.entity;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import org.activiti.engine.repository.Deployment;
/**
*
* @author 卫志强
*
*/
@Getter
@Setter
public class ActDeployment implements Serializable {
private static final long serialVersionUID = 5337694999055428654L;
private String id;
private String name;
private Date deploymentTime;
private String category;
private String tenantId;
public ActDeployment() {
}
public ActDeployment(Deployment deployment) {
this.id = deployment.getId();
this.name = deployment.getName();
this.deploymentTime = deployment.getDeploymentTime();
this.category = deployment.getCategory();
this.tenantId = deployment.getTenantId();
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.skyeye.activiti.entity;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import org.activiti.engine.repository.Model;
/**
*
* @author 卫志强 模型列表
*/
@Getter
@Setter
public class ActModel {
private String id;
private String name;
private String key;
private String category;
private Date createTime;
private Date lastUpdateTime;
private Integer version;
private String metaInfo;
private String deploymentId;
private String tenantId;
private boolean hasEditorSource;
public ActModel() {
}
public ActModel(Model model) {
this.id = model.getId();
this.name = model.getName();
this.key = model.getKey();
this.category = model.getCategory();
this.createTime = model.getCreateTime();
this.lastUpdateTime = model.getLastUpdateTime();
this.version = model.getVersion();
this.metaInfo = model.getMetaInfo();
this.deploymentId = model.getDeploymentId();
this.tenantId = model.getTenantId();
this.hasEditorSource = model.hasEditorSource();
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.skyeye.activiti.entity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.activiti.engine.repository.Deployment;
import org.activiti.rest.common.util.DateToStringSerializer;
import java.util.Date;
/**
*
* @author 卫志强
*
*/
public class DeploymentResponse {
private String id;
private String name;
@JsonSerialize(using = DateToStringSerializer.class, as = Date.class)
private Date deploymentTime;
private String category;
private String tenantId;
public DeploymentResponse(Deployment deployment) {
setId(deployment.getId());
setName(deployment.getName());
setDeploymentTime(deployment.getDeploymentTime());
setCategory(deployment.getCategory());
setTenantId(deployment.getTenantId());
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getDeploymentTime() {
return deploymentTime;
}
public void setDeploymentTime(Date deploymentTime) {
this.deploymentTime = deploymentTime;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
public String getTenantId() {
return tenantId;
}
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.skyeye.activiti.entity;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
/**
*
* @author 卫志强 请假流程 审批信息
*/
@Getter
@Setter
public class LeaveOpinion implements Serializable {
private static final long serialVersionUID = -6536860710977259314L;
// 审批人id
private String opId;
// 审批人姓名
private String opName;
// 审批意见
private String opinion;
// 审批时间
private Date createTime;
// 是否通过
private boolean flag;
// 流程id
private String taskId;
}
/*******************************************************************************
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
******************************************************************************/
package com.skyeye.activiti.mapper;
public interface ActAssigneeMapper {
public int deleteByNodeId(String nodeId) throws Exception;
}
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册