111
This commit is contained in:
1 parent
81eca8933a
commit
345f906c35
540 files changed
+494222
-90
No files matched your search
+44
@@ -0,0 +1,44 @@
|
||||
######################################################################
|
||||
# Build Tools
|
||||
|
||||
.gradle
|
||||
/build/
|
||||
!gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
|
||||
######################################################################
|
||||
# IDE
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### NetBeans ###
|
||||
nbproject/private/
|
||||
build/*
|
||||
nbbuild/
|
||||
dist/
|
||||
nbdist/
|
||||
.nb-gradle/
|
||||
|
||||
######################################################################
|
||||
# Others
|
||||
*.log
|
||||
*.xml.versionsBackup
|
||||
*.swp
|
||||
|
||||
!*/build/*.java
|
||||
!*/build/*.html
|
||||
!*/build/*.xml
|
||||
@@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 RuoYi
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -1,93 +1,85 @@
|
||||
# myEpusdt
|
||||
## 平台简介
|
||||
|
||||
susdt是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。
|
||||
|
||||
* 前端采用Vue、Element UI。
|
||||
* 后端采用Spring Boot、Spring Security、Redis & Jwt。
|
||||
* 权限认证使用Jwt,支持多终端认证系统。
|
||||
* 支持加载动态权限菜单,多方式轻松权限控制。
|
||||
* 高效率开发,使用代码生成器可以一键生成前后端代码。
|
||||
* 提供了单应用版本[RuoYi-Vue-fast](https://github.com/yangzongzhuan/RuoYi-Vue-fast),Oracle版本[RuoYi-Vue-Oracle](https://github.com/yangzongzhuan/RuoYi-Vue-Oracle),保持同步更新。
|
||||
* 不分离版本,请移步[RuoYi](https://gitee.com/y_project/RuoYi),微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud)
|
||||
* 特别鸣谢:[element](https://github.com/ElemeFE/element),[vue-element-admin](https://github.com/PanJiaChen/vue-element-admin),[eladmin-web](https://github.com/elunez/eladmin-web)。
|
||||
* 阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)
|
||||
* 阿里云优惠券:[点我领取](https://www.aliyun.com/minisite/goods?userCode=brki8iof&share_source=copy_link),腾讯云优惠券:[点我领取](https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console)
|
||||
|
||||
## 内置功能
|
||||
|
||||
1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。
|
||||
2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。
|
||||
3. 岗位管理:配置系统用户所属担任职务。
|
||||
4. 菜单管理:配置系统菜单,操作权限,按钮权限标识等。
|
||||
5. 角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。
|
||||
6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。
|
||||
7. 参数管理:对系统动态配置常用参数。
|
||||
8. 通知公告:系统通知公告信息发布维护。
|
||||
9. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。
|
||||
10. 登录日志:系统登录日志记录查询包含登录异常。
|
||||
11. 在线用户:当前系统中活跃用户状态监控。
|
||||
12. 定时任务:在线(添加、修改、删除)任务调度包含执行结果日志。
|
||||
13. 代码生成:前后端代码的生成(java、html、xml、sql)支持CRUD下载 。
|
||||
14. 系统接口:根据业务代码自动生成相关的api接口文档。
|
||||
15. 服务监控:监视当前系统CPU、内存、磁盘、堆栈等相关信息。
|
||||
16. 缓存监控:对系统的缓存信息查询,命令统计等。
|
||||
17. 在线构建器:拖动表单元素生成相应的HTML代码。
|
||||
18. 连接池监视:监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。
|
||||
|
||||
## 在线体验
|
||||
|
||||
- admin/admin123
|
||||
- 陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。
|
||||
|
||||
演示地址:http://vue.ruoyi.vip
|
||||
文档地址:http://doc.ruoyi.vip
|
||||
|
||||
## 演示图
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/cd1f90be5f2684f4560c9519c0f2a232ee8.jpg"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/1cbcf0e6f257c7d3a063c0e3f2ff989e4b3.jpg"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-8074972883b5ba0622e13246738ebba237a.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-9f88719cdfca9af2e58b352a20e23d43b12.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-39bf2584ec3a529b0d5a3b70d15c9b37646.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-936ec82d1f4872e1bc980927654b6007307.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-b2d62ceb95d2dd9b3fbe157bb70d26001e9.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-d67451d308b7a79ad6819723396f7c3d77a.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/5e8c387724954459291aafd5eb52b456f53.jpg"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/644e78da53c2e92a95dfda4f76e6d117c4b.jpg"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-8370a0d02977eebf6dbf854c8450293c937.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-49003ed83f60f633e7153609a53a2b644f7.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-d4fe726319ece268d4746602c39cffc0621.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-c195234bbcd30be6927f037a6755e6ab69c.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/b6115bc8c31de52951982e509930b20684a.jpg"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-5e4daac0bb59612c5038448acbcef235e3a.png"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
## susdt前后端分离交流群
|
||||
|
||||
## Getting started
|
||||
|
||||
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
||||
|
||||
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
||||
|
||||
## Add your files
|
||||
|
||||
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
||||
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
||||
|
||||
```
|
||||
cd existing_repo
|
||||
git remote add origin http://192.168.3.243:8000/usdt/myepusdt.git
|
||||
git branch -M main
|
||||
git push -uf origin main
|
||||
```
|
||||
|
||||
## Integrate with your tools
|
||||
|
||||
- [ ] [Set up project integrations](http://192.168.3.243:8000/usdt/myepusdt/-/settings/integrations)
|
||||
|
||||
## Collaborate with your team
|
||||
|
||||
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
||||
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
||||
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
||||
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
||||
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
||||
|
||||
## Test and Deploy
|
||||
|
||||
Use the built-in continuous integration in GitLab.
|
||||
|
||||
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
||||
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
||||
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
||||
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
||||
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
||||
|
||||
***
|
||||
|
||||
# Editing this README
|
||||
|
||||
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
||||
|
||||
## Suggestions for a good README
|
||||
|
||||
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
||||
|
||||
## Name
|
||||
Choose a self-explaining name for your project.
|
||||
|
||||
## Description
|
||||
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
||||
|
||||
## Badges
|
||||
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
||||
|
||||
## Visuals
|
||||
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
||||
|
||||
## Installation
|
||||
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
||||
|
||||
## Usage
|
||||
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
||||
|
||||
## Support
|
||||
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
||||
|
||||
## Roadmap
|
||||
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
||||
|
||||
## Contributing
|
||||
State if you are open to contributions and what your requirements are for accepting them.
|
||||
|
||||
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
||||
|
||||
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
||||
|
||||
## Authors and acknowledgment
|
||||
Show your appreciation to those who have contributed to the project.
|
||||
|
||||
## License
|
||||
For open source projects, say how it is licensed.
|
||||
|
||||
## Project status
|
||||
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
||||
QQ群: [](https://jq.qq.com/?_wv=1027&k=5bVB1og) [](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [](https://jq.qq.com/?_wv=1027&k=51G72yr) [](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) 点击按钮入群。
|
||||
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [信息] 清理生成路径。
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
call mvn clean
|
||||
|
||||
pause
|
||||
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [信息] 打包Web工程,生成war/jar包文件。
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
call mvn clean package -Dmaven.test.skip=true
|
||||
|
||||
pause
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [信息] 运行Web工程。
|
||||
echo.
|
||||
|
||||
cd %~dp0
|
||||
cd ../ruoyi-admin/target
|
||||
|
||||
set JAVA_OPTS=-Xms256m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||
|
||||
java -jar %JAVA_OPTS% ruoyi-admin.jar
|
||||
|
||||
cd bin
|
||||
pause
|
||||
@@ -0,0 +1,3 @@
|
||||
http://liaogou.media-help.cn:18080/my/RuoYi-Vue.git
|
||||
|
||||
https://gitee.com/y_project/RuoYi-Vue.git
|
||||
Binary file not shown.
@@ -0,0 +1,38 @@
|
||||
<?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">
|
||||
<parent>
|
||||
<artifactId>ruoyi</artifactId>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<version>3.4.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>luqj-baidu-ai</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.baidubce</groupId>
|
||||
<artifactId>qianfan</artifactId>
|
||||
<version>0.0.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-framework</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>luqj-common</artifactId>
|
||||
<version>3.4.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.luqj.bdai.service;
|
||||
|
||||
public interface IBaiduAiService {
|
||||
String getPl(String content);
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.luqj.bdai.service.impl;
|
||||
|
||||
import com.baidubce.qianfan.Qianfan;
|
||||
import com.baidubce.qianfan.core.auth.Auth;
|
||||
import com.baidubce.qianfan.model.chat.ChatResponse;
|
||||
import com.luqj.bdai.service.IBaiduAiService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class BaiduAiServiceImpl implements IBaiduAiService {
|
||||
Qianfan qianfan = new Qianfan(Auth.TYPE_OAUTH,"mcxmebDP4a3UU0ELLOYEN3rx", "cJcRakEzVDfcCEABl2jmvd5rnWViMhFP");
|
||||
public String getPl(String content){
|
||||
ChatResponse response = qianfan
|
||||
.chatCompletion()
|
||||
// .model("ERNIE-3.5-8K")
|
||||
.model("ERNIE-Speed-128K")
|
||||
.temperature(0.95)
|
||||
.topP(0.7)
|
||||
.penaltyScore(1.0)
|
||||
// .stop()
|
||||
// 与Chat类似,但通过prompt传入指令
|
||||
.addMessage("user",content)
|
||||
.execute();
|
||||
System.out.println(response.getResult());
|
||||
return response.getResult();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
BaiduAiServiceImpl baiduAiService = new BaiduAiServiceImpl();
|
||||
baiduAiService.getPl("一个驱逐舰05的车主论坛上发布了一条标题为:不知道是不是没有设置对,亏点油耗这么高,我是强制保电50% 的文章,写一条字数大于20字,小于35字的评论");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<?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">
|
||||
<parent>
|
||||
<artifactId>ruoyi</artifactId>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<version>3.4.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>luqj-common</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-mail</artifactId>
|
||||
</dependency>
|
||||
<!-- 通用工具-->
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-extension</artifactId>
|
||||
<version>3.4.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
<version>1.5.22</version>
|
||||
</dependency>
|
||||
<!--七牛云上传相关-->
|
||||
<dependency>
|
||||
<groupId>com.qiniu</groupId>
|
||||
<artifactId>qiniu-java-sdk</artifactId>
|
||||
<version>7.2.11</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
<version>3.3.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.code.gson</groupId>
|
||||
<artifactId>gson</artifactId>
|
||||
<version>2.6.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.qiniu</groupId>
|
||||
<artifactId>happy-dns-java</artifactId>
|
||||
<version>0.1.4</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.luqj.common.config;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 邮件系统属性信息
|
||||
*/
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "lu.admin.mail")
|
||||
public class EmailProperties {
|
||||
|
||||
/**
|
||||
* 是否smtp授权
|
||||
*/
|
||||
private Boolean smtpAuth = true;
|
||||
|
||||
/**
|
||||
* 邮件系统smtp
|
||||
*/
|
||||
private String smtpHost = "smtp.163.com";
|
||||
|
||||
/**
|
||||
* 默认用户
|
||||
*/
|
||||
private String user;
|
||||
|
||||
/**
|
||||
* 用户密码
|
||||
*/
|
||||
private String password;
|
||||
|
||||
public Boolean getSmtpAuth() {
|
||||
return smtpAuth;
|
||||
}
|
||||
|
||||
public void setSmtpAuth(Boolean smtpAuth) {
|
||||
this.smtpAuth = smtpAuth;
|
||||
}
|
||||
|
||||
public String getSmtpHost() {
|
||||
return smtpHost;
|
||||
}
|
||||
|
||||
public void setSmtpHost(String smtpHost) {
|
||||
this.smtpHost = smtpHost;
|
||||
}
|
||||
|
||||
public String getUser() {
|
||||
return user;
|
||||
}
|
||||
|
||||
public void setUser(String user) {
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
package com.luqj.common.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.luqj.common.domain.ComCategory;
|
||||
import com.luqj.common.service.IComCategoryService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 类别Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-07-24
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/common/category")
|
||||
public class ComCategoryController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IComCategoryService comCategoryService;
|
||||
|
||||
@GetMapping("/treeselect")
|
||||
public AjaxResult treeselect(ComCategory comCategory)
|
||||
{
|
||||
List<ComCategory> depts = comCategoryService.selectComCategoryList(comCategory);
|
||||
return AjaxResult.success(comCategoryService.buildCategoryTreeSelect(depts));
|
||||
}
|
||||
/**
|
||||
* 查询类别列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('common:category:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ComCategory comCategory)
|
||||
{
|
||||
startPage();
|
||||
List<ComCategory> list = comCategoryService.selectComCategoryList(comCategory);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出类别列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('common:category:export')")
|
||||
@Log(title = "类别", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ComCategory comCategory)
|
||||
{
|
||||
List<ComCategory> list = comCategoryService.selectComCategoryList(comCategory);
|
||||
ExcelUtil<ComCategory> util = new ExcelUtil<ComCategory>(ComCategory.class);
|
||||
return util.exportExcel(list, "category");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取类别详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('common:category:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(comCategoryService.selectComCategoryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增类别
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('common:category:add')")
|
||||
@Log(title = "类别", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ComCategory comCategory)
|
||||
{
|
||||
return toAjax(comCategoryService.insertComCategory(comCategory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改类别
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('common:category:edit')")
|
||||
@Log(title = "类别", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ComCategory comCategory)
|
||||
{
|
||||
return toAjax(comCategoryService.updateComCategory(comCategory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除类别
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('common:category:remove')")
|
||||
@Log(title = "类别", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(comCategoryService.deleteComCategoryByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.luqj.common.controller;
|
||||
|
||||
import com.luqj.common.domain.SelectItem;
|
||||
import com.luqj.common.service.ICommonService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/common")
|
||||
public class SelectCommonController extends BaseController {
|
||||
@Autowired
|
||||
private ICommonService comCategory;
|
||||
|
||||
@GetMapping("/select/search")
|
||||
public AjaxResult selectSearch(String tableName, String keyword, String fieldId, String fieldName) {
|
||||
if(tableName.contains(" ") || fieldId.contains(" ") || fieldName.contains(" ")){
|
||||
return AjaxResult.error("注入嫌疑");
|
||||
}
|
||||
List<SelectItem> searchs = comCategory.search(tableName, fieldId, fieldName, keyword);
|
||||
return AjaxResult.success(searchs);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.luqj.common.domain;
|
||||
|
||||
import com.ruoyi.common.core.domain.TreeSelect;
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class CategoryTreeSelect extends TreeSelect {
|
||||
public CategoryTreeSelect(ComCategory comCategory)
|
||||
{
|
||||
this.id = comCategory.getId();
|
||||
this.label = comCategory.getName();
|
||||
this.children = comCategory.getChildren().stream().map(CategoryTreeSelect::new).collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,233 @@
|
||||
package com.luqj.common.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 类别对象 com_category
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-07-24
|
||||
*/
|
||||
public class ComCategory extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
|
||||
/** 父id */
|
||||
@Excel(name = "父id")
|
||||
private Long parentId;
|
||||
|
||||
/** 所有父级id组合,以逗号隔开 */
|
||||
@Excel(name = "所有父级id组合,以逗号隔开")
|
||||
private String parentIds;
|
||||
|
||||
/** 系统层级类目 */
|
||||
@Excel(name = "系统层级类目")
|
||||
private Long projectType;
|
||||
|
||||
/** 排序 */
|
||||
@Excel(name = "排序")
|
||||
private Long sortNum;
|
||||
|
||||
/** 图标地址 */
|
||||
@Excel(name = "图标地址")
|
||||
private String iconUrl;
|
||||
|
||||
/** 图片地址 */
|
||||
@Excel(name = "图片地址")
|
||||
private String picUrl;
|
||||
|
||||
/** 是否叶子节点(0否,1是) */
|
||||
@Excel(name = "是否叶子节点(0否,1是)")
|
||||
private Integer hasLeaf;
|
||||
|
||||
/** 是否前台首页展示(0否,1是) */
|
||||
@Excel(name = "是否前台首页展示(0否,1是)")
|
||||
private Integer homeShow;
|
||||
|
||||
/** 类目级别,1:一级类目;2:二级类目;3:三级类目,目前只支持三级类目 */
|
||||
@Excel(name = "类目级别,1:一级类目;2:二级类目;3:三级类目,目前只支持三级类目")
|
||||
private Integer level;
|
||||
|
||||
/** 标示位:例如热门分类等 */
|
||||
@Excel(name = "标示位:例如热门分类等")
|
||||
private Long flag;
|
||||
|
||||
/** 描述 */
|
||||
@Excel(name = "描述")
|
||||
private String description;
|
||||
|
||||
/** 状态 0-禁用,1-启用,2-删除 */
|
||||
@Excel(name = "状态 0-禁用,1-启用,2-删除")
|
||||
private Integer status;
|
||||
|
||||
private List<ComCategory> children = new ArrayList<>();
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public List<ComCategory> getChildren() {
|
||||
return children;
|
||||
}
|
||||
|
||||
public void setChildren(List<ComCategory> children) {
|
||||
this.children = children;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setParentId(Long parentId)
|
||||
{
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Long getParentId()
|
||||
{
|
||||
return parentId;
|
||||
}
|
||||
public void setParentIds(String parentIds)
|
||||
{
|
||||
this.parentIds = parentIds;
|
||||
}
|
||||
|
||||
public String getParentIds()
|
||||
{
|
||||
return parentIds;
|
||||
}
|
||||
public void setProjectType(Long projectType)
|
||||
{
|
||||
this.projectType = projectType;
|
||||
}
|
||||
|
||||
public Long getProjectType()
|
||||
{
|
||||
return projectType;
|
||||
}
|
||||
public void setSortNum(Long sortNum)
|
||||
{
|
||||
this.sortNum = sortNum;
|
||||
}
|
||||
|
||||
public Long getSortNum()
|
||||
{
|
||||
return sortNum;
|
||||
}
|
||||
public void setIconUrl(String iconUrl)
|
||||
{
|
||||
this.iconUrl = iconUrl;
|
||||
}
|
||||
|
||||
public String getIconUrl()
|
||||
{
|
||||
return iconUrl;
|
||||
}
|
||||
public void setPicUrl(String picUrl)
|
||||
{
|
||||
this.picUrl = picUrl;
|
||||
}
|
||||
|
||||
public String getPicUrl()
|
||||
{
|
||||
return picUrl;
|
||||
}
|
||||
public void setHasLeaf(Integer hasLeaf)
|
||||
{
|
||||
this.hasLeaf = hasLeaf;
|
||||
}
|
||||
|
||||
public Integer getHasLeaf()
|
||||
{
|
||||
return hasLeaf;
|
||||
}
|
||||
public void setHomeShow(Integer homeShow)
|
||||
{
|
||||
this.homeShow = homeShow;
|
||||
}
|
||||
|
||||
public Integer getHomeShow()
|
||||
{
|
||||
return homeShow;
|
||||
}
|
||||
public void setLevel(Integer level)
|
||||
{
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
public Integer getLevel()
|
||||
{
|
||||
return level;
|
||||
}
|
||||
public void setFlag(Long flag)
|
||||
{
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public Long getFlag()
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("parentId", getParentId())
|
||||
.append("parentIds", getParentIds())
|
||||
.append("projectType", getProjectType())
|
||||
.append("sortNum", getSortNum())
|
||||
.append("iconUrl", getIconUrl())
|
||||
.append("picUrl", getPicUrl())
|
||||
.append("hasLeaf", getHasLeaf())
|
||||
.append("homeShow", getHomeShow())
|
||||
.append("level", getLevel())
|
||||
.append("flag", getFlag())
|
||||
.append("description", getDescription())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("status", getStatus())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,232 @@
|
||||
package com.luqj.common.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
/**
|
||||
* 类别对象 com_category
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-07-24
|
||||
*/
|
||||
@TableName(value = "com_category")
|
||||
public class ComCategoryPlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
/** 父id */
|
||||
@Excel(name = "父id")
|
||||
private Long parentId;
|
||||
/** 所有父级id组合,以逗号隔开 */
|
||||
@Excel(name = "所有父级id组合,以逗号隔开")
|
||||
private String parentIds;
|
||||
/** 系统层级类目 */
|
||||
@Excel(name = "系统层级类目")
|
||||
private Long projectType;
|
||||
/** 排序 */
|
||||
@Excel(name = "排序")
|
||||
private Long sortNum;
|
||||
/** 图标地址 */
|
||||
@Excel(name = "图标地址")
|
||||
private String iconUrl;
|
||||
/** 图片地址 */
|
||||
@Excel(name = "图片地址")
|
||||
private String picUrl;
|
||||
/** 是否叶子节点(0否,1是) */
|
||||
@Excel(name = "是否叶子节点(0否,1是)")
|
||||
private Integer hasLeaf;
|
||||
/** 是否前台首页展示(0否,1是) */
|
||||
@Excel(name = "是否前台首页展示(0否,1是)")
|
||||
private Integer homeShow;
|
||||
/** 类目级别,1:一级类目;2:二级类目;3:三级类目,目前只支持三级类目 */
|
||||
@Excel(name = "类目级别,1:一级类目;2:二级类目;3:三级类目,目前只支持三级类目")
|
||||
private Integer level;
|
||||
/** 标示位:例如热门分类等 */
|
||||
@Excel(name = "标示位:例如热门分类等")
|
||||
private Long flag;
|
||||
/** 描述 */
|
||||
@Excel(name = "描述")
|
||||
private String description;
|
||||
/** 创建时间 */
|
||||
private Date createTime;
|
||||
/** 修改时间 */
|
||||
private Date updateTime;
|
||||
/** 状态 0-禁用,1-启用,2-删除 */
|
||||
@Excel(name = "状态 0-禁用,1-启用,2-删除")
|
||||
private Integer status;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setParentId(Long parentId)
|
||||
{
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Long getParentId()
|
||||
{
|
||||
return parentId;
|
||||
}
|
||||
public void setParentIds(String parentIds)
|
||||
{
|
||||
this.parentIds = parentIds;
|
||||
}
|
||||
|
||||
public String getParentIds()
|
||||
{
|
||||
return parentIds;
|
||||
}
|
||||
public void setProjectType(Long projectType)
|
||||
{
|
||||
this.projectType = projectType;
|
||||
}
|
||||
|
||||
public Long getProjectType()
|
||||
{
|
||||
return projectType;
|
||||
}
|
||||
public void setSortNum(Long sortNum)
|
||||
{
|
||||
this.sortNum = sortNum;
|
||||
}
|
||||
|
||||
public Long getSortNum()
|
||||
{
|
||||
return sortNum;
|
||||
}
|
||||
public void setIconUrl(String iconUrl)
|
||||
{
|
||||
this.iconUrl = iconUrl;
|
||||
}
|
||||
|
||||
public String getIconUrl()
|
||||
{
|
||||
return iconUrl;
|
||||
}
|
||||
public void setPicUrl(String picUrl)
|
||||
{
|
||||
this.picUrl = picUrl;
|
||||
}
|
||||
|
||||
public String getPicUrl()
|
||||
{
|
||||
return picUrl;
|
||||
}
|
||||
public void setHasLeaf(Integer hasLeaf)
|
||||
{
|
||||
this.hasLeaf = hasLeaf;
|
||||
}
|
||||
|
||||
public Integer getHasLeaf()
|
||||
{
|
||||
return hasLeaf;
|
||||
}
|
||||
public void setHomeShow(Integer homeShow)
|
||||
{
|
||||
this.homeShow = homeShow;
|
||||
}
|
||||
|
||||
public Integer getHomeShow()
|
||||
{
|
||||
return homeShow;
|
||||
}
|
||||
public void setLevel(Integer level)
|
||||
{
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
public Integer getLevel()
|
||||
{
|
||||
return level;
|
||||
}
|
||||
public void setFlag(Long flag)
|
||||
{
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public Long getFlag()
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
public void setCreateTime(Date createTime)
|
||||
{
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getCreateTime()
|
||||
{
|
||||
return createTime;
|
||||
}
|
||||
public void setUpdateTime(Date updateTime)
|
||||
{
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime()
|
||||
{
|
||||
return updateTime;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("parentId", getParentId())
|
||||
.append("parentIds", getParentIds())
|
||||
.append("projectType", getProjectType())
|
||||
.append("sortNum", getSortNum())
|
||||
.append("iconUrl", getIconUrl())
|
||||
.append("picUrl", getPicUrl())
|
||||
.append("hasLeaf", getHasLeaf())
|
||||
.append("homeShow", getHomeShow())
|
||||
.append("level", getLevel())
|
||||
.append("flag", getFlag())
|
||||
.append("description", getDescription())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("status", getStatus())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.luqj.common.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ContactItem<T> implements Serializable,Comparable<ContactItem> {
|
||||
private String letter;
|
||||
private List<T> data;
|
||||
|
||||
@Override
|
||||
public int compareTo(ContactItem o) {
|
||||
return this.getLetter().compareTo(o.getLetter());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.luqj.common.domain;
|
||||
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
public class RedisKey {
|
||||
private StringBuffer stringBuffer = new StringBuffer("");
|
||||
|
||||
public RedisKey() {
|
||||
}
|
||||
|
||||
public RedisKey(String key) {
|
||||
stringBuffer = new StringBuffer(key);
|
||||
}
|
||||
|
||||
public RedisKey add(String key) {
|
||||
if (StringUtils.isNotBlank(key)) {
|
||||
stringBuffer.append(key).append("_");
|
||||
} else {
|
||||
stringBuffer.append("NULL_");
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public RedisKey add(BigDecimal key) {
|
||||
if (key != null) {
|
||||
stringBuffer.append(key).append("_");
|
||||
} else {
|
||||
stringBuffer.append("NULL_");
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public RedisKey add(Boolean key) {
|
||||
if (key != null) {
|
||||
stringBuffer.append(key).append("_");
|
||||
} else {
|
||||
stringBuffer.append("NULL_");
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public RedisKey add(Long key) {
|
||||
if (key != null) {
|
||||
stringBuffer.append(key).append("_");
|
||||
} else {
|
||||
stringBuffer.append("NULL_");
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public RedisKey add(Date key) {
|
||||
if (key != null) {
|
||||
stringBuffer.append(key.getTime()).append("_");
|
||||
} else {
|
||||
stringBuffer.append("_NULL");
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public RedisKey add(Integer key) {
|
||||
if (key != null) {
|
||||
stringBuffer.append(key).append("_");
|
||||
} else {
|
||||
stringBuffer.append("_NULL");
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public String key() {
|
||||
return this.stringBuffer.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.luqj.common.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class SelectItem implements Serializable {
|
||||
private String id;
|
||||
private String name;
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.luqj.common.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.luqj.common.domain.ComCategory;
|
||||
import com.luqj.common.domain.ComCategoryPlus;
|
||||
|
||||
/**
|
||||
* 类别Mapper接口
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-07-24
|
||||
*/
|
||||
public interface ComCategoryMapper extends BaseMapper<ComCategoryPlus>
|
||||
{
|
||||
/**
|
||||
* 查询类别
|
||||
*
|
||||
* @param id 类别ID
|
||||
* @return 类别
|
||||
*/
|
||||
public ComCategory selectComCategoryById(Long id);
|
||||
|
||||
/**
|
||||
* 查询类别列表
|
||||
*
|
||||
* @param comCategory 类别
|
||||
* @return 类别集合
|
||||
*/
|
||||
public List<ComCategory> selectComCategoryList(ComCategory comCategory);
|
||||
|
||||
/**
|
||||
* 新增类别
|
||||
*
|
||||
* @param comCategory 类别
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertComCategory(ComCategory comCategory);
|
||||
|
||||
/**
|
||||
* 修改类别
|
||||
*
|
||||
* @param comCategory 类别
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateComCategory(ComCategory comCategory);
|
||||
|
||||
/**
|
||||
* 删除类别
|
||||
*
|
||||
* @param id 类别ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteComCategoryById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除类别
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteComCategoryByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.luqj.common.service;
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
import com.luqj.common.domain.CategoryTreeSelect;
|
||||
import com.luqj.common.domain.ComCategory;
|
||||
import com.luqj.common.domain.ComCategoryPlus;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
|
||||
/**
|
||||
* 类别Service接口
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-07-24
|
||||
*/
|
||||
public interface IComCategoryService extends IService<ComCategoryPlus>
|
||||
{
|
||||
/**
|
||||
* 查询类别
|
||||
*
|
||||
* @param id 类别ID
|
||||
* @return 类别
|
||||
*/
|
||||
public ComCategory selectComCategoryById(Long id);
|
||||
|
||||
/**
|
||||
* 查询类别列表
|
||||
*
|
||||
* @param comCategory 类别
|
||||
* @return 类别集合
|
||||
*/
|
||||
public List<ComCategory> selectComCategoryList(ComCategory comCategory);
|
||||
|
||||
/**
|
||||
* 新增类别
|
||||
*
|
||||
* @param comCategory 类别
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertComCategory(ComCategory comCategory);
|
||||
|
||||
/**
|
||||
* 修改类别
|
||||
*
|
||||
* @param comCategory 类别
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateComCategory(ComCategory comCategory);
|
||||
|
||||
/**
|
||||
* 批量删除类别
|
||||
*
|
||||
* @param ids 需要删除的类别ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteComCategoryByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除类别信息
|
||||
*
|
||||
* @param id 类别ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteComCategoryById(Long id);
|
||||
|
||||
List<ComCategoryPlus> getByIds(List<Long> ids, SFunction<ComCategoryPlus, ?>... columns);
|
||||
|
||||
ComCategoryPlus getById(Long id, SFunction<ComCategoryPlus, ?>... columns);
|
||||
|
||||
Map<Long, ComCategoryPlus> getMapByIds(List<Long> ids, SFunction<ComCategoryPlus, ?>... columns);
|
||||
|
||||
List<CategoryTreeSelect> buildCategoryTreeSelect(List<ComCategory> comCategory);
|
||||
|
||||
List<ComCategoryPlus> getByIds(List<Long> ids);
|
||||
|
||||
Map<Long, ComCategoryPlus> getMapByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* @param field sum 字段
|
||||
* @param where 条件
|
||||
* @param tClass 返回类型
|
||||
* @param <T>
|
||||
* @return
|
||||
*/
|
||||
<T> T sum(String field, String where, Class<T> tClass);
|
||||
|
||||
Long count(String where);
|
||||
|
||||
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.luqj.common.service;
|
||||
|
||||
import com.luqj.common.domain.SelectItem;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ICommonService {
|
||||
List<SelectItem> search(String tableName, String fieldId, String fieldName, String keyword);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.luqj.common.service;
|
||||
|
||||
import javax.mail.MessagingException;
|
||||
import java.security.GeneralSecurityException;
|
||||
|
||||
public interface ISendEmailService {
|
||||
boolean send(String email, String subject, String content) throws MessagingException, GeneralSecurityException;
|
||||
}
|
||||
@@ -0,0 +1,275 @@
|
||||
package com.luqj.common.service.impl;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.luqj.common.domain.CategoryTreeSelect;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.luqj.common.mapper.ComCategoryMapper;
|
||||
import com.luqj.common.domain.ComCategory;
|
||||
import com.luqj.common.domain.ComCategoryPlus;
|
||||
import com.luqj.common.service.IComCategoryService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
/**
|
||||
* 类别Service业务层处理
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-07-24
|
||||
*/
|
||||
@Service
|
||||
public class ComCategoryServiceImpl extends ServiceImpl<ComCategoryMapper, ComCategoryPlus> implements IComCategoryService
|
||||
{
|
||||
@Autowired
|
||||
private ComCategoryMapper comCategoryMapper;
|
||||
@Autowired
|
||||
private JdbcTemplate jdbcTemplate;
|
||||
|
||||
@Override
|
||||
public List<ComCategoryPlus> getByIds(List<Long> ids, SFunction<ComCategoryPlus, ?>... columns) {
|
||||
LambdaQueryWrapper<ComCategoryPlus> lambdaQueryWrapper = new LambdaQueryWrapper<ComCategoryPlus>()
|
||||
.select(columns).in(ComCategoryPlus::getId, ids);
|
||||
return this.list(lambdaQueryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ComCategoryPlus getById(Long id, SFunction<ComCategoryPlus, ?>... columns) {
|
||||
LambdaQueryWrapper<ComCategoryPlus> lambdaQueryWrapper = new LambdaQueryWrapper<ComCategoryPlus>()
|
||||
.select(columns).eq(ComCategoryPlus::getId, id);
|
||||
return baseMapper.selectOne(lambdaQueryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<Long, ComCategoryPlus> getMapByIds(List<Long> ids, SFunction<ComCategoryPlus, ?>... columns) {
|
||||
List<ComCategoryPlus> list = this.getByIds(ids, columns);
|
||||
Map<Long, ComCategoryPlus> map = new HashMap<>();
|
||||
for (ComCategoryPlus item : list) {
|
||||
map.put(item.getId(), item);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
public List<CategoryTreeSelect> buildCategoryTreeSelect(List<ComCategory> comCategory)
|
||||
{
|
||||
List<ComCategory> deptTrees = buildCategoryTree(comCategory);
|
||||
ComCategory com =new ComCategory();
|
||||
com.setId(0L);
|
||||
com.setName("根目录");
|
||||
com.setChildren(deptTrees);
|
||||
List<ComCategory> pc = new ArrayList<>();
|
||||
for(ComCategory c:deptTrees){
|
||||
if(c.getParentId() == 0L){
|
||||
pc.add(c);
|
||||
}
|
||||
}
|
||||
com.setChildren(pc);
|
||||
return Arrays.asList(com).stream().map(CategoryTreeSelect::new).collect(Collectors.toList());
|
||||
}
|
||||
/**
|
||||
* 递归列表
|
||||
*/
|
||||
private void recursionFn(List<ComCategory> list, ComCategory t)
|
||||
{
|
||||
// 得到子节点列表
|
||||
List<ComCategory> childList = getChildList(list, t);
|
||||
t.setChildren(childList);
|
||||
for (ComCategory tChild : childList)
|
||||
{
|
||||
if (hasChild(list, tChild))
|
||||
{
|
||||
recursionFn(list, tChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 得到子节点列表
|
||||
*/
|
||||
private List<ComCategory> getChildList(List<ComCategory> list, ComCategory t)
|
||||
{
|
||||
List<ComCategory> tlist = new ArrayList<ComCategory>();
|
||||
Iterator<ComCategory> it = list.iterator();
|
||||
while (it.hasNext())
|
||||
{
|
||||
ComCategory n = (ComCategory) it.next();
|
||||
if (StringUtils.isNotNull(n.getParentId()) && n.getParentId().longValue() == t.getId().longValue())
|
||||
{
|
||||
tlist.add(n);
|
||||
}
|
||||
}
|
||||
return tlist;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断是否有子节点
|
||||
*/
|
||||
private boolean hasChild(List<ComCategory> list, ComCategory t)
|
||||
{
|
||||
return getChildList(list, t).size() > 0 ? true : false;
|
||||
}
|
||||
public List<ComCategory> buildCategoryTree(List<ComCategory> depts)
|
||||
{
|
||||
List<ComCategory> returnList = new ArrayList<ComCategory>();
|
||||
List<Long> tempList = new ArrayList<Long>();
|
||||
for (ComCategory dept : depts)
|
||||
{
|
||||
tempList.add(dept.getId());
|
||||
}
|
||||
for (Iterator<ComCategory> iterator = depts.iterator(); iterator.hasNext();)
|
||||
{
|
||||
ComCategory dept = (ComCategory) iterator.next();
|
||||
// 如果是顶级节点, 遍历该父节点的所有子节点
|
||||
if (!tempList.contains(dept.getParentId()))
|
||||
{
|
||||
recursionFn(depts, dept);
|
||||
returnList.add(dept);
|
||||
}
|
||||
}
|
||||
if (returnList.isEmpty())
|
||||
{
|
||||
returnList = depts;
|
||||
}
|
||||
return returnList;
|
||||
}
|
||||
@Override
|
||||
public Map<Long, ComCategoryPlus> getMapByIds(List<Long> ids) {
|
||||
List<ComCategoryPlus> list = this.getByIds(ids);
|
||||
Map<Long, ComCategoryPlus> map = new HashMap<>();
|
||||
for (ComCategoryPlus item : list) {
|
||||
map.put(item.getId(), item);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ComCategoryPlus> getByIds(List<Long> ids) {
|
||||
LambdaQueryWrapper<ComCategoryPlus> lambdaQueryWrapper = new LambdaQueryWrapper<ComCategoryPlus>().in(ComCategoryPlus::getId, ids);
|
||||
return this.list(lambdaQueryWrapper);
|
||||
}
|
||||
|
||||
public <T> T sum(String field, String where, Class<T> tClass) {
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
stringBuffer.append("select ");
|
||||
stringBuffer.append(" sum(" + field + ") as total ");
|
||||
stringBuffer.append(" from com_category ");
|
||||
if (StringUtils.isNotBlank(where)) {
|
||||
stringBuffer.append(" where ");
|
||||
stringBuffer.append(where);
|
||||
}
|
||||
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
|
||||
return result;
|
||||
}
|
||||
|
||||
public Long count(String where) {
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
stringBuffer.append("select ");
|
||||
stringBuffer.append(" count(1)");
|
||||
stringBuffer.append(" from ");
|
||||
stringBuffer.append(" com_category ");
|
||||
if (StringUtils.isNotBlank(where)) {
|
||||
stringBuffer.append(" where ");
|
||||
stringBuffer.append(where);
|
||||
}
|
||||
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
|
||||
return result;
|
||||
}
|
||||
|
||||
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
stringBuffer.append("select ");
|
||||
stringBuffer.append(select);
|
||||
stringBuffer.append(" from ");
|
||||
stringBuffer.append(" com_category ");
|
||||
if (StringUtils.isNotBlank(where)) {
|
||||
stringBuffer.append(" where ");
|
||||
stringBuffer.append(where);
|
||||
}
|
||||
stringBuffer.append(" group by ");
|
||||
stringBuffer.append(groupby);
|
||||
List result = jdbcTemplate.queryForList(stringBuffer.toString());
|
||||
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
|
||||
return tList;
|
||||
}
|
||||
/**
|
||||
* 查询类别
|
||||
*
|
||||
* @param id 类别ID
|
||||
* @return 类别
|
||||
*/
|
||||
@Override
|
||||
public ComCategory selectComCategoryById(Long id)
|
||||
{
|
||||
return comCategoryMapper.selectComCategoryById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询类别列表
|
||||
*
|
||||
* @param comCategory 类别
|
||||
* @return 类别
|
||||
*/
|
||||
@Override
|
||||
public List<ComCategory> selectComCategoryList(ComCategory comCategory)
|
||||
{
|
||||
return comCategoryMapper.selectComCategoryList(comCategory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增类别
|
||||
*
|
||||
* @param comCategory 类别
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertComCategory(ComCategory comCategory)
|
||||
{
|
||||
comCategory.setCreateTime(DateUtils.getNowDate());
|
||||
return comCategoryMapper.insertComCategory(comCategory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改类别
|
||||
*
|
||||
* @param comCategory 类别
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateComCategory(ComCategory comCategory)
|
||||
{
|
||||
comCategory.setUpdateTime(DateUtils.getNowDate());
|
||||
return comCategoryMapper.updateComCategory(comCategory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除类别
|
||||
*
|
||||
* @param ids 需要删除的类别ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteComCategoryByIds(Long[] ids)
|
||||
{
|
||||
return comCategoryMapper.deleteComCategoryByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除类别信息
|
||||
*
|
||||
* @param id 类别ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteComCategoryById(Long id)
|
||||
{
|
||||
return comCategoryMapper.deleteComCategoryById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.luqj.common.service.impl;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.luqj.common.domain.SelectItem;
|
||||
import com.luqj.common.service.ICommonService;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class CommonServiceImpl implements ICommonService {
|
||||
@Autowired
|
||||
private JdbcTemplate jdbcTemplate;
|
||||
|
||||
@Override
|
||||
public List<SelectItem> search(String tableName, String fieldId, String fieldName, String keyword) {
|
||||
if (StringUtils.isEmpty(tableName)) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
stringBuffer.append("select ");
|
||||
stringBuffer.append(fieldId + " as id,");
|
||||
stringBuffer.append(fieldName + " as name");
|
||||
stringBuffer.append(" from ");
|
||||
stringBuffer.append(" " + tableName + " ");
|
||||
if (StringUtils.isNotBlank(keyword)) {
|
||||
stringBuffer.append(" where ");
|
||||
stringBuffer.append(fieldName + " like '%" + keyword + "%'");
|
||||
}
|
||||
stringBuffer.append(" limit 0,100 ");
|
||||
List result = jdbcTemplate.queryForList(stringBuffer.toString());
|
||||
List<SelectItem> tList = JSONArray.parseArray(JSONArray.toJSONString(result), SelectItem.class);
|
||||
return tList;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.luqj.common.service.impl;
|
||||
|
||||
import com.luqj.common.config.EmailProperties;
|
||||
import com.luqj.common.service.ISendEmailService;
|
||||
import com.sun.mail.util.MailSSLSocketFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.mail.Message;
|
||||
import javax.mail.MessagingException;
|
||||
import javax.mail.Session;
|
||||
import javax.mail.Transport;
|
||||
import javax.mail.internet.InternetAddress;
|
||||
import javax.mail.internet.MimeMessage;
|
||||
import java.security.GeneralSecurityException;
|
||||
import java.util.Properties;
|
||||
|
||||
@Service
|
||||
public class SendEmailServiceImpl implements ISendEmailService {
|
||||
@Autowired
|
||||
private EmailProperties emailProperties;
|
||||
private final Properties props = new Properties();
|
||||
|
||||
@Override
|
||||
public boolean send(String email, String subject, String content) throws MessagingException, GeneralSecurityException {
|
||||
// qq邮件
|
||||
// 设置邮件服务器主机名
|
||||
props.setProperty("mail.host", emailProperties.getSmtpHost());
|
||||
// 发送服务器需要身份验证
|
||||
props.setProperty("mail.smtp.auth", emailProperties.getSmtpAuth() + "");
|
||||
// 发送邮件协议名称
|
||||
props.setProperty("mail.transport.protocol", "smtp");
|
||||
|
||||
// 开启SSL加密,否则会失败
|
||||
MailSSLSocketFactory sf = new MailSSLSocketFactory();
|
||||
sf.setTrustAllHosts(true);
|
||||
props.put("mail.smtp.ssl.enable", "true");
|
||||
props.put("mail.smtp.ssl.socketFactory", sf);
|
||||
|
||||
// 创建session
|
||||
Session session = Session.getInstance(props);
|
||||
// 通过session得到transport对象
|
||||
Transport ts = session.getTransport();
|
||||
ts.connect(emailProperties.getSmtpHost(), emailProperties.getUser(), emailProperties.getPassword());// 后面的字符是授权码
|
||||
|
||||
// 创建邮件对象
|
||||
Message message = new MimeMessage(session);
|
||||
// 指明邮件的发件人
|
||||
message.setFrom(new InternetAddress(emailProperties.getUser()));
|
||||
// 指明邮件的收件人,现在发件人和收件人是一样的,那就是自己给自己发
|
||||
message.setRecipient(Message.RecipientType.TO, new InternetAddress(email));
|
||||
// 邮件的标题
|
||||
message.setSubject(subject);
|
||||
// 邮件的文本内容
|
||||
message.setContent(content, "text/html;charset=UTF-8");
|
||||
// 发送邮件
|
||||
ts.sendMessage(message, message.getAllRecipients());
|
||||
ts.close();
|
||||
return true;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.luqj.qiniu.controller;
|
||||
|
||||
import com.luqj.qiniu.entity.QiNiu;
|
||||
import com.luqj.qiniu.service.IQiniuService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description: qiniu_config
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2020-08-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags = "qiniu")
|
||||
@RestController
|
||||
@RequestMapping("/common/qiniu")
|
||||
@Slf4j
|
||||
public class QiniuController extends BaseController {
|
||||
@Autowired
|
||||
private IQiniuService qiniuService;
|
||||
|
||||
@ApiOperation(value = "获取客户端上传认证信息", notes = "获取客户端上传认证信息")
|
||||
@GetMapping(value = "/config")
|
||||
@ResponseBody
|
||||
public AjaxResult config() {
|
||||
try {
|
||||
QiNiu qiNiu = qiniuService.buildToken();
|
||||
return AjaxResult.success(qiNiu);
|
||||
} catch (Exception ex) {
|
||||
return AjaxResult.error(ex.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.luqj.qiniu.entity;
|
||||
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "QiNiu",description = "七牛配置")
|
||||
public class QiNiu implements Serializable {
|
||||
private String token;
|
||||
private String key;
|
||||
private int zone;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
package com.luqj.qiniu.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description: qiniu_config
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2020-08-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("com_qiniu_config")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "qiniu_config对象", description = "qiniu_config")
|
||||
public class QiniuConfig implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ID_WORKER_STR)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**
|
||||
* access_key
|
||||
*/
|
||||
@Excel(name = "access_key", width = 15)
|
||||
@ApiModelProperty(value = "access_key")
|
||||
private String accessKey;
|
||||
/**
|
||||
* secret_key
|
||||
*/
|
||||
@Excel(name = "secret_key", width = 15)
|
||||
@ApiModelProperty(value = "secret_key")
|
||||
private String secretKey;
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
@Excel(name = "编码", width = 15)
|
||||
@ApiModelProperty(value = "编码")
|
||||
private String code;
|
||||
/**
|
||||
* bucket
|
||||
*/
|
||||
@Excel(name = "bucket", width = 15)
|
||||
@ApiModelProperty(value = "bucket")
|
||||
private String bucket;
|
||||
/**
|
||||
* token有效时间
|
||||
*/
|
||||
@Excel(name = "token有效时间", width = 15)
|
||||
@ApiModelProperty(value = "token有效时间")
|
||||
private Integer tokenExpireSeconds;
|
||||
/**
|
||||
* zone类型
|
||||
*/
|
||||
@Excel(name = "zone类型", width = 15)
|
||||
@ApiModelProperty(value = "zone类型")
|
||||
private Integer zoneType;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.luqj.qiniu.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.luqj.qiniu.entity.QiniuConfig;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
/**
|
||||
* @Description: qiniu_config
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2020-08-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface QiniuConfigMapper extends BaseMapper<QiniuConfig> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.luqj.qiniu.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.luqj.qiniu.entity.QiniuConfig;
|
||||
|
||||
/**
|
||||
* @Description: qiniu_config
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2020-08-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IQiniuConfigService extends IService<QiniuConfig> {
|
||||
QiniuConfig getFirstOne();
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.luqj.qiniu.service;
|
||||
|
||||
import com.luqj.qiniu.entity.QiNiu;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
public interface IQiniuService {
|
||||
QiNiu buildToken() throws Exception;
|
||||
|
||||
void refreshQiniuToken();
|
||||
|
||||
String upload(String localFilePath, String key);
|
||||
|
||||
String upload(MultipartFile file, String fileDir);
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.luqj.qiniu.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.luqj.qiniu.entity.QiniuConfig;
|
||||
import com.luqj.qiniu.mapper.QiniuConfigMapper;
|
||||
import com.luqj.qiniu.service.IQiniuConfigService;
|
||||
import org.springframework.cache.annotation.CacheEvict;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* @Description: qiniu_config
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2020-08-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class QiniuConfigServiceImpl extends ServiceImpl<QiniuConfigMapper, QiniuConfig> implements IQiniuConfigService {
|
||||
@Cacheable(value = "sys:qiniu:config", key = "'one'")
|
||||
@Override
|
||||
public QiniuConfig getFirstOne() {
|
||||
LambdaQueryWrapper queryWrapper = new QueryWrapper<QiniuConfig>().lambda();
|
||||
QiniuConfig qiniuConfig = getOne(queryWrapper);
|
||||
return qiniuConfig;
|
||||
}
|
||||
|
||||
@CacheEvict(value = "sys:qiniu:config", key = "'one'")
|
||||
@Override
|
||||
public boolean save(QiniuConfig entity) {
|
||||
return super.save(entity);
|
||||
}
|
||||
|
||||
@CacheEvict(value = "sys:qiniu:config", key = "'one'")
|
||||
@Override
|
||||
public boolean updateById(QiniuConfig entity) {
|
||||
return super.updateById(entity);
|
||||
}
|
||||
|
||||
@CacheEvict(value = "sys:qiniu:config", key = "'one'")
|
||||
@Override
|
||||
public boolean removeByIds(Collection<? extends Serializable> idList) {
|
||||
return super.removeByIds(idList);
|
||||
}
|
||||
|
||||
@CacheEvict(value = "sys:qiniu:config", key = "'one'")
|
||||
@Override
|
||||
public boolean removeById(Serializable id) {
|
||||
return super.removeById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
package com.luqj.qiniu.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.google.gson.Gson;
|
||||
import com.luqj.qiniu.entity.QiNiu;
|
||||
import com.luqj.qiniu.entity.QiniuConfig;
|
||||
import com.luqj.qiniu.service.IQiniuConfigService;
|
||||
import com.luqj.qiniu.service.IQiniuService;
|
||||
import com.qiniu.common.QiniuException;
|
||||
import com.qiniu.common.Zone;
|
||||
import com.qiniu.http.Response;
|
||||
import com.qiniu.storage.Configuration;
|
||||
import com.qiniu.storage.UploadManager;
|
||||
import com.qiniu.storage.model.DefaultPutRet;
|
||||
import com.qiniu.util.Auth;
|
||||
import com.qiniu.util.StringMap;
|
||||
import com.ruoyi.common.CacheConstant;
|
||||
import com.ruoyi.common.redis.RedisUtil;
|
||||
import com.ruoyi.common.utils.CommonUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
@Service
|
||||
public class QiniuServiceImpl implements IQiniuService {
|
||||
private final static Logger logger = LoggerFactory.getLogger(QiniuServiceImpl.class);
|
||||
@Autowired
|
||||
private IQiniuConfigService qiniuConfigService;
|
||||
@Autowired
|
||||
private RedisUtil redisUtil;
|
||||
@Value("${lu.admin.qiniu.addr:http://img.hy-vip.cn}")
|
||||
private String qiniuAddr;
|
||||
|
||||
@Override
|
||||
public QiNiu buildToken() throws Exception {
|
||||
LambdaQueryWrapper queryWrapper = new QueryWrapper<QiniuConfig>().lambda();
|
||||
QiniuConfig qiniuConfig = qiniuConfigService.getOne(queryWrapper);
|
||||
if (null == qiniuConfig) {
|
||||
throw new Exception("请配置七牛存储配置");
|
||||
}
|
||||
QiNiu qiNiu = new QiNiu();
|
||||
|
||||
qiNiu.setKey(UUID.randomUUID().toString().replaceAll("\\-", ""));
|
||||
String token = redisUtil.get(CacheConstant.QI_NIU_TOKEN, "");
|
||||
qiNiu.setToken(token);
|
||||
qiNiu.setZone(qiNiu.getZone());
|
||||
return qiNiu;
|
||||
}
|
||||
|
||||
public String upload(MultipartFile file, String fileDir) {
|
||||
Configuration cfg = new Configuration(new Zone.Builder().autoZone());
|
||||
UploadManager uploadManager = new UploadManager(cfg);
|
||||
StringBuilder fileUrl = new StringBuilder();
|
||||
// 获取文件名
|
||||
String orgName = file.getOriginalFilename();
|
||||
orgName = CommonUtils.getFileName(orgName);
|
||||
String fileName = orgName.substring(0, orgName.lastIndexOf(".")) + "_" + System.currentTimeMillis() + orgName.substring(orgName.indexOf("."));
|
||||
if (!fileDir.endsWith("/")) {
|
||||
fileDir = fileDir.concat("/");
|
||||
}
|
||||
fileDir = fileDir.replace("/", "/");
|
||||
fileUrl = fileUrl.append(fileDir + fileName);
|
||||
|
||||
String upToken = redisUtil.get(CacheConstant.QI_NIU_TOKEN, "");
|
||||
|
||||
try {
|
||||
Response response = uploadManager.put(file.getBytes(), fileUrl.toString(), upToken);
|
||||
//解析上传成功的结果
|
||||
DefaultPutRet putRet = new Gson().fromJson(response.bodyString(), DefaultPutRet.class);
|
||||
System.out.println(putRet.key);
|
||||
System.out.println(putRet.hash);
|
||||
return qiniuAddr + File.separator + putRet.key;
|
||||
} catch (QiniuException ex) {
|
||||
ex.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
public void refreshQiniuToken() {
|
||||
QiniuConfig qiniuConfig = qiniuConfigService.getFirstOne();
|
||||
if (null == qiniuConfig) {
|
||||
logger.error("请配置七牛存储配置");
|
||||
return;
|
||||
}
|
||||
String accessKey = qiniuConfig.getAccessKey();
|
||||
String secretKey = qiniuConfig.getSecretKey();
|
||||
String bucket = qiniuConfig.getBucket();
|
||||
long expireSeconds = qiniuConfig.getTokenExpireSeconds(); //过期时间
|
||||
if (!redisUtil.hasKey(CacheConstant.QI_NIU_TOKEN, "")) {
|
||||
StringMap putPolicy = new StringMap();
|
||||
Auth auth = Auth.create(accessKey, secretKey);
|
||||
String upToken = auth.uploadToken(bucket, null, expireSeconds, putPolicy);
|
||||
redisUtil.set(CacheConstant.QI_NIU_TOKEN, "", upToken, expireSeconds, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public String upload(String localFilePath, String key) {
|
||||
//构造一个带指定 Region
|
||||
Configuration cfg = new Configuration(new Zone.Builder().autoZone());
|
||||
UploadManager uploadManager = new UploadManager(cfg);
|
||||
try {
|
||||
String[] strings = localFilePath.split("\\.");
|
||||
Response response = uploadManager.put(localFilePath, key + "." + strings[strings.length - 1], redisUtil.get(CacheConstant.QI_NIU_TOKEN, ""));
|
||||
//解析上传成功的结果
|
||||
DefaultPutRet putRet = new Gson().fromJson(response.bodyString(), DefaultPutRet.class);
|
||||
return qiniuAddr + File.separator + putRet.key;
|
||||
} catch (QiniuException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.luqj.qiniu.task;
|
||||
|
||||
import com.luqj.qiniu.service.IQiniuService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* Created by luqj on 2018/8/24.
|
||||
* 书信七牛token
|
||||
*/
|
||||
@Component
|
||||
@EnableScheduling // 2.开启定时任务
|
||||
public class QiNiuRefreshTokenTask {
|
||||
private final static Logger logger = LoggerFactory.getLogger(QiNiuRefreshTokenTask.class);
|
||||
@Autowired
|
||||
private IQiniuService qiniuService;
|
||||
|
||||
// @Scheduled(cron = "0/10 * * * * ?")
|
||||
@Scheduled(cron = "* 0/10 * * * ?")
|
||||
public void refreshQiniuToken() {
|
||||
qiniuService.refreshQiniuToken();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
package com.luqj.qiniu.util;
|
||||
|
||||
import com.qiniu.common.QiniuException;
|
||||
import com.qiniu.common.Zone;
|
||||
import com.qiniu.http.Response;
|
||||
import com.qiniu.storage.Configuration;
|
||||
import com.qiniu.storage.UploadManager;
|
||||
import com.qiniu.util.Auth;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* 七牛 java sdk 简单上传,覆盖上传,文件上传
|
||||
*
|
||||
* @author luqj
|
||||
*/
|
||||
public class SimpleUpload {
|
||||
|
||||
private Auth auth;
|
||||
private UploadManager uploadManager;
|
||||
|
||||
public void init(String accessKey, String secretKey) {
|
||||
// Configuration cfg = new Configuration(Zone.zone0());
|
||||
Configuration cfg = new Configuration(Zone.zone2());
|
||||
uploadManager = new UploadManager(cfg);
|
||||
auth = Auth.create(accessKey, secretKey);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取凭证
|
||||
*
|
||||
* @param bucketName 空间名称
|
||||
* @param key 如果需要覆盖上传则设置此参数
|
||||
* @return
|
||||
*/
|
||||
public String getUpToken(String bucketName, String key) {
|
||||
return auth.uploadToken(bucketName);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传方法1
|
||||
*
|
||||
* @param filePath 文件路径 (也可以是字节数组、或者File对象)
|
||||
* @param key 上传到七牛上的文件的名称 (同一个空间下,名称【key】是唯一的)
|
||||
* @param bucketName 空间名称 (这里是为了获取上传凭证)
|
||||
*/
|
||||
public void upload(String filePath, String key, String bucketName) {
|
||||
try {
|
||||
// 调用put方法上传
|
||||
Response res = uploadManager.put(filePath, key, getUpToken(bucketName, key));
|
||||
// 打印返回的信息
|
||||
System.out.println(res.bodyString());
|
||||
} catch (QiniuException e) {
|
||||
Response r = e.response;
|
||||
// 请求失败时打印的异常的信息
|
||||
System.out.println(r.toString());
|
||||
try {
|
||||
// 响应的文本信息
|
||||
System.out.println(r.bodyString());
|
||||
} catch (QiniuException qe) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传方法2
|
||||
*
|
||||
* @param file 文件
|
||||
* @param key 上传到七牛上的文件的名称 (同一个空间下,名称【key】是唯一的)
|
||||
* @param bucketName 空间名称 (这里是为了获取上传凭证)
|
||||
*/
|
||||
public void upload(File file, String key, String bucketName) {
|
||||
try {
|
||||
// 调用put方法上传
|
||||
Response res = uploadManager.put(file, key, getUpToken(bucketName, key));
|
||||
// 打印返回的信息
|
||||
System.out.println(res.bodyString());
|
||||
} catch (QiniuException e) {
|
||||
Response r = e.response;
|
||||
// 请求失败时打印的异常的信息
|
||||
System.out.println(r.toString());
|
||||
try {
|
||||
// 响应的文本信息
|
||||
System.out.println(r.bodyString());
|
||||
} catch (QiniuException qe) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传方法3 覆盖上传
|
||||
*
|
||||
* @param path 上传文件路径
|
||||
* @param bucketName 空间名
|
||||
* @param key 文件名
|
||||
*/
|
||||
public void overrideUpload(String path, String key, String bucketName) {
|
||||
try {
|
||||
String token = getUpToken(bucketName, key);//获取 token
|
||||
Response response = uploadManager.put(path, key, token);//执行上传,通过token来识别 该上传是“覆盖上传”
|
||||
System.out.println(response.toString());
|
||||
} catch (QiniuException e) {
|
||||
System.out.println(e.response.statusCode);
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 主函数:程序入口,测试功能
|
||||
*
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
// 上传文件的路径,因为在Mac下,所以路径和windows下不同
|
||||
String filePath = "D:\\test.txt";
|
||||
// 要上传的空间
|
||||
String bucketName = "test";
|
||||
// 上传到七牛后保存的文件名
|
||||
String key = "sometext.txt";
|
||||
// 这里的filepath可以直接替换成File如下注释所示
|
||||
// File file=new File(filePath);
|
||||
// new SimpleUpload().upload(file, key, bucketName);
|
||||
new SimpleUpload().upload(filePath, key, bucketName);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,230 @@
|
||||
package com.luqj.qiniu.util;
|
||||
|
||||
|
||||
import com.qiniu.common.QiniuException;
|
||||
import com.qiniu.http.Client;
|
||||
import com.qiniu.http.Response;
|
||||
import com.qiniu.storage.*;
|
||||
import com.qiniu.util.StringMap;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
* 七牛文件上传管理器,通过该类上传文件时,会自动根据定义的{@link Configuration#putThreshold}
|
||||
* 来判断是采用表单上传还是分片上传的方法,超过了定义的{@link Configuration#putThreshold}就会采用
|
||||
* 分片上传的方法,可以在构造该类对象的时候,通过{@link Configuration}类来自定义这个值。
|
||||
* 一般默认可以使用这个类的方法来上传数据和文件。这个类自动检测文件的大小,
|
||||
*/
|
||||
public final class UploadManager {
|
||||
private final Client client;
|
||||
private final Recorder recorder;
|
||||
private final Configuration configuration;
|
||||
|
||||
/**
|
||||
* 构建一个非断点续传的上传对象
|
||||
*
|
||||
* @param config 配置类对象
|
||||
*/
|
||||
public UploadManager(Configuration config) {
|
||||
this(config, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 构建一个支持断点续传的上传对象。只在文件采用分片上传时才会有效。
|
||||
* 分块上传中,将每一块上传的记录保存下来。上传中断后可在上一次断点记录基础上上传剩余部分。
|
||||
* 对于不同的文件上传需要支持断点续传的情况,请定义不同的UploadManager对象,而不要共享。
|
||||
*
|
||||
* @param config 配置类对象
|
||||
* @param recorder 断点记录对象
|
||||
*/
|
||||
public UploadManager(Configuration config, Recorder recorder) {
|
||||
configuration = config.clone();
|
||||
client = new Client(configuration);
|
||||
this.recorder = recorder;
|
||||
|
||||
}
|
||||
|
||||
private static void checkArgs(final String key, byte[] data, File f, String token) {
|
||||
String message = null;
|
||||
if (f == null && data == null) {
|
||||
message = "no input data";
|
||||
} else if (token == null || token.equals("")) {
|
||||
message = "no token";
|
||||
}
|
||||
if (message != null) {
|
||||
throw new IllegalArgumentException(message);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 过滤用户自定义参数,只有参数名以<code>x:</code>开头的参数才会被使用
|
||||
*
|
||||
* @param params 待过滤的用户自定义参数
|
||||
* @return 过滤后的用户自定义参数
|
||||
*/
|
||||
private static StringMap filterParam(StringMap params) {
|
||||
final StringMap ret = new StringMap();
|
||||
if (params == null) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
params.forEach(new StringMap.Consumer() {
|
||||
@Override
|
||||
public void accept(String key, Object value) {
|
||||
if (value == null) {
|
||||
return;
|
||||
}
|
||||
String val = value.toString();
|
||||
if (key.startsWith("x:") && !val.equals("")) {
|
||||
ret.put(key, val);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传字节数组
|
||||
*
|
||||
* @param data 上传的数据
|
||||
* @param key 上传数据保存的文件名
|
||||
* @param token 上传凭证
|
||||
*/
|
||||
public Response put(final byte[] data, final String key, final String token) throws QiniuException {
|
||||
return put(data, key, token, null, null, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传字节数组
|
||||
*
|
||||
* @param data 上传的数据
|
||||
* @param key 上传数据保存的文件名
|
||||
* @param token 上传凭证
|
||||
* @param params 自定义参数,如 params.put("x:foo", "foo")
|
||||
* @param mime 指定文件mimetype
|
||||
* @param checkCrc 是否验证crc32
|
||||
* @return
|
||||
* @throws QiniuException
|
||||
*/
|
||||
public Response put(final byte[] data, final String key, final String token, StringMap params,
|
||||
String mime, boolean checkCrc) throws QiniuException {
|
||||
checkArgs(key, data, null, token);
|
||||
if (mime == null) {
|
||||
mime = Client.DefaultMime;
|
||||
}
|
||||
params = filterParam(params);
|
||||
return new FormUploader(client, token, key, data, params, mime, checkCrc, configuration).upload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传文件
|
||||
*
|
||||
* @param filePath 上传的文件路径
|
||||
* @param key 上传文件保存的文件名
|
||||
* @param token 上传凭证
|
||||
*/
|
||||
public Response put(String filePath, String key, String token) throws QiniuException {
|
||||
return put(filePath, key, token, null, null, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传文件
|
||||
*
|
||||
* @param filePath 上传的文件路径
|
||||
* @param key 上传文件保存的文件名
|
||||
* @param token 上传凭证
|
||||
* @param params 自定义参数,如 params.put("x:foo", "foo")
|
||||
* @param mime 指定文件mimetype
|
||||
* @param checkCrc 是否验证crc32
|
||||
*/
|
||||
public Response put(String filePath, String key, String token, StringMap params,
|
||||
String mime, boolean checkCrc) throws QiniuException {
|
||||
return put(new File(filePath), key, token, params, mime, checkCrc);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传文件
|
||||
*
|
||||
* @param file 上传的文件对象
|
||||
* @param key 上传文件保存的文件名
|
||||
* @param token 上传凭证
|
||||
*/
|
||||
public Response put(File file, String key, String token) throws QiniuException {
|
||||
return put(file, key, token, null, null, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传文件
|
||||
*
|
||||
* @param file 上传的文件对象
|
||||
* @param key 上传文件保存的文件名
|
||||
* @param token 上传凭证
|
||||
* @param mime 指定文件mimetype
|
||||
* @param checkCrc 是否验证crc32
|
||||
*/
|
||||
public Response put(File file, String key, String token, StringMap params,
|
||||
String mime, boolean checkCrc) throws QiniuException {
|
||||
checkArgs(key, null, file, token);
|
||||
if (mime == null) {
|
||||
mime = Client.DefaultMime;
|
||||
}
|
||||
params = filterParam(params);
|
||||
long size = file.length();
|
||||
if (size <= configuration.putThreshold) {
|
||||
return new FormUploader(client, token, key, file, params, mime, checkCrc, configuration).upload();
|
||||
}
|
||||
|
||||
ResumeUploader uploader = new ResumeUploader(client, token, key, file,
|
||||
params, mime, recorder, configuration);
|
||||
return uploader.upload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 异步上传数据
|
||||
*
|
||||
* @param data 上传的数据
|
||||
* @param key 上传数据保存的文件名
|
||||
* @param token 上传凭证
|
||||
* @param params 自定义参数,如 params.put("x:foo", "foo")
|
||||
* @param mime 指定文件mimetype
|
||||
* @param checkCrc 是否验证crc32
|
||||
* @param handler 上传完成的回调函数
|
||||
*/
|
||||
public void asyncPut(final byte[] data, final String key, final String token, StringMap params,
|
||||
String mime, boolean checkCrc, UpCompletionHandler handler) throws IOException {
|
||||
checkArgs(key, data, null, token);
|
||||
if (mime == null) {
|
||||
mime = Client.DefaultMime;
|
||||
}
|
||||
params = filterParam(params);
|
||||
new FormUploader(client, token, key, data, params, mime, checkCrc, configuration).asyncUpload(handler);
|
||||
}
|
||||
|
||||
/**
|
||||
* 流式上传,通常情况建议文件上传,可以使用持久化的断点记录。
|
||||
*
|
||||
* @param stream sha
|
||||
* @param key 上传文件保存的文件名
|
||||
* @param token 上传凭证
|
||||
* @param params 自定义参数,如 params.put("x:foo", "foo")
|
||||
* @param mime 指定文件mimetype
|
||||
*/
|
||||
public Response put(InputStream stream, String key, String token, StringMap params,
|
||||
String mime) throws QiniuException {
|
||||
String message = null;
|
||||
if (stream == null) {
|
||||
message = "no input data";
|
||||
} else if (token == null || token.equals("")) {
|
||||
message = "no token";
|
||||
}
|
||||
if (message != null) {
|
||||
throw new IllegalArgumentException(message);
|
||||
}
|
||||
StreamUploader uploader = new StreamUploader(client, token, key, stream,
|
||||
params, mime, configuration);
|
||||
return uploader.upload();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.luqj.sso.config;
|
||||
|
||||
import com.aliyun.oss.OSSClient;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* Created by luqj on 2018/5/17.
|
||||
*/
|
||||
@Configuration
|
||||
public class OssConfig {
|
||||
@Value("${luqj.oss.endpoint}")
|
||||
private String ALIYUN_OSS_ENDPOINT;
|
||||
@Value("${luqj.oss.accessKey}")
|
||||
private String ALIYUN_OSS_ACCESSKEYID;
|
||||
@Value("${luqj.oss.secretKey}")
|
||||
private String ALIYUN_OSS_ACCESSKEYSECRET;
|
||||
@Bean
|
||||
public OSSClient ossClient(){
|
||||
return new OSSClient(ALIYUN_OSS_ENDPOINT,ALIYUN_OSS_ACCESSKEYID,ALIYUN_OSS_ACCESSKEYSECRET);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.luqj.sso.controller;
|
||||
|
||||
|
||||
import com.luqj.sso.entity.OssCallbackResult;
|
||||
import com.luqj.sso.entity.OssPolicyResult;
|
||||
import com.luqj.sso.service.OssService;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
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.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* Oss相关操作接口
|
||||
* Created by luqj on 2018/4/26.
|
||||
*/
|
||||
@Controller
|
||||
@Api(tags = "Oss管理-后台", description = "Oss管理")
|
||||
@RequestMapping("/common/oss")
|
||||
public class OssController {
|
||||
@Autowired
|
||||
private OssService ossService;
|
||||
|
||||
@ApiOperation(value = "oss上传签名生成")
|
||||
@RequestMapping(value = "/policy", method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
public AjaxResult policy() {
|
||||
OssPolicyResult result = ossService.policy();
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "oss上传成功回调")
|
||||
@RequestMapping(value = "callback", method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public AjaxResult callback(HttpServletRequest request) {
|
||||
OssCallbackResult ossCallbackResult = ossService.callback(request);
|
||||
return AjaxResult.success(ossCallbackResult);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.luqj.sso.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* oss上传成功后的回调参数
|
||||
* Created by luqj on 2018/5/17.
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class OssCallbackParam {
|
||||
@ApiModelProperty("请求的回调地址")
|
||||
private String callbackUrl;
|
||||
@ApiModelProperty("回调是传入request中的参数")
|
||||
private String callbackBody;
|
||||
@ApiModelProperty("回调时传入参数的格式,比如表单提交形式")
|
||||
private String callbackBodyType;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.luqj.sso.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* oss上传文件的回调结果
|
||||
* Created by luqj on 2018/5/17.
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class OssCallbackResult {
|
||||
@ApiModelProperty("文件名称")
|
||||
private String filename;
|
||||
@ApiModelProperty("文件大小")
|
||||
private String size;
|
||||
@ApiModelProperty("文件的mimeType")
|
||||
private String mimeType;
|
||||
@ApiModelProperty("图片文件的宽")
|
||||
private String width;
|
||||
@ApiModelProperty("图片文件的高")
|
||||
private String height;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.luqj.sso.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 获取OSS上传文件授权返回结果
|
||||
* Created by luqj on 2018/5/17.
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class OssPolicyResult {
|
||||
@ApiModelProperty("访问身份验证中用到用户标识")
|
||||
private String accessKeyId;
|
||||
@ApiModelProperty("用户表单上传的策略,经过base64编码过的字符串")
|
||||
private String policy;
|
||||
@ApiModelProperty("对policy签名后的字符串")
|
||||
private String signature;
|
||||
@ApiModelProperty("上传文件夹路径前缀")
|
||||
private String dir;
|
||||
@ApiModelProperty("oss对外服务的访问域名")
|
||||
private String host;
|
||||
@ApiModelProperty("上传成功后的回调设置")
|
||||
private String callback;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.luqj.sso.service;
|
||||
|
||||
import com.luqj.sso.entity.OssCallbackResult;
|
||||
import com.luqj.sso.entity.OssPolicyResult;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* oss上传管理Service
|
||||
* Created by luqj on 2018/5/17.
|
||||
*/
|
||||
public interface OssService {
|
||||
/**
|
||||
* oss上传策略生成
|
||||
*/
|
||||
OssPolicyResult policy();
|
||||
/**
|
||||
* oss上传成功回调
|
||||
*/
|
||||
OssCallbackResult callback(HttpServletRequest request);
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
package com.luqj.sso.service.impl;
|
||||
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.aliyun.oss.OSSClient;
|
||||
import com.aliyun.oss.common.utils.BinaryUtil;
|
||||
import com.aliyun.oss.model.MatchMode;
|
||||
import com.aliyun.oss.model.PolicyConditions;
|
||||
import com.luqj.sso.entity.OssCallbackParam;
|
||||
import com.luqj.sso.entity.OssCallbackResult;
|
||||
import com.luqj.sso.entity.OssPolicyResult;
|
||||
import com.luqj.sso.service.OssService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* oss上传管理Service实现类
|
||||
* Created by luqj on 2018/5/17.
|
||||
*/
|
||||
@Service
|
||||
public class OssServiceImpl implements OssService {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(OssServiceImpl.class);
|
||||
@Value("${luqj.oss.policy.expire}")
|
||||
private int ALIYUN_OSS_EXPIRE;
|
||||
@Value("${luqj.oss.maxSize}")
|
||||
private int ALIYUN_OSS_MAX_SIZE;
|
||||
@Value("${luqj.oss.callback}")
|
||||
private String ALIYUN_OSS_CALLBACK;
|
||||
@Value("${luqj.oss.bucketName}")
|
||||
private String ALIYUN_OSS_BUCKET_NAME;
|
||||
@Value("${luqj.oss.endpoint}")
|
||||
private String ALIYUN_OSS_ENDPOINT;
|
||||
@Value("${luqj.oss.dir.prefix}")
|
||||
private String ALIYUN_OSS_DIR_PREFIX;
|
||||
|
||||
@Autowired
|
||||
private OSSClient ossClient;
|
||||
|
||||
/**
|
||||
* 签名生成
|
||||
*/
|
||||
@Override
|
||||
public OssPolicyResult policy() {
|
||||
OssPolicyResult result = new OssPolicyResult();
|
||||
// 存储目录
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
|
||||
String dir = ALIYUN_OSS_DIR_PREFIX + sdf.format(new Date());
|
||||
// 签名有效期
|
||||
long expireEndTime = System.currentTimeMillis() + ALIYUN_OSS_EXPIRE * 1000;
|
||||
Date expiration = new Date(expireEndTime);
|
||||
// 文件大小
|
||||
long maxSize = ALIYUN_OSS_MAX_SIZE * 1024 * 1024;
|
||||
// 回调
|
||||
OssCallbackParam callback = new OssCallbackParam();
|
||||
callback.setCallbackUrl(ALIYUN_OSS_CALLBACK);
|
||||
callback.setCallbackBody("filename=${object}&size=${size}&mimeType=${mimeType}&height=${imageInfo.height}&width=${imageInfo.width}");
|
||||
callback.setCallbackBodyType("application/x-www-form-urlencoded");
|
||||
// 提交节点
|
||||
String action = "http://" + ALIYUN_OSS_BUCKET_NAME + "." + ALIYUN_OSS_ENDPOINT;
|
||||
try {
|
||||
PolicyConditions policyConds = new PolicyConditions();
|
||||
policyConds.addConditionItem(PolicyConditions.COND_CONTENT_LENGTH_RANGE, 0, maxSize);
|
||||
policyConds.addConditionItem(MatchMode.StartWith, PolicyConditions.COND_KEY, dir);
|
||||
String postPolicy = ossClient.generatePostPolicy(expiration, policyConds);
|
||||
byte[] binaryData = postPolicy.getBytes("utf-8");
|
||||
String policy = BinaryUtil.toBase64String(binaryData);
|
||||
String signature = ossClient.calculatePostSignature(postPolicy);
|
||||
String callbackData = BinaryUtil.toBase64String(JSONUtil.parse(callback).toString().getBytes("utf-8"));
|
||||
// 返回结果
|
||||
result.setAccessKeyId(ossClient.getCredentialsProvider().getCredentials().getAccessKeyId());
|
||||
result.setPolicy(policy);
|
||||
result.setSignature(signature);
|
||||
result.setDir(dir);
|
||||
result.setCallback(callbackData);
|
||||
result.setHost(action);
|
||||
} catch (Exception e) {
|
||||
LOGGER.error("签名生成失败", e);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public OssCallbackResult callback(HttpServletRequest request) {
|
||||
OssCallbackResult result = new OssCallbackResult();
|
||||
String filename = request.getParameter("filename");
|
||||
filename = "http://".concat(ALIYUN_OSS_BUCKET_NAME).concat(".").concat(ALIYUN_OSS_ENDPOINT).concat("/").concat(filename);
|
||||
result.setFilename(filename);
|
||||
result.setSize(request.getParameter("size"));
|
||||
result.setMimeType(request.getParameter("mimeType"));
|
||||
result.setWidth(request.getParameter("width"));
|
||||
result.setHeight(request.getParameter("height"));
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,578 @@
|
||||
package com.luqj.util;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.http.HttpEntity;
|
||||
import org.apache.http.HttpHost;
|
||||
import org.apache.http.NameValuePair;
|
||||
import org.apache.http.client.config.RequestConfig;
|
||||
import org.apache.http.client.entity.UrlEncodedFormEntity;
|
||||
import org.apache.http.client.methods.*;
|
||||
import org.apache.http.client.utils.URIBuilder;
|
||||
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
|
||||
import org.apache.http.conn.ssl.SSLContexts;
|
||||
import org.apache.http.entity.StringEntity;
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
import org.apache.http.impl.client.HttpClients;
|
||||
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
|
||||
import org.apache.http.message.BasicNameValuePair;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
|
||||
import javax.net.ssl.HttpsURLConnection;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
import java.io.*;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.Charset;
|
||||
import java.security.*;
|
||||
import java.security.cert.CertificateException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.zip.GZIPInputStream;
|
||||
|
||||
@Slf4j
|
||||
public class HttpHelper {
|
||||
private String proxyHost;
|
||||
private Integer proxyPort;
|
||||
|
||||
public String getProxyHost() {
|
||||
return proxyHost;
|
||||
}
|
||||
|
||||
public void setProxyHost(String proxyHost) {
|
||||
this.proxyHost = proxyHost;
|
||||
}
|
||||
|
||||
public Integer getProxyPort() {
|
||||
return proxyPort;
|
||||
}
|
||||
|
||||
public void setProxyPort(Integer proxyPort) {
|
||||
this.proxyPort = proxyPort;
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
BigDecimal decimal = new BigDecimal("1").divide(new BigDecimal(100));
|
||||
|
||||
esListense();
|
||||
}
|
||||
|
||||
/**
|
||||
* 读取网络文本
|
||||
*
|
||||
* @param sourcePath
|
||||
* @return
|
||||
*/
|
||||
public List<String> readHttpFile(String sourcePath) {
|
||||
String line;
|
||||
int lineNum = 0;
|
||||
List<String> list = new ArrayList<>();
|
||||
BufferedReader reader = null;
|
||||
try {
|
||||
URL url = new URL(sourcePath);
|
||||
reader = new BufferedReader(new InputStreamReader(url.openStream(), "gbk"));
|
||||
while ((line = reader.readLine()) != null) {
|
||||
lineNum++;
|
||||
list.add(line);
|
||||
}
|
||||
} catch (Exception ie) {
|
||||
ie.printStackTrace();
|
||||
} finally {
|
||||
try {
|
||||
if (reader != null)
|
||||
reader.close();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public List<String> readGzFile(String url) throws IOException {
|
||||
InputStream in = new GZIPInputStream(new FileInputStream(url));
|
||||
List<String> list = IOUtils.readLines(in, "UTF-8");
|
||||
return list;
|
||||
}
|
||||
|
||||
public List<String> readHttpGzFile(String sourcePath) {
|
||||
List<String> list = new ArrayList<>();
|
||||
BufferedReader reader = null;
|
||||
try {
|
||||
URL url = new URL(sourcePath);
|
||||
InputStream in = new GZIPInputStream(url.openStream());
|
||||
list = IOUtils.readLines(in, "UTF-8");
|
||||
} catch (Exception ie) {
|
||||
ie.printStackTrace();
|
||||
} finally {
|
||||
try {
|
||||
if (reader != null)
|
||||
reader.close();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public CloseableHttpClient getHttpsClient() throws Exception {
|
||||
SSLContext sslcontext = SSLContexts.custom().useSSL().build();
|
||||
sslcontext.init(null, new X509TrustManager[]{new HttpsTrustManager()}, new SecureRandom());
|
||||
SSLConnectionSocketFactory factory = new SSLConnectionSocketFactory(sslcontext,
|
||||
SSLConnectionSocketFactory.BROWSER_COMPATIBLE_HOSTNAME_VERIFIER);
|
||||
RequestConfig defaultRequestConfig = RequestConfig.custom()
|
||||
.setSocketTimeout(5000)
|
||||
.setConnectTimeout(5000)
|
||||
.setConnectionRequestTimeout(500000)
|
||||
.setStaleConnectionCheckEnabled(true)
|
||||
.build();
|
||||
RequestConfig requestConfig = null;
|
||||
if (StringUtils.isNotBlank(proxyHost) && null != proxyPort) {
|
||||
// setProxy(new HttpHost("lu7213.6655.la", 57301))
|
||||
// setProxy(new HttpHost("127.0.0.1", 19180))
|
||||
requestConfig = RequestConfig.copy(defaultRequestConfig).setProxy(new HttpHost(proxyHost, proxyPort))
|
||||
.build();
|
||||
} else {
|
||||
requestConfig = RequestConfig.copy(defaultRequestConfig).build();
|
||||
}
|
||||
CloseableHttpClient client = HttpClients.custom().setSSLSocketFactory(factory).setDefaultRequestConfig(requestConfig).build();
|
||||
return client;
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入证书
|
||||
*
|
||||
* @return
|
||||
* @throws KeyStoreException
|
||||
* @throws NoSuchAlgorithmException
|
||||
* @throws CertificateException
|
||||
* @throws IOException
|
||||
* @throws KeyManagementException
|
||||
*/
|
||||
private SSLContext getSSLContext() throws KeyStoreException,
|
||||
NoSuchAlgorithmException, CertificateException, IOException, KeyManagementException {
|
||||
KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType());
|
||||
FileInputStream instream = new FileInputStream(new File("my.keystore"));
|
||||
try {
|
||||
trustStore.load(instream, "nopassword".toCharArray());
|
||||
} finally {
|
||||
instream.close();
|
||||
}
|
||||
return SSLContexts.custom()
|
||||
.loadTrustMaterial(trustStore)
|
||||
.build();
|
||||
}
|
||||
|
||||
// es 7.4 白嫖命令
|
||||
private static boolean esListense() throws Exception {
|
||||
HttpHelper httpHelper = new HttpHelper();
|
||||
HashMap<String, Object> headers = new HashMap<>();
|
||||
// headers.put("Content-Type", "application/json");
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
map.put("access_token", "1278491352545154|4fa79654c00caab794a70afee2d769c2");
|
||||
map.put("input_token", "EAASKxZCbqt4IBAOwxuyFEZCynraaVQtOrMnwkj301sxydRYZBiZBUe1REIV1zcrXvSC6nsnPVMG1YpB645OsRACOjQ9C9T4lFJxQI1rPon2p2Ww8onXsKytaOcqaKFf2f4EZAA4doPxGcJoBiCnKh0g7EdhjZBQrfpC1Q05N87fLUlKHE3ZAQddLeZAIKBaXcoyDVhqTSWVGoKlghLQvMpnJNeXmRyQTSIAZD");
|
||||
// ResponseWrapper result = httpHelper.sendGet("https://graph.facebook.com/debug_token", map);
|
||||
// httpHelper.setProxyHost("192.168.2.4");
|
||||
// httpHelper.setProxyPort(29180);
|
||||
// String result = httpHelper.getlHttpResult("https://graph.facebook.com/debug_token", "GET", headers, map);
|
||||
// System.out.println(result);
|
||||
// HashMap headers = new HashMap<>();
|
||||
//// headers.put("Content-Type", "application/json");
|
||||
String data = "{\"license\":{\"uid\":\"64311a78-1da8-4242-801d-1919b2ee6373\",\"type\":\"platinum\",\"issue_date_in_millis\":1591660800000,\"expiry_date_in_millis\":2516630400000,\"max_nodes\":100,\"issued_to\":\"qungjie lu (dragon)\",\"issuer\":\"Web Form\",\"signature\":\"AAAAAwAAAA3TbuzQUBHKydhRaMl8AAABmC9ZN0hjZDBGYnVyRXpCOW5Bb3FjZDAxOWpSbTVoMVZwUzRxVk1PSmkxaktJRVl5MUYvUWh3bHZVUTllbXNPbzBUemtnbWpBbmlWRmRZb25KNFlBR2x0TXc2K2p1Y1VtMG1UQU9TRGZVSGRwaEJGUjE3bXd3LzRqZ05iLzRteWFNekdxRGpIYlFwYkJiNUs0U1hTVlJKNVlXekMrSlVUdFIvV0FNeWdOYnlESDc3MWhlY3hSQmdKSjJ2ZTcvYlBFOHhPQlV3ZHdDQ0tHcG5uOElCaDJ4K1hob29xSG85N0kvTWV3THhlQk9NL01VMFRjNDZpZEVXeUtUMXIyMlIveFpJUkk2WUdveEZaME9XWitGUi9WNTZVQW1FMG1DenhZU0ZmeXlZakVEMjZFT2NvOWxpZGlqVmlHNC8rWVVUYzMwRGVySHpIdURzKzFiRDl4TmM1TUp2VTBOUlJZUlAyV0ZVL2kvVk10L0NsbXNFYVZwT3NSU082dFNNa2prQ0ZsclZ4NTltbU1CVE5lR09Bck93V2J1Y3c9PQAAAQBCUpzI7WOa8sBex3uA0Ag2ELeK9+bTX/GPpqKFEoEU6tdWyxxXsfwC1a8+FTkDmm/96jAm7x86wlgu3vimq7nK2ddMjNub3zZd4TAa3pRZfyNnJrlWzDIzyKwHI1N13YB4cEnrSgf+Hj/czIcLcFjTr7IEgXIuc1kfeEmghGLWVKZkHaoeTStWt5+3w/xwzs0ieacWp+FFkJv06ywEf96HusMSc1ExrRL/4JRY+zJiMjupxvrNSm3VP6K2I1RhR+XLXM/9d71jxPXFtFbY1IyAjHOviie7baszbR+eD3F1uHFOoR7WpKNYkXxVF+002HYtoKI4OEN2t6PXx12yAlXM\",\"start_date_in_millis\":1591660800000}}";
|
||||
String result = httpHelper.playLoad("put", "http://192.168.2.176:9200/_xpack/license", headers, data, "application/json", "utf-8");
|
||||
System.out.println(result);
|
||||
return true;
|
||||
}
|
||||
|
||||
private PoolingHttpClientConnectionManager cm;
|
||||
|
||||
public HttpHelper() {
|
||||
cm = new PoolingHttpClientConnectionManager();
|
||||
cm.setMaxTotal(500); // 整个连接池最大连接数
|
||||
cm.setDefaultMaxPerRoute(5); // 每路由最大连接数,默认值是2
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过连接池获取HttpClient
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
private CloseableHttpClient getHttpClient() {
|
||||
RequestConfig defaultRequestConfig = RequestConfig.custom()
|
||||
.setSocketTimeout(5000)
|
||||
.setConnectTimeout(5000)
|
||||
.setConnectionRequestTimeout(5000000)
|
||||
.setStaleConnectionCheckEnabled(true)
|
||||
.build();
|
||||
RequestConfig requestConfig = null;
|
||||
if (StringUtils.isNotBlank(proxyHost) && null != proxyPort) {
|
||||
// setProxy(new HttpHost("lu7213.6655.la", 57301))
|
||||
// setProxy(new HttpHost("127.0.0.1", 19180))
|
||||
requestConfig = RequestConfig.copy(defaultRequestConfig).setProxy(new HttpHost(proxyHost, proxyPort))
|
||||
.build();
|
||||
} else {
|
||||
requestConfig = RequestConfig.copy(defaultRequestConfig).build();
|
||||
}
|
||||
return HttpClients.custom().setConnectionManager(cm).setDefaultRequestConfig(requestConfig).build();
|
||||
}
|
||||
|
||||
private ArrayList<NameValuePair> covertParams2NVPS(Map<String, Object> params) {
|
||||
ArrayList<NameValuePair> pairs = new ArrayList<NameValuePair>();
|
||||
for (Map.Entry<String, Object> param : params.entrySet()) {
|
||||
pairs.add(new BasicNameValuePair(param.getKey(), String.valueOf(param.getValue())));
|
||||
}
|
||||
return pairs;
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送http
|
||||
*
|
||||
* @param url
|
||||
* @param method
|
||||
* @param headers
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public CloseableHttpResponse send(CloseableHttpClient httpClient, String url, String method, Map<String, Object> headers) throws Exception {
|
||||
URIBuilder ub = new URIBuilder();
|
||||
ub.setPath(url);
|
||||
HttpRequestBase http = null;
|
||||
if (method.toLowerCase().equals("put")) {
|
||||
http = new HttpPut(ub.build());
|
||||
}
|
||||
if (method.toLowerCase().equals("post")) {
|
||||
http = new HttpPost(ub.build());
|
||||
}
|
||||
if (method.toLowerCase().equals("get")) {
|
||||
http = new HttpGet(ub.build());
|
||||
}
|
||||
if (method.toLowerCase().equals("delete")) {
|
||||
http = new HttpDelete(ub.build());
|
||||
}
|
||||
for (Map.Entry<String, Object> param : headers.entrySet()) {
|
||||
http.addHeader(param.getKey(), String.valueOf(param.getValue()));
|
||||
}
|
||||
try {
|
||||
return httpClient.execute(http);
|
||||
} catch (Exception e) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
public CloseableHttpResponse send(CloseableHttpClient httpClient, String url, String method) throws Exception {
|
||||
URIBuilder ub = new URIBuilder();
|
||||
ub.setPath(url);
|
||||
HttpRequestBase http = null;
|
||||
if (method.toLowerCase().equals("put")) {
|
||||
http = new HttpPut(ub.build());
|
||||
}
|
||||
if (method.toLowerCase().equals("post")) {
|
||||
http = new HttpPost(ub.build());
|
||||
}
|
||||
if (method.toLowerCase().equals("get")) {
|
||||
http = new HttpGet(ub.build());
|
||||
}
|
||||
if (method.toLowerCase().equals("delete")) {
|
||||
http = new HttpDelete(ub.build());
|
||||
}
|
||||
try {
|
||||
return httpClient.execute(http);
|
||||
} catch (Exception e) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送http
|
||||
*
|
||||
* @param url
|
||||
* @param method
|
||||
* @param headers
|
||||
* @param params
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public CloseableHttpResponse send(CloseableHttpClient httpClient, String url, String method, Map<String, Object> headers, Map<String, Object> params) throws Exception {
|
||||
URIBuilder ub = new URIBuilder();
|
||||
ub.setPath(url);
|
||||
ArrayList<NameValuePair> pairs = covertParams2NVPS(params);
|
||||
if (method.toLowerCase().equals("put")) {
|
||||
ub.setParameters(pairs);
|
||||
HttpPut http = null;
|
||||
if (pairs.size() > 0) {
|
||||
http = new HttpPut(ub.build());
|
||||
} else {
|
||||
http = new HttpPut(url);
|
||||
}
|
||||
for (Map.Entry<String, Object> param : headers.entrySet()) {
|
||||
http.addHeader(param.getKey(), String.valueOf(param.getValue()));
|
||||
}
|
||||
return httpClient.execute(http);
|
||||
}
|
||||
if (method.toLowerCase().equals("post")) {
|
||||
ub.setParameters(pairs);
|
||||
HttpPost http = null;
|
||||
if (pairs.size() > 0) {
|
||||
http = new HttpPost(ub.build());
|
||||
} else {
|
||||
http = new HttpPost(url);
|
||||
}
|
||||
for (Map.Entry<String, Object> param : headers.entrySet()) {
|
||||
http.addHeader(param.getKey(), String.valueOf(param.getValue()));
|
||||
}
|
||||
http.setEntity(new UrlEncodedFormEntity(pairs, "UTF-8"));
|
||||
return httpClient.execute(http);
|
||||
}
|
||||
if (method.toLowerCase().equals("get")) {
|
||||
HttpGet http = null;
|
||||
if (pairs.size() > 0) {
|
||||
ub.setParameters(pairs);
|
||||
String path = ub.toString();
|
||||
if(path.startsWith("/")) {
|
||||
http = new HttpGet(path.substring(1));
|
||||
}else{
|
||||
http = new HttpGet(ub.build());
|
||||
}
|
||||
|
||||
} else {
|
||||
http = new HttpGet(url);
|
||||
}
|
||||
for (Map.Entry<String, Object> param : headers.entrySet()) {
|
||||
http.addHeader(param.getKey(), String.valueOf(param.getValue()));
|
||||
}
|
||||
// HttpHost target = new HttpHost(InetAddress.,ub.getHost(),ub.getPort(),ub.getScheme());
|
||||
return httpClient.execute(http);
|
||||
}
|
||||
if (method.toLowerCase().equals("delete")) {
|
||||
ub.setParameters(pairs);
|
||||
HttpDelete http = null;
|
||||
if (pairs.size() > 0) {
|
||||
http = new HttpDelete(ub.build());
|
||||
} else {
|
||||
http = new HttpDelete(url);
|
||||
}
|
||||
for (Map.Entry<String, Object> param : headers.entrySet()) {
|
||||
http.addHeader(param.getKey(), String.valueOf(param.getValue()));
|
||||
}
|
||||
return httpClient.execute(http);
|
||||
}
|
||||
if (method.toLowerCase().equals("options")) {
|
||||
ub.setParameters(pairs);
|
||||
HttpOptions http = null;
|
||||
if (pairs.size() > 0) {
|
||||
http = new HttpOptions(ub.build());
|
||||
} else {
|
||||
http = new HttpOptions(url);
|
||||
}
|
||||
for (Map.Entry<String, Object> param : headers.entrySet()) {
|
||||
http.addHeader(param.getKey(), String.valueOf(param.getValue()));
|
||||
}
|
||||
return httpClient.execute(http);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public ResponseWrapper sendGet(String apiUrl, Map<String, Object> allParams) throws Exception {
|
||||
URL url = new URL(RequestHelper.constructUrlString(apiUrl, allParams));
|
||||
HttpsURLConnection con = (HttpsURLConnection) url.openConnection();
|
||||
|
||||
con.setRequestMethod("GET");
|
||||
con.setRequestProperty("User-Agent", "fbbizsdk-java-v3.3");
|
||||
con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
|
||||
|
||||
return readResponse(con);
|
||||
}
|
||||
|
||||
private ResponseWrapper readResponse(HttpsURLConnection con) throws Exception {
|
||||
try {
|
||||
int responseCode = con.getResponseCode();
|
||||
|
||||
String header = convertToString(con.getHeaderFields());
|
||||
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
|
||||
String inputLine;
|
||||
StringBuilder response = new StringBuilder();
|
||||
|
||||
while ((inputLine = in.readLine()) != null) {
|
||||
response.append(inputLine);
|
||||
}
|
||||
in.close();
|
||||
return new ResponseWrapper(response.toString(), header);
|
||||
} catch (Exception e) {
|
||||
BufferedReader in = new BufferedReader(new InputStreamReader(con.getErrorStream()));
|
||||
String inputLine;
|
||||
StringBuilder response = new StringBuilder();
|
||||
|
||||
while ((inputLine = in.readLine()) != null) {
|
||||
response.append(inputLine);
|
||||
}
|
||||
in.close();
|
||||
throw new Exception(response.toString(), e);
|
||||
}
|
||||
}
|
||||
|
||||
private String convertToString(Object input) {
|
||||
if (input == null) {
|
||||
return "null";
|
||||
} else if (input instanceof Map) {
|
||||
Gson gson = new GsonBuilder()
|
||||
.excludeFieldsWithModifiers(Modifier.STATIC)
|
||||
.excludeFieldsWithModifiers(Modifier.PROTECTED)
|
||||
.disableHtmlEscaping()
|
||||
.create();
|
||||
return gson.toJson((Map) input);
|
||||
} else if (input instanceof List) {
|
||||
Gson gson = new GsonBuilder()
|
||||
.excludeFieldsWithModifiers(Modifier.STATIC)
|
||||
.excludeFieldsWithModifiers(Modifier.PROTECTED)
|
||||
.disableHtmlEscaping()
|
||||
.create();
|
||||
return gson.toJson((List) input);
|
||||
} else {
|
||||
return input.toString();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理Http请求
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getlHttpResult(String url, String method, Map<String, Object> headers, Map<String, Object> params) throws Exception {
|
||||
CloseableHttpClient httpClient = null;
|
||||
if (url.startsWith("https")) {
|
||||
httpClient = getHttpsClient();
|
||||
} else {
|
||||
httpClient = getHttpClient();
|
||||
}
|
||||
CloseableHttpResponse response = this.send(httpClient, url, method, headers, params);
|
||||
if (method.toLowerCase().equals("options")) {
|
||||
return response.getStatusLine().getStatusCode() + "";
|
||||
} else {
|
||||
HttpEntity entity = response.getEntity();
|
||||
if (entity != null) {
|
||||
String result = EntityUtils.toString(entity, Charset.forName("UTF-8"));
|
||||
// httpClient.close();
|
||||
response.close();
|
||||
return result;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
public String getlHttpResultCode(String url, String method, Map<String, Object> headers, Map<String, Object> params) throws Exception {
|
||||
CloseableHttpClient httpClient = null;
|
||||
if (url.startsWith("https")) {
|
||||
httpClient = getHttpsClient();
|
||||
} else {
|
||||
httpClient = getHttpClient();
|
||||
}
|
||||
CloseableHttpResponse response = this.send(httpClient, url, method, headers, params);
|
||||
return response.getStatusLine().getStatusCode() + "";
|
||||
}
|
||||
|
||||
public Boolean testHttp(String url, String method, Map<String, Object> headers, Map<String, Object> params) throws Exception {
|
||||
CloseableHttpClient httpClient = null;
|
||||
if (url.startsWith("https")) {
|
||||
httpClient = getHttpsClient();
|
||||
} else {
|
||||
httpClient = getHttpClient();
|
||||
}
|
||||
CloseableHttpResponse response = this.send(httpClient, url, method, headers, params);
|
||||
boolean result = response.getStatusLine().getStatusCode() == 200;
|
||||
response.close();
|
||||
return result;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
cm.close();
|
||||
}
|
||||
|
||||
public String playLoad(String method, String url, Map<String, Object> headersMap, Object data, String contentType, String charset) throws Exception {
|
||||
CloseableHttpClient httpClient = null;
|
||||
if (url.startsWith("https")) {
|
||||
httpClient = getHttpsClient();
|
||||
} else {
|
||||
httpClient = getHttpClient();
|
||||
}
|
||||
String result = null;
|
||||
HttpEntityEnclosingRequestBase httpEntityEnclosingRequestBase = null;
|
||||
if ("post".equalsIgnoreCase(method)) {
|
||||
httpEntityEnclosingRequestBase = new HttpPost(url);
|
||||
} else if ("put".equalsIgnoreCase(method)) {
|
||||
httpEntityEnclosingRequestBase = new HttpPut(url);
|
||||
} else if ("get".equalsIgnoreCase(method)) {
|
||||
httpEntityEnclosingRequestBase = new HttpEntityEnclosingRequestBase() {
|
||||
@Override
|
||||
public String getMethod() {
|
||||
return "GET";
|
||||
}
|
||||
};
|
||||
httpEntityEnclosingRequestBase.setURI(new URI(url));
|
||||
}
|
||||
for (Map.Entry<String, Object> param : headersMap.entrySet()) {
|
||||
httpEntityEnclosingRequestBase.addHeader(param.getKey(), String.valueOf(param.getValue()));
|
||||
}
|
||||
httpEntityEnclosingRequestBase.addHeader("Content-Type", contentType);
|
||||
String json = "";
|
||||
if (data instanceof String) {
|
||||
json = String.valueOf(data);
|
||||
} else {
|
||||
json = JSONObject.toJSONString(data);
|
||||
}
|
||||
StringEntity entity = new StringEntity(json, charset);
|
||||
// post请求是将参数放在请求体里面传过去的;这里将entity放入post请求体中
|
||||
httpEntityEnclosingRequestBase.setEntity(entity);
|
||||
// 响应模型
|
||||
CloseableHttpResponse response = null;
|
||||
try {
|
||||
// 由客户端执行(发送)Post请求
|
||||
response = (CloseableHttpResponse) httpClient.execute(httpEntityEnclosingRequestBase);
|
||||
// 从响应模型中获取响应实体
|
||||
HttpEntity responseEntity = response.getEntity();
|
||||
System.out.println("响应状态为:" + response.getStatusLine());
|
||||
if (responseEntity != null) {
|
||||
result = EntityUtils.toString(responseEntity);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage());
|
||||
} finally {
|
||||
try {
|
||||
if (response != null) {
|
||||
response.close();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
log.error(e.getMessage());
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 替换指定格式的日期
|
||||
*
|
||||
* @param value
|
||||
* @return
|
||||
*/
|
||||
public String replaceCurDate(String value) {
|
||||
String cur = formatDate(new Date(), "yyyyMMddHHmm");
|
||||
String result = value.replaceAll("\\$\\{yyyyMMddHHmm\\}", cur);
|
||||
cur = formatDate(new Date(), "yyyyMMddHH");
|
||||
result = result.replaceAll("\\$\\{yyyyMMddHH\\}", cur);
|
||||
cur = formatDate(new Date(), "yyyyMMdd");
|
||||
result = result.replaceAll("\\$\\{yyyyMMdd\\}", cur);
|
||||
cur = formatDate(new Date(), "yyyyMM");
|
||||
result = result.replaceAll("\\$\\{yyyyMM\\}", cur);
|
||||
return result;
|
||||
}
|
||||
|
||||
public String formatDate(final Date date, final String pattern) {
|
||||
SimpleDateFormat formatter = new SimpleDateFormat(pattern);
|
||||
return formatter.format(date);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.luqj.util;
|
||||
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
import java.security.cert.CertificateException;
|
||||
import java.security.cert.X509Certificate;
|
||||
|
||||
public class HttpsTrustManager implements X509TrustManager {
|
||||
|
||||
@Override
|
||||
public void checkClientTrusted(X509Certificate[] arg0, String arg1)
|
||||
throws CertificateException {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void checkServerTrusted(X509Certificate[] arg0, String arg1)
|
||||
throws CertificateException {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public X509Certificate[] getAcceptedIssuers() {
|
||||
return new X509Certificate[]{};
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
package com.luqj.util;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
import com.google.common.util.concurrent.SettableFuture;
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.net.URLEncoder;
|
||||
import java.nio.file.Files;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class RequestHelper {
|
||||
private static final String DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
||||
public static Map<String, String> fileToContentTypeMap = new HashMap<String, String>();
|
||||
static {
|
||||
fileToContentTypeMap.put(".atom", "application/atom+xml");
|
||||
fileToContentTypeMap.put(".rss", "application/rss+xml");
|
||||
fileToContentTypeMap.put(".xml", "application/xml");
|
||||
fileToContentTypeMap.put(".csv", "text/csv");
|
||||
fileToContentTypeMap.put(".txt", "text/plain");
|
||||
}
|
||||
|
||||
public static String getContentTypeForFile(File file) {
|
||||
String contentType = fileToContentTypeMap.get(getFileExtension(file));
|
||||
|
||||
if (contentType != null) return contentType;
|
||||
|
||||
try {
|
||||
contentType = Files.probeContentType(file.toPath());
|
||||
} catch (IOException ignored) {
|
||||
}
|
||||
|
||||
return contentType != null ? contentType : DEFAULT_CONTENT_TYPE;
|
||||
}
|
||||
|
||||
private static String getFileExtension(File file) {
|
||||
String fileName = file.getName();
|
||||
int index = fileName.lastIndexOf('.');
|
||||
if (index == -1) return "";
|
||||
return fileName.substring(index, fileName.length());
|
||||
}
|
||||
private static String convertToString(Object input) {
|
||||
if (input == null) {
|
||||
return "null";
|
||||
} else if (input instanceof Map) {
|
||||
Gson gson = new GsonBuilder()
|
||||
.excludeFieldsWithModifiers(Modifier.STATIC)
|
||||
.excludeFieldsWithModifiers(Modifier.PROTECTED)
|
||||
.disableHtmlEscaping()
|
||||
.create();
|
||||
return gson.toJson((Map) input);
|
||||
} else if (input instanceof List) {
|
||||
Gson gson = new GsonBuilder()
|
||||
.excludeFieldsWithModifiers(Modifier.STATIC)
|
||||
.excludeFieldsWithModifiers(Modifier.PROTECTED)
|
||||
.disableHtmlEscaping()
|
||||
.create();
|
||||
return gson.toJson((List) input);
|
||||
} else {
|
||||
return input.toString();
|
||||
}
|
||||
}
|
||||
public static int getContentLength(Map<String, Object> allParams, String boundary) throws IOException {
|
||||
int contentLength = 0;
|
||||
for (Map.Entry entry : allParams.entrySet()) {
|
||||
contentLength += ("--" + boundary + "\r\n").length();
|
||||
if (entry.getValue() instanceof File) {
|
||||
File file = (File) entry.getValue();
|
||||
String contentType = getContentTypeForFile(file);
|
||||
contentLength += getLengthAndLog( "Content-Disposition: form-data; name=\"" + entry.getKey() + "\"; filename=\"" + file.getName() + "\"\r\n");
|
||||
if (contentType != null) {
|
||||
contentLength += getLengthAndLog( "Content-Type: " + contentType + "\r\n");
|
||||
}
|
||||
contentLength += getLengthAndLog( "\r\n");
|
||||
contentLength += file.length();
|
||||
contentLength += getLengthAndLog( "\r\n");
|
||||
} else if (entry.getValue() instanceof byte[]) {
|
||||
byte[] bytes = (byte[]) entry.getValue();
|
||||
contentLength += getLengthAndLog( "Content-Disposition: form-data; name=\"" + entry.getKey() + "\"; filename=\"" + "chunkfile" + "\"\r\n");
|
||||
contentLength += bytes.length;
|
||||
contentLength += getLengthAndLog( "\r\n");
|
||||
} else {
|
||||
contentLength += getLengthAndLog( "Content-Disposition: form-data; name=\"" + entry.getKey() + "\"\r\n\r\n");
|
||||
contentLength += getLengthAndLog( convertToString(entry.getValue()));
|
||||
contentLength += getLengthAndLog( "\r\n");
|
||||
}
|
||||
}
|
||||
contentLength += getLengthAndLog( "--" + boundary + "--\r\n");
|
||||
return contentLength;
|
||||
}
|
||||
|
||||
private static int getLengthAndLog(String input) throws IOException {
|
||||
return input.getBytes("UTF-8").length;
|
||||
}
|
||||
|
||||
public static String constructUrlString(String apiUrl, Map<String, Object> allParams) throws IOException {
|
||||
StringBuilder urlString = new StringBuilder(apiUrl);
|
||||
boolean firstEntry = true;
|
||||
for (Map.Entry entry : allParams.entrySet()) {
|
||||
urlString.append((firstEntry ? "?" : "&") + URLEncoder.encode(entry.getKey().toString(), "UTF-8") + "=" + URLEncoder.encode(convertToString(entry.getValue()), "UTF-8"));
|
||||
firstEntry = false;
|
||||
}
|
||||
return urlString.toString();
|
||||
}
|
||||
|
||||
public static ListenableFuture<ResponseWrapper> invoke(okhttp3.OkHttpClient client, okhttp3.Request request) {
|
||||
final SettableFuture<ResponseWrapper> future = SettableFuture.create();
|
||||
client.newCall(request).enqueue(
|
||||
new okhttp3.Callback() {
|
||||
@Override
|
||||
public void onFailure(final okhttp3.Call call, IOException e) {
|
||||
future.setException(
|
||||
new Exception(e)
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResponse(okhttp3.Call call, final okhttp3.Response response) throws IOException {
|
||||
future.set(new ResponseWrapper(response.body().string(), convertToString(response.headers())));
|
||||
}
|
||||
});
|
||||
return future;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.luqj.util;
|
||||
|
||||
public class ResponseWrapper {
|
||||
private String body;
|
||||
private String header;
|
||||
|
||||
public ResponseWrapper(String body, String header) {
|
||||
this.body = body;
|
||||
this.header = header;
|
||||
}
|
||||
|
||||
public String getBody() {
|
||||
return this.body;
|
||||
}
|
||||
|
||||
public String getHeader() {
|
||||
return this.header;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.luqj.util;
|
||||
|
||||
|
||||
import java.security.MessageDigest;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.SortedMap;
|
||||
import java.util.TreeMap;
|
||||
|
||||
public class SignatureUtil {
|
||||
|
||||
/**
|
||||
* 生成签名
|
||||
* @param params 业务参数(不包含signature)
|
||||
* @param apiToken API认证密钥(例如 epusdt_password_xasddawqe)
|
||||
* @return 生成的MD5签名(32位小写)
|
||||
*/
|
||||
public static String generateSignature(Map<String, Object> params, String apiToken) {
|
||||
// 1. 按 ASCII 排序
|
||||
SortedMap<String, Object> sortedParams = new TreeMap<>(params);
|
||||
|
||||
// 2. 拼接成 key=value&key=value
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (Map.Entry<String, Object> entry : sortedParams.entrySet()) {
|
||||
// if(entry.getValue() instanceof Double){
|
||||
// Double val = (Double) entry.getValue();
|
||||
// BigDecimal amount = new BigDecimal(val);
|
||||
// if (entry.getValue() != null) {
|
||||
// sb.append(entry.getKey()).append("=").append( amount.setScale(2, RoundingMode.DOWN).toPlainString()).append("&");
|
||||
// }
|
||||
// }else if(entry.getValue() instanceof BigDecimal){
|
||||
// BigDecimal amount = (BigDecimal) entry.getValue();
|
||||
// if (entry.getValue() != null) {
|
||||
// sb.append(entry.getKey()).append("=").append( amount.setScale(2, RoundingMode.DOWN).toPlainString()).append("&");
|
||||
// }
|
||||
// }else {
|
||||
// if (entry.getValue() != null && !entry.getValue().toString().isEmpty()) {
|
||||
// sb.append(entry.getKey()).append("=").append(entry.getValue()).append("&");
|
||||
// }
|
||||
// }
|
||||
if (entry.getValue() != null && !entry.getValue().toString().isEmpty()) {
|
||||
sb.append(entry.getKey()).append("=").append(entry.getValue()).append("&");
|
||||
}
|
||||
}
|
||||
|
||||
// 去掉最后一个 & 符号
|
||||
sb.setLength(sb.length() - 1);
|
||||
|
||||
// 3. 拼接密钥
|
||||
sb.append(apiToken); // 注意:不是加 &,是直接拼接密钥!!!
|
||||
|
||||
// 4. MD5加密
|
||||
return md5(sb.toString()).toLowerCase();
|
||||
}
|
||||
|
||||
// MD5算法实现
|
||||
private static String md5(String text) {
|
||||
try {
|
||||
MessageDigest md = MessageDigest.getInstance("MD5");
|
||||
byte[] digest = md.digest(text.getBytes("UTF-8"));
|
||||
StringBuilder hexString = new StringBuilder();
|
||||
for (byte b : digest) {
|
||||
hexString.append(String.format("%02x", b & 0xff));
|
||||
}
|
||||
return hexString.toString();
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("MD5 error: " + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
// 测试方法
|
||||
public static void main(String[] args) throws Exception {
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("order_id", System.currentTimeMillis()+"");
|
||||
params.put("app_id", "1");
|
||||
params.put("amount", "64.01");
|
||||
params.put("notify_url", "http://127.0.0.1:5005/transfer/trc/notify");
|
||||
params.put("redirect_url", "http://example.com/redirect"); //pay/checkout-counter/xxx 支付成功后得回调地址
|
||||
|
||||
String token = "lqj";
|
||||
String signature = generateSignature(params, token);
|
||||
//c50576484554b282f6c2b53097217464
|
||||
System.out.println("Signature = " + signature);
|
||||
HttpHelper httpHelper = new HttpHelper();
|
||||
HashMap<String, Object> headers = new HashMap<>();
|
||||
// headers.put("Content-Type", "application/json");
|
||||
params.put("signature", signature);
|
||||
String result =httpHelper.playLoad("post","https://yougc.com/usdt/api/v1/order/create-transaction"
|
||||
,headers,params,"application/json","utf-8");
|
||||
System.out.println(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.luqj.common.mapper.ComCategoryMapper">
|
||||
|
||||
<resultMap type="ComCategory" id="ComCategoryResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="parentIds" column="parent_ids" />
|
||||
<result property="projectType" column="project_type" />
|
||||
<result property="sortNum" column="sort_num" />
|
||||
<result property="iconUrl" column="icon_url" />
|
||||
<result property="picUrl" column="pic_url" />
|
||||
<result property="hasLeaf" column="has_leaf" />
|
||||
<result property="homeShow" column="home_show" />
|
||||
<result property="level" column="level" />
|
||||
<result property="flag" column="flag" />
|
||||
<result property="description" column="description" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="status" column="status" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectComCategoryVo">
|
||||
select id, name, parent_id, parent_ids, project_type, sort_num, icon_url, pic_url, has_leaf, home_show, level, flag, description, create_time, update_time, status from com_category
|
||||
</sql>
|
||||
|
||||
<select id="selectComCategoryList" parameterType="ComCategory" resultMap="ComCategoryResult">
|
||||
<include refid="selectComCategoryVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||
<if test="parentIds != null and parentIds != ''"> and parent_ids = #{parentIds}</if>
|
||||
<if test="projectType != null "> and project_type = #{projectType}</if>
|
||||
<if test="sortNum != null "> and sort_num = #{sortNum}</if>
|
||||
<if test="iconUrl != null and iconUrl != ''"> and icon_url = #{iconUrl}</if>
|
||||
<if test="picUrl != null and picUrl != ''"> and pic_url = #{picUrl}</if>
|
||||
<if test="hasLeaf != null "> and has_leaf = #{hasLeaf}</if>
|
||||
<if test="homeShow != null "> and home_show = #{homeShow}</if>
|
||||
<if test="level != null "> and level = #{level}</if>
|
||||
<if test="flag != null "> and flag = #{flag}</if>
|
||||
<if test="description != null and description != ''"> and description = #{description}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectComCategoryById" parameterType="Long" resultMap="ComCategoryResult">
|
||||
<include refid="selectComCategoryVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertComCategory" parameterType="ComCategory" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into com_category
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">name,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="parentIds != null">parent_ids,</if>
|
||||
<if test="projectType != null">project_type,</if>
|
||||
<if test="sortNum != null">sort_num,</if>
|
||||
<if test="iconUrl != null">icon_url,</if>
|
||||
<if test="picUrl != null">pic_url,</if>
|
||||
<if test="hasLeaf != null">has_leaf,</if>
|
||||
<if test="homeShow != null">home_show,</if>
|
||||
<if test="level != null">level,</if>
|
||||
<if test="flag != null">flag,</if>
|
||||
<if test="description != null">description,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="status != null">status,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="parentIds != null">#{parentIds},</if>
|
||||
<if test="projectType != null">#{projectType},</if>
|
||||
<if test="sortNum != null">#{sortNum},</if>
|
||||
<if test="iconUrl != null">#{iconUrl},</if>
|
||||
<if test="picUrl != null">#{picUrl},</if>
|
||||
<if test="hasLeaf != null">#{hasLeaf},</if>
|
||||
<if test="homeShow != null">#{homeShow},</if>
|
||||
<if test="level != null">#{level},</if>
|
||||
<if test="flag != null">#{flag},</if>
|
||||
<if test="description != null">#{description},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateComCategory" parameterType="ComCategory">
|
||||
update com_category
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null">name = #{name},</if>
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="parentIds != null">parent_ids = #{parentIds},</if>
|
||||
<if test="projectType != null">project_type = #{projectType},</if>
|
||||
<if test="sortNum != null">sort_num = #{sortNum},</if>
|
||||
<if test="iconUrl != null">icon_url = #{iconUrl},</if>
|
||||
<if test="picUrl != null">pic_url = #{picUrl},</if>
|
||||
<if test="hasLeaf != null">has_leaf = #{hasLeaf},</if>
|
||||
<if test="homeShow != null">home_show = #{homeShow},</if>
|
||||
<if test="level != null">level = #{level},</if>
|
||||
<if test="flag != null">flag = #{flag},</if>
|
||||
<if test="description != null">description = #{description},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteComCategoryById" parameterType="Long">
|
||||
delete from com_category where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteComCategoryByIds" parameterType="String">
|
||||
delete from com_category where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.code.modules.qiniu.mapper.QiniuConfigMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?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">
|
||||
<parent>
|
||||
<artifactId>ruoyi</artifactId>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<version>3.4.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>luqj-custom</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<!-- 通用工具-->
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-extension</artifactId>
|
||||
<version>3.4.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-system</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>luqj-common</artifactId>
|
||||
<version>3.4.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomCallback;
|
||||
import com.ruoyi.custom.service.ICustomCallbackService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 海关回查Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/callback")
|
||||
public class CustomCallbackController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomCallbackService customCallbackService;
|
||||
|
||||
/**
|
||||
* 查询海关回查列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:callback:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CustomCallback customCallback)
|
||||
{
|
||||
startPage();
|
||||
List<CustomCallback> list = customCallbackService.selectCustomCallbackList(customCallback);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出海关回查列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:callback:export')")
|
||||
@Log(title = "海关回查", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomCallback customCallback)
|
||||
{
|
||||
List<CustomCallback> list = customCallbackService.selectCustomCallbackList(customCallback);
|
||||
ExcelUtil<CustomCallback> util = new ExcelUtil<CustomCallback>(CustomCallback.class);
|
||||
return util.exportExcel(list, "callback");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取海关回查详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:callback:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customCallbackService.selectCustomCallbackById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增海关回查
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:callback:add')")
|
||||
@Log(title = "海关回查", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomCallback customCallback)
|
||||
{
|
||||
return toAjax(customCallbackService.insertCustomCallback(customCallback));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改海关回查
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:callback:edit')")
|
||||
@Log(title = "海关回查", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomCallback customCallback)
|
||||
{
|
||||
return toAjax(customCallbackService.updateCustomCallback(customCallback));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除海关回查
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:callback:remove')")
|
||||
@Log(title = "海关回查", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customCallbackService.deleteCustomCallbackByIds(ids));
|
||||
}
|
||||
}
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomCountryCode;
|
||||
import com.ruoyi.custom.service.ICustomCountryCodeService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 国别代码Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/country")
|
||||
public class CustomCountryCodeController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomCountryCodeService customCountryCodeService;
|
||||
|
||||
/**
|
||||
* 查询国别代码列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:country:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CustomCountryCode customCountryCode)
|
||||
{
|
||||
startPage();
|
||||
List<CustomCountryCode> list = customCountryCodeService.selectCustomCountryCodeList(customCountryCode);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出国别代码列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:country:export')")
|
||||
@Log(title = "国别代码", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomCountryCode customCountryCode)
|
||||
{
|
||||
List<CustomCountryCode> list = customCountryCodeService.selectCustomCountryCodeList(customCountryCode);
|
||||
ExcelUtil<CustomCountryCode> util = new ExcelUtil<CustomCountryCode>(CustomCountryCode.class);
|
||||
return util.exportExcel(list, "country");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取国别代码详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:country:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customCountryCodeService.selectCustomCountryCodeById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增国别代码
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:country:add')")
|
||||
@Log(title = "国别代码", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomCountryCode customCountryCode)
|
||||
{
|
||||
return toAjax(customCountryCodeService.insertCustomCountryCode(customCountryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改国别代码
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:country:edit')")
|
||||
@Log(title = "国别代码", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomCountryCode customCountryCode)
|
||||
{
|
||||
return toAjax(customCountryCodeService.updateCustomCountryCode(customCountryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除国别代码
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:country:remove')")
|
||||
@Log(title = "国别代码", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customCountryCodeService.deleteCustomCountryCodeByIds(ids));
|
||||
}
|
||||
}
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomDeclarePort;
|
||||
import com.ruoyi.custom.service.ICustomDeclarePortService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 申报口岸Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/declarePort")
|
||||
public class CustomDeclarePortController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomDeclarePortService customDeclarePortService;
|
||||
|
||||
/**
|
||||
* 查询申报口岸列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:declarePort:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CustomDeclarePort customDeclarePort)
|
||||
{
|
||||
startPage();
|
||||
List<CustomDeclarePort> list = customDeclarePortService.selectCustomDeclarePortList(customDeclarePort);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出申报口岸列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:declarePort:export')")
|
||||
@Log(title = "申报口岸", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomDeclarePort customDeclarePort)
|
||||
{
|
||||
List<CustomDeclarePort> list = customDeclarePortService.selectCustomDeclarePortList(customDeclarePort);
|
||||
ExcelUtil<CustomDeclarePort> util = new ExcelUtil<CustomDeclarePort>(CustomDeclarePort.class);
|
||||
return util.exportExcel(list, "declarePort");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取申报口岸详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:declarePort:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customDeclarePortService.selectCustomDeclarePortById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增申报口岸
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:declarePort:add')")
|
||||
@Log(title = "申报口岸", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomDeclarePort customDeclarePort)
|
||||
{
|
||||
return toAjax(customDeclarePortService.insertCustomDeclarePort(customDeclarePort));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改申报口岸
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:declarePort:edit')")
|
||||
@Log(title = "申报口岸", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomDeclarePort customDeclarePort)
|
||||
{
|
||||
return toAjax(customDeclarePortService.updateCustomDeclarePort(customDeclarePort));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除申报口岸
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:declarePort:remove')")
|
||||
@Log(title = "申报口岸", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customDeclarePortService.deleteCustomDeclarePortByIds(ids));
|
||||
}
|
||||
}
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomEnterpriseRecord;
|
||||
import com.ruoyi.custom.service.ICustomEnterpriseRecordService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 企业备案Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/enterpriseRecord")
|
||||
public class CustomEnterpriseRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomEnterpriseRecordService customEnterpriseRecordService;
|
||||
|
||||
/**
|
||||
* 查询企业备案列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:enterpriseRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CustomEnterpriseRecord customEnterpriseRecord)
|
||||
{
|
||||
startPage();
|
||||
List<CustomEnterpriseRecord> list = customEnterpriseRecordService.selectCustomEnterpriseRecordList(customEnterpriseRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出企业备案列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:enterpriseRecord:export')")
|
||||
@Log(title = "企业备案", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomEnterpriseRecord customEnterpriseRecord)
|
||||
{
|
||||
List<CustomEnterpriseRecord> list = customEnterpriseRecordService.selectCustomEnterpriseRecordList(customEnterpriseRecord);
|
||||
ExcelUtil<CustomEnterpriseRecord> util = new ExcelUtil<CustomEnterpriseRecord>(CustomEnterpriseRecord.class);
|
||||
return util.exportExcel(list, "enterpriseRecord");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取企业备案详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:enterpriseRecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customEnterpriseRecordService.selectCustomEnterpriseRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增企业备案
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:enterpriseRecord:add')")
|
||||
@Log(title = "企业备案", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomEnterpriseRecord customEnterpriseRecord)
|
||||
{
|
||||
return toAjax(customEnterpriseRecordService.insertCustomEnterpriseRecord(customEnterpriseRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改企业备案
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:enterpriseRecord:edit')")
|
||||
@Log(title = "企业备案", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomEnterpriseRecord customEnterpriseRecord)
|
||||
{
|
||||
return toAjax(customEnterpriseRecordService.updateCustomEnterpriseRecord(customEnterpriseRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除企业备案
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:enterpriseRecord:remove')")
|
||||
@Log(title = "企业备案", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customEnterpriseRecordService.deleteCustomEnterpriseRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomFlightInfo;
|
||||
import com.ruoyi.custom.service.ICustomFlightInfoService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 航班信息Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/flightInfo")
|
||||
public class CustomFlightInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomFlightInfoService customFlightInfoService;
|
||||
|
||||
/**
|
||||
* 查询航班信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:flightInfo:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CustomFlightInfo customFlightInfo)
|
||||
{
|
||||
startPage();
|
||||
List<CustomFlightInfo> list = customFlightInfoService.selectCustomFlightInfoList(customFlightInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出航班信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:flightInfo:export')")
|
||||
@Log(title = "航班信息", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomFlightInfo customFlightInfo)
|
||||
{
|
||||
List<CustomFlightInfo> list = customFlightInfoService.selectCustomFlightInfoList(customFlightInfo);
|
||||
ExcelUtil<CustomFlightInfo> util = new ExcelUtil<CustomFlightInfo>(CustomFlightInfo.class);
|
||||
return util.exportExcel(list, "flightInfo");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取航班信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:flightInfo:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customFlightInfoService.selectCustomFlightInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增航班信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:flightInfo:add')")
|
||||
@Log(title = "航班信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomFlightInfo customFlightInfo)
|
||||
{
|
||||
return toAjax(customFlightInfoService.insertCustomFlightInfo(customFlightInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改航班信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:flightInfo:edit')")
|
||||
@Log(title = "航班信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomFlightInfo customFlightInfo)
|
||||
{
|
||||
return toAjax(customFlightInfoService.updateCustomFlightInfo(customFlightInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除航班信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:flightInfo:remove')")
|
||||
@Log(title = "航班信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customFlightInfoService.deleteCustomFlightInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomHsCode;
|
||||
import com.ruoyi.custom.service.ICustomHsCodeService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* HS编码Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/hsCode")
|
||||
public class CustomHsCodeController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomHsCodeService customHsCodeService;
|
||||
|
||||
/**
|
||||
* 查询HS编码列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:hsCode:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CustomHsCode customHsCode)
|
||||
{
|
||||
startPage();
|
||||
List<CustomHsCode> list = customHsCodeService.selectCustomHsCodeList(customHsCode);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出HS编码列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:hsCode:export')")
|
||||
@Log(title = "HS编码", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomHsCode customHsCode)
|
||||
{
|
||||
List<CustomHsCode> list = customHsCodeService.selectCustomHsCodeList(customHsCode);
|
||||
ExcelUtil<CustomHsCode> util = new ExcelUtil<CustomHsCode>(CustomHsCode.class);
|
||||
return util.exportExcel(list, "hsCode");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取HS编码详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:hsCode:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customHsCodeService.selectCustomHsCodeById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增HS编码
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:hsCode:add')")
|
||||
@Log(title = "HS编码", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomHsCode customHsCode)
|
||||
{
|
||||
return toAjax(customHsCodeService.insertCustomHsCode(customHsCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改HS编码
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:hsCode:edit')")
|
||||
@Log(title = "HS编码", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomHsCode customHsCode)
|
||||
{
|
||||
return toAjax(customHsCodeService.updateCustomHsCode(customHsCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除HS编码
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:hsCode:remove')")
|
||||
@Log(title = "HS编码", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customHsCodeService.deleteCustomHsCodeByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomInventory;
|
||||
import com.ruoyi.custom.service.ICustomInventoryService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 正面清单Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/inventory")
|
||||
public class CustomInventoryController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomInventoryService customInventoryService;
|
||||
|
||||
/**
|
||||
* 查询正面清单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:inventory:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CustomInventory customInventory)
|
||||
{
|
||||
startPage();
|
||||
List<CustomInventory> list = customInventoryService.selectCustomInventoryList(customInventory);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出正面清单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:inventory:export')")
|
||||
@Log(title = "正面清单", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomInventory customInventory)
|
||||
{
|
||||
List<CustomInventory> list = customInventoryService.selectCustomInventoryList(customInventory);
|
||||
ExcelUtil<CustomInventory> util = new ExcelUtil<CustomInventory>(CustomInventory.class);
|
||||
return util.exportExcel(list, "inventory");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取正面清单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:inventory:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customInventoryService.selectCustomInventoryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增正面清单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:inventory:add')")
|
||||
@Log(title = "正面清单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomInventory customInventory)
|
||||
{
|
||||
return toAjax(customInventoryService.insertCustomInventory(customInventory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改正面清单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:inventory:edit')")
|
||||
@Log(title = "正面清单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomInventory customInventory)
|
||||
{
|
||||
return toAjax(customInventoryService.updateCustomInventory(customInventory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除正面清单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:inventory:remove')")
|
||||
@Log(title = "正面清单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customInventoryService.deleteCustomInventoryByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomOrder;
|
||||
import com.ruoyi.custom.service.ICustomOrderService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 备案订单Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/order")
|
||||
public class CustomOrderController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomOrderService customOrderService;
|
||||
|
||||
/**
|
||||
* 查询备案订单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:order:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CustomOrder customOrder)
|
||||
{
|
||||
startPage();
|
||||
List<CustomOrder> list = customOrderService.selectCustomOrderList(customOrder);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出备案订单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:order:export')")
|
||||
@Log(title = "备案订单", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomOrder customOrder)
|
||||
{
|
||||
List<CustomOrder> list = customOrderService.selectCustomOrderList(customOrder);
|
||||
ExcelUtil<CustomOrder> util = new ExcelUtil<CustomOrder>(CustomOrder.class);
|
||||
return util.exportExcel(list, "order");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取备案订单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:order:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customOrderService.selectCustomOrderById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增备案订单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:order:add')")
|
||||
@Log(title = "备案订单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomOrder customOrder)
|
||||
{
|
||||
return toAjax(customOrderService.insertCustomOrder(customOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改备案订单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:order:edit')")
|
||||
@Log(title = "备案订单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomOrder customOrder)
|
||||
{
|
||||
return toAjax(customOrderService.updateCustomOrder(customOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除备案订单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:order:remove')")
|
||||
@Log(title = "备案订单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customOrderService.deleteCustomOrderByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomOrderItem;
|
||||
import com.ruoyi.custom.service.ICustomOrderItemService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 备案订单项Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/orderItem")
|
||||
public class CustomOrderItemController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomOrderItemService customOrderItemService;
|
||||
|
||||
/**
|
||||
* 查询备案订单项列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:orderItem:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CustomOrderItem customOrderItem)
|
||||
{
|
||||
startPage();
|
||||
List<CustomOrderItem> list = customOrderItemService.selectCustomOrderItemList(customOrderItem);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出备案订单项列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:orderItem:export')")
|
||||
@Log(title = "备案订单项", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomOrderItem customOrderItem)
|
||||
{
|
||||
List<CustomOrderItem> list = customOrderItemService.selectCustomOrderItemList(customOrderItem);
|
||||
ExcelUtil<CustomOrderItem> util = new ExcelUtil<CustomOrderItem>(CustomOrderItem.class);
|
||||
return util.exportExcel(list, "orderItem");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取备案订单项详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:orderItem:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customOrderItemService.selectCustomOrderItemById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增备案订单项
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:orderItem:add')")
|
||||
@Log(title = "备案订单项", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomOrderItem customOrderItem)
|
||||
{
|
||||
return toAjax(customOrderItemService.insertCustomOrderItem(customOrderItem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改备案订单项
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:orderItem:edit')")
|
||||
@Log(title = "备案订单项", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomOrderItem customOrderItem)
|
||||
{
|
||||
return toAjax(customOrderItemService.updateCustomOrderItem(customOrderItem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除备案订单项
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:orderItem:remove')")
|
||||
@Log(title = "备案订单项", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customOrderItemService.deleteCustomOrderItemByIds(ids));
|
||||
}
|
||||
}
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomParcelNumber;
|
||||
import com.ruoyi.custom.service.ICustomParcelNumberService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 行邮税号Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/parcelNumber")
|
||||
public class CustomParcelNumberController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomParcelNumberService customParcelNumberService;
|
||||
|
||||
/**
|
||||
* 查询行邮税号列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:parcelNumber:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CustomParcelNumber customParcelNumber)
|
||||
{
|
||||
startPage();
|
||||
List<CustomParcelNumber> list = customParcelNumberService.selectCustomParcelNumberList(customParcelNumber);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出行邮税号列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:parcelNumber:export')")
|
||||
@Log(title = "行邮税号", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomParcelNumber customParcelNumber)
|
||||
{
|
||||
List<CustomParcelNumber> list = customParcelNumberService.selectCustomParcelNumberList(customParcelNumber);
|
||||
ExcelUtil<CustomParcelNumber> util = new ExcelUtil<CustomParcelNumber>(CustomParcelNumber.class);
|
||||
return util.exportExcel(list, "parcelNumber");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取行邮税号详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:parcelNumber:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customParcelNumberService.selectCustomParcelNumberById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增行邮税号
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:parcelNumber:add')")
|
||||
@Log(title = "行邮税号", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomParcelNumber customParcelNumber)
|
||||
{
|
||||
return toAjax(customParcelNumberService.insertCustomParcelNumber(customParcelNumber));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改行邮税号
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:parcelNumber:edit')")
|
||||
@Log(title = "行邮税号", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomParcelNumber customParcelNumber)
|
||||
{
|
||||
return toAjax(customParcelNumberService.updateCustomParcelNumber(customParcelNumber));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除行邮税号
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:parcelNumber:remove')")
|
||||
@Log(title = "行邮税号", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customParcelNumberService.deleteCustomParcelNumberByIds(ids));
|
||||
}
|
||||
}
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomProductRecord;
|
||||
import com.ruoyi.custom.service.ICustomProductRecordService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 商品备案Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/productRecord")
|
||||
public class CustomProductRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomProductRecordService customProductRecordService;
|
||||
|
||||
/**
|
||||
* 查询商品备案列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:productRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CustomProductRecord customProductRecord)
|
||||
{
|
||||
startPage();
|
||||
List<CustomProductRecord> list = customProductRecordService.selectCustomProductRecordList(customProductRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出商品备案列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:productRecord:export')")
|
||||
@Log(title = "商品备案", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomProductRecord customProductRecord)
|
||||
{
|
||||
List<CustomProductRecord> list = customProductRecordService.selectCustomProductRecordList(customProductRecord);
|
||||
ExcelUtil<CustomProductRecord> util = new ExcelUtil<CustomProductRecord>(CustomProductRecord.class);
|
||||
return util.exportExcel(list, "productRecord");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品备案详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:productRecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customProductRecordService.selectCustomProductRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品备案
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:productRecord:add')")
|
||||
@Log(title = "商品备案", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomProductRecord customProductRecord)
|
||||
{
|
||||
return toAjax(customProductRecordService.insertCustomProductRecord(customProductRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品备案
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:productRecord:edit')")
|
||||
@Log(title = "商品备案", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomProductRecord customProductRecord)
|
||||
{
|
||||
return toAjax(customProductRecordService.updateCustomProductRecord(customProductRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品备案
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:productRecord:remove')")
|
||||
@Log(title = "商品备案", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customProductRecordService.deleteCustomProductRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomRegionCode;
|
||||
import com.ruoyi.custom.service.ICustomRegionCodeService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
|
||||
/**
|
||||
* 国家行政区划代码Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/regionCode")
|
||||
public class CustomRegionCodeController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomRegionCodeService customRegionCodeService;
|
||||
|
||||
/**
|
||||
* 查询国家行政区划代码列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:regionCode:list')")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(CustomRegionCode customRegionCode)
|
||||
{
|
||||
List<CustomRegionCode> list = customRegionCodeService.selectCustomRegionCodeList(customRegionCode);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出国家行政区划代码列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:regionCode:export')")
|
||||
@Log(title = "国家行政区划代码", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomRegionCode customRegionCode)
|
||||
{
|
||||
List<CustomRegionCode> list = customRegionCodeService.selectCustomRegionCodeList(customRegionCode);
|
||||
ExcelUtil<CustomRegionCode> util = new ExcelUtil<CustomRegionCode>(CustomRegionCode.class);
|
||||
return util.exportExcel(list, "regionCode");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取国家行政区划代码详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:regionCode:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customRegionCodeService.selectCustomRegionCodeById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增国家行政区划代码
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:regionCode:add')")
|
||||
@Log(title = "国家行政区划代码", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomRegionCode customRegionCode)
|
||||
{
|
||||
return toAjax(customRegionCodeService.insertCustomRegionCode(customRegionCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改国家行政区划代码
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:regionCode:edit')")
|
||||
@Log(title = "国家行政区划代码", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomRegionCode customRegionCode)
|
||||
{
|
||||
return toAjax(customRegionCodeService.updateCustomRegionCode(customRegionCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除国家行政区划代码
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:regionCode:remove')")
|
||||
@Log(title = "国家行政区划代码", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customRegionCodeService.deleteCustomRegionCodeByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomUnitCode;
|
||||
import com.ruoyi.custom.service.ICustomUnitCodeService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 计量单位代码Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/unitCode")
|
||||
public class CustomUnitCodeController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomUnitCodeService customUnitCodeService;
|
||||
|
||||
/**
|
||||
* 查询计量单位代码列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:unitCode:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CustomUnitCode customUnitCode)
|
||||
{
|
||||
startPage();
|
||||
List<CustomUnitCode> list = customUnitCodeService.selectCustomUnitCodeList(customUnitCode);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出计量单位代码列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:unitCode:export')")
|
||||
@Log(title = "计量单位代码", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomUnitCode customUnitCode)
|
||||
{
|
||||
List<CustomUnitCode> list = customUnitCodeService.selectCustomUnitCodeList(customUnitCode);
|
||||
ExcelUtil<CustomUnitCode> util = new ExcelUtil<CustomUnitCode>(CustomUnitCode.class);
|
||||
return util.exportExcel(list, "unitCode");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取计量单位代码详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:unitCode:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customUnitCodeService.selectCustomUnitCodeById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增计量单位代码
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:unitCode:add')")
|
||||
@Log(title = "计量单位代码", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomUnitCode customUnitCode)
|
||||
{
|
||||
return toAjax(customUnitCodeService.insertCustomUnitCode(customUnitCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改计量单位代码
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:unitCode:edit')")
|
||||
@Log(title = "计量单位代码", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomUnitCode customUnitCode)
|
||||
{
|
||||
return toAjax(customUnitCodeService.updateCustomUnitCode(customUnitCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除计量单位代码
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:unitCode:remove')")
|
||||
@Log(title = "计量单位代码", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customUnitCodeService.deleteCustomUnitCodeByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.custom.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.custom.domain.CustomWarehouse;
|
||||
import com.ruoyi.custom.service.ICustomWarehouseService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 仓库Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/custom/warehouse")
|
||||
public class CustomWarehouseController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICustomWarehouseService customWarehouseService;
|
||||
|
||||
/**
|
||||
* 查询仓库列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:warehouse:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CustomWarehouse customWarehouse)
|
||||
{
|
||||
startPage();
|
||||
List<CustomWarehouse> list = customWarehouseService.selectCustomWarehouseList(customWarehouse);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出仓库列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:warehouse:export')")
|
||||
@Log(title = "仓库", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(CustomWarehouse customWarehouse)
|
||||
{
|
||||
List<CustomWarehouse> list = customWarehouseService.selectCustomWarehouseList(customWarehouse);
|
||||
ExcelUtil<CustomWarehouse> util = new ExcelUtil<CustomWarehouse>(CustomWarehouse.class);
|
||||
return util.exportExcel(list, "warehouse");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取仓库详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:warehouse:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(customWarehouseService.selectCustomWarehouseById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增仓库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:warehouse:add')")
|
||||
@Log(title = "仓库", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CustomWarehouse customWarehouse)
|
||||
{
|
||||
return toAjax(customWarehouseService.insertCustomWarehouse(customWarehouse));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改仓库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:warehouse:edit')")
|
||||
@Log(title = "仓库", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CustomWarehouse customWarehouse)
|
||||
{
|
||||
return toAjax(customWarehouseService.updateCustomWarehouse(customWarehouse));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除仓库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('custom:warehouse:remove')")
|
||||
@Log(title = "仓库", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(customWarehouseService.deleteCustomWarehouseByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 海关回查对象 custom_callback
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomCallback extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 用户代码 */
|
||||
@Excel(name = "用户代码")
|
||||
private Long userId;
|
||||
|
||||
/** 海关备案代码 */
|
||||
@Excel(name = "海关备案代码")
|
||||
private String customsCode;
|
||||
|
||||
/** 申报订单号 */
|
||||
@Excel(name = "申报订单号")
|
||||
private String declareOrderNo;
|
||||
|
||||
/** 会话ID */
|
||||
@Excel(name = "会话ID")
|
||||
private String sessionId;
|
||||
|
||||
/** 会话时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "会话时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date serviceTime;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Integer status;
|
||||
|
||||
/** 添加时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date addTime;
|
||||
|
||||
/** 上传结果 */
|
||||
@Excel(name = "上传结果")
|
||||
private String postResult;
|
||||
|
||||
/** 上传次数 */
|
||||
@Excel(name = "上传次数")
|
||||
private Long sendNumber;
|
||||
|
||||
/** 上传时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date sendTime;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setCustomsCode(String customsCode)
|
||||
{
|
||||
this.customsCode = customsCode;
|
||||
}
|
||||
|
||||
public String getCustomsCode()
|
||||
{
|
||||
return customsCode;
|
||||
}
|
||||
public void setDeclareOrderNo(String declareOrderNo)
|
||||
{
|
||||
this.declareOrderNo = declareOrderNo;
|
||||
}
|
||||
|
||||
public String getDeclareOrderNo()
|
||||
{
|
||||
return declareOrderNo;
|
||||
}
|
||||
public void setSessionId(String sessionId)
|
||||
{
|
||||
this.sessionId = sessionId;
|
||||
}
|
||||
|
||||
public String getSessionId()
|
||||
{
|
||||
return sessionId;
|
||||
}
|
||||
public void setServiceTime(Date serviceTime)
|
||||
{
|
||||
this.serviceTime = serviceTime;
|
||||
}
|
||||
|
||||
public Date getServiceTime()
|
||||
{
|
||||
return serviceTime;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setAddTime(Date addTime)
|
||||
{
|
||||
this.addTime = addTime;
|
||||
}
|
||||
|
||||
public Date getAddTime()
|
||||
{
|
||||
return addTime;
|
||||
}
|
||||
public void setPostResult(String postResult)
|
||||
{
|
||||
this.postResult = postResult;
|
||||
}
|
||||
|
||||
public String getPostResult()
|
||||
{
|
||||
return postResult;
|
||||
}
|
||||
public void setSendNumber(Long sendNumber)
|
||||
{
|
||||
this.sendNumber = sendNumber;
|
||||
}
|
||||
|
||||
public Long getSendNumber()
|
||||
{
|
||||
return sendNumber;
|
||||
}
|
||||
public void setSendTime(Date sendTime)
|
||||
{
|
||||
this.sendTime = sendTime;
|
||||
}
|
||||
|
||||
public Date getSendTime()
|
||||
{
|
||||
return sendTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("userId", getUserId())
|
||||
.append("customsCode", getCustomsCode())
|
||||
.append("declareOrderNo", getDeclareOrderNo())
|
||||
.append("sessionId", getSessionId())
|
||||
.append("serviceTime", getServiceTime())
|
||||
.append("status", getStatus())
|
||||
.append("addTime", getAddTime())
|
||||
.append("postResult", getPostResult())
|
||||
.append("sendNumber", getSendNumber())
|
||||
.append("sendTime", getSendTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 海关回查对象 custom_callback
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_callback")
|
||||
public class CustomCallbackPlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
/** 用户代码 */
|
||||
@Excel(name = "用户代码")
|
||||
private Long userId;
|
||||
/** 海关备案代码 */
|
||||
@Excel(name = "海关备案代码")
|
||||
private String customsCode;
|
||||
/** 申报订单号 */
|
||||
@Excel(name = "申报订单号")
|
||||
private String declareOrderNo;
|
||||
/** 会话ID */
|
||||
@Excel(name = "会话ID")
|
||||
private String sessionId;
|
||||
/** 会话时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "会话时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date serviceTime;
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Integer status;
|
||||
/** 添加时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date addTime;
|
||||
/** 上传结果 */
|
||||
@Excel(name = "上传结果")
|
||||
private String postResult;
|
||||
/** 上传次数 */
|
||||
@Excel(name = "上传次数")
|
||||
private Long sendNumber;
|
||||
/** 上传时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date sendTime;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setCustomsCode(String customsCode)
|
||||
{
|
||||
this.customsCode = customsCode;
|
||||
}
|
||||
|
||||
public String getCustomsCode()
|
||||
{
|
||||
return customsCode;
|
||||
}
|
||||
public void setDeclareOrderNo(String declareOrderNo)
|
||||
{
|
||||
this.declareOrderNo = declareOrderNo;
|
||||
}
|
||||
|
||||
public String getDeclareOrderNo()
|
||||
{
|
||||
return declareOrderNo;
|
||||
}
|
||||
public void setSessionId(String sessionId)
|
||||
{
|
||||
this.sessionId = sessionId;
|
||||
}
|
||||
|
||||
public String getSessionId()
|
||||
{
|
||||
return sessionId;
|
||||
}
|
||||
public void setServiceTime(Date serviceTime)
|
||||
{
|
||||
this.serviceTime = serviceTime;
|
||||
}
|
||||
|
||||
public Date getServiceTime()
|
||||
{
|
||||
return serviceTime;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setAddTime(Date addTime)
|
||||
{
|
||||
this.addTime = addTime;
|
||||
}
|
||||
|
||||
public Date getAddTime()
|
||||
{
|
||||
return addTime;
|
||||
}
|
||||
public void setPostResult(String postResult)
|
||||
{
|
||||
this.postResult = postResult;
|
||||
}
|
||||
|
||||
public String getPostResult()
|
||||
{
|
||||
return postResult;
|
||||
}
|
||||
public void setSendNumber(Long sendNumber)
|
||||
{
|
||||
this.sendNumber = sendNumber;
|
||||
}
|
||||
|
||||
public Long getSendNumber()
|
||||
{
|
||||
return sendNumber;
|
||||
}
|
||||
public void setSendTime(Date sendTime)
|
||||
{
|
||||
this.sendTime = sendTime;
|
||||
}
|
||||
|
||||
public Date getSendTime()
|
||||
{
|
||||
return sendTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("userId", getUserId())
|
||||
.append("customsCode", getCustomsCode())
|
||||
.append("declareOrderNo", getDeclareOrderNo())
|
||||
.append("sessionId", getSessionId())
|
||||
.append("serviceTime", getServiceTime())
|
||||
.append("status", getStatus())
|
||||
.append("addTime", getAddTime())
|
||||
.append("postResult", getPostResult())
|
||||
.append("sendNumber", getSendNumber())
|
||||
.append("sendTime", getSendTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 国别代码对象 custom_country_code
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomCountryCode extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 代码 */
|
||||
@Excel(name = "代码")
|
||||
private String code;
|
||||
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("code", getCode())
|
||||
.append("name", getName())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 国别代码对象 custom_country_code
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_country_code")
|
||||
public class CustomCountryCodePlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
/** 代码 */
|
||||
@Excel(name = "代码")
|
||||
private String code;
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("code", getCode())
|
||||
.append("name", getName())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 申报口岸对象 custom_declare_port
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomDeclarePort extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 关区名称 */
|
||||
@Excel(name = "关区名称")
|
||||
private String name;
|
||||
|
||||
/** 关区编码 */
|
||||
@Excel(name = "关区编码")
|
||||
private String code;
|
||||
|
||||
/** 描述 */
|
||||
@Excel(name = "描述")
|
||||
private String describe;
|
||||
|
||||
/** 直属关区 */
|
||||
@Excel(name = "直属关区")
|
||||
private String directlyName;
|
||||
|
||||
/** 简称 */
|
||||
@Excel(name = "简称")
|
||||
private String shortName;
|
||||
|
||||
/** 是否使用 */
|
||||
@Excel(name = "是否使用")
|
||||
private Integer isUse;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setDescribe(String describe)
|
||||
{
|
||||
this.describe = describe;
|
||||
}
|
||||
|
||||
public String getDescribe()
|
||||
{
|
||||
return describe;
|
||||
}
|
||||
public void setDirectlyName(String directlyName)
|
||||
{
|
||||
this.directlyName = directlyName;
|
||||
}
|
||||
|
||||
public String getDirectlyName()
|
||||
{
|
||||
return directlyName;
|
||||
}
|
||||
public void setShortName(String shortName)
|
||||
{
|
||||
this.shortName = shortName;
|
||||
}
|
||||
|
||||
public String getShortName()
|
||||
{
|
||||
return shortName;
|
||||
}
|
||||
public void setIsUse(Integer isUse)
|
||||
{
|
||||
this.isUse = isUse;
|
||||
}
|
||||
|
||||
public Integer getIsUse()
|
||||
{
|
||||
return isUse;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("code", getCode())
|
||||
.append("describe", getDescribe())
|
||||
.append("directlyName", getDirectlyName())
|
||||
.append("shortName", getShortName())
|
||||
.append("isUse", getIsUse())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 申报口岸对象 custom_declare_port
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_declare_port")
|
||||
public class CustomDeclarePortPlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
/** 关区名称 */
|
||||
@Excel(name = "关区名称")
|
||||
private String name;
|
||||
/** 关区编码 */
|
||||
@Excel(name = "关区编码")
|
||||
private String code;
|
||||
/** 描述 */
|
||||
@Excel(name = "描述")
|
||||
private String describe;
|
||||
/** 直属关区 */
|
||||
@Excel(name = "直属关区")
|
||||
private String directlyName;
|
||||
/** 简称 */
|
||||
@Excel(name = "简称")
|
||||
private String shortName;
|
||||
/** 是否使用 */
|
||||
@Excel(name = "是否使用")
|
||||
private Integer isUse;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setDescribe(String describe)
|
||||
{
|
||||
this.describe = describe;
|
||||
}
|
||||
|
||||
public String getDescribe()
|
||||
{
|
||||
return describe;
|
||||
}
|
||||
public void setDirectlyName(String directlyName)
|
||||
{
|
||||
this.directlyName = directlyName;
|
||||
}
|
||||
|
||||
public String getDirectlyName()
|
||||
{
|
||||
return directlyName;
|
||||
}
|
||||
public void setShortName(String shortName)
|
||||
{
|
||||
this.shortName = shortName;
|
||||
}
|
||||
|
||||
public String getShortName()
|
||||
{
|
||||
return shortName;
|
||||
}
|
||||
public void setIsUse(Integer isUse)
|
||||
{
|
||||
this.isUse = isUse;
|
||||
}
|
||||
|
||||
public Integer getIsUse()
|
||||
{
|
||||
return isUse;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("code", getCode())
|
||||
.append("describe", getDescribe())
|
||||
.append("directlyName", getDirectlyName())
|
||||
.append("shortName", getShortName())
|
||||
.append("isUse", getIsUse())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,248 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 企业备案对象 custom_enterprise_record
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomEnterpriseRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 申报口岸Id */
|
||||
@Excel(name = "申报口岸Id")
|
||||
private Long declarePortId;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 电商平台域名 */
|
||||
@Excel(name = "电商平台域名")
|
||||
private String domainName;
|
||||
|
||||
/** 备案企业名称 */
|
||||
@Excel(name = "备案企业名称")
|
||||
private String enterpriseName;
|
||||
|
||||
/** 电商平台简称 */
|
||||
@Excel(name = "电商平台简称")
|
||||
private String platformShort;
|
||||
|
||||
/** 商家简称 */
|
||||
@Excel(name = "商家简称")
|
||||
private String businessShort;
|
||||
|
||||
/** 统一信用代码 */
|
||||
@Excel(name = "统一信用代码")
|
||||
private String creditCode;
|
||||
|
||||
/** 海关备案编码 */
|
||||
@Excel(name = "海关备案编码")
|
||||
private String customsCode;
|
||||
|
||||
/** 国检备案编码 */
|
||||
@Excel(name = "国检备案编码")
|
||||
private String nationalCode;
|
||||
|
||||
/** 海关支付单查询加密URL */
|
||||
@Excel(name = "海关支付单查询加密URL")
|
||||
private String encryptUrl;
|
||||
|
||||
/** 担保企业代码 */
|
||||
@Excel(name = "担保企业代码")
|
||||
private String geCode;
|
||||
|
||||
/** 传输报文编码 */
|
||||
@Excel(name = "传输报文编码")
|
||||
private String messageCode;
|
||||
|
||||
/** 报文传输安全密钥 */
|
||||
@Excel(name = "报文传输安全密钥")
|
||||
private String kjdsKey;
|
||||
|
||||
/** FTP网址 */
|
||||
@Excel(name = "FTP网址")
|
||||
private String ftpServerIp;
|
||||
|
||||
/** FTP密码 */
|
||||
@Excel(name = "FTP密码")
|
||||
private String ftpPassword;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDeclarePortId(Long declarePortId)
|
||||
{
|
||||
this.declarePortId = declarePortId;
|
||||
}
|
||||
|
||||
public Long getDeclarePortId()
|
||||
{
|
||||
return declarePortId;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setDomainName(String domainName)
|
||||
{
|
||||
this.domainName = domainName;
|
||||
}
|
||||
|
||||
public String getDomainName()
|
||||
{
|
||||
return domainName;
|
||||
}
|
||||
public void setEnterpriseName(String enterpriseName)
|
||||
{
|
||||
this.enterpriseName = enterpriseName;
|
||||
}
|
||||
|
||||
public String getEnterpriseName()
|
||||
{
|
||||
return enterpriseName;
|
||||
}
|
||||
public void setPlatformShort(String platformShort)
|
||||
{
|
||||
this.platformShort = platformShort;
|
||||
}
|
||||
|
||||
public String getPlatformShort()
|
||||
{
|
||||
return platformShort;
|
||||
}
|
||||
public void setBusinessShort(String businessShort)
|
||||
{
|
||||
this.businessShort = businessShort;
|
||||
}
|
||||
|
||||
public String getBusinessShort()
|
||||
{
|
||||
return businessShort;
|
||||
}
|
||||
public void setCreditCode(String creditCode)
|
||||
{
|
||||
this.creditCode = creditCode;
|
||||
}
|
||||
|
||||
public String getCreditCode()
|
||||
{
|
||||
return creditCode;
|
||||
}
|
||||
public void setCustomsCode(String customsCode)
|
||||
{
|
||||
this.customsCode = customsCode;
|
||||
}
|
||||
|
||||
public String getCustomsCode()
|
||||
{
|
||||
return customsCode;
|
||||
}
|
||||
public void setNationalCode(String nationalCode)
|
||||
{
|
||||
this.nationalCode = nationalCode;
|
||||
}
|
||||
|
||||
public String getNationalCode()
|
||||
{
|
||||
return nationalCode;
|
||||
}
|
||||
public void setEncryptUrl(String encryptUrl)
|
||||
{
|
||||
this.encryptUrl = encryptUrl;
|
||||
}
|
||||
|
||||
public String getEncryptUrl()
|
||||
{
|
||||
return encryptUrl;
|
||||
}
|
||||
public void setGeCode(String geCode)
|
||||
{
|
||||
this.geCode = geCode;
|
||||
}
|
||||
|
||||
public String getGeCode()
|
||||
{
|
||||
return geCode;
|
||||
}
|
||||
public void setMessageCode(String messageCode)
|
||||
{
|
||||
this.messageCode = messageCode;
|
||||
}
|
||||
|
||||
public String getMessageCode()
|
||||
{
|
||||
return messageCode;
|
||||
}
|
||||
public void setKjdsKey(String kjdsKey)
|
||||
{
|
||||
this.kjdsKey = kjdsKey;
|
||||
}
|
||||
|
||||
public String getKjdsKey()
|
||||
{
|
||||
return kjdsKey;
|
||||
}
|
||||
public void setFtpServerIp(String ftpServerIp)
|
||||
{
|
||||
this.ftpServerIp = ftpServerIp;
|
||||
}
|
||||
|
||||
public String getFtpServerIp()
|
||||
{
|
||||
return ftpServerIp;
|
||||
}
|
||||
public void setFtpPassword(String ftpPassword)
|
||||
{
|
||||
this.ftpPassword = ftpPassword;
|
||||
}
|
||||
|
||||
public String getFtpPassword()
|
||||
{
|
||||
return ftpPassword;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("declarePortId", getDeclarePortId())
|
||||
.append("userId", getUserId())
|
||||
.append("domainName", getDomainName())
|
||||
.append("enterpriseName", getEnterpriseName())
|
||||
.append("platformShort", getPlatformShort())
|
||||
.append("businessShort", getBusinessShort())
|
||||
.append("creditCode", getCreditCode())
|
||||
.append("customsCode", getCustomsCode())
|
||||
.append("nationalCode", getNationalCode())
|
||||
.append("encryptUrl", getEncryptUrl())
|
||||
.append("geCode", getGeCode())
|
||||
.append("messageCode", getMessageCode())
|
||||
.append("kjdsKey", getKjdsKey())
|
||||
.append("ftpServerIp", getFtpServerIp())
|
||||
.append("ftpPassword", getFtpPassword())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 企业备案对象 custom_enterprise_record
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_enterprise_record")
|
||||
public class CustomEnterpriseRecordPlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
/** 申报口岸Id */
|
||||
@Excel(name = "申报口岸Id")
|
||||
private Long declarePortId;
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
/** 电商平台域名 */
|
||||
@Excel(name = "电商平台域名")
|
||||
private String domainName;
|
||||
/** 备案企业名称 */
|
||||
@Excel(name = "备案企业名称")
|
||||
private String enterpriseName;
|
||||
/** 电商平台简称 */
|
||||
@Excel(name = "电商平台简称")
|
||||
private String platformShort;
|
||||
/** 商家简称 */
|
||||
@Excel(name = "商家简称")
|
||||
private String businessShort;
|
||||
/** 统一信用代码 */
|
||||
@Excel(name = "统一信用代码")
|
||||
private String creditCode;
|
||||
/** 海关备案编码 */
|
||||
@Excel(name = "海关备案编码")
|
||||
private String customsCode;
|
||||
/** 国检备案编码 */
|
||||
@Excel(name = "国检备案编码")
|
||||
private String nationalCode;
|
||||
/** 海关支付单查询加密URL */
|
||||
@Excel(name = "海关支付单查询加密URL")
|
||||
private String encryptUrl;
|
||||
/** 担保企业代码 */
|
||||
@Excel(name = "担保企业代码")
|
||||
private String geCode;
|
||||
/** 传输报文编码 */
|
||||
@Excel(name = "传输报文编码")
|
||||
private String messageCode;
|
||||
/** 报文传输安全密钥 */
|
||||
@Excel(name = "报文传输安全密钥")
|
||||
private String kjdsKey;
|
||||
/** FTP网址 */
|
||||
@Excel(name = "FTP网址")
|
||||
private String ftpServerIp;
|
||||
/** FTP密码 */
|
||||
@Excel(name = "FTP密码")
|
||||
private String ftpPassword;
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDeclarePortId(Long declarePortId)
|
||||
{
|
||||
this.declarePortId = declarePortId;
|
||||
}
|
||||
|
||||
public Long getDeclarePortId()
|
||||
{
|
||||
return declarePortId;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setDomainName(String domainName)
|
||||
{
|
||||
this.domainName = domainName;
|
||||
}
|
||||
|
||||
public String getDomainName()
|
||||
{
|
||||
return domainName;
|
||||
}
|
||||
public void setEnterpriseName(String enterpriseName)
|
||||
{
|
||||
this.enterpriseName = enterpriseName;
|
||||
}
|
||||
|
||||
public String getEnterpriseName()
|
||||
{
|
||||
return enterpriseName;
|
||||
}
|
||||
public void setPlatformShort(String platformShort)
|
||||
{
|
||||
this.platformShort = platformShort;
|
||||
}
|
||||
|
||||
public String getPlatformShort()
|
||||
{
|
||||
return platformShort;
|
||||
}
|
||||
public void setBusinessShort(String businessShort)
|
||||
{
|
||||
this.businessShort = businessShort;
|
||||
}
|
||||
|
||||
public String getBusinessShort()
|
||||
{
|
||||
return businessShort;
|
||||
}
|
||||
public void setCreditCode(String creditCode)
|
||||
{
|
||||
this.creditCode = creditCode;
|
||||
}
|
||||
|
||||
public String getCreditCode()
|
||||
{
|
||||
return creditCode;
|
||||
}
|
||||
public void setCustomsCode(String customsCode)
|
||||
{
|
||||
this.customsCode = customsCode;
|
||||
}
|
||||
|
||||
public String getCustomsCode()
|
||||
{
|
||||
return customsCode;
|
||||
}
|
||||
public void setNationalCode(String nationalCode)
|
||||
{
|
||||
this.nationalCode = nationalCode;
|
||||
}
|
||||
|
||||
public String getNationalCode()
|
||||
{
|
||||
return nationalCode;
|
||||
}
|
||||
public void setEncryptUrl(String encryptUrl)
|
||||
{
|
||||
this.encryptUrl = encryptUrl;
|
||||
}
|
||||
|
||||
public String getEncryptUrl()
|
||||
{
|
||||
return encryptUrl;
|
||||
}
|
||||
public void setGeCode(String geCode)
|
||||
{
|
||||
this.geCode = geCode;
|
||||
}
|
||||
|
||||
public String getGeCode()
|
||||
{
|
||||
return geCode;
|
||||
}
|
||||
public void setMessageCode(String messageCode)
|
||||
{
|
||||
this.messageCode = messageCode;
|
||||
}
|
||||
|
||||
public String getMessageCode()
|
||||
{
|
||||
return messageCode;
|
||||
}
|
||||
public void setKjdsKey(String kjdsKey)
|
||||
{
|
||||
this.kjdsKey = kjdsKey;
|
||||
}
|
||||
|
||||
public String getKjdsKey()
|
||||
{
|
||||
return kjdsKey;
|
||||
}
|
||||
public void setFtpServerIp(String ftpServerIp)
|
||||
{
|
||||
this.ftpServerIp = ftpServerIp;
|
||||
}
|
||||
|
||||
public String getFtpServerIp()
|
||||
{
|
||||
return ftpServerIp;
|
||||
}
|
||||
public void setFtpPassword(String ftpPassword)
|
||||
{
|
||||
this.ftpPassword = ftpPassword;
|
||||
}
|
||||
|
||||
public String getFtpPassword()
|
||||
{
|
||||
return ftpPassword;
|
||||
}
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("declarePortId", getDeclarePortId())
|
||||
.append("userId", getUserId())
|
||||
.append("domainName", getDomainName())
|
||||
.append("enterpriseName", getEnterpriseName())
|
||||
.append("platformShort", getPlatformShort())
|
||||
.append("businessShort", getBusinessShort())
|
||||
.append("creditCode", getCreditCode())
|
||||
.append("customsCode", getCustomsCode())
|
||||
.append("nationalCode", getNationalCode())
|
||||
.append("encryptUrl", getEncryptUrl())
|
||||
.append("geCode", getGeCode())
|
||||
.append("messageCode", getMessageCode())
|
||||
.append("kjdsKey", getKjdsKey())
|
||||
.append("ftpServerIp", getFtpServerIp())
|
||||
.append("ftpPassword", getFtpPassword())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,407 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 航班信息对象 custom_flight_info
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomFlightInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 仓库Id */
|
||||
@Excel(name = "仓库Id")
|
||||
private Long warehouseId;
|
||||
|
||||
/** 申报口岸Id */
|
||||
@Excel(name = "申报口岸Id")
|
||||
private Long declarePortId;
|
||||
|
||||
/** 清关模式:1(BC);0(个人) */
|
||||
@Excel(name = "清关模式:1", readConverterExp = "B=C")
|
||||
private Integer mode;
|
||||
|
||||
/** 批次号 */
|
||||
@Excel(name = "批次号")
|
||||
private String batchNumber;
|
||||
|
||||
/** 提运单号 */
|
||||
@Excel(name = "提运单号")
|
||||
private String deliveryNumber;
|
||||
|
||||
/** 运输方式:2、水路运输;3、铁路运输;4、公路运输;5、航空运输;6、邮件运输;9、其它运输 */
|
||||
@Excel(name = "运输方式:2、水路运输;3、铁路运输;4、公路运输;5、航空运输;6、邮件运输;9、其它运输")
|
||||
private Integer trafMode;
|
||||
|
||||
/** 航空公司 */
|
||||
@Excel(name = "航空公司")
|
||||
private String airline;
|
||||
|
||||
/** 起运国 */
|
||||
@Excel(name = "起运国")
|
||||
private String departureCountry;
|
||||
|
||||
/** 始发城市 */
|
||||
@Excel(name = "始发城市")
|
||||
private String departureCity;
|
||||
|
||||
/** 始发机场 */
|
||||
@Excel(name = "始发机场")
|
||||
private String departureAirport;
|
||||
|
||||
/** 中转机场 */
|
||||
@Excel(name = "中转机场")
|
||||
private String transitAirport;
|
||||
|
||||
/** 到达机场 */
|
||||
@Excel(name = "到达机场")
|
||||
private String arriveAirport;
|
||||
|
||||
/** 航班号 */
|
||||
@Excel(name = "航班号")
|
||||
private String flightNumber;
|
||||
|
||||
/** 是否直航 */
|
||||
@Excel(name = "是否直航")
|
||||
private Integer isDirectFlight;
|
||||
|
||||
/** 是否我司订舱 */
|
||||
@Excel(name = "是否我司订舱")
|
||||
private Integer isOurBooking;
|
||||
|
||||
/** 出发时间(当地) */
|
||||
@Excel(name = "出发时间", readConverterExp = "当=地")
|
||||
private Date departureLocalTime;
|
||||
|
||||
/** 出发时间(北京) */
|
||||
@Excel(name = "出发时间", readConverterExp = "北=京")
|
||||
private Date departureTime;
|
||||
|
||||
/** 到达时间(北京) */
|
||||
@Excel(name = "到达时间", readConverterExp = "北=京")
|
||||
private Date arriveTime;
|
||||
|
||||
/** 实际到达时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "实际到达时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date actualArriveTime;
|
||||
|
||||
/** 托盘数 */
|
||||
@Excel(name = "托盘数")
|
||||
private Integer trayNumber;
|
||||
|
||||
/** 包裹数 */
|
||||
@Excel(name = "包裹数")
|
||||
private Integer packageNumber;
|
||||
|
||||
/** 总重量(KG) */
|
||||
@Excel(name = "总重量", readConverterExp = "K=G")
|
||||
private BigDecimal weight;
|
||||
|
||||
/** 计费重量(KG) */
|
||||
@Excel(name = "计费重量", readConverterExp = "K=G")
|
||||
private BigDecimal chargeableWeight;
|
||||
|
||||
/** 总体积(立方米) */
|
||||
@Excel(name = "总体积", readConverterExp = "立=方米")
|
||||
private BigDecimal volume;
|
||||
|
||||
/** 添加时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date addTime;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setWarehouseId(Long warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public Long getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
public void setDeclarePortId(Long declarePortId)
|
||||
{
|
||||
this.declarePortId = declarePortId;
|
||||
}
|
||||
|
||||
public Long getDeclarePortId()
|
||||
{
|
||||
return declarePortId;
|
||||
}
|
||||
public void setMode(Integer mode)
|
||||
{
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
public Integer getMode()
|
||||
{
|
||||
return mode;
|
||||
}
|
||||
public void setBatchNumber(String batchNumber)
|
||||
{
|
||||
this.batchNumber = batchNumber;
|
||||
}
|
||||
|
||||
public String getBatchNumber()
|
||||
{
|
||||
return batchNumber;
|
||||
}
|
||||
public void setDeliveryNumber(String deliveryNumber)
|
||||
{
|
||||
this.deliveryNumber = deliveryNumber;
|
||||
}
|
||||
|
||||
public String getDeliveryNumber()
|
||||
{
|
||||
return deliveryNumber;
|
||||
}
|
||||
public void setTrafMode(Integer trafMode)
|
||||
{
|
||||
this.trafMode = trafMode;
|
||||
}
|
||||
|
||||
public Integer getTrafMode()
|
||||
{
|
||||
return trafMode;
|
||||
}
|
||||
public void setAirline(String airline)
|
||||
{
|
||||
this.airline = airline;
|
||||
}
|
||||
|
||||
public String getAirline()
|
||||
{
|
||||
return airline;
|
||||
}
|
||||
public void setDepartureCountry(String departureCountry)
|
||||
{
|
||||
this.departureCountry = departureCountry;
|
||||
}
|
||||
|
||||
public String getDepartureCountry()
|
||||
{
|
||||
return departureCountry;
|
||||
}
|
||||
public void setDepartureCity(String departureCity)
|
||||
{
|
||||
this.departureCity = departureCity;
|
||||
}
|
||||
|
||||
public String getDepartureCity()
|
||||
{
|
||||
return departureCity;
|
||||
}
|
||||
public void setDepartureAirport(String departureAirport)
|
||||
{
|
||||
this.departureAirport = departureAirport;
|
||||
}
|
||||
|
||||
public String getDepartureAirport()
|
||||
{
|
||||
return departureAirport;
|
||||
}
|
||||
public void setTransitAirport(String transitAirport)
|
||||
{
|
||||
this.transitAirport = transitAirport;
|
||||
}
|
||||
|
||||
public String getTransitAirport()
|
||||
{
|
||||
return transitAirport;
|
||||
}
|
||||
public void setArriveAirport(String arriveAirport)
|
||||
{
|
||||
this.arriveAirport = arriveAirport;
|
||||
}
|
||||
|
||||
public String getArriveAirport()
|
||||
{
|
||||
return arriveAirport;
|
||||
}
|
||||
public void setFlightNumber(String flightNumber)
|
||||
{
|
||||
this.flightNumber = flightNumber;
|
||||
}
|
||||
|
||||
public String getFlightNumber()
|
||||
{
|
||||
return flightNumber;
|
||||
}
|
||||
public void setIsDirectFlight(Integer isDirectFlight)
|
||||
{
|
||||
this.isDirectFlight = isDirectFlight;
|
||||
}
|
||||
|
||||
public Integer getIsDirectFlight()
|
||||
{
|
||||
return isDirectFlight;
|
||||
}
|
||||
public void setIsOurBooking(Integer isOurBooking)
|
||||
{
|
||||
this.isOurBooking = isOurBooking;
|
||||
}
|
||||
|
||||
public Integer getIsOurBooking()
|
||||
{
|
||||
return isOurBooking;
|
||||
}
|
||||
public void setDepartureLocalTime(Date departureLocalTime)
|
||||
{
|
||||
this.departureLocalTime = departureLocalTime;
|
||||
}
|
||||
|
||||
public Date getDepartureLocalTime()
|
||||
{
|
||||
return departureLocalTime;
|
||||
}
|
||||
public void setDepartureTime(Date departureTime)
|
||||
{
|
||||
this.departureTime = departureTime;
|
||||
}
|
||||
|
||||
public Date getDepartureTime()
|
||||
{
|
||||
return departureTime;
|
||||
}
|
||||
public void setArriveTime(Date arriveTime)
|
||||
{
|
||||
this.arriveTime = arriveTime;
|
||||
}
|
||||
|
||||
public Date getArriveTime()
|
||||
{
|
||||
return arriveTime;
|
||||
}
|
||||
public void setActualArriveTime(Date actualArriveTime)
|
||||
{
|
||||
this.actualArriveTime = actualArriveTime;
|
||||
}
|
||||
|
||||
public Date getActualArriveTime()
|
||||
{
|
||||
return actualArriveTime;
|
||||
}
|
||||
public void setTrayNumber(Integer trayNumber)
|
||||
{
|
||||
this.trayNumber = trayNumber;
|
||||
}
|
||||
|
||||
public Integer getTrayNumber()
|
||||
{
|
||||
return trayNumber;
|
||||
}
|
||||
public void setPackageNumber(Integer packageNumber)
|
||||
{
|
||||
this.packageNumber = packageNumber;
|
||||
}
|
||||
|
||||
public Integer getPackageNumber()
|
||||
{
|
||||
return packageNumber;
|
||||
}
|
||||
public void setWeight(BigDecimal weight)
|
||||
{
|
||||
this.weight = weight;
|
||||
}
|
||||
|
||||
public BigDecimal getWeight()
|
||||
{
|
||||
return weight;
|
||||
}
|
||||
public void setChargeableWeight(BigDecimal chargeableWeight)
|
||||
{
|
||||
this.chargeableWeight = chargeableWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getChargeableWeight()
|
||||
{
|
||||
return chargeableWeight;
|
||||
}
|
||||
public void setVolume(BigDecimal volume)
|
||||
{
|
||||
this.volume = volume;
|
||||
}
|
||||
|
||||
public BigDecimal getVolume()
|
||||
{
|
||||
return volume;
|
||||
}
|
||||
public void setAddTime(Date addTime)
|
||||
{
|
||||
this.addTime = addTime;
|
||||
}
|
||||
|
||||
public Date getAddTime()
|
||||
{
|
||||
return addTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("userId", getUserId())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("declarePortId", getDeclarePortId())
|
||||
.append("mode", getMode())
|
||||
.append("batchNumber", getBatchNumber())
|
||||
.append("deliveryNumber", getDeliveryNumber())
|
||||
.append("trafMode", getTrafMode())
|
||||
.append("airline", getAirline())
|
||||
.append("departureCountry", getDepartureCountry())
|
||||
.append("departureCity", getDepartureCity())
|
||||
.append("departureAirport", getDepartureAirport())
|
||||
.append("transitAirport", getTransitAirport())
|
||||
.append("arriveAirport", getArriveAirport())
|
||||
.append("flightNumber", getFlightNumber())
|
||||
.append("isDirectFlight", getIsDirectFlight())
|
||||
.append("isOurBooking", getIsOurBooking())
|
||||
.append("departureLocalTime", getDepartureLocalTime())
|
||||
.append("departureTime", getDepartureTime())
|
||||
.append("arriveTime", getArriveTime())
|
||||
.append("actualArriveTime", getActualArriveTime())
|
||||
.append("trayNumber", getTrayNumber())
|
||||
.append("packageNumber", getPackageNumber())
|
||||
.append("weight", getWeight())
|
||||
.append("chargeableWeight", getChargeableWeight())
|
||||
.append("volume", getVolume())
|
||||
.append("remark", getRemark())
|
||||
.append("addTime", getAddTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,395 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 航班信息对象 custom_flight_info
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_flight_info")
|
||||
public class CustomFlightInfoPlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
/** 仓库Id */
|
||||
@Excel(name = "仓库Id")
|
||||
private Long warehouseId;
|
||||
/** 申报口岸Id */
|
||||
@Excel(name = "申报口岸Id")
|
||||
private Long declarePortId;
|
||||
/** 清关模式:1(BC);0(个人) */
|
||||
@Excel(name = "清关模式:1", readConverterExp = "B=C")
|
||||
private Integer mode;
|
||||
/** 批次号 */
|
||||
@Excel(name = "批次号")
|
||||
private String batchNumber;
|
||||
/** 提运单号 */
|
||||
@Excel(name = "提运单号")
|
||||
private String deliveryNumber;
|
||||
/** 运输方式:2、水路运输;3、铁路运输;4、公路运输;5、航空运输;6、邮件运输;9、其它运输 */
|
||||
@Excel(name = "运输方式:2、水路运输;3、铁路运输;4、公路运输;5、航空运输;6、邮件运输;9、其它运输")
|
||||
private Integer trafMode;
|
||||
/** 航空公司 */
|
||||
@Excel(name = "航空公司")
|
||||
private String airline;
|
||||
/** 起运国 */
|
||||
@Excel(name = "起运国")
|
||||
private String departureCountry;
|
||||
/** 始发城市 */
|
||||
@Excel(name = "始发城市")
|
||||
private String departureCity;
|
||||
/** 始发机场 */
|
||||
@Excel(name = "始发机场")
|
||||
private String departureAirport;
|
||||
/** 中转机场 */
|
||||
@Excel(name = "中转机场")
|
||||
private String transitAirport;
|
||||
/** 到达机场 */
|
||||
@Excel(name = "到达机场")
|
||||
private String arriveAirport;
|
||||
/** 航班号 */
|
||||
@Excel(name = "航班号")
|
||||
private String flightNumber;
|
||||
/** 是否直航 */
|
||||
@Excel(name = "是否直航")
|
||||
private Integer isDirectFlight;
|
||||
/** 是否我司订舱 */
|
||||
@Excel(name = "是否我司订舱")
|
||||
private Integer isOurBooking;
|
||||
/** 出发时间(当地) */
|
||||
@Excel(name = "出发时间", readConverterExp = "当=地")
|
||||
private Date departureLocalTime;
|
||||
/** 出发时间(北京) */
|
||||
@Excel(name = "出发时间", readConverterExp = "北=京")
|
||||
private Date departureTime;
|
||||
/** 到达时间(北京) */
|
||||
@Excel(name = "到达时间", readConverterExp = "北=京")
|
||||
private Date arriveTime;
|
||||
/** 实际到达时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "实际到达时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date actualArriveTime;
|
||||
/** 托盘数 */
|
||||
@Excel(name = "托盘数")
|
||||
private Integer trayNumber;
|
||||
/** 包裹数 */
|
||||
@Excel(name = "包裹数")
|
||||
private Integer packageNumber;
|
||||
/** 总重量(KG) */
|
||||
@Excel(name = "总重量", readConverterExp = "K=G")
|
||||
private BigDecimal weight;
|
||||
/** 计费重量(KG) */
|
||||
@Excel(name = "计费重量", readConverterExp = "K=G")
|
||||
private BigDecimal chargeableWeight;
|
||||
/** 总体积(立方米) */
|
||||
@Excel(name = "总体积", readConverterExp = "立=方米")
|
||||
private BigDecimal volume;
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
/** 添加时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date addTime;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setWarehouseId(Long warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public Long getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
public void setDeclarePortId(Long declarePortId)
|
||||
{
|
||||
this.declarePortId = declarePortId;
|
||||
}
|
||||
|
||||
public Long getDeclarePortId()
|
||||
{
|
||||
return declarePortId;
|
||||
}
|
||||
public void setMode(Integer mode)
|
||||
{
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
public Integer getMode()
|
||||
{
|
||||
return mode;
|
||||
}
|
||||
public void setBatchNumber(String batchNumber)
|
||||
{
|
||||
this.batchNumber = batchNumber;
|
||||
}
|
||||
|
||||
public String getBatchNumber()
|
||||
{
|
||||
return batchNumber;
|
||||
}
|
||||
public void setDeliveryNumber(String deliveryNumber)
|
||||
{
|
||||
this.deliveryNumber = deliveryNumber;
|
||||
}
|
||||
|
||||
public String getDeliveryNumber()
|
||||
{
|
||||
return deliveryNumber;
|
||||
}
|
||||
public void setTrafMode(Integer trafMode)
|
||||
{
|
||||
this.trafMode = trafMode;
|
||||
}
|
||||
|
||||
public Integer getTrafMode()
|
||||
{
|
||||
return trafMode;
|
||||
}
|
||||
public void setAirline(String airline)
|
||||
{
|
||||
this.airline = airline;
|
||||
}
|
||||
|
||||
public String getAirline()
|
||||
{
|
||||
return airline;
|
||||
}
|
||||
public void setDepartureCountry(String departureCountry)
|
||||
{
|
||||
this.departureCountry = departureCountry;
|
||||
}
|
||||
|
||||
public String getDepartureCountry()
|
||||
{
|
||||
return departureCountry;
|
||||
}
|
||||
public void setDepartureCity(String departureCity)
|
||||
{
|
||||
this.departureCity = departureCity;
|
||||
}
|
||||
|
||||
public String getDepartureCity()
|
||||
{
|
||||
return departureCity;
|
||||
}
|
||||
public void setDepartureAirport(String departureAirport)
|
||||
{
|
||||
this.departureAirport = departureAirport;
|
||||
}
|
||||
|
||||
public String getDepartureAirport()
|
||||
{
|
||||
return departureAirport;
|
||||
}
|
||||
public void setTransitAirport(String transitAirport)
|
||||
{
|
||||
this.transitAirport = transitAirport;
|
||||
}
|
||||
|
||||
public String getTransitAirport()
|
||||
{
|
||||
return transitAirport;
|
||||
}
|
||||
public void setArriveAirport(String arriveAirport)
|
||||
{
|
||||
this.arriveAirport = arriveAirport;
|
||||
}
|
||||
|
||||
public String getArriveAirport()
|
||||
{
|
||||
return arriveAirport;
|
||||
}
|
||||
public void setFlightNumber(String flightNumber)
|
||||
{
|
||||
this.flightNumber = flightNumber;
|
||||
}
|
||||
|
||||
public String getFlightNumber()
|
||||
{
|
||||
return flightNumber;
|
||||
}
|
||||
public void setIsDirectFlight(Integer isDirectFlight)
|
||||
{
|
||||
this.isDirectFlight = isDirectFlight;
|
||||
}
|
||||
|
||||
public Integer getIsDirectFlight()
|
||||
{
|
||||
return isDirectFlight;
|
||||
}
|
||||
public void setIsOurBooking(Integer isOurBooking)
|
||||
{
|
||||
this.isOurBooking = isOurBooking;
|
||||
}
|
||||
|
||||
public Integer getIsOurBooking()
|
||||
{
|
||||
return isOurBooking;
|
||||
}
|
||||
public void setDepartureLocalTime(Date departureLocalTime)
|
||||
{
|
||||
this.departureLocalTime = departureLocalTime;
|
||||
}
|
||||
|
||||
public Date getDepartureLocalTime()
|
||||
{
|
||||
return departureLocalTime;
|
||||
}
|
||||
public void setDepartureTime(Date departureTime)
|
||||
{
|
||||
this.departureTime = departureTime;
|
||||
}
|
||||
|
||||
public Date getDepartureTime()
|
||||
{
|
||||
return departureTime;
|
||||
}
|
||||
public void setArriveTime(Date arriveTime)
|
||||
{
|
||||
this.arriveTime = arriveTime;
|
||||
}
|
||||
|
||||
public Date getArriveTime()
|
||||
{
|
||||
return arriveTime;
|
||||
}
|
||||
public void setActualArriveTime(Date actualArriveTime)
|
||||
{
|
||||
this.actualArriveTime = actualArriveTime;
|
||||
}
|
||||
|
||||
public Date getActualArriveTime()
|
||||
{
|
||||
return actualArriveTime;
|
||||
}
|
||||
public void setTrayNumber(Integer trayNumber)
|
||||
{
|
||||
this.trayNumber = trayNumber;
|
||||
}
|
||||
|
||||
public Integer getTrayNumber()
|
||||
{
|
||||
return trayNumber;
|
||||
}
|
||||
public void setPackageNumber(Integer packageNumber)
|
||||
{
|
||||
this.packageNumber = packageNumber;
|
||||
}
|
||||
|
||||
public Integer getPackageNumber()
|
||||
{
|
||||
return packageNumber;
|
||||
}
|
||||
public void setWeight(BigDecimal weight)
|
||||
{
|
||||
this.weight = weight;
|
||||
}
|
||||
|
||||
public BigDecimal getWeight()
|
||||
{
|
||||
return weight;
|
||||
}
|
||||
public void setChargeableWeight(BigDecimal chargeableWeight)
|
||||
{
|
||||
this.chargeableWeight = chargeableWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getChargeableWeight()
|
||||
{
|
||||
return chargeableWeight;
|
||||
}
|
||||
public void setVolume(BigDecimal volume)
|
||||
{
|
||||
this.volume = volume;
|
||||
}
|
||||
|
||||
public BigDecimal getVolume()
|
||||
{
|
||||
return volume;
|
||||
}
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
public void setAddTime(Date addTime)
|
||||
{
|
||||
this.addTime = addTime;
|
||||
}
|
||||
|
||||
public Date getAddTime()
|
||||
{
|
||||
return addTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("userId", getUserId())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("declarePortId", getDeclarePortId())
|
||||
.append("mode", getMode())
|
||||
.append("batchNumber", getBatchNumber())
|
||||
.append("deliveryNumber", getDeliveryNumber())
|
||||
.append("trafMode", getTrafMode())
|
||||
.append("airline", getAirline())
|
||||
.append("departureCountry", getDepartureCountry())
|
||||
.append("departureCity", getDepartureCity())
|
||||
.append("departureAirport", getDepartureAirport())
|
||||
.append("transitAirport", getTransitAirport())
|
||||
.append("arriveAirport", getArriveAirport())
|
||||
.append("flightNumber", getFlightNumber())
|
||||
.append("isDirectFlight", getIsDirectFlight())
|
||||
.append("isOurBooking", getIsOurBooking())
|
||||
.append("departureLocalTime", getDepartureLocalTime())
|
||||
.append("departureTime", getDepartureTime())
|
||||
.append("arriveTime", getArriveTime())
|
||||
.append("actualArriveTime", getActualArriveTime())
|
||||
.append("trayNumber", getTrayNumber())
|
||||
.append("packageNumber", getPackageNumber())
|
||||
.append("weight", getWeight())
|
||||
.append("chargeableWeight", getChargeableWeight())
|
||||
.append("volume", getVolume())
|
||||
.append("remark", getRemark())
|
||||
.append("addTime", getAddTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* HS编码对象 custom_hs_code
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomHsCode extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 编码 */
|
||||
@Excel(name = "编码")
|
||||
private String code;
|
||||
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
|
||||
/** 许可证代码 */
|
||||
@Excel(name = "许可证代码")
|
||||
private String licenseCode;
|
||||
|
||||
/** 普通税率 */
|
||||
@Excel(name = "普通税率")
|
||||
private BigDecimal generalTaxRate;
|
||||
|
||||
/** 优惠税率 */
|
||||
@Excel(name = "优惠税率")
|
||||
private BigDecimal preferentialTaxRate;
|
||||
|
||||
/** 出口税率 */
|
||||
@Excel(name = "出口税率")
|
||||
private BigDecimal exportTaxRate;
|
||||
|
||||
/** 消费税率 */
|
||||
@Excel(name = "消费税率")
|
||||
private BigDecimal consumptionTaxRate;
|
||||
|
||||
/** 增值税率 */
|
||||
@Excel(name = "增值税率")
|
||||
private BigDecimal vatRate;
|
||||
|
||||
/** 第一法定单位 */
|
||||
@Excel(name = "第一法定单位")
|
||||
private String firstLegalUnit;
|
||||
|
||||
/** 第二法定单位 */
|
||||
@Excel(name = "第二法定单位")
|
||||
private String secondLegalUnit;
|
||||
|
||||
/** 申报要素 */
|
||||
@Excel(name = "申报要素")
|
||||
private String declareReason;
|
||||
|
||||
/** 是否存在正面清单 */
|
||||
@Excel(name = "是否存在正面清单")
|
||||
private Integer isExistInventory;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setLicenseCode(String licenseCode)
|
||||
{
|
||||
this.licenseCode = licenseCode;
|
||||
}
|
||||
|
||||
public String getLicenseCode()
|
||||
{
|
||||
return licenseCode;
|
||||
}
|
||||
public void setGeneralTaxRate(BigDecimal generalTaxRate)
|
||||
{
|
||||
this.generalTaxRate = generalTaxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getGeneralTaxRate()
|
||||
{
|
||||
return generalTaxRate;
|
||||
}
|
||||
public void setPreferentialTaxRate(BigDecimal preferentialTaxRate)
|
||||
{
|
||||
this.preferentialTaxRate = preferentialTaxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getPreferentialTaxRate()
|
||||
{
|
||||
return preferentialTaxRate;
|
||||
}
|
||||
public void setExportTaxRate(BigDecimal exportTaxRate)
|
||||
{
|
||||
this.exportTaxRate = exportTaxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getExportTaxRate()
|
||||
{
|
||||
return exportTaxRate;
|
||||
}
|
||||
public void setConsumptionTaxRate(BigDecimal consumptionTaxRate)
|
||||
{
|
||||
this.consumptionTaxRate = consumptionTaxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getConsumptionTaxRate()
|
||||
{
|
||||
return consumptionTaxRate;
|
||||
}
|
||||
public void setVatRate(BigDecimal vatRate)
|
||||
{
|
||||
this.vatRate = vatRate;
|
||||
}
|
||||
|
||||
public BigDecimal getVatRate()
|
||||
{
|
||||
return vatRate;
|
||||
}
|
||||
public void setFirstLegalUnit(String firstLegalUnit)
|
||||
{
|
||||
this.firstLegalUnit = firstLegalUnit;
|
||||
}
|
||||
|
||||
public String getFirstLegalUnit()
|
||||
{
|
||||
return firstLegalUnit;
|
||||
}
|
||||
public void setSecondLegalUnit(String secondLegalUnit)
|
||||
{
|
||||
this.secondLegalUnit = secondLegalUnit;
|
||||
}
|
||||
|
||||
public String getSecondLegalUnit()
|
||||
{
|
||||
return secondLegalUnit;
|
||||
}
|
||||
public void setDeclareReason(String declareReason)
|
||||
{
|
||||
this.declareReason = declareReason;
|
||||
}
|
||||
|
||||
public String getDeclareReason()
|
||||
{
|
||||
return declareReason;
|
||||
}
|
||||
public void setIsExistInventory(Integer isExistInventory)
|
||||
{
|
||||
this.isExistInventory = isExistInventory;
|
||||
}
|
||||
|
||||
public Integer getIsExistInventory()
|
||||
{
|
||||
return isExistInventory;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("code", getCode())
|
||||
.append("name", getName())
|
||||
.append("licenseCode", getLicenseCode())
|
||||
.append("generalTaxRate", getGeneralTaxRate())
|
||||
.append("preferentialTaxRate", getPreferentialTaxRate())
|
||||
.append("remark", getRemark())
|
||||
.append("exportTaxRate", getExportTaxRate())
|
||||
.append("consumptionTaxRate", getConsumptionTaxRate())
|
||||
.append("vatRate", getVatRate())
|
||||
.append("firstLegalUnit", getFirstLegalUnit())
|
||||
.append("secondLegalUnit", getSecondLegalUnit())
|
||||
.append("declareReason", getDeclareReason())
|
||||
.append("isExistInventory", getIsExistInventory())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,209 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* HS编码对象 custom_hs_code
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_hs_code")
|
||||
public class CustomHsCodePlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
/** 编码 */
|
||||
@Excel(name = "编码")
|
||||
private String code;
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
/** 许可证代码 */
|
||||
@Excel(name = "许可证代码")
|
||||
private String licenseCode;
|
||||
/** 普通税率 */
|
||||
@Excel(name = "普通税率")
|
||||
private BigDecimal generalTaxRate;
|
||||
/** 优惠税率 */
|
||||
@Excel(name = "优惠税率")
|
||||
private BigDecimal preferentialTaxRate;
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
/** 出口税率 */
|
||||
@Excel(name = "出口税率")
|
||||
private BigDecimal exportTaxRate;
|
||||
/** 消费税率 */
|
||||
@Excel(name = "消费税率")
|
||||
private BigDecimal consumptionTaxRate;
|
||||
/** 增值税率 */
|
||||
@Excel(name = "增值税率")
|
||||
private BigDecimal vatRate;
|
||||
/** 第一法定单位 */
|
||||
@Excel(name = "第一法定单位")
|
||||
private String firstLegalUnit;
|
||||
/** 第二法定单位 */
|
||||
@Excel(name = "第二法定单位")
|
||||
private String secondLegalUnit;
|
||||
/** 申报要素 */
|
||||
@Excel(name = "申报要素")
|
||||
private String declareReason;
|
||||
/** 是否存在正面清单 */
|
||||
@Excel(name = "是否存在正面清单")
|
||||
private Integer isExistInventory;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setLicenseCode(String licenseCode)
|
||||
{
|
||||
this.licenseCode = licenseCode;
|
||||
}
|
||||
|
||||
public String getLicenseCode()
|
||||
{
|
||||
return licenseCode;
|
||||
}
|
||||
public void setGeneralTaxRate(BigDecimal generalTaxRate)
|
||||
{
|
||||
this.generalTaxRate = generalTaxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getGeneralTaxRate()
|
||||
{
|
||||
return generalTaxRate;
|
||||
}
|
||||
public void setPreferentialTaxRate(BigDecimal preferentialTaxRate)
|
||||
{
|
||||
this.preferentialTaxRate = preferentialTaxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getPreferentialTaxRate()
|
||||
{
|
||||
return preferentialTaxRate;
|
||||
}
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
public void setExportTaxRate(BigDecimal exportTaxRate)
|
||||
{
|
||||
this.exportTaxRate = exportTaxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getExportTaxRate()
|
||||
{
|
||||
return exportTaxRate;
|
||||
}
|
||||
public void setConsumptionTaxRate(BigDecimal consumptionTaxRate)
|
||||
{
|
||||
this.consumptionTaxRate = consumptionTaxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getConsumptionTaxRate()
|
||||
{
|
||||
return consumptionTaxRate;
|
||||
}
|
||||
public void setVatRate(BigDecimal vatRate)
|
||||
{
|
||||
this.vatRate = vatRate;
|
||||
}
|
||||
|
||||
public BigDecimal getVatRate()
|
||||
{
|
||||
return vatRate;
|
||||
}
|
||||
public void setFirstLegalUnit(String firstLegalUnit)
|
||||
{
|
||||
this.firstLegalUnit = firstLegalUnit;
|
||||
}
|
||||
|
||||
public String getFirstLegalUnit()
|
||||
{
|
||||
return firstLegalUnit;
|
||||
}
|
||||
public void setSecondLegalUnit(String secondLegalUnit)
|
||||
{
|
||||
this.secondLegalUnit = secondLegalUnit;
|
||||
}
|
||||
|
||||
public String getSecondLegalUnit()
|
||||
{
|
||||
return secondLegalUnit;
|
||||
}
|
||||
public void setDeclareReason(String declareReason)
|
||||
{
|
||||
this.declareReason = declareReason;
|
||||
}
|
||||
|
||||
public String getDeclareReason()
|
||||
{
|
||||
return declareReason;
|
||||
}
|
||||
public void setIsExistInventory(Integer isExistInventory)
|
||||
{
|
||||
this.isExistInventory = isExistInventory;
|
||||
}
|
||||
|
||||
public Integer getIsExistInventory()
|
||||
{
|
||||
return isExistInventory;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("code", getCode())
|
||||
.append("name", getName())
|
||||
.append("licenseCode", getLicenseCode())
|
||||
.append("generalTaxRate", getGeneralTaxRate())
|
||||
.append("preferentialTaxRate", getPreferentialTaxRate())
|
||||
.append("remark", getRemark())
|
||||
.append("exportTaxRate", getExportTaxRate())
|
||||
.append("consumptionTaxRate", getConsumptionTaxRate())
|
||||
.append("vatRate", getVatRate())
|
||||
.append("firstLegalUnit", getFirstLegalUnit())
|
||||
.append("secondLegalUnit", getSecondLegalUnit())
|
||||
.append("declareReason", getDeclareReason())
|
||||
.append("isExistInventory", getIsExistInventory())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 正面清单对象 custom_inventory
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomInventory extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
|
||||
/** 编码 */
|
||||
@Excel(name = "编码")
|
||||
private String code;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("code", getCode())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 正面清单对象 custom_inventory
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_inventory")
|
||||
public class CustomInventoryPlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
/** 编码 */
|
||||
@Excel(name = "编码")
|
||||
private String code;
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("code", getCode())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,758 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 备案订单对象 custom_order
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomOrder extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 口岸Id */
|
||||
@Excel(name = "口岸Id")
|
||||
private Long declarePortId;
|
||||
|
||||
/** 仓库Id */
|
||||
@Excel(name = "仓库Id")
|
||||
private Long warehouseId;
|
||||
|
||||
/** 清关方式:1、保税;2、直邮;3、个人 */
|
||||
@Excel(name = "清关方式:1、保税;2、直邮;3、个人")
|
||||
private Integer mode;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 系统订单号 */
|
||||
@Excel(name = "系统订单号")
|
||||
private String sOrderNo;
|
||||
|
||||
/** 申报订单号(商城订单号) */
|
||||
@Excel(name = "申报订单号", readConverterExp = "商=城订单号")
|
||||
private String declareOrderNo;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Integer status;
|
||||
|
||||
/** 快递公司 */
|
||||
@Excel(name = "快递公司")
|
||||
private String expressName;
|
||||
|
||||
/** 运单号 */
|
||||
@Excel(name = "运单号")
|
||||
private String shipOrderNumber;
|
||||
|
||||
/** 购买人注册号 */
|
||||
@Excel(name = "购买人注册号")
|
||||
private String buyerRegNo;
|
||||
|
||||
/** 购买人 */
|
||||
@Excel(name = "购买人")
|
||||
private String buyerName;
|
||||
|
||||
/** 购买人电话 */
|
||||
@Excel(name = "购买人电话")
|
||||
private String buyerTelephone;
|
||||
|
||||
/** 购买人身份证类型:1-身份证,2-其它,3-军官证,4-护照。 */
|
||||
@Excel(name = "购买人身份证类型:1-身份证,2-其它,3-军官证,4-护照。")
|
||||
private Integer buyerIdType;
|
||||
|
||||
/** 购买人身份证 */
|
||||
@Excel(name = "购买人身份证")
|
||||
private String buyerIdNumber;
|
||||
|
||||
/** 收件人 */
|
||||
@Excel(name = "收件人")
|
||||
private String consignee;
|
||||
|
||||
/** 收件人电话 */
|
||||
@Excel(name = "收件人电话")
|
||||
private String consigneeTelephone;
|
||||
|
||||
/** 收件人地址 */
|
||||
@Excel(name = "收件人地址")
|
||||
private String consigneeAddress;
|
||||
|
||||
/** 收件人省 */
|
||||
@Excel(name = "收件人省")
|
||||
private String consigneeProvince;
|
||||
|
||||
/** 收件人市 */
|
||||
@Excel(name = "收件人市")
|
||||
private String consigneeCity;
|
||||
|
||||
/** 收件人区 */
|
||||
@Excel(name = "收件人区")
|
||||
private String consigneeDistrict;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "收件人区")
|
||||
private BigDecimal totalAmount;
|
||||
|
||||
/** 非现金抵扣金额 */
|
||||
@Excel(name = "非现金抵扣金额")
|
||||
private BigDecimal discountAmount;
|
||||
|
||||
/** 实际支付金额 */
|
||||
@Excel(name = "实际支付金额")
|
||||
private BigDecimal payTotalAmount;
|
||||
|
||||
/** 税费 */
|
||||
@Excel(name = "税费")
|
||||
private BigDecimal taxTotalAmount;
|
||||
|
||||
/** 商城税费 */
|
||||
@Excel(name = "商城税费")
|
||||
private BigDecimal shopTaxTotalAmount;
|
||||
|
||||
/** 运费 */
|
||||
@Excel(name = "运费")
|
||||
private BigDecimal freightAmount;
|
||||
|
||||
/** 总毛重 */
|
||||
@Excel(name = "总毛重")
|
||||
private BigDecimal totalGrossWeight;
|
||||
|
||||
/** 总净重 */
|
||||
@Excel(name = "总净重")
|
||||
private BigDecimal totalNetWeight;
|
||||
|
||||
/** 总数量 */
|
||||
@Excel(name = "总数量")
|
||||
private Integer totalQuantity;
|
||||
|
||||
/** 支付公司名称 */
|
||||
@Excel(name = "支付公司名称")
|
||||
private String payName;
|
||||
|
||||
/** 支付公司代码 */
|
||||
@Excel(name = "支付公司代码")
|
||||
private String payCode;
|
||||
|
||||
/** 支付时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date payTime;
|
||||
|
||||
/** 支付单号 */
|
||||
@Excel(name = "支付单号")
|
||||
private String gatewayOrderId;
|
||||
|
||||
/** 发件人 */
|
||||
@Excel(name = "发件人")
|
||||
private String consignor;
|
||||
|
||||
/** 发件人地址 */
|
||||
@Excel(name = "发件人地址")
|
||||
private String consignorAddress;
|
||||
|
||||
/** 发件人电话 */
|
||||
@Excel(name = "发件人电话")
|
||||
private String consignorTelephone;
|
||||
|
||||
/** 发件人所在国 */
|
||||
@Excel(name = "发件人所在国")
|
||||
private String consignorCountry;
|
||||
|
||||
/** 发件人省 */
|
||||
@Excel(name = "发件人省")
|
||||
private String consignorProvince;
|
||||
|
||||
/** 发件人市 */
|
||||
@Excel(name = "发件人市")
|
||||
private String consignorCity;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "发件人市")
|
||||
private String consignorDistrict;
|
||||
|
||||
/** 收款账户 */
|
||||
@Excel(name = "收款账户")
|
||||
private String receiptAccount;
|
||||
|
||||
/** 验核机构:1-银联 2-网联 3-其他 */
|
||||
@Excel(name = "验核机构:1-银联 2-网联 3-其他")
|
||||
private Integer verDept;
|
||||
|
||||
/** 支付类型:1-APP 2-PC 3-扫码 4-其他 */
|
||||
@Excel(name = "支付类型:1-APP 2-PC 3-扫码 4-其他")
|
||||
private Integer payType;
|
||||
|
||||
/** 支付原始请求 */
|
||||
@Excel(name = "支付原始请求")
|
||||
private String initalRequest;
|
||||
|
||||
/** 支付原始响应 */
|
||||
@Excel(name = "支付原始响应")
|
||||
private String initalResponse;
|
||||
|
||||
/** 接口信息返回结果 */
|
||||
@Excel(name = "接口信息返回结果")
|
||||
private String expressReturn;
|
||||
|
||||
/** 订单处理过程 */
|
||||
@Excel(name = "订单处理过程")
|
||||
private String process;
|
||||
|
||||
/** 添加时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date addTime;
|
||||
|
||||
/** 清单编号 */
|
||||
@Excel(name = "清单编号")
|
||||
private String inventoryNo;
|
||||
|
||||
/** 批次号 */
|
||||
@Excel(name = "批次号")
|
||||
private String batchNumber;
|
||||
|
||||
/** 备案订单项信息 */
|
||||
private List<CustomOrderItem> customOrderItemList;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDeclarePortId(Long declarePortId)
|
||||
{
|
||||
this.declarePortId = declarePortId;
|
||||
}
|
||||
|
||||
public Long getDeclarePortId()
|
||||
{
|
||||
return declarePortId;
|
||||
}
|
||||
public void setWarehouseId(Long warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public Long getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
public void setMode(Integer mode)
|
||||
{
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
public Integer getMode()
|
||||
{
|
||||
return mode;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setsOrderNo(String sOrderNo)
|
||||
{
|
||||
this.sOrderNo = sOrderNo;
|
||||
}
|
||||
|
||||
public String getsOrderNo()
|
||||
{
|
||||
return sOrderNo;
|
||||
}
|
||||
public void setDeclareOrderNo(String declareOrderNo)
|
||||
{
|
||||
this.declareOrderNo = declareOrderNo;
|
||||
}
|
||||
|
||||
public String getDeclareOrderNo()
|
||||
{
|
||||
return declareOrderNo;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setExpressName(String expressName)
|
||||
{
|
||||
this.expressName = expressName;
|
||||
}
|
||||
|
||||
public String getExpressName()
|
||||
{
|
||||
return expressName;
|
||||
}
|
||||
public void setShipOrderNumber(String shipOrderNumber)
|
||||
{
|
||||
this.shipOrderNumber = shipOrderNumber;
|
||||
}
|
||||
|
||||
public String getShipOrderNumber()
|
||||
{
|
||||
return shipOrderNumber;
|
||||
}
|
||||
public void setBuyerRegNo(String buyerRegNo)
|
||||
{
|
||||
this.buyerRegNo = buyerRegNo;
|
||||
}
|
||||
|
||||
public String getBuyerRegNo()
|
||||
{
|
||||
return buyerRegNo;
|
||||
}
|
||||
public void setBuyerName(String buyerName)
|
||||
{
|
||||
this.buyerName = buyerName;
|
||||
}
|
||||
|
||||
public String getBuyerName()
|
||||
{
|
||||
return buyerName;
|
||||
}
|
||||
public void setBuyerTelephone(String buyerTelephone)
|
||||
{
|
||||
this.buyerTelephone = buyerTelephone;
|
||||
}
|
||||
|
||||
public String getBuyerTelephone()
|
||||
{
|
||||
return buyerTelephone;
|
||||
}
|
||||
public void setBuyerIdType(Integer buyerIdType)
|
||||
{
|
||||
this.buyerIdType = buyerIdType;
|
||||
}
|
||||
|
||||
public Integer getBuyerIdType()
|
||||
{
|
||||
return buyerIdType;
|
||||
}
|
||||
public void setBuyerIdNumber(String buyerIdNumber)
|
||||
{
|
||||
this.buyerIdNumber = buyerIdNumber;
|
||||
}
|
||||
|
||||
public String getBuyerIdNumber()
|
||||
{
|
||||
return buyerIdNumber;
|
||||
}
|
||||
public void setConsignee(String consignee)
|
||||
{
|
||||
this.consignee = consignee;
|
||||
}
|
||||
|
||||
public String getConsignee()
|
||||
{
|
||||
return consignee;
|
||||
}
|
||||
public void setConsigneeTelephone(String consigneeTelephone)
|
||||
{
|
||||
this.consigneeTelephone = consigneeTelephone;
|
||||
}
|
||||
|
||||
public String getConsigneeTelephone()
|
||||
{
|
||||
return consigneeTelephone;
|
||||
}
|
||||
public void setConsigneeAddress(String consigneeAddress)
|
||||
{
|
||||
this.consigneeAddress = consigneeAddress;
|
||||
}
|
||||
|
||||
public String getConsigneeAddress()
|
||||
{
|
||||
return consigneeAddress;
|
||||
}
|
||||
public void setConsigneeProvince(String consigneeProvince)
|
||||
{
|
||||
this.consigneeProvince = consigneeProvince;
|
||||
}
|
||||
|
||||
public String getConsigneeProvince()
|
||||
{
|
||||
return consigneeProvince;
|
||||
}
|
||||
public void setConsigneeCity(String consigneeCity)
|
||||
{
|
||||
this.consigneeCity = consigneeCity;
|
||||
}
|
||||
|
||||
public String getConsigneeCity()
|
||||
{
|
||||
return consigneeCity;
|
||||
}
|
||||
public void setConsigneeDistrict(String consigneeDistrict)
|
||||
{
|
||||
this.consigneeDistrict = consigneeDistrict;
|
||||
}
|
||||
|
||||
public String getConsigneeDistrict()
|
||||
{
|
||||
return consigneeDistrict;
|
||||
}
|
||||
public void setTotalAmount(BigDecimal totalAmount)
|
||||
{
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getTotalAmount()
|
||||
{
|
||||
return totalAmount;
|
||||
}
|
||||
public void setDiscountAmount(BigDecimal discountAmount)
|
||||
{
|
||||
this.discountAmount = discountAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getDiscountAmount()
|
||||
{
|
||||
return discountAmount;
|
||||
}
|
||||
public void setPayTotalAmount(BigDecimal payTotalAmount)
|
||||
{
|
||||
this.payTotalAmount = payTotalAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getPayTotalAmount()
|
||||
{
|
||||
return payTotalAmount;
|
||||
}
|
||||
public void setTaxTotalAmount(BigDecimal taxTotalAmount)
|
||||
{
|
||||
this.taxTotalAmount = taxTotalAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxTotalAmount()
|
||||
{
|
||||
return taxTotalAmount;
|
||||
}
|
||||
public void setShopTaxTotalAmount(BigDecimal shopTaxTotalAmount)
|
||||
{
|
||||
this.shopTaxTotalAmount = shopTaxTotalAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getShopTaxTotalAmount()
|
||||
{
|
||||
return shopTaxTotalAmount;
|
||||
}
|
||||
public void setFreightAmount(BigDecimal freightAmount)
|
||||
{
|
||||
this.freightAmount = freightAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getFreightAmount()
|
||||
{
|
||||
return freightAmount;
|
||||
}
|
||||
public void setTotalGrossWeight(BigDecimal totalGrossWeight)
|
||||
{
|
||||
this.totalGrossWeight = totalGrossWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getTotalGrossWeight()
|
||||
{
|
||||
return totalGrossWeight;
|
||||
}
|
||||
public void setTotalNetWeight(BigDecimal totalNetWeight)
|
||||
{
|
||||
this.totalNetWeight = totalNetWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getTotalNetWeight()
|
||||
{
|
||||
return totalNetWeight;
|
||||
}
|
||||
public void setTotalQuantity(Integer totalQuantity)
|
||||
{
|
||||
this.totalQuantity = totalQuantity;
|
||||
}
|
||||
|
||||
public Integer getTotalQuantity()
|
||||
{
|
||||
return totalQuantity;
|
||||
}
|
||||
public void setPayName(String payName)
|
||||
{
|
||||
this.payName = payName;
|
||||
}
|
||||
|
||||
public String getPayName()
|
||||
{
|
||||
return payName;
|
||||
}
|
||||
public void setPayCode(String payCode)
|
||||
{
|
||||
this.payCode = payCode;
|
||||
}
|
||||
|
||||
public String getPayCode()
|
||||
{
|
||||
return payCode;
|
||||
}
|
||||
public void setPayTime(Date payTime)
|
||||
{
|
||||
this.payTime = payTime;
|
||||
}
|
||||
|
||||
public Date getPayTime()
|
||||
{
|
||||
return payTime;
|
||||
}
|
||||
public void setGatewayOrderId(String gatewayOrderId)
|
||||
{
|
||||
this.gatewayOrderId = gatewayOrderId;
|
||||
}
|
||||
|
||||
public String getGatewayOrderId()
|
||||
{
|
||||
return gatewayOrderId;
|
||||
}
|
||||
public void setConsignor(String consignor)
|
||||
{
|
||||
this.consignor = consignor;
|
||||
}
|
||||
|
||||
public String getConsignor()
|
||||
{
|
||||
return consignor;
|
||||
}
|
||||
public void setConsignorAddress(String consignorAddress)
|
||||
{
|
||||
this.consignorAddress = consignorAddress;
|
||||
}
|
||||
|
||||
public String getConsignorAddress()
|
||||
{
|
||||
return consignorAddress;
|
||||
}
|
||||
public void setConsignorTelephone(String consignorTelephone)
|
||||
{
|
||||
this.consignorTelephone = consignorTelephone;
|
||||
}
|
||||
|
||||
public String getConsignorTelephone()
|
||||
{
|
||||
return consignorTelephone;
|
||||
}
|
||||
public void setConsignorCountry(String consignorCountry)
|
||||
{
|
||||
this.consignorCountry = consignorCountry;
|
||||
}
|
||||
|
||||
public String getConsignorCountry()
|
||||
{
|
||||
return consignorCountry;
|
||||
}
|
||||
public void setConsignorProvince(String consignorProvince)
|
||||
{
|
||||
this.consignorProvince = consignorProvince;
|
||||
}
|
||||
|
||||
public String getConsignorProvince()
|
||||
{
|
||||
return consignorProvince;
|
||||
}
|
||||
public void setConsignorCity(String consignorCity)
|
||||
{
|
||||
this.consignorCity = consignorCity;
|
||||
}
|
||||
|
||||
public String getConsignorCity()
|
||||
{
|
||||
return consignorCity;
|
||||
}
|
||||
public void setConsignorDistrict(String consignorDistrict)
|
||||
{
|
||||
this.consignorDistrict = consignorDistrict;
|
||||
}
|
||||
|
||||
public String getConsignorDistrict()
|
||||
{
|
||||
return consignorDistrict;
|
||||
}
|
||||
public void setReceiptAccount(String receiptAccount)
|
||||
{
|
||||
this.receiptAccount = receiptAccount;
|
||||
}
|
||||
|
||||
public String getReceiptAccount()
|
||||
{
|
||||
return receiptAccount;
|
||||
}
|
||||
public void setVerDept(Integer verDept)
|
||||
{
|
||||
this.verDept = verDept;
|
||||
}
|
||||
|
||||
public Integer getVerDept()
|
||||
{
|
||||
return verDept;
|
||||
}
|
||||
public void setPayType(Integer payType)
|
||||
{
|
||||
this.payType = payType;
|
||||
}
|
||||
|
||||
public Integer getPayType()
|
||||
{
|
||||
return payType;
|
||||
}
|
||||
public void setInitalRequest(String initalRequest)
|
||||
{
|
||||
this.initalRequest = initalRequest;
|
||||
}
|
||||
|
||||
public String getInitalRequest()
|
||||
{
|
||||
return initalRequest;
|
||||
}
|
||||
public void setInitalResponse(String initalResponse)
|
||||
{
|
||||
this.initalResponse = initalResponse;
|
||||
}
|
||||
|
||||
public String getInitalResponse()
|
||||
{
|
||||
return initalResponse;
|
||||
}
|
||||
public void setExpressReturn(String expressReturn)
|
||||
{
|
||||
this.expressReturn = expressReturn;
|
||||
}
|
||||
|
||||
public String getExpressReturn()
|
||||
{
|
||||
return expressReturn;
|
||||
}
|
||||
public void setProcess(String process)
|
||||
{
|
||||
this.process = process;
|
||||
}
|
||||
|
||||
public String getProcess()
|
||||
{
|
||||
return process;
|
||||
}
|
||||
public void setAddTime(Date addTime)
|
||||
{
|
||||
this.addTime = addTime;
|
||||
}
|
||||
|
||||
public Date getAddTime()
|
||||
{
|
||||
return addTime;
|
||||
}
|
||||
public void setInventoryNo(String inventoryNo)
|
||||
{
|
||||
this.inventoryNo = inventoryNo;
|
||||
}
|
||||
|
||||
public String getInventoryNo()
|
||||
{
|
||||
return inventoryNo;
|
||||
}
|
||||
public void setBatchNumber(String batchNumber)
|
||||
{
|
||||
this.batchNumber = batchNumber;
|
||||
}
|
||||
|
||||
public String getBatchNumber()
|
||||
{
|
||||
return batchNumber;
|
||||
}
|
||||
|
||||
public List<CustomOrderItem> getCustomOrderItemList()
|
||||
{
|
||||
return customOrderItemList;
|
||||
}
|
||||
|
||||
public void setCustomOrderItemList(List<CustomOrderItem> customOrderItemList)
|
||||
{
|
||||
this.customOrderItemList = customOrderItemList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("declarePortId", getDeclarePortId())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("mode", getMode())
|
||||
.append("userId", getUserId())
|
||||
.append("sOrderNo", getsOrderNo())
|
||||
.append("declareOrderNo", getDeclareOrderNo())
|
||||
.append("status", getStatus())
|
||||
.append("expressName", getExpressName())
|
||||
.append("shipOrderNumber", getShipOrderNumber())
|
||||
.append("buyerRegNo", getBuyerRegNo())
|
||||
.append("buyerName", getBuyerName())
|
||||
.append("buyerTelephone", getBuyerTelephone())
|
||||
.append("buyerIdType", getBuyerIdType())
|
||||
.append("buyerIdNumber", getBuyerIdNumber())
|
||||
.append("consignee", getConsignee())
|
||||
.append("consigneeTelephone", getConsigneeTelephone())
|
||||
.append("consigneeAddress", getConsigneeAddress())
|
||||
.append("consigneeProvince", getConsigneeProvince())
|
||||
.append("consigneeCity", getConsigneeCity())
|
||||
.append("consigneeDistrict", getConsigneeDistrict())
|
||||
.append("totalAmount", getTotalAmount())
|
||||
.append("discountAmount", getDiscountAmount())
|
||||
.append("payTotalAmount", getPayTotalAmount())
|
||||
.append("taxTotalAmount", getTaxTotalAmount())
|
||||
.append("shopTaxTotalAmount", getShopTaxTotalAmount())
|
||||
.append("freightAmount", getFreightAmount())
|
||||
.append("totalGrossWeight", getTotalGrossWeight())
|
||||
.append("totalNetWeight", getTotalNetWeight())
|
||||
.append("totalQuantity", getTotalQuantity())
|
||||
.append("payName", getPayName())
|
||||
.append("payCode", getPayCode())
|
||||
.append("payTime", getPayTime())
|
||||
.append("gatewayOrderId", getGatewayOrderId())
|
||||
.append("consignor", getConsignor())
|
||||
.append("consignorAddress", getConsignorAddress())
|
||||
.append("consignorTelephone", getConsignorTelephone())
|
||||
.append("consignorCountry", getConsignorCountry())
|
||||
.append("consignorProvince", getConsignorProvince())
|
||||
.append("consignorCity", getConsignorCity())
|
||||
.append("consignorDistrict", getConsignorDistrict())
|
||||
.append("receiptAccount", getReceiptAccount())
|
||||
.append("verDept", getVerDept())
|
||||
.append("payType", getPayType())
|
||||
.append("initalRequest", getInitalRequest())
|
||||
.append("initalResponse", getInitalResponse())
|
||||
.append("remark", getRemark())
|
||||
.append("expressReturn", getExpressReturn())
|
||||
.append("process", getProcess())
|
||||
.append("addTime", getAddTime())
|
||||
.append("inventoryNo", getInventoryNo())
|
||||
.append("batchNumber", getBatchNumber())
|
||||
.append("customOrderItemList", getCustomOrderItemList())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,427 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 备案订单项对象 custom_order_item
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomOrderItem extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "批次号")
|
||||
private Long orderId;
|
||||
|
||||
/** 口岸Id */
|
||||
@Excel(name = "口岸Id")
|
||||
private Long declarePortId;
|
||||
|
||||
/** 仓库Id */
|
||||
@Excel(name = "仓库Id")
|
||||
private Long warehouseId;
|
||||
|
||||
/** 商品条形码 */
|
||||
@Excel(name = "商品条形码")
|
||||
private String barCode;
|
||||
|
||||
/** skucode */
|
||||
@Excel(name = "skucode")
|
||||
private String skuCode;
|
||||
/** 数量 */
|
||||
@Excel(name = "数量")
|
||||
private Integer quantity;
|
||||
|
||||
/** 单价 */
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal price;
|
||||
|
||||
/** 商城单价 */
|
||||
@Excel(name = "商城单价")
|
||||
private BigDecimal shopPrice;
|
||||
|
||||
/** 运费 */
|
||||
@Excel(name = "运费")
|
||||
private BigDecimal freight;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "运费")
|
||||
private BigDecimal taxAmount;
|
||||
|
||||
/** 商品链接 */
|
||||
@Excel(name = "商品链接")
|
||||
private String itemLink;
|
||||
|
||||
/** 账(手)册商品序号 */
|
||||
@Excel(name = "账(手)册商品序号")
|
||||
private String bookNumber;
|
||||
|
||||
/** 商品货号 */
|
||||
@Excel(name = "商品货号")
|
||||
private String productCode;
|
||||
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String brand;
|
||||
|
||||
/** 规格型号 */
|
||||
@Excel(name = "规格型号")
|
||||
private String specificationModel;
|
||||
|
||||
/** 商品描述 */
|
||||
@Excel(name = "商品描述")
|
||||
private String description;
|
||||
|
||||
/** 数量单位 */
|
||||
@Excel(name = "数量单位")
|
||||
private String quantityUnit;
|
||||
|
||||
/** 生产国 */
|
||||
@Excel(name = "生产国")
|
||||
private String produceCountry;
|
||||
|
||||
/** 检验检疫编码 */
|
||||
@Excel(name = "检验检疫编码")
|
||||
private String inspectionAndQuarantineCode;
|
||||
|
||||
/** HS编码 */
|
||||
@Excel(name = "HS编码")
|
||||
private String hsCode;
|
||||
|
||||
/** 税率 */
|
||||
@Excel(name = "税率")
|
||||
private BigDecimal taxRate;
|
||||
|
||||
/** 申报数量(法定数量=申报数量*购买数量) */
|
||||
@Excel(name = "申报数量", readConverterExp = "法=定数量=申报数量*购买数量")
|
||||
private BigDecimal declaredCount;
|
||||
|
||||
/** 法定计量单位 */
|
||||
@Excel(name = "法定计量单位")
|
||||
private String legalMeteringUnit;
|
||||
|
||||
/** 第二申报数量(第二数量=第二申报数量*购买数量) */
|
||||
@Excel(name = "第二申报数量", readConverterExp = "第=二数量=第二申报数量*购买数量")
|
||||
private BigDecimal secondDeclaredCount;
|
||||
|
||||
/** 第二计量单位 */
|
||||
@Excel(name = "第二计量单位")
|
||||
private String secondMeteringUnit;
|
||||
|
||||
/** 毛重 */
|
||||
@Excel(name = "毛重")
|
||||
private BigDecimal grossWeight;
|
||||
|
||||
/** 净重 */
|
||||
@Excel(name = "净重")
|
||||
private BigDecimal netWeight;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setOrderId(Long orderId)
|
||||
{
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Long getOrderId()
|
||||
{
|
||||
return orderId;
|
||||
}
|
||||
public void setDeclarePortId(Long declarePortId)
|
||||
{
|
||||
this.declarePortId = declarePortId;
|
||||
}
|
||||
|
||||
public Long getDeclarePortId()
|
||||
{
|
||||
return declarePortId;
|
||||
}
|
||||
public void setWarehouseId(Long warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public Long getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
public void setBarCode(String barCode)
|
||||
{
|
||||
this.barCode = barCode;
|
||||
}
|
||||
|
||||
public String getBarCode()
|
||||
{
|
||||
return barCode;
|
||||
}
|
||||
public void setQuantity(Integer quantity)
|
||||
{
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
public String getSkuCode() {
|
||||
return skuCode;
|
||||
}
|
||||
|
||||
public void setSkuCode(String skuCode) {
|
||||
this.skuCode = skuCode;
|
||||
}
|
||||
|
||||
public Integer getQuantity()
|
||||
{
|
||||
return quantity;
|
||||
}
|
||||
public void setPrice(BigDecimal price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
public void setShopPrice(BigDecimal shopPrice)
|
||||
{
|
||||
this.shopPrice = shopPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getShopPrice()
|
||||
{
|
||||
return shopPrice;
|
||||
}
|
||||
public void setFreight(BigDecimal freight)
|
||||
{
|
||||
this.freight = freight;
|
||||
}
|
||||
|
||||
public BigDecimal getFreight()
|
||||
{
|
||||
return freight;
|
||||
}
|
||||
public void setTaxAmount(BigDecimal taxAmount)
|
||||
{
|
||||
this.taxAmount = taxAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxAmount()
|
||||
{
|
||||
return taxAmount;
|
||||
}
|
||||
public void setItemLink(String itemLink)
|
||||
{
|
||||
this.itemLink = itemLink;
|
||||
}
|
||||
|
||||
public String getItemLink()
|
||||
{
|
||||
return itemLink;
|
||||
}
|
||||
public void setBookNumber(String bookNumber)
|
||||
{
|
||||
this.bookNumber = bookNumber;
|
||||
}
|
||||
|
||||
public String getBookNumber()
|
||||
{
|
||||
return bookNumber;
|
||||
}
|
||||
public void setProductCode(String productCode)
|
||||
{
|
||||
this.productCode = productCode;
|
||||
}
|
||||
|
||||
public String getProductCode()
|
||||
{
|
||||
return productCode;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setBrand(String brand)
|
||||
{
|
||||
this.brand = brand;
|
||||
}
|
||||
|
||||
public String getBrand()
|
||||
{
|
||||
return brand;
|
||||
}
|
||||
public void setSpecificationModel(String specificationModel)
|
||||
{
|
||||
this.specificationModel = specificationModel;
|
||||
}
|
||||
|
||||
public String getSpecificationModel()
|
||||
{
|
||||
return specificationModel;
|
||||
}
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
public void setQuantityUnit(String quantityUnit)
|
||||
{
|
||||
this.quantityUnit = quantityUnit;
|
||||
}
|
||||
|
||||
public String getQuantityUnit()
|
||||
{
|
||||
return quantityUnit;
|
||||
}
|
||||
public void setProduceCountry(String produceCountry)
|
||||
{
|
||||
this.produceCountry = produceCountry;
|
||||
}
|
||||
|
||||
public String getProduceCountry()
|
||||
{
|
||||
return produceCountry;
|
||||
}
|
||||
public void setInspectionAndQuarantineCode(String inspectionAndQuarantineCode)
|
||||
{
|
||||
this.inspectionAndQuarantineCode = inspectionAndQuarantineCode;
|
||||
}
|
||||
|
||||
public String getInspectionAndQuarantineCode()
|
||||
{
|
||||
return inspectionAndQuarantineCode;
|
||||
}
|
||||
public void setHsCode(String hsCode)
|
||||
{
|
||||
this.hsCode = hsCode;
|
||||
}
|
||||
|
||||
public String getHsCode()
|
||||
{
|
||||
return hsCode;
|
||||
}
|
||||
public void setTaxRate(BigDecimal taxRate)
|
||||
{
|
||||
this.taxRate = taxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxRate()
|
||||
{
|
||||
return taxRate;
|
||||
}
|
||||
public void setDeclaredCount(BigDecimal declaredCount)
|
||||
{
|
||||
this.declaredCount = declaredCount;
|
||||
}
|
||||
|
||||
public BigDecimal getDeclaredCount()
|
||||
{
|
||||
return declaredCount;
|
||||
}
|
||||
public void setLegalMeteringUnit(String legalMeteringUnit)
|
||||
{
|
||||
this.legalMeteringUnit = legalMeteringUnit;
|
||||
}
|
||||
|
||||
public String getLegalMeteringUnit()
|
||||
{
|
||||
return legalMeteringUnit;
|
||||
}
|
||||
public void setSecondDeclaredCount(BigDecimal secondDeclaredCount)
|
||||
{
|
||||
this.secondDeclaredCount = secondDeclaredCount;
|
||||
}
|
||||
|
||||
public BigDecimal getSecondDeclaredCount()
|
||||
{
|
||||
return secondDeclaredCount;
|
||||
}
|
||||
public void setSecondMeteringUnit(String secondMeteringUnit)
|
||||
{
|
||||
this.secondMeteringUnit = secondMeteringUnit;
|
||||
}
|
||||
|
||||
public String getSecondMeteringUnit()
|
||||
{
|
||||
return secondMeteringUnit;
|
||||
}
|
||||
public void setGrossWeight(BigDecimal grossWeight)
|
||||
{
|
||||
this.grossWeight = grossWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getGrossWeight()
|
||||
{
|
||||
return grossWeight;
|
||||
}
|
||||
public void setNetWeight(BigDecimal netWeight)
|
||||
{
|
||||
this.netWeight = netWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getNetWeight()
|
||||
{
|
||||
return netWeight;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("orderId", getOrderId())
|
||||
.append("declarePortId", getDeclarePortId())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("barCode", getBarCode())
|
||||
.append("quantity", getQuantity())
|
||||
.append("price", getPrice())
|
||||
.append("shopPrice", getShopPrice())
|
||||
.append("freight", getFreight())
|
||||
.append("taxAmount", getTaxAmount())
|
||||
.append("itemLink", getItemLink())
|
||||
.append("bookNumber", getBookNumber())
|
||||
.append("productCode", getProductCode())
|
||||
.append("name", getName())
|
||||
.append("brand", getBrand())
|
||||
.append("specificationModel", getSpecificationModel())
|
||||
.append("description", getDescription())
|
||||
.append("quantityUnit", getQuantityUnit())
|
||||
.append("produceCountry", getProduceCountry())
|
||||
.append("inspectionAndQuarantineCode", getInspectionAndQuarantineCode())
|
||||
.append("hsCode", getHsCode())
|
||||
.append("taxRate", getTaxRate())
|
||||
.append("declaredCount", getDeclaredCount())
|
||||
.append("legalMeteringUnit", getLegalMeteringUnit())
|
||||
.append("secondDeclaredCount", getSecondDeclaredCount())
|
||||
.append("secondMeteringUnit", getSecondMeteringUnit())
|
||||
.append("grossWeight", getGrossWeight())
|
||||
.append("netWeight", getNetWeight())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,402 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 备案订单项对象 custom_order_item
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_order_item")
|
||||
public class CustomOrderItemPlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "净重")
|
||||
private Long orderId;
|
||||
/** 口岸Id */
|
||||
@Excel(name = "口岸Id")
|
||||
private Long declarePortId;
|
||||
/** 仓库Id */
|
||||
@Excel(name = "仓库Id")
|
||||
private Long warehouseId;
|
||||
/** 商品条形码 */
|
||||
@Excel(name = "商品条形码")
|
||||
private String barCode;
|
||||
/** 数量 */
|
||||
@Excel(name = "数量")
|
||||
private Integer quantity;
|
||||
/** 单价 */
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal price;
|
||||
/** 商城单价 */
|
||||
@Excel(name = "商城单价")
|
||||
private BigDecimal shopPrice;
|
||||
/** 运费 */
|
||||
@Excel(name = "运费")
|
||||
private BigDecimal freight;
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "运费")
|
||||
private BigDecimal taxAmount;
|
||||
/** 商品链接 */
|
||||
@Excel(name = "商品链接")
|
||||
private String itemLink;
|
||||
/** 账(手)册商品序号 */
|
||||
@Excel(name = "账(手)册商品序号")
|
||||
private String bookNumber;
|
||||
/** 商品货号 */
|
||||
@Excel(name = "商品货号")
|
||||
private String productCode;
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String brand;
|
||||
/** 规格型号 */
|
||||
@Excel(name = "规格型号")
|
||||
private String specificationModel;
|
||||
/** 商品描述 */
|
||||
@Excel(name = "商品描述")
|
||||
private String description;
|
||||
/** 数量单位 */
|
||||
@Excel(name = "数量单位")
|
||||
private String quantityUnit;
|
||||
/** 生产国 */
|
||||
@Excel(name = "生产国")
|
||||
private String produceCountry;
|
||||
/** 检验检疫编码 */
|
||||
@Excel(name = "检验检疫编码")
|
||||
private String inspectionAndQuarantineCode;
|
||||
/** HS编码 */
|
||||
@Excel(name = "HS编码")
|
||||
private String hsCode;
|
||||
/** 税率 */
|
||||
@Excel(name = "税率")
|
||||
private BigDecimal taxRate;
|
||||
/** 申报数量(法定数量=申报数量*购买数量) */
|
||||
@Excel(name = "申报数量", readConverterExp = "法=定数量=申报数量*购买数量")
|
||||
private BigDecimal declaredCount;
|
||||
/** 法定计量单位 */
|
||||
@Excel(name = "法定计量单位")
|
||||
private String legalMeteringUnit;
|
||||
/** 第二申报数量(第二数量=第二申报数量*购买数量) */
|
||||
@Excel(name = "第二申报数量", readConverterExp = "第=二数量=第二申报数量*购买数量")
|
||||
private BigDecimal secondDeclaredCount;
|
||||
/** 第二计量单位 */
|
||||
@Excel(name = "第二计量单位")
|
||||
private String secondMeteringUnit;
|
||||
/** 毛重 */
|
||||
@Excel(name = "毛重")
|
||||
private BigDecimal grossWeight;
|
||||
/** 净重 */
|
||||
@Excel(name = "净重")
|
||||
private BigDecimal netWeight;
|
||||
/** skucode */
|
||||
@Excel(name = "skucode")
|
||||
private String skuCode;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getSkuCode() {
|
||||
return skuCode;
|
||||
}
|
||||
|
||||
public void setSkuCode(String skuCode) {
|
||||
this.skuCode = skuCode;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setOrderId(Long orderId)
|
||||
{
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Long getOrderId()
|
||||
{
|
||||
return orderId;
|
||||
}
|
||||
public void setDeclarePortId(Long declarePortId)
|
||||
{
|
||||
this.declarePortId = declarePortId;
|
||||
}
|
||||
|
||||
public Long getDeclarePortId()
|
||||
{
|
||||
return declarePortId;
|
||||
}
|
||||
public void setWarehouseId(Long warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public Long getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
public void setBarCode(String barCode)
|
||||
{
|
||||
this.barCode = barCode;
|
||||
}
|
||||
|
||||
public String getBarCode()
|
||||
{
|
||||
return barCode;
|
||||
}
|
||||
public void setQuantity(Integer quantity)
|
||||
{
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
public Integer getQuantity()
|
||||
{
|
||||
return quantity;
|
||||
}
|
||||
public void setPrice(BigDecimal price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
public void setShopPrice(BigDecimal shopPrice)
|
||||
{
|
||||
this.shopPrice = shopPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getShopPrice()
|
||||
{
|
||||
return shopPrice;
|
||||
}
|
||||
public void setFreight(BigDecimal freight)
|
||||
{
|
||||
this.freight = freight;
|
||||
}
|
||||
|
||||
public BigDecimal getFreight()
|
||||
{
|
||||
return freight;
|
||||
}
|
||||
public void setTaxAmount(BigDecimal taxAmount)
|
||||
{
|
||||
this.taxAmount = taxAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxAmount()
|
||||
{
|
||||
return taxAmount;
|
||||
}
|
||||
public void setItemLink(String itemLink)
|
||||
{
|
||||
this.itemLink = itemLink;
|
||||
}
|
||||
|
||||
public String getItemLink()
|
||||
{
|
||||
return itemLink;
|
||||
}
|
||||
public void setBookNumber(String bookNumber)
|
||||
{
|
||||
this.bookNumber = bookNumber;
|
||||
}
|
||||
|
||||
public String getBookNumber()
|
||||
{
|
||||
return bookNumber;
|
||||
}
|
||||
public void setProductCode(String productCode)
|
||||
{
|
||||
this.productCode = productCode;
|
||||
}
|
||||
|
||||
public String getProductCode()
|
||||
{
|
||||
return productCode;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setBrand(String brand)
|
||||
{
|
||||
this.brand = brand;
|
||||
}
|
||||
|
||||
public String getBrand()
|
||||
{
|
||||
return brand;
|
||||
}
|
||||
public void setSpecificationModel(String specificationModel)
|
||||
{
|
||||
this.specificationModel = specificationModel;
|
||||
}
|
||||
|
||||
public String getSpecificationModel()
|
||||
{
|
||||
return specificationModel;
|
||||
}
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
public void setQuantityUnit(String quantityUnit)
|
||||
{
|
||||
this.quantityUnit = quantityUnit;
|
||||
}
|
||||
|
||||
public String getQuantityUnit()
|
||||
{
|
||||
return quantityUnit;
|
||||
}
|
||||
public void setProduceCountry(String produceCountry)
|
||||
{
|
||||
this.produceCountry = produceCountry;
|
||||
}
|
||||
|
||||
public String getProduceCountry()
|
||||
{
|
||||
return produceCountry;
|
||||
}
|
||||
public void setInspectionAndQuarantineCode(String inspectionAndQuarantineCode)
|
||||
{
|
||||
this.inspectionAndQuarantineCode = inspectionAndQuarantineCode;
|
||||
}
|
||||
|
||||
public String getInspectionAndQuarantineCode()
|
||||
{
|
||||
return inspectionAndQuarantineCode;
|
||||
}
|
||||
public void setHsCode(String hsCode)
|
||||
{
|
||||
this.hsCode = hsCode;
|
||||
}
|
||||
|
||||
public String getHsCode()
|
||||
{
|
||||
return hsCode;
|
||||
}
|
||||
public void setTaxRate(BigDecimal taxRate)
|
||||
{
|
||||
this.taxRate = taxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxRate()
|
||||
{
|
||||
return taxRate;
|
||||
}
|
||||
public void setDeclaredCount(BigDecimal declaredCount)
|
||||
{
|
||||
this.declaredCount = declaredCount;
|
||||
}
|
||||
|
||||
public BigDecimal getDeclaredCount()
|
||||
{
|
||||
return declaredCount;
|
||||
}
|
||||
public void setLegalMeteringUnit(String legalMeteringUnit)
|
||||
{
|
||||
this.legalMeteringUnit = legalMeteringUnit;
|
||||
}
|
||||
|
||||
public String getLegalMeteringUnit()
|
||||
{
|
||||
return legalMeteringUnit;
|
||||
}
|
||||
public void setSecondDeclaredCount(BigDecimal secondDeclaredCount)
|
||||
{
|
||||
this.secondDeclaredCount = secondDeclaredCount;
|
||||
}
|
||||
|
||||
public BigDecimal getSecondDeclaredCount()
|
||||
{
|
||||
return secondDeclaredCount;
|
||||
}
|
||||
public void setSecondMeteringUnit(String secondMeteringUnit)
|
||||
{
|
||||
this.secondMeteringUnit = secondMeteringUnit;
|
||||
}
|
||||
|
||||
public String getSecondMeteringUnit()
|
||||
{
|
||||
return secondMeteringUnit;
|
||||
}
|
||||
public void setGrossWeight(BigDecimal grossWeight)
|
||||
{
|
||||
this.grossWeight = grossWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getGrossWeight()
|
||||
{
|
||||
return grossWeight;
|
||||
}
|
||||
public void setNetWeight(BigDecimal netWeight)
|
||||
{
|
||||
this.netWeight = netWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getNetWeight()
|
||||
{
|
||||
return netWeight;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("orderId", getOrderId())
|
||||
.append("declarePortId", getDeclarePortId())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("barCode", getBarCode())
|
||||
.append("quantity", getQuantity())
|
||||
.append("price", getPrice())
|
||||
.append("shopPrice", getShopPrice())
|
||||
.append("freight", getFreight())
|
||||
.append("taxAmount", getTaxAmount())
|
||||
.append("itemLink", getItemLink())
|
||||
.append("bookNumber", getBookNumber())
|
||||
.append("productCode", getProductCode())
|
||||
.append("name", getName())
|
||||
.append("brand", getBrand())
|
||||
.append("specificationModel", getSpecificationModel())
|
||||
.append("description", getDescription())
|
||||
.append("quantityUnit", getQuantityUnit())
|
||||
.append("produceCountry", getProduceCountry())
|
||||
.append("inspectionAndQuarantineCode", getInspectionAndQuarantineCode())
|
||||
.append("hsCode", getHsCode())
|
||||
.append("taxRate", getTaxRate())
|
||||
.append("declaredCount", getDeclaredCount())
|
||||
.append("legalMeteringUnit", getLegalMeteringUnit())
|
||||
.append("secondDeclaredCount", getSecondDeclaredCount())
|
||||
.append("secondMeteringUnit", getSecondMeteringUnit())
|
||||
.append("grossWeight", getGrossWeight())
|
||||
.append("netWeight", getNetWeight())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,722 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 备案订单对象 custom_order
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_order")
|
||||
public class CustomOrderPlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
/** 口岸Id */
|
||||
@Excel(name = "口岸Id")
|
||||
private Long declarePortId;
|
||||
/** 仓库Id */
|
||||
@Excel(name = "仓库Id")
|
||||
private Long warehouseId;
|
||||
/** 清关方式:1、保税;2、直邮;3、个人 */
|
||||
@Excel(name = "清关方式:1、保税;2、直邮;3、个人")
|
||||
private Integer mode;
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
/** 系统订单号 */
|
||||
@Excel(name = "系统订单号")
|
||||
private String sOrderNo;
|
||||
/** 申报订单号(商城订单号) */
|
||||
@Excel(name = "申报订单号", readConverterExp = "商=城订单号")
|
||||
private String declareOrderNo;
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Integer status;
|
||||
/** 快递公司 */
|
||||
@Excel(name = "快递公司")
|
||||
private String expressName;
|
||||
/** 运单号 */
|
||||
@Excel(name = "运单号")
|
||||
private String shipOrderNumber;
|
||||
/** 购买人注册号 */
|
||||
@Excel(name = "购买人注册号")
|
||||
private String buyerRegNo;
|
||||
/** 购买人 */
|
||||
@Excel(name = "购买人")
|
||||
private String buyerName;
|
||||
/** 购买人电话 */
|
||||
@Excel(name = "购买人电话")
|
||||
private String buyerTelephone;
|
||||
/** 购买人身份证类型:1-身份证,2-其它,3-军官证,4-护照。 */
|
||||
@Excel(name = "购买人身份证类型:1-身份证,2-其它,3-军官证,4-护照。")
|
||||
private Integer buyerIdType;
|
||||
/** 购买人身份证 */
|
||||
@Excel(name = "购买人身份证")
|
||||
private String buyerIdNumber;
|
||||
/** 收件人 */
|
||||
@Excel(name = "收件人")
|
||||
private String consignee;
|
||||
/** 收件人电话 */
|
||||
@Excel(name = "收件人电话")
|
||||
private String consigneeTelephone;
|
||||
/** 收件人地址 */
|
||||
@Excel(name = "收件人地址")
|
||||
private String consigneeAddress;
|
||||
/** 收件人省 */
|
||||
@Excel(name = "收件人省")
|
||||
private String consigneeProvince;
|
||||
/** 收件人市 */
|
||||
@Excel(name = "收件人市")
|
||||
private String consigneeCity;
|
||||
/** 收件人区 */
|
||||
@Excel(name = "收件人区")
|
||||
private String consigneeDistrict;
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "收件人区")
|
||||
private BigDecimal totalAmount;
|
||||
/** 非现金抵扣金额 */
|
||||
@Excel(name = "非现金抵扣金额")
|
||||
private BigDecimal discountAmount;
|
||||
/** 实际支付金额 */
|
||||
@Excel(name = "实际支付金额")
|
||||
private BigDecimal payTotalAmount;
|
||||
/** 税费 */
|
||||
@Excel(name = "税费")
|
||||
private BigDecimal taxTotalAmount;
|
||||
/** 商城税费 */
|
||||
@Excel(name = "商城税费")
|
||||
private BigDecimal shopTaxTotalAmount;
|
||||
/** 运费 */
|
||||
@Excel(name = "运费")
|
||||
private BigDecimal freightAmount;
|
||||
/** 总毛重 */
|
||||
@Excel(name = "总毛重")
|
||||
private BigDecimal totalGrossWeight;
|
||||
/** 总净重 */
|
||||
@Excel(name = "总净重")
|
||||
private BigDecimal totalNetWeight;
|
||||
/** 总数量 */
|
||||
@Excel(name = "总数量")
|
||||
private Integer totalQuantity;
|
||||
/** 支付公司名称 */
|
||||
@Excel(name = "支付公司名称")
|
||||
private String payName;
|
||||
/** 支付公司代码 */
|
||||
@Excel(name = "支付公司代码")
|
||||
private String payCode;
|
||||
/** 支付时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date payTime;
|
||||
/** 支付单号 */
|
||||
@Excel(name = "支付单号")
|
||||
private String gatewayOrderId;
|
||||
/** 发件人 */
|
||||
@Excel(name = "发件人")
|
||||
private String consignor;
|
||||
/** 发件人地址 */
|
||||
@Excel(name = "发件人地址")
|
||||
private String consignorAddress;
|
||||
/** 发件人电话 */
|
||||
@Excel(name = "发件人电话")
|
||||
private String consignorTelephone;
|
||||
/** 发件人所在国 */
|
||||
@Excel(name = "发件人所在国")
|
||||
private String consignorCountry;
|
||||
/** 发件人省 */
|
||||
@Excel(name = "发件人省")
|
||||
private String consignorProvince;
|
||||
/** 发件人市 */
|
||||
@Excel(name = "发件人市")
|
||||
private String consignorCity;
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "发件人市")
|
||||
private String consignorDistrict;
|
||||
/** 收款账户 */
|
||||
@Excel(name = "收款账户")
|
||||
private String receiptAccount;
|
||||
/** 验核机构:1-银联 2-网联 3-其他 */
|
||||
@Excel(name = "验核机构:1-银联 2-网联 3-其他")
|
||||
private Integer verDept;
|
||||
/** 支付类型:1-APP 2-PC 3-扫码 4-其他 */
|
||||
@Excel(name = "支付类型:1-APP 2-PC 3-扫码 4-其他")
|
||||
private Integer payType;
|
||||
/** 支付原始请求 */
|
||||
@Excel(name = "支付原始请求")
|
||||
private String initalRequest;
|
||||
/** 支付原始响应 */
|
||||
@Excel(name = "支付原始响应")
|
||||
private String initalResponse;
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
/** 接口信息返回结果 */
|
||||
@Excel(name = "接口信息返回结果")
|
||||
private String expressReturn;
|
||||
/** 订单处理过程 */
|
||||
@Excel(name = "订单处理过程")
|
||||
private String process;
|
||||
/** 添加时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date addTime;
|
||||
/** 清单编号 */
|
||||
@Excel(name = "清单编号")
|
||||
private String inventoryNo;
|
||||
/** 批次号 */
|
||||
@Excel(name = "批次号")
|
||||
private String batchNumber;
|
||||
/** 备案订单项信息 */
|
||||
private List<CustomOrderItem> customOrderItemList;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDeclarePortId(Long declarePortId)
|
||||
{
|
||||
this.declarePortId = declarePortId;
|
||||
}
|
||||
|
||||
public Long getDeclarePortId()
|
||||
{
|
||||
return declarePortId;
|
||||
}
|
||||
public void setWarehouseId(Long warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public Long getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
public void setMode(Integer mode)
|
||||
{
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
public Integer getMode()
|
||||
{
|
||||
return mode;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setsOrderNo(String sOrderNo)
|
||||
{
|
||||
this.sOrderNo = sOrderNo;
|
||||
}
|
||||
|
||||
public String getsOrderNo()
|
||||
{
|
||||
return sOrderNo;
|
||||
}
|
||||
public void setDeclareOrderNo(String declareOrderNo)
|
||||
{
|
||||
this.declareOrderNo = declareOrderNo;
|
||||
}
|
||||
|
||||
public String getDeclareOrderNo()
|
||||
{
|
||||
return declareOrderNo;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setExpressName(String expressName)
|
||||
{
|
||||
this.expressName = expressName;
|
||||
}
|
||||
|
||||
public String getExpressName()
|
||||
{
|
||||
return expressName;
|
||||
}
|
||||
public void setShipOrderNumber(String shipOrderNumber)
|
||||
{
|
||||
this.shipOrderNumber = shipOrderNumber;
|
||||
}
|
||||
|
||||
public String getShipOrderNumber()
|
||||
{
|
||||
return shipOrderNumber;
|
||||
}
|
||||
public void setBuyerRegNo(String buyerRegNo)
|
||||
{
|
||||
this.buyerRegNo = buyerRegNo;
|
||||
}
|
||||
|
||||
public String getBuyerRegNo()
|
||||
{
|
||||
return buyerRegNo;
|
||||
}
|
||||
public void setBuyerName(String buyerName)
|
||||
{
|
||||
this.buyerName = buyerName;
|
||||
}
|
||||
|
||||
public String getBuyerName()
|
||||
{
|
||||
return buyerName;
|
||||
}
|
||||
public void setBuyerTelephone(String buyerTelephone)
|
||||
{
|
||||
this.buyerTelephone = buyerTelephone;
|
||||
}
|
||||
|
||||
public String getBuyerTelephone()
|
||||
{
|
||||
return buyerTelephone;
|
||||
}
|
||||
public void setBuyerIdType(Integer buyerIdType)
|
||||
{
|
||||
this.buyerIdType = buyerIdType;
|
||||
}
|
||||
|
||||
public Integer getBuyerIdType()
|
||||
{
|
||||
return buyerIdType;
|
||||
}
|
||||
public void setBuyerIdNumber(String buyerIdNumber)
|
||||
{
|
||||
this.buyerIdNumber = buyerIdNumber;
|
||||
}
|
||||
|
||||
public String getBuyerIdNumber()
|
||||
{
|
||||
return buyerIdNumber;
|
||||
}
|
||||
public void setConsignee(String consignee)
|
||||
{
|
||||
this.consignee = consignee;
|
||||
}
|
||||
|
||||
public String getConsignee()
|
||||
{
|
||||
return consignee;
|
||||
}
|
||||
public void setConsigneeTelephone(String consigneeTelephone)
|
||||
{
|
||||
this.consigneeTelephone = consigneeTelephone;
|
||||
}
|
||||
|
||||
public String getConsigneeTelephone()
|
||||
{
|
||||
return consigneeTelephone;
|
||||
}
|
||||
public void setConsigneeAddress(String consigneeAddress)
|
||||
{
|
||||
this.consigneeAddress = consigneeAddress;
|
||||
}
|
||||
|
||||
public String getConsigneeAddress()
|
||||
{
|
||||
return consigneeAddress;
|
||||
}
|
||||
public void setConsigneeProvince(String consigneeProvince)
|
||||
{
|
||||
this.consigneeProvince = consigneeProvince;
|
||||
}
|
||||
|
||||
public String getConsigneeProvince()
|
||||
{
|
||||
return consigneeProvince;
|
||||
}
|
||||
public void setConsigneeCity(String consigneeCity)
|
||||
{
|
||||
this.consigneeCity = consigneeCity;
|
||||
}
|
||||
|
||||
public String getConsigneeCity()
|
||||
{
|
||||
return consigneeCity;
|
||||
}
|
||||
public void setConsigneeDistrict(String consigneeDistrict)
|
||||
{
|
||||
this.consigneeDistrict = consigneeDistrict;
|
||||
}
|
||||
|
||||
public String getConsigneeDistrict()
|
||||
{
|
||||
return consigneeDistrict;
|
||||
}
|
||||
public void setTotalAmount(BigDecimal totalAmount)
|
||||
{
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getTotalAmount()
|
||||
{
|
||||
return totalAmount;
|
||||
}
|
||||
public void setDiscountAmount(BigDecimal discountAmount)
|
||||
{
|
||||
this.discountAmount = discountAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getDiscountAmount()
|
||||
{
|
||||
return discountAmount;
|
||||
}
|
||||
public void setPayTotalAmount(BigDecimal payTotalAmount)
|
||||
{
|
||||
this.payTotalAmount = payTotalAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getPayTotalAmount()
|
||||
{
|
||||
return payTotalAmount;
|
||||
}
|
||||
public void setTaxTotalAmount(BigDecimal taxTotalAmount)
|
||||
{
|
||||
this.taxTotalAmount = taxTotalAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxTotalAmount()
|
||||
{
|
||||
return taxTotalAmount;
|
||||
}
|
||||
public void setShopTaxTotalAmount(BigDecimal shopTaxTotalAmount)
|
||||
{
|
||||
this.shopTaxTotalAmount = shopTaxTotalAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getShopTaxTotalAmount()
|
||||
{
|
||||
return shopTaxTotalAmount;
|
||||
}
|
||||
public void setFreightAmount(BigDecimal freightAmount)
|
||||
{
|
||||
this.freightAmount = freightAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getFreightAmount()
|
||||
{
|
||||
return freightAmount;
|
||||
}
|
||||
public void setTotalGrossWeight(BigDecimal totalGrossWeight)
|
||||
{
|
||||
this.totalGrossWeight = totalGrossWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getTotalGrossWeight()
|
||||
{
|
||||
return totalGrossWeight;
|
||||
}
|
||||
public void setTotalNetWeight(BigDecimal totalNetWeight)
|
||||
{
|
||||
this.totalNetWeight = totalNetWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getTotalNetWeight()
|
||||
{
|
||||
return totalNetWeight;
|
||||
}
|
||||
public void setTotalQuantity(Integer totalQuantity)
|
||||
{
|
||||
this.totalQuantity = totalQuantity;
|
||||
}
|
||||
|
||||
public Integer getTotalQuantity()
|
||||
{
|
||||
return totalQuantity;
|
||||
}
|
||||
public void setPayName(String payName)
|
||||
{
|
||||
this.payName = payName;
|
||||
}
|
||||
|
||||
public String getPayName()
|
||||
{
|
||||
return payName;
|
||||
}
|
||||
public void setPayCode(String payCode)
|
||||
{
|
||||
this.payCode = payCode;
|
||||
}
|
||||
|
||||
public String getPayCode()
|
||||
{
|
||||
return payCode;
|
||||
}
|
||||
public void setPayTime(Date payTime)
|
||||
{
|
||||
this.payTime = payTime;
|
||||
}
|
||||
|
||||
public Date getPayTime()
|
||||
{
|
||||
return payTime;
|
||||
}
|
||||
public void setGatewayOrderId(String gatewayOrderId)
|
||||
{
|
||||
this.gatewayOrderId = gatewayOrderId;
|
||||
}
|
||||
|
||||
public String getGatewayOrderId()
|
||||
{
|
||||
return gatewayOrderId;
|
||||
}
|
||||
public void setConsignor(String consignor)
|
||||
{
|
||||
this.consignor = consignor;
|
||||
}
|
||||
|
||||
public String getConsignor()
|
||||
{
|
||||
return consignor;
|
||||
}
|
||||
public void setConsignorAddress(String consignorAddress)
|
||||
{
|
||||
this.consignorAddress = consignorAddress;
|
||||
}
|
||||
|
||||
public String getConsignorAddress()
|
||||
{
|
||||
return consignorAddress;
|
||||
}
|
||||
public void setConsignorTelephone(String consignorTelephone)
|
||||
{
|
||||
this.consignorTelephone = consignorTelephone;
|
||||
}
|
||||
|
||||
public String getConsignorTelephone()
|
||||
{
|
||||
return consignorTelephone;
|
||||
}
|
||||
public void setConsignorCountry(String consignorCountry)
|
||||
{
|
||||
this.consignorCountry = consignorCountry;
|
||||
}
|
||||
|
||||
public String getConsignorCountry()
|
||||
{
|
||||
return consignorCountry;
|
||||
}
|
||||
public void setConsignorProvince(String consignorProvince)
|
||||
{
|
||||
this.consignorProvince = consignorProvince;
|
||||
}
|
||||
|
||||
public String getConsignorProvince()
|
||||
{
|
||||
return consignorProvince;
|
||||
}
|
||||
public void setConsignorCity(String consignorCity)
|
||||
{
|
||||
this.consignorCity = consignorCity;
|
||||
}
|
||||
|
||||
public String getConsignorCity()
|
||||
{
|
||||
return consignorCity;
|
||||
}
|
||||
public void setConsignorDistrict(String consignorDistrict)
|
||||
{
|
||||
this.consignorDistrict = consignorDistrict;
|
||||
}
|
||||
|
||||
public String getConsignorDistrict()
|
||||
{
|
||||
return consignorDistrict;
|
||||
}
|
||||
public void setReceiptAccount(String receiptAccount)
|
||||
{
|
||||
this.receiptAccount = receiptAccount;
|
||||
}
|
||||
|
||||
public String getReceiptAccount()
|
||||
{
|
||||
return receiptAccount;
|
||||
}
|
||||
public void setVerDept(Integer verDept)
|
||||
{
|
||||
this.verDept = verDept;
|
||||
}
|
||||
|
||||
public Integer getVerDept()
|
||||
{
|
||||
return verDept;
|
||||
}
|
||||
public void setPayType(Integer payType)
|
||||
{
|
||||
this.payType = payType;
|
||||
}
|
||||
|
||||
public Integer getPayType()
|
||||
{
|
||||
return payType;
|
||||
}
|
||||
public void setInitalRequest(String initalRequest)
|
||||
{
|
||||
this.initalRequest = initalRequest;
|
||||
}
|
||||
|
||||
public String getInitalRequest()
|
||||
{
|
||||
return initalRequest;
|
||||
}
|
||||
public void setInitalResponse(String initalResponse)
|
||||
{
|
||||
this.initalResponse = initalResponse;
|
||||
}
|
||||
|
||||
public String getInitalResponse()
|
||||
{
|
||||
return initalResponse;
|
||||
}
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
public void setExpressReturn(String expressReturn)
|
||||
{
|
||||
this.expressReturn = expressReturn;
|
||||
}
|
||||
|
||||
public String getExpressReturn()
|
||||
{
|
||||
return expressReturn;
|
||||
}
|
||||
public void setProcess(String process)
|
||||
{
|
||||
this.process = process;
|
||||
}
|
||||
|
||||
public String getProcess()
|
||||
{
|
||||
return process;
|
||||
}
|
||||
public void setAddTime(Date addTime)
|
||||
{
|
||||
this.addTime = addTime;
|
||||
}
|
||||
|
||||
public Date getAddTime()
|
||||
{
|
||||
return addTime;
|
||||
}
|
||||
public void setInventoryNo(String inventoryNo)
|
||||
{
|
||||
this.inventoryNo = inventoryNo;
|
||||
}
|
||||
|
||||
public String getInventoryNo()
|
||||
{
|
||||
return inventoryNo;
|
||||
}
|
||||
public void setBatchNumber(String batchNumber)
|
||||
{
|
||||
this.batchNumber = batchNumber;
|
||||
}
|
||||
|
||||
public String getBatchNumber()
|
||||
{
|
||||
return batchNumber;
|
||||
}
|
||||
|
||||
public List<CustomOrderItem> getCustomOrderItemList()
|
||||
{
|
||||
return customOrderItemList;
|
||||
}
|
||||
|
||||
public void setCustomOrderItemList(List<CustomOrderItem> customOrderItemList)
|
||||
{
|
||||
this.customOrderItemList = customOrderItemList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("declarePortId", getDeclarePortId())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("mode", getMode())
|
||||
.append("userId", getUserId())
|
||||
.append("sOrderNo", getsOrderNo())
|
||||
.append("declareOrderNo", getDeclareOrderNo())
|
||||
.append("status", getStatus())
|
||||
.append("expressName", getExpressName())
|
||||
.append("shipOrderNumber", getShipOrderNumber())
|
||||
.append("buyerRegNo", getBuyerRegNo())
|
||||
.append("buyerName", getBuyerName())
|
||||
.append("buyerTelephone", getBuyerTelephone())
|
||||
.append("buyerIdType", getBuyerIdType())
|
||||
.append("buyerIdNumber", getBuyerIdNumber())
|
||||
.append("consignee", getConsignee())
|
||||
.append("consigneeTelephone", getConsigneeTelephone())
|
||||
.append("consigneeAddress", getConsigneeAddress())
|
||||
.append("consigneeProvince", getConsigneeProvince())
|
||||
.append("consigneeCity", getConsigneeCity())
|
||||
.append("consigneeDistrict", getConsigneeDistrict())
|
||||
.append("totalAmount", getTotalAmount())
|
||||
.append("discountAmount", getDiscountAmount())
|
||||
.append("payTotalAmount", getPayTotalAmount())
|
||||
.append("taxTotalAmount", getTaxTotalAmount())
|
||||
.append("shopTaxTotalAmount", getShopTaxTotalAmount())
|
||||
.append("freightAmount", getFreightAmount())
|
||||
.append("totalGrossWeight", getTotalGrossWeight())
|
||||
.append("totalNetWeight", getTotalNetWeight())
|
||||
.append("totalQuantity", getTotalQuantity())
|
||||
.append("payName", getPayName())
|
||||
.append("payCode", getPayCode())
|
||||
.append("payTime", getPayTime())
|
||||
.append("gatewayOrderId", getGatewayOrderId())
|
||||
.append("consignor", getConsignor())
|
||||
.append("consignorAddress", getConsignorAddress())
|
||||
.append("consignorTelephone", getConsignorTelephone())
|
||||
.append("consignorCountry", getConsignorCountry())
|
||||
.append("consignorProvince", getConsignorProvince())
|
||||
.append("consignorCity", getConsignorCity())
|
||||
.append("consignorDistrict", getConsignorDistrict())
|
||||
.append("receiptAccount", getReceiptAccount())
|
||||
.append("verDept", getVerDept())
|
||||
.append("payType", getPayType())
|
||||
.append("initalRequest", getInitalRequest())
|
||||
.append("initalResponse", getInitalResponse())
|
||||
.append("remark", getRemark())
|
||||
.append("expressReturn", getExpressReturn())
|
||||
.append("process", getProcess())
|
||||
.append("addTime", getAddTime())
|
||||
.append("inventoryNo", getInventoryNo())
|
||||
.append("batchNumber", getBatchNumber())
|
||||
.append("customOrderItemList", getCustomOrderItemList())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 行邮税号对象 custom_parcel_number
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomParcelNumber extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 行邮税号 */
|
||||
@Excel(name = "行邮税号")
|
||||
private String parcelNumber;
|
||||
|
||||
/** 品名及规格 */
|
||||
@Excel(name = "品名及规格")
|
||||
private String name;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 完税价格 */
|
||||
@Excel(name = "完税价格")
|
||||
private BigDecimal price;
|
||||
|
||||
/** 税率 */
|
||||
@Excel(name = "税率")
|
||||
private BigDecimal taxRate;
|
||||
|
||||
/** 税额 */
|
||||
@Excel(name = "税额")
|
||||
private BigDecimal taxAmount;
|
||||
|
||||
/** 添加时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date addTime;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setParcelNumber(String parcelNumber)
|
||||
{
|
||||
this.parcelNumber = parcelNumber;
|
||||
}
|
||||
|
||||
public String getParcelNumber()
|
||||
{
|
||||
return parcelNumber;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setUnit(String unit)
|
||||
{
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit()
|
||||
{
|
||||
return unit;
|
||||
}
|
||||
public void setPrice(BigDecimal price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
public void setTaxRate(BigDecimal taxRate)
|
||||
{
|
||||
this.taxRate = taxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxRate()
|
||||
{
|
||||
return taxRate;
|
||||
}
|
||||
public void setTaxAmount(BigDecimal taxAmount)
|
||||
{
|
||||
this.taxAmount = taxAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxAmount()
|
||||
{
|
||||
return taxAmount;
|
||||
}
|
||||
public void setAddTime(Date addTime)
|
||||
{
|
||||
this.addTime = addTime;
|
||||
}
|
||||
|
||||
public Date getAddTime()
|
||||
{
|
||||
return addTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("parcelNumber", getParcelNumber())
|
||||
.append("name", getName())
|
||||
.append("unit", getUnit())
|
||||
.append("price", getPrice())
|
||||
.append("taxRate", getTaxRate())
|
||||
.append("taxAmount", getTaxAmount())
|
||||
.append("remark", getRemark())
|
||||
.append("addTime", getAddTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 行邮税号对象 custom_parcel_number
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_parcel_number")
|
||||
public class CustomParcelNumberPlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
/** 行邮税号 */
|
||||
@Excel(name = "行邮税号")
|
||||
private String parcelNumber;
|
||||
/** 品名及规格 */
|
||||
@Excel(name = "品名及规格")
|
||||
private String name;
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
/** 完税价格 */
|
||||
@Excel(name = "完税价格")
|
||||
private BigDecimal price;
|
||||
/** 税率 */
|
||||
@Excel(name = "税率")
|
||||
private BigDecimal taxRate;
|
||||
/** 税额 */
|
||||
@Excel(name = "税额")
|
||||
private BigDecimal taxAmount;
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
/** 添加时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date addTime;
|
||||
/** 更新时间 */
|
||||
private Date updateTime;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setParcelNumber(String parcelNumber)
|
||||
{
|
||||
this.parcelNumber = parcelNumber;
|
||||
}
|
||||
|
||||
public String getParcelNumber()
|
||||
{
|
||||
return parcelNumber;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setUnit(String unit)
|
||||
{
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit()
|
||||
{
|
||||
return unit;
|
||||
}
|
||||
public void setPrice(BigDecimal price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
public void setTaxRate(BigDecimal taxRate)
|
||||
{
|
||||
this.taxRate = taxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxRate()
|
||||
{
|
||||
return taxRate;
|
||||
}
|
||||
public void setTaxAmount(BigDecimal taxAmount)
|
||||
{
|
||||
this.taxAmount = taxAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxAmount()
|
||||
{
|
||||
return taxAmount;
|
||||
}
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
public void setAddTime(Date addTime)
|
||||
{
|
||||
this.addTime = addTime;
|
||||
}
|
||||
|
||||
public Date getAddTime()
|
||||
{
|
||||
return addTime;
|
||||
}
|
||||
public void setUpdateTime(Date updateTime)
|
||||
{
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime()
|
||||
{
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("parcelNumber", getParcelNumber())
|
||||
.append("name", getName())
|
||||
.append("unit", getUnit())
|
||||
.append("price", getPrice())
|
||||
.append("taxRate", getTaxRate())
|
||||
.append("taxAmount", getTaxAmount())
|
||||
.append("remark", getRemark())
|
||||
.append("addTime", getAddTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,533 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 商品备案对象 custom_product_record
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomProductRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** sku编码 */
|
||||
@Excel(name = "sku编码")
|
||||
private String skuCode;
|
||||
|
||||
/** 商品条形码 */
|
||||
@Excel(name = "商品条形码")
|
||||
private String barCode;
|
||||
|
||||
/** 商品货号 */
|
||||
@Excel(name = "商品货号")
|
||||
private String productCode;
|
||||
|
||||
/** HS编码 */
|
||||
@Excel(name = "HS编码")
|
||||
private String hsCode;
|
||||
|
||||
/** 商品名称 */
|
||||
@Excel(name = "商品名称")
|
||||
private String name;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String brand;
|
||||
|
||||
/** 商品描述 */
|
||||
@Excel(name = "商品描述")
|
||||
private String description;
|
||||
|
||||
/** 规格型号 */
|
||||
@Excel(name = "规格型号")
|
||||
private String specificationModel;
|
||||
|
||||
/** 生产国 */
|
||||
@Excel(name = "生产国")
|
||||
private String produceCountry;
|
||||
|
||||
/** 生产国代码 */
|
||||
@Excel(name = "生产国代码")
|
||||
private String produceCountryCode;
|
||||
|
||||
/** 数量单位 */
|
||||
@Excel(name = "数量单位")
|
||||
private String quantityUnit;
|
||||
|
||||
/** 数量单位代码 */
|
||||
@Excel(name = "数量单位代码")
|
||||
private String quantityUnitCode;
|
||||
|
||||
/** 申报数量(法定数量=申报数量*购买数量) */
|
||||
@Excel(name = "申报数量", readConverterExp = "法=定数量=申报数量*购买数量")
|
||||
private BigDecimal declaredCount;
|
||||
|
||||
/** 法定计量单位 */
|
||||
@Excel(name = "法定计量单位")
|
||||
private String legalMeteringUnit;
|
||||
|
||||
/** 法定计量单位代码 */
|
||||
@Excel(name = "法定计量单位代码")
|
||||
private String legalMeteringUnitCode;
|
||||
|
||||
/** 第二申报数量(第二数量=第二申报数量*购买数量) */
|
||||
@Excel(name = "第二申报数量", readConverterExp = "第=二数量=第二申报数量*购买数量")
|
||||
private BigDecimal secondDeclaredCount;
|
||||
|
||||
/** 第二计量单位 */
|
||||
@Excel(name = "第二计量单位")
|
||||
private String secondMeteringUnit;
|
||||
|
||||
/** 第二计量单位代码 */
|
||||
@Excel(name = "第二计量单位代码")
|
||||
private String secondMeteringUnitCode;
|
||||
|
||||
/** 单价 */
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal price;
|
||||
|
||||
/** 毛重(KG) */
|
||||
@Excel(name = "毛重", readConverterExp = "K=G")
|
||||
private BigDecimal grossWeight;
|
||||
|
||||
/** 净重(KG) */
|
||||
@Excel(name = "净重", readConverterExp = "K=G")
|
||||
private BigDecimal netWeight;
|
||||
|
||||
/** 检验检疫编码 */
|
||||
@Excel(name = "检验检疫编码")
|
||||
private String inspectionAndQuarantineCode;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 仓库id */
|
||||
@Excel(name = "仓库id")
|
||||
private Long warehouseId;
|
||||
|
||||
/** 申报口岸Id */
|
||||
@Excel(name = "申报口岸Id")
|
||||
private Long declarePortId;
|
||||
|
||||
/** 税率 */
|
||||
@Excel(name = "税率")
|
||||
private BigDecimal taxRate;
|
||||
|
||||
/** 成分 */
|
||||
@Excel(name = "成分")
|
||||
private String ingredient;
|
||||
|
||||
/** 账(手)册商品序号 */
|
||||
@Excel(name = "账(手)册商品序号")
|
||||
private String bookNumber;
|
||||
|
||||
/** 1、保税;2、直邮;3、个人 */
|
||||
@Excel(name = "1、保税;2、直邮;3、个人")
|
||||
private Integer type;
|
||||
|
||||
/** 添加时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date addTime;
|
||||
|
||||
/** 行邮税号 */
|
||||
@Excel(name = "行邮税号")
|
||||
private String parcelNumber;
|
||||
|
||||
/** 行邮税率 */
|
||||
@Excel(name = "行邮税率")
|
||||
private BigDecimal parcelNumberTaxRate;
|
||||
|
||||
/** 英文品名 */
|
||||
@Excel(name = "英文品名")
|
||||
private String englishName;
|
||||
|
||||
/** 完税价格 */
|
||||
@Excel(name = "完税价格")
|
||||
private BigDecimal dutyPrice;
|
||||
|
||||
/** 税额 */
|
||||
@Excel(name = "税额")
|
||||
private BigDecimal taxAmount;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setSkuCode(String skuCode)
|
||||
{
|
||||
this.skuCode = skuCode;
|
||||
}
|
||||
|
||||
public String getSkuCode()
|
||||
{
|
||||
return skuCode;
|
||||
}
|
||||
public void setBarCode(String barCode)
|
||||
{
|
||||
this.barCode = barCode;
|
||||
}
|
||||
|
||||
public String getBarCode()
|
||||
{
|
||||
return barCode;
|
||||
}
|
||||
public void setProductCode(String productCode)
|
||||
{
|
||||
this.productCode = productCode;
|
||||
}
|
||||
|
||||
public String getProductCode()
|
||||
{
|
||||
return productCode;
|
||||
}
|
||||
public void setHsCode(String hsCode)
|
||||
{
|
||||
this.hsCode = hsCode;
|
||||
}
|
||||
|
||||
public String getHsCode()
|
||||
{
|
||||
return hsCode;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setBrand(String brand)
|
||||
{
|
||||
this.brand = brand;
|
||||
}
|
||||
|
||||
public String getBrand()
|
||||
{
|
||||
return brand;
|
||||
}
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
public void setSpecificationModel(String specificationModel)
|
||||
{
|
||||
this.specificationModel = specificationModel;
|
||||
}
|
||||
|
||||
public String getSpecificationModel()
|
||||
{
|
||||
return specificationModel;
|
||||
}
|
||||
public void setProduceCountry(String produceCountry)
|
||||
{
|
||||
this.produceCountry = produceCountry;
|
||||
}
|
||||
|
||||
public String getProduceCountry()
|
||||
{
|
||||
return produceCountry;
|
||||
}
|
||||
public void setProduceCountryCode(String produceCountryCode)
|
||||
{
|
||||
this.produceCountryCode = produceCountryCode;
|
||||
}
|
||||
|
||||
public String getProduceCountryCode()
|
||||
{
|
||||
return produceCountryCode;
|
||||
}
|
||||
public void setQuantityUnit(String quantityUnit)
|
||||
{
|
||||
this.quantityUnit = quantityUnit;
|
||||
}
|
||||
|
||||
public String getQuantityUnit()
|
||||
{
|
||||
return quantityUnit;
|
||||
}
|
||||
public void setQuantityUnitCode(String quantityUnitCode)
|
||||
{
|
||||
this.quantityUnitCode = quantityUnitCode;
|
||||
}
|
||||
|
||||
public String getQuantityUnitCode()
|
||||
{
|
||||
return quantityUnitCode;
|
||||
}
|
||||
public void setDeclaredCount(BigDecimal declaredCount)
|
||||
{
|
||||
this.declaredCount = declaredCount;
|
||||
}
|
||||
|
||||
public BigDecimal getDeclaredCount()
|
||||
{
|
||||
return declaredCount;
|
||||
}
|
||||
public void setLegalMeteringUnit(String legalMeteringUnit)
|
||||
{
|
||||
this.legalMeteringUnit = legalMeteringUnit;
|
||||
}
|
||||
|
||||
public String getLegalMeteringUnit()
|
||||
{
|
||||
return legalMeteringUnit;
|
||||
}
|
||||
public void setLegalMeteringUnitCode(String legalMeteringUnitCode)
|
||||
{
|
||||
this.legalMeteringUnitCode = legalMeteringUnitCode;
|
||||
}
|
||||
|
||||
public String getLegalMeteringUnitCode()
|
||||
{
|
||||
return legalMeteringUnitCode;
|
||||
}
|
||||
public void setSecondDeclaredCount(BigDecimal secondDeclaredCount)
|
||||
{
|
||||
this.secondDeclaredCount = secondDeclaredCount;
|
||||
}
|
||||
|
||||
public BigDecimal getSecondDeclaredCount()
|
||||
{
|
||||
return secondDeclaredCount;
|
||||
}
|
||||
public void setSecondMeteringUnit(String secondMeteringUnit)
|
||||
{
|
||||
this.secondMeteringUnit = secondMeteringUnit;
|
||||
}
|
||||
|
||||
public String getSecondMeteringUnit()
|
||||
{
|
||||
return secondMeteringUnit;
|
||||
}
|
||||
public void setSecondMeteringUnitCode(String secondMeteringUnitCode)
|
||||
{
|
||||
this.secondMeteringUnitCode = secondMeteringUnitCode;
|
||||
}
|
||||
|
||||
public String getSecondMeteringUnitCode()
|
||||
{
|
||||
return secondMeteringUnitCode;
|
||||
}
|
||||
public void setPrice(BigDecimal price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
public void setGrossWeight(BigDecimal grossWeight)
|
||||
{
|
||||
this.grossWeight = grossWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getGrossWeight()
|
||||
{
|
||||
return grossWeight;
|
||||
}
|
||||
public void setNetWeight(BigDecimal netWeight)
|
||||
{
|
||||
this.netWeight = netWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getNetWeight()
|
||||
{
|
||||
return netWeight;
|
||||
}
|
||||
public void setInspectionAndQuarantineCode(String inspectionAndQuarantineCode)
|
||||
{
|
||||
this.inspectionAndQuarantineCode = inspectionAndQuarantineCode;
|
||||
}
|
||||
|
||||
public String getInspectionAndQuarantineCode()
|
||||
{
|
||||
return inspectionAndQuarantineCode;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setWarehouseId(Long warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public Long getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
public void setDeclarePortId(Long declarePortId)
|
||||
{
|
||||
this.declarePortId = declarePortId;
|
||||
}
|
||||
|
||||
public Long getDeclarePortId()
|
||||
{
|
||||
return declarePortId;
|
||||
}
|
||||
public void setTaxRate(BigDecimal taxRate)
|
||||
{
|
||||
this.taxRate = taxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxRate()
|
||||
{
|
||||
return taxRate;
|
||||
}
|
||||
public void setIngredient(String ingredient)
|
||||
{
|
||||
this.ingredient = ingredient;
|
||||
}
|
||||
|
||||
public String getIngredient()
|
||||
{
|
||||
return ingredient;
|
||||
}
|
||||
public void setBookNumber(String bookNumber)
|
||||
{
|
||||
this.bookNumber = bookNumber;
|
||||
}
|
||||
|
||||
public String getBookNumber()
|
||||
{
|
||||
return bookNumber;
|
||||
}
|
||||
public void setType(Integer type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setAddTime(Date addTime)
|
||||
{
|
||||
this.addTime = addTime;
|
||||
}
|
||||
|
||||
public Date getAddTime()
|
||||
{
|
||||
return addTime;
|
||||
}
|
||||
public void setParcelNumber(String parcelNumber)
|
||||
{
|
||||
this.parcelNumber = parcelNumber;
|
||||
}
|
||||
|
||||
public String getParcelNumber()
|
||||
{
|
||||
return parcelNumber;
|
||||
}
|
||||
public void setParcelNumberTaxRate(BigDecimal parcelNumberTaxRate)
|
||||
{
|
||||
this.parcelNumberTaxRate = parcelNumberTaxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getParcelNumberTaxRate()
|
||||
{
|
||||
return parcelNumberTaxRate;
|
||||
}
|
||||
public void setEnglishName(String englishName)
|
||||
{
|
||||
this.englishName = englishName;
|
||||
}
|
||||
|
||||
public String getEnglishName()
|
||||
{
|
||||
return englishName;
|
||||
}
|
||||
public void setDutyPrice(BigDecimal dutyPrice)
|
||||
{
|
||||
this.dutyPrice = dutyPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getDutyPrice()
|
||||
{
|
||||
return dutyPrice;
|
||||
}
|
||||
public void setTaxAmount(BigDecimal taxAmount)
|
||||
{
|
||||
this.taxAmount = taxAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxAmount()
|
||||
{
|
||||
return taxAmount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("skuCode", getSkuCode())
|
||||
.append("barCode", getBarCode())
|
||||
.append("productCode", getProductCode())
|
||||
.append("hsCode", getHsCode())
|
||||
.append("name", getName())
|
||||
.append("brand", getBrand())
|
||||
.append("description", getDescription())
|
||||
.append("specificationModel", getSpecificationModel())
|
||||
.append("produceCountry", getProduceCountry())
|
||||
.append("produceCountryCode", getProduceCountryCode())
|
||||
.append("quantityUnit", getQuantityUnit())
|
||||
.append("quantityUnitCode", getQuantityUnitCode())
|
||||
.append("declaredCount", getDeclaredCount())
|
||||
.append("legalMeteringUnit", getLegalMeteringUnit())
|
||||
.append("legalMeteringUnitCode", getLegalMeteringUnitCode())
|
||||
.append("secondDeclaredCount", getSecondDeclaredCount())
|
||||
.append("secondMeteringUnit", getSecondMeteringUnit())
|
||||
.append("secondMeteringUnitCode", getSecondMeteringUnitCode())
|
||||
.append("price", getPrice())
|
||||
.append("grossWeight", getGrossWeight())
|
||||
.append("netWeight", getNetWeight())
|
||||
.append("remark", getRemark())
|
||||
.append("inspectionAndQuarantineCode", getInspectionAndQuarantineCode())
|
||||
.append("userId", getUserId())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("declarePortId", getDeclarePortId())
|
||||
.append("taxRate", getTaxRate())
|
||||
.append("ingredient", getIngredient())
|
||||
.append("bookNumber", getBookNumber())
|
||||
.append("type", getType())
|
||||
.append("addTime", getAddTime())
|
||||
.append("parcelNumber", getParcelNumber())
|
||||
.append("parcelNumberTaxRate", getParcelNumberTaxRate())
|
||||
.append("englishName", getEnglishName())
|
||||
.append("dutyPrice", getDutyPrice())
|
||||
.append("taxAmount", getTaxAmount())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,523 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 商品备案对象 custom_product_record
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_product_record")
|
||||
public class CustomProductRecordPlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
/** sku编码 */
|
||||
@Excel(name = "sku编码")
|
||||
private String skuCode;
|
||||
/** 商品条形码 */
|
||||
@Excel(name = "商品条形码")
|
||||
private String barCode;
|
||||
/** 商品货号 */
|
||||
@Excel(name = "商品货号")
|
||||
private String productCode;
|
||||
/** HS编码 */
|
||||
@Excel(name = "HS编码")
|
||||
private String hsCode;
|
||||
/** 商品名称 */
|
||||
@Excel(name = "商品名称")
|
||||
private String name;
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String brand;
|
||||
/** 商品描述 */
|
||||
@Excel(name = "商品描述")
|
||||
private String description;
|
||||
/** 规格型号 */
|
||||
@Excel(name = "规格型号")
|
||||
private String specificationModel;
|
||||
/** 生产国 */
|
||||
@Excel(name = "生产国")
|
||||
private String produceCountry;
|
||||
/** 生产国代码 */
|
||||
@Excel(name = "生产国代码")
|
||||
private String produceCountryCode;
|
||||
/** 数量单位 */
|
||||
@Excel(name = "数量单位")
|
||||
private String quantityUnit;
|
||||
/** 数量单位代码 */
|
||||
@Excel(name = "数量单位代码")
|
||||
private String quantityUnitCode;
|
||||
/** 申报数量(法定数量=申报数量*购买数量) */
|
||||
@Excel(name = "申报数量", readConverterExp = "法=定数量=申报数量*购买数量")
|
||||
private BigDecimal declaredCount;
|
||||
/** 法定计量单位 */
|
||||
@Excel(name = "法定计量单位")
|
||||
private String legalMeteringUnit;
|
||||
/** 法定计量单位代码 */
|
||||
@Excel(name = "法定计量单位代码")
|
||||
private String legalMeteringUnitCode;
|
||||
/** 第二申报数量(第二数量=第二申报数量*购买数量) */
|
||||
@Excel(name = "第二申报数量", readConverterExp = "第=二数量=第二申报数量*购买数量")
|
||||
private BigDecimal secondDeclaredCount;
|
||||
/** 第二计量单位 */
|
||||
@Excel(name = "第二计量单位")
|
||||
private String secondMeteringUnit;
|
||||
/** 第二计量单位代码 */
|
||||
@Excel(name = "第二计量单位代码")
|
||||
private String secondMeteringUnitCode;
|
||||
/** 单价 */
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal price;
|
||||
/** 毛重(KG) */
|
||||
@Excel(name = "毛重", readConverterExp = "K=G")
|
||||
private BigDecimal grossWeight;
|
||||
/** 净重(KG) */
|
||||
@Excel(name = "净重", readConverterExp = "K=G")
|
||||
private BigDecimal netWeight;
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
/** 检验检疫编码 */
|
||||
@Excel(name = "检验检疫编码")
|
||||
private String inspectionAndQuarantineCode;
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
/** 仓库id */
|
||||
@Excel(name = "仓库id")
|
||||
private Long warehouseId;
|
||||
/** 申报口岸Id */
|
||||
@Excel(name = "申报口岸Id")
|
||||
private Long declarePortId;
|
||||
/** 税率 */
|
||||
@Excel(name = "税率")
|
||||
private BigDecimal taxRate;
|
||||
/** 成分 */
|
||||
@Excel(name = "成分")
|
||||
private String ingredient;
|
||||
/** 账(手)册商品序号 */
|
||||
@Excel(name = "账(手)册商品序号")
|
||||
private String bookNumber;
|
||||
/** 1、保税;2、直邮;3、个人 */
|
||||
@Excel(name = "1、保税;2、直邮;3、个人")
|
||||
private Integer type;
|
||||
/** 添加时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date addTime;
|
||||
/** 行邮税号 */
|
||||
@Excel(name = "行邮税号")
|
||||
private String parcelNumber;
|
||||
/** 行邮税率 */
|
||||
@Excel(name = "行邮税率")
|
||||
private BigDecimal parcelNumberTaxRate;
|
||||
/** 英文品名 */
|
||||
@Excel(name = "英文品名")
|
||||
private String englishName;
|
||||
/** 完税价格 */
|
||||
@Excel(name = "完税价格")
|
||||
private BigDecimal dutyPrice;
|
||||
/** 税额 */
|
||||
@Excel(name = "税额")
|
||||
private BigDecimal taxAmount;
|
||||
/** 更新时间 */
|
||||
private Date updateTime;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setSkuCode(String skuCode)
|
||||
{
|
||||
this.skuCode = skuCode;
|
||||
}
|
||||
|
||||
public String getSkuCode()
|
||||
{
|
||||
return skuCode;
|
||||
}
|
||||
public void setBarCode(String barCode)
|
||||
{
|
||||
this.barCode = barCode;
|
||||
}
|
||||
|
||||
public String getBarCode()
|
||||
{
|
||||
return barCode;
|
||||
}
|
||||
public void setProductCode(String productCode)
|
||||
{
|
||||
this.productCode = productCode;
|
||||
}
|
||||
|
||||
public String getProductCode()
|
||||
{
|
||||
return productCode;
|
||||
}
|
||||
public void setHsCode(String hsCode)
|
||||
{
|
||||
this.hsCode = hsCode;
|
||||
}
|
||||
|
||||
public String getHsCode()
|
||||
{
|
||||
return hsCode;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setBrand(String brand)
|
||||
{
|
||||
this.brand = brand;
|
||||
}
|
||||
|
||||
public String getBrand()
|
||||
{
|
||||
return brand;
|
||||
}
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
public void setSpecificationModel(String specificationModel)
|
||||
{
|
||||
this.specificationModel = specificationModel;
|
||||
}
|
||||
|
||||
public String getSpecificationModel()
|
||||
{
|
||||
return specificationModel;
|
||||
}
|
||||
public void setProduceCountry(String produceCountry)
|
||||
{
|
||||
this.produceCountry = produceCountry;
|
||||
}
|
||||
|
||||
public String getProduceCountry()
|
||||
{
|
||||
return produceCountry;
|
||||
}
|
||||
public void setProduceCountryCode(String produceCountryCode)
|
||||
{
|
||||
this.produceCountryCode = produceCountryCode;
|
||||
}
|
||||
|
||||
public String getProduceCountryCode()
|
||||
{
|
||||
return produceCountryCode;
|
||||
}
|
||||
public void setQuantityUnit(String quantityUnit)
|
||||
{
|
||||
this.quantityUnit = quantityUnit;
|
||||
}
|
||||
|
||||
public String getQuantityUnit()
|
||||
{
|
||||
return quantityUnit;
|
||||
}
|
||||
public void setQuantityUnitCode(String quantityUnitCode)
|
||||
{
|
||||
this.quantityUnitCode = quantityUnitCode;
|
||||
}
|
||||
|
||||
public String getQuantityUnitCode()
|
||||
{
|
||||
return quantityUnitCode;
|
||||
}
|
||||
public void setDeclaredCount(BigDecimal declaredCount)
|
||||
{
|
||||
this.declaredCount = declaredCount;
|
||||
}
|
||||
|
||||
public BigDecimal getDeclaredCount()
|
||||
{
|
||||
return declaredCount;
|
||||
}
|
||||
public void setLegalMeteringUnit(String legalMeteringUnit)
|
||||
{
|
||||
this.legalMeteringUnit = legalMeteringUnit;
|
||||
}
|
||||
|
||||
public String getLegalMeteringUnit()
|
||||
{
|
||||
return legalMeteringUnit;
|
||||
}
|
||||
public void setLegalMeteringUnitCode(String legalMeteringUnitCode)
|
||||
{
|
||||
this.legalMeteringUnitCode = legalMeteringUnitCode;
|
||||
}
|
||||
|
||||
public String getLegalMeteringUnitCode()
|
||||
{
|
||||
return legalMeteringUnitCode;
|
||||
}
|
||||
public void setSecondDeclaredCount(BigDecimal secondDeclaredCount)
|
||||
{
|
||||
this.secondDeclaredCount = secondDeclaredCount;
|
||||
}
|
||||
|
||||
public BigDecimal getSecondDeclaredCount()
|
||||
{
|
||||
return secondDeclaredCount;
|
||||
}
|
||||
public void setSecondMeteringUnit(String secondMeteringUnit)
|
||||
{
|
||||
this.secondMeteringUnit = secondMeteringUnit;
|
||||
}
|
||||
|
||||
public String getSecondMeteringUnit()
|
||||
{
|
||||
return secondMeteringUnit;
|
||||
}
|
||||
public void setSecondMeteringUnitCode(String secondMeteringUnitCode)
|
||||
{
|
||||
this.secondMeteringUnitCode = secondMeteringUnitCode;
|
||||
}
|
||||
|
||||
public String getSecondMeteringUnitCode()
|
||||
{
|
||||
return secondMeteringUnitCode;
|
||||
}
|
||||
public void setPrice(BigDecimal price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
public void setGrossWeight(BigDecimal grossWeight)
|
||||
{
|
||||
this.grossWeight = grossWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getGrossWeight()
|
||||
{
|
||||
return grossWeight;
|
||||
}
|
||||
public void setNetWeight(BigDecimal netWeight)
|
||||
{
|
||||
this.netWeight = netWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getNetWeight()
|
||||
{
|
||||
return netWeight;
|
||||
}
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
public void setInspectionAndQuarantineCode(String inspectionAndQuarantineCode)
|
||||
{
|
||||
this.inspectionAndQuarantineCode = inspectionAndQuarantineCode;
|
||||
}
|
||||
|
||||
public String getInspectionAndQuarantineCode()
|
||||
{
|
||||
return inspectionAndQuarantineCode;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setWarehouseId(Long warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public Long getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
public void setDeclarePortId(Long declarePortId)
|
||||
{
|
||||
this.declarePortId = declarePortId;
|
||||
}
|
||||
|
||||
public Long getDeclarePortId()
|
||||
{
|
||||
return declarePortId;
|
||||
}
|
||||
public void setTaxRate(BigDecimal taxRate)
|
||||
{
|
||||
this.taxRate = taxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxRate()
|
||||
{
|
||||
return taxRate;
|
||||
}
|
||||
public void setIngredient(String ingredient)
|
||||
{
|
||||
this.ingredient = ingredient;
|
||||
}
|
||||
|
||||
public String getIngredient()
|
||||
{
|
||||
return ingredient;
|
||||
}
|
||||
public void setBookNumber(String bookNumber)
|
||||
{
|
||||
this.bookNumber = bookNumber;
|
||||
}
|
||||
|
||||
public String getBookNumber()
|
||||
{
|
||||
return bookNumber;
|
||||
}
|
||||
public void setType(Integer type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setAddTime(Date addTime)
|
||||
{
|
||||
this.addTime = addTime;
|
||||
}
|
||||
|
||||
public Date getAddTime()
|
||||
{
|
||||
return addTime;
|
||||
}
|
||||
public void setParcelNumber(String parcelNumber)
|
||||
{
|
||||
this.parcelNumber = parcelNumber;
|
||||
}
|
||||
|
||||
public String getParcelNumber()
|
||||
{
|
||||
return parcelNumber;
|
||||
}
|
||||
public void setParcelNumberTaxRate(BigDecimal parcelNumberTaxRate)
|
||||
{
|
||||
this.parcelNumberTaxRate = parcelNumberTaxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getParcelNumberTaxRate()
|
||||
{
|
||||
return parcelNumberTaxRate;
|
||||
}
|
||||
public void setEnglishName(String englishName)
|
||||
{
|
||||
this.englishName = englishName;
|
||||
}
|
||||
|
||||
public String getEnglishName()
|
||||
{
|
||||
return englishName;
|
||||
}
|
||||
public void setDutyPrice(BigDecimal dutyPrice)
|
||||
{
|
||||
this.dutyPrice = dutyPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getDutyPrice()
|
||||
{
|
||||
return dutyPrice;
|
||||
}
|
||||
public void setTaxAmount(BigDecimal taxAmount)
|
||||
{
|
||||
this.taxAmount = taxAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxAmount()
|
||||
{
|
||||
return taxAmount;
|
||||
}
|
||||
public void setUpdateTime(Date updateTime)
|
||||
{
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime()
|
||||
{
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("skuCode", getSkuCode())
|
||||
.append("barCode", getBarCode())
|
||||
.append("productCode", getProductCode())
|
||||
.append("hsCode", getHsCode())
|
||||
.append("name", getName())
|
||||
.append("brand", getBrand())
|
||||
.append("description", getDescription())
|
||||
.append("specificationModel", getSpecificationModel())
|
||||
.append("produceCountry", getProduceCountry())
|
||||
.append("produceCountryCode", getProduceCountryCode())
|
||||
.append("quantityUnit", getQuantityUnit())
|
||||
.append("quantityUnitCode", getQuantityUnitCode())
|
||||
.append("declaredCount", getDeclaredCount())
|
||||
.append("legalMeteringUnit", getLegalMeteringUnit())
|
||||
.append("legalMeteringUnitCode", getLegalMeteringUnitCode())
|
||||
.append("secondDeclaredCount", getSecondDeclaredCount())
|
||||
.append("secondMeteringUnit", getSecondMeteringUnit())
|
||||
.append("secondMeteringUnitCode", getSecondMeteringUnitCode())
|
||||
.append("price", getPrice())
|
||||
.append("grossWeight", getGrossWeight())
|
||||
.append("netWeight", getNetWeight())
|
||||
.append("remark", getRemark())
|
||||
.append("inspectionAndQuarantineCode", getInspectionAndQuarantineCode())
|
||||
.append("userId", getUserId())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("declarePortId", getDeclarePortId())
|
||||
.append("taxRate", getTaxRate())
|
||||
.append("ingredient", getIngredient())
|
||||
.append("bookNumber", getBookNumber())
|
||||
.append("type", getType())
|
||||
.append("addTime", getAddTime())
|
||||
.append("parcelNumber", getParcelNumber())
|
||||
.append("parcelNumberTaxRate", getParcelNumberTaxRate())
|
||||
.append("englishName", getEnglishName())
|
||||
.append("dutyPrice", getDutyPrice())
|
||||
.append("taxAmount", getTaxAmount())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 国家行政区划代码对象 custom_region_code
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomRegionCode extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 编码 */
|
||||
@Excel(name = "编码")
|
||||
private String code;
|
||||
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
private Long parentId;
|
||||
/** 等级 */
|
||||
@Excel(name = "等级")
|
||||
private Integer grade;
|
||||
|
||||
public Long getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(Long parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setGrade(Integer grade)
|
||||
{
|
||||
this.grade = grade;
|
||||
}
|
||||
|
||||
public Integer getGrade()
|
||||
{
|
||||
return grade;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("parentId", getParentId())
|
||||
.append("code", getCode())
|
||||
.append("name", getName())
|
||||
.append("remark", getRemark())
|
||||
.append("grade", getGrade())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 国家行政区划代码对象 custom_region_code
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_region_code")
|
||||
public class CustomRegionCodePlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
/** 父id */
|
||||
@Excel(name = "父id")
|
||||
private Long parentId;
|
||||
/** 编码 */
|
||||
@Excel(name = "编码")
|
||||
private String code;
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
/** 等级 */
|
||||
@Excel(name = "等级")
|
||||
private Integer grade;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setParentId(Long parentId)
|
||||
{
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Long getParentId()
|
||||
{
|
||||
return parentId;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
public void setGrade(Integer grade)
|
||||
{
|
||||
this.grade = grade;
|
||||
}
|
||||
|
||||
public Integer getGrade()
|
||||
{
|
||||
return grade;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("parentId", getParentId())
|
||||
.append("code", getCode())
|
||||
.append("name", getName())
|
||||
.append("remark", getRemark())
|
||||
.append("grade", getGrade())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 计量单位代码对象 custom_unit_code
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomUnitCode extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 代码 */
|
||||
@Excel(name = "代码")
|
||||
private String code;
|
||||
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("code", getCode())
|
||||
.append("name", getName())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 计量单位代码对象 custom_unit_code
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_unit_code")
|
||||
public class CustomUnitCodePlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
/** 代码 */
|
||||
@Excel(name = "代码")
|
||||
private String code;
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("code", getCode())
|
||||
.append("name", getName())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,205 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 仓库对象 custom_warehouse
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public class CustomWarehouse extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 口岸Id */
|
||||
@Excel(name = "口岸Id")
|
||||
private Long declarePortId;
|
||||
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "名称")
|
||||
private String code;
|
||||
|
||||
/** 描述 */
|
||||
@Excel(name = "描述")
|
||||
private String describe;
|
||||
|
||||
/** 发件人 */
|
||||
@Excel(name = "发件人")
|
||||
private String consignor;
|
||||
|
||||
/** 发件人地址 */
|
||||
@Excel(name = "发件人地址")
|
||||
private String consignorAddress;
|
||||
|
||||
/** 发件人电话 */
|
||||
@Excel(name = "发件人电话")
|
||||
private String consignorTelephone;
|
||||
|
||||
/** 发件人所在国 */
|
||||
@Excel(name = "发件人所在国")
|
||||
private String consignorCountry;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "发件人所在国")
|
||||
private String consignorProvince;
|
||||
|
||||
/** 发件人市 */
|
||||
@Excel(name = "发件人市")
|
||||
private String consignorCity;
|
||||
|
||||
/** 发件人区 */
|
||||
@Excel(name = "发件人区")
|
||||
private String consignorDistrict;
|
||||
|
||||
/** 类型:1、保税;2、直邮;3、个人 */
|
||||
@Excel(name = "类型:1、保税;2、直邮;3、个人")
|
||||
private Integer type;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDeclarePortId(Long declarePortId)
|
||||
{
|
||||
this.declarePortId = declarePortId;
|
||||
}
|
||||
|
||||
public Long getDeclarePortId()
|
||||
{
|
||||
return declarePortId;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setDescribe(String describe)
|
||||
{
|
||||
this.describe = describe;
|
||||
}
|
||||
|
||||
public String getDescribe()
|
||||
{
|
||||
return describe;
|
||||
}
|
||||
public void setConsignor(String consignor)
|
||||
{
|
||||
this.consignor = consignor;
|
||||
}
|
||||
|
||||
public String getConsignor()
|
||||
{
|
||||
return consignor;
|
||||
}
|
||||
public void setConsignorAddress(String consignorAddress)
|
||||
{
|
||||
this.consignorAddress = consignorAddress;
|
||||
}
|
||||
|
||||
public String getConsignorAddress()
|
||||
{
|
||||
return consignorAddress;
|
||||
}
|
||||
public void setConsignorTelephone(String consignorTelephone)
|
||||
{
|
||||
this.consignorTelephone = consignorTelephone;
|
||||
}
|
||||
|
||||
public String getConsignorTelephone()
|
||||
{
|
||||
return consignorTelephone;
|
||||
}
|
||||
public void setConsignorCountry(String consignorCountry)
|
||||
{
|
||||
this.consignorCountry = consignorCountry;
|
||||
}
|
||||
|
||||
public String getConsignorCountry()
|
||||
{
|
||||
return consignorCountry;
|
||||
}
|
||||
public void setConsignorProvince(String consignorProvince)
|
||||
{
|
||||
this.consignorProvince = consignorProvince;
|
||||
}
|
||||
|
||||
public String getConsignorProvince()
|
||||
{
|
||||
return consignorProvince;
|
||||
}
|
||||
public void setConsignorCity(String consignorCity)
|
||||
{
|
||||
this.consignorCity = consignorCity;
|
||||
}
|
||||
|
||||
public String getConsignorCity()
|
||||
{
|
||||
return consignorCity;
|
||||
}
|
||||
public void setConsignorDistrict(String consignorDistrict)
|
||||
{
|
||||
this.consignorDistrict = consignorDistrict;
|
||||
}
|
||||
|
||||
public String getConsignorDistrict()
|
||||
{
|
||||
return consignorDistrict;
|
||||
}
|
||||
public void setType(Integer type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("declarePortId", getDeclarePortId())
|
||||
.append("name", getName())
|
||||
.append("code", getCode())
|
||||
.append("describe", getDescribe())
|
||||
.append("consignor", getConsignor())
|
||||
.append("consignorAddress", getConsignorAddress())
|
||||
.append("consignorTelephone", getConsignorTelephone())
|
||||
.append("consignorCountry", getConsignorCountry())
|
||||
.append("consignorProvince", getConsignorProvince())
|
||||
.append("consignorCity", getConsignorCity())
|
||||
.append("consignorDistrict", getConsignorDistrict())
|
||||
.append("type", getType())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,195 @@
|
||||
package com.ruoyi.custom.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 仓库对象 custom_warehouse
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
@TableName(value = "custom_warehouse")
|
||||
public class CustomWarehousePlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
/** 口岸Id */
|
||||
@Excel(name = "口岸Id")
|
||||
private Long declarePortId;
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "名称")
|
||||
private String code;
|
||||
/** 描述 */
|
||||
@Excel(name = "描述")
|
||||
private String describe;
|
||||
/** 发件人 */
|
||||
@Excel(name = "发件人")
|
||||
private String consignor;
|
||||
/** 发件人地址 */
|
||||
@Excel(name = "发件人地址")
|
||||
private String consignorAddress;
|
||||
/** 发件人电话 */
|
||||
@Excel(name = "发件人电话")
|
||||
private String consignorTelephone;
|
||||
/** 发件人所在国 */
|
||||
@Excel(name = "发件人所在国")
|
||||
private String consignorCountry;
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "发件人所在国")
|
||||
private String consignorProvince;
|
||||
/** 发件人市 */
|
||||
@Excel(name = "发件人市")
|
||||
private String consignorCity;
|
||||
/** 发件人区 */
|
||||
@Excel(name = "发件人区")
|
||||
private String consignorDistrict;
|
||||
/** 类型:1、保税;2、直邮;3、个人 */
|
||||
@Excel(name = "类型:1、保税;2、直邮;3、个人")
|
||||
private Integer type;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDeclarePortId(Long declarePortId)
|
||||
{
|
||||
this.declarePortId = declarePortId;
|
||||
}
|
||||
|
||||
public Long getDeclarePortId()
|
||||
{
|
||||
return declarePortId;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setDescribe(String describe)
|
||||
{
|
||||
this.describe = describe;
|
||||
}
|
||||
|
||||
public String getDescribe()
|
||||
{
|
||||
return describe;
|
||||
}
|
||||
public void setConsignor(String consignor)
|
||||
{
|
||||
this.consignor = consignor;
|
||||
}
|
||||
|
||||
public String getConsignor()
|
||||
{
|
||||
return consignor;
|
||||
}
|
||||
public void setConsignorAddress(String consignorAddress)
|
||||
{
|
||||
this.consignorAddress = consignorAddress;
|
||||
}
|
||||
|
||||
public String getConsignorAddress()
|
||||
{
|
||||
return consignorAddress;
|
||||
}
|
||||
public void setConsignorTelephone(String consignorTelephone)
|
||||
{
|
||||
this.consignorTelephone = consignorTelephone;
|
||||
}
|
||||
|
||||
public String getConsignorTelephone()
|
||||
{
|
||||
return consignorTelephone;
|
||||
}
|
||||
public void setConsignorCountry(String consignorCountry)
|
||||
{
|
||||
this.consignorCountry = consignorCountry;
|
||||
}
|
||||
|
||||
public String getConsignorCountry()
|
||||
{
|
||||
return consignorCountry;
|
||||
}
|
||||
public void setConsignorProvince(String consignorProvince)
|
||||
{
|
||||
this.consignorProvince = consignorProvince;
|
||||
}
|
||||
|
||||
public String getConsignorProvince()
|
||||
{
|
||||
return consignorProvince;
|
||||
}
|
||||
public void setConsignorCity(String consignorCity)
|
||||
{
|
||||
this.consignorCity = consignorCity;
|
||||
}
|
||||
|
||||
public String getConsignorCity()
|
||||
{
|
||||
return consignorCity;
|
||||
}
|
||||
public void setConsignorDistrict(String consignorDistrict)
|
||||
{
|
||||
this.consignorDistrict = consignorDistrict;
|
||||
}
|
||||
|
||||
public String getConsignorDistrict()
|
||||
{
|
||||
return consignorDistrict;
|
||||
}
|
||||
public void setType(Integer type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("declarePortId", getDeclarePortId())
|
||||
.append("name", getName())
|
||||
.append("code", getCode())
|
||||
.append("describe", getDescribe())
|
||||
.append("consignor", getConsignor())
|
||||
.append("consignorAddress", getConsignorAddress())
|
||||
.append("consignorTelephone", getConsignorTelephone())
|
||||
.append("consignorCountry", getConsignorCountry())
|
||||
.append("consignorProvince", getConsignorProvince())
|
||||
.append("consignorCity", getConsignorCity())
|
||||
.append("consignorDistrict", getConsignorDistrict())
|
||||
.append("type", getType())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.ruoyi.custom.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.ruoyi.custom.domain.CustomCallback;
|
||||
import com.ruoyi.custom.domain.CustomCallbackPlus;
|
||||
|
||||
/**
|
||||
* 海关回查Mapper接口
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public interface CustomCallbackMapper extends BaseMapper<CustomCallbackPlus>
|
||||
{
|
||||
/**
|
||||
* 查询海关回查
|
||||
*
|
||||
* @param id 海关回查ID
|
||||
* @return 海关回查
|
||||
*/
|
||||
public CustomCallback selectCustomCallbackById(Long id);
|
||||
|
||||
/**
|
||||
* 查询海关回查列表
|
||||
*
|
||||
* @param customCallback 海关回查
|
||||
* @return 海关回查集合
|
||||
*/
|
||||
public List<CustomCallback> selectCustomCallbackList(CustomCallback customCallback);
|
||||
|
||||
/**
|
||||
* 新增海关回查
|
||||
*
|
||||
* @param customCallback 海关回查
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCustomCallback(CustomCallback customCallback);
|
||||
|
||||
/**
|
||||
* 修改海关回查
|
||||
*
|
||||
* @param customCallback 海关回查
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCustomCallback(CustomCallback customCallback);
|
||||
|
||||
/**
|
||||
* 删除海关回查
|
||||
*
|
||||
* @param id 海关回查ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCustomCallbackById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除海关回查
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCustomCallbackByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.ruoyi.custom.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.ruoyi.custom.domain.CustomCountryCode;
|
||||
import com.ruoyi.custom.domain.CustomCountryCodePlus;
|
||||
|
||||
/**
|
||||
* 国别代码Mapper接口
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public interface CustomCountryCodeMapper extends BaseMapper<CustomCountryCodePlus>
|
||||
{
|
||||
/**
|
||||
* 查询国别代码
|
||||
*
|
||||
* @param id 国别代码ID
|
||||
* @return 国别代码
|
||||
*/
|
||||
public CustomCountryCode selectCustomCountryCodeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询国别代码列表
|
||||
*
|
||||
* @param customCountryCode 国别代码
|
||||
* @return 国别代码集合
|
||||
*/
|
||||
public List<CustomCountryCode> selectCustomCountryCodeList(CustomCountryCode customCountryCode);
|
||||
|
||||
/**
|
||||
* 新增国别代码
|
||||
*
|
||||
* @param customCountryCode 国别代码
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCustomCountryCode(CustomCountryCode customCountryCode);
|
||||
|
||||
/**
|
||||
* 修改国别代码
|
||||
*
|
||||
* @param customCountryCode 国别代码
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCustomCountryCode(CustomCountryCode customCountryCode);
|
||||
|
||||
/**
|
||||
* 删除国别代码
|
||||
*
|
||||
* @param id 国别代码ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCustomCountryCodeById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除国别代码
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCustomCountryCodeByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.ruoyi.custom.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.ruoyi.custom.domain.CustomDeclarePort;
|
||||
import com.ruoyi.custom.domain.CustomDeclarePortPlus;
|
||||
|
||||
/**
|
||||
* 申报口岸Mapper接口
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public interface CustomDeclarePortMapper extends BaseMapper<CustomDeclarePortPlus>
|
||||
{
|
||||
/**
|
||||
* 查询申报口岸
|
||||
*
|
||||
* @param id 申报口岸ID
|
||||
* @return 申报口岸
|
||||
*/
|
||||
public CustomDeclarePort selectCustomDeclarePortById(Long id);
|
||||
|
||||
/**
|
||||
* 查询申报口岸列表
|
||||
*
|
||||
* @param customDeclarePort 申报口岸
|
||||
* @return 申报口岸集合
|
||||
*/
|
||||
public List<CustomDeclarePort> selectCustomDeclarePortList(CustomDeclarePort customDeclarePort);
|
||||
|
||||
/**
|
||||
* 新增申报口岸
|
||||
*
|
||||
* @param customDeclarePort 申报口岸
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCustomDeclarePort(CustomDeclarePort customDeclarePort);
|
||||
|
||||
/**
|
||||
* 修改申报口岸
|
||||
*
|
||||
* @param customDeclarePort 申报口岸
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCustomDeclarePort(CustomDeclarePort customDeclarePort);
|
||||
|
||||
/**
|
||||
* 删除申报口岸
|
||||
*
|
||||
* @param id 申报口岸ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCustomDeclarePortById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除申报口岸
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCustomDeclarePortByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.ruoyi.custom.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.ruoyi.custom.domain.CustomEnterpriseRecord;
|
||||
import com.ruoyi.custom.domain.CustomEnterpriseRecordPlus;
|
||||
|
||||
/**
|
||||
* 企业备案Mapper接口
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2021-10-23
|
||||
*/
|
||||
public interface CustomEnterpriseRecordMapper extends BaseMapper<CustomEnterpriseRecordPlus>
|
||||
{
|
||||
/**
|
||||
* 查询企业备案
|
||||
*
|
||||
* @param id 企业备案ID
|
||||
* @return 企业备案
|
||||
*/
|
||||
public CustomEnterpriseRecord selectCustomEnterpriseRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询企业备案列表
|
||||
*
|
||||
* @param customEnterpriseRecord 企业备案
|
||||
* @return 企业备案集合
|
||||
*/
|
||||
public List<CustomEnterpriseRecord> selectCustomEnterpriseRecordList(CustomEnterpriseRecord customEnterpriseRecord);
|
||||
|
||||
/**
|
||||
* 新增企业备案
|
||||
*
|
||||
* @param customEnterpriseRecord 企业备案
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCustomEnterpriseRecord(CustomEnterpriseRecord customEnterpriseRecord);
|
||||
|
||||
/**
|
||||
* 修改企业备案
|
||||
*
|
||||
* @param customEnterpriseRecord 企业备案
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCustomEnterpriseRecord(CustomEnterpriseRecord customEnterpriseRecord);
|
||||
|
||||
/**
|
||||
* 删除企业备案
|
||||
*
|
||||
* @param id 企业备案ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCustomEnterpriseRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除企业备案
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCustomEnterpriseRecordByIds(Long[] ids);
|
||||
}
|
||||
Loaded 100 of 540 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user