Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
8bd45e87
Commit
8bd45e87
authored
Mar 17, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加实体类
parent
4bc9f9b1
Hide whitespace changes
Inline
Side-by-side
Showing
51 changed files
with
2775 additions
and
94 deletions
+2775
-94
CommonResponse.java
...ejoin/amos/boot/module/jxiop/api/Util/CommonResponse.java
+133
-0
CommonResponseUtil.java
...n/amos/boot/module/jxiop/api/Util/CommonResponseUtil.java
+61
-0
Constants.java
...om/yeejoin/amos/boot/module/jxiop/api/Util/Constants.java
+64
-0
HttpUtil.java
...com/yeejoin/amos/boot/module/jxiop/api/Util/HttpUtil.java
+578
-0
HouseholdPvContactDto.java
...amos/boot/module/jxiop/api/dto/HouseholdPvContactDto.java
+48
-0
HouseholdPvDeviceDto.java
.../amos/boot/module/jxiop/api/dto/HouseholdPvDeviceDto.java
+54
-0
HouseholdPvDistrictDto.java
...mos/boot/module/jxiop/api/dto/HouseholdPvDistrictDto.java
+33
-0
HouseholdPvDto.java
...eejoin/amos/boot/module/jxiop/api/dto/HouseholdPvDto.java
+84
-0
HouseholdPvInstallDto.java
...amos/boot/module/jxiop/api/dto/HouseholdPvInstallDto.java
+51
-0
HouseholdPvLeaseDto.java
...n/amos/boot/module/jxiop/api/dto/HouseholdPvLeaseDto.java
+54
-0
HouseholdPv.java
...eejoin/amos/boot/module/jxiop/api/entity/HouseholdPv.java
+145
-0
HouseholdPvContact.java
...amos/boot/module/jxiop/api/entity/HouseholdPvContact.java
+73
-0
HouseholdPvDevice.java
.../amos/boot/module/jxiop/api/entity/HouseholdPvDevice.java
+85
-0
HouseholdPvDistrict.java
...mos/boot/module/jxiop/api/entity/HouseholdPvDistrict.java
+49
-0
HouseholdPvInstall.java
...amos/boot/module/jxiop/api/entity/HouseholdPvInstall.java
+79
-0
HouseholdPvLease.java
...n/amos/boot/module/jxiop/api/entity/HouseholdPvLease.java
+85
-0
HouseholdPvContactMapper.java
...oot/module/jxiop/api/mapper/HouseholdPvContactMapper.java
+14
-0
HouseholdPvDeviceMapper.java
...boot/module/jxiop/api/mapper/HouseholdPvDeviceMapper.java
+14
-0
HouseholdPvDistrictMapper.java
...ot/module/jxiop/api/mapper/HouseholdPvDistrictMapper.java
+14
-0
HouseholdPvInstallMapper.java
...oot/module/jxiop/api/mapper/HouseholdPvInstallMapper.java
+14
-0
HouseholdPvLeaseMapper.java
.../boot/module/jxiop/api/mapper/HouseholdPvLeaseMapper.java
+14
-0
HouseholdPvMapper.java
.../amos/boot/module/jxiop/api/mapper/HouseholdPvMapper.java
+14
-0
IHouseholdPvContactService.java
.../module/jxiop/api/service/IHouseholdPvContactService.java
+12
-0
IHouseholdPvDeviceService.java
...t/module/jxiop/api/service/IHouseholdPvDeviceService.java
+12
-0
IHouseholdPvDistrictService.java
...module/jxiop/api/service/IHouseholdPvDistrictService.java
+12
-0
IHouseholdPvInstallService.java
.../module/jxiop/api/service/IHouseholdPvInstallService.java
+12
-0
IHouseholdPvLeaseService.java
...ot/module/jxiop/api/service/IHouseholdPvLeaseService.java
+12
-0
IHouseholdPvService.java
...os/boot/module/jxiop/api/service/IHouseholdPvService.java
+12
-0
App.java
...api/src/main/java/org/amos/boot/module/jxiop/api/App.java
+0
-13
HouseholdPvContactMapper.xml
...pi/src/main/resources/mapper/HouseholdPvContactMapper.xml
+5
-0
HouseholdPvDeviceMapper.xml
...api/src/main/resources/mapper/HouseholdPvDeviceMapper.xml
+5
-0
HouseholdPvDistrictMapper.xml
...i/src/main/resources/mapper/HouseholdPvDistrictMapper.xml
+5
-0
HouseholdPvInstallMapper.xml
...pi/src/main/resources/mapper/HouseholdPvInstallMapper.xml
+5
-0
HouseholdPvLeaseMapper.xml
...-api/src/main/resources/mapper/HouseholdPvLeaseMapper.xml
+5
-0
HouseholdPvMapper.xml
...jxiop-api/src/main/resources/mapper/HouseholdPvMapper.xml
+5
-0
AppTest.java
...src/test/java/org/amos/boot/module/jxiop/api/AppTest.java
+0
-38
pom.xml
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/pom.xml
+6
-0
HouseholdPvContactController.java
...le/jxiop/biz/controller/HouseholdPvContactController.java
+116
-0
HouseholdPvController.java
...ot/module/jxiop/biz/controller/HouseholdPvController.java
+116
-0
HouseholdPvDeviceController.java
...ule/jxiop/biz/controller/HouseholdPvDeviceController.java
+116
-0
HouseholdPvDistrictController.java
...e/jxiop/biz/controller/HouseholdPvDistrictController.java
+116
-0
HouseholdPvInstallController.java
...le/jxiop/biz/controller/HouseholdPvInstallController.java
+116
-0
HouseholdPvLeaseController.java
...dule/jxiop/biz/controller/HouseholdPvLeaseController.java
+116
-0
HouseholdPvContactServiceImpl.java
...jxiop/biz/service/impl/HouseholdPvContactServiceImpl.java
+34
-0
HouseholdPvDeviceServiceImpl.java
.../jxiop/biz/service/impl/HouseholdPvDeviceServiceImpl.java
+34
-0
HouseholdPvDistrictServiceImpl.java
...xiop/biz/service/impl/HouseholdPvDistrictServiceImpl.java
+34
-0
HouseholdPvInstallServiceImpl.java
...jxiop/biz/service/impl/HouseholdPvInstallServiceImpl.java
+34
-0
HouseholdPvLeaseServiceImpl.java
...e/jxiop/biz/service/impl/HouseholdPvLeaseServiceImpl.java
+34
-0
HouseholdPvServiceImpl.java
...module/jxiop/biz/service/impl/HouseholdPvServiceImpl.java
+34
-0
application-dev.properties
...le-jxiop-biz/src/main/resource/application-dev.properties
+7
-5
AppTest.java
...src/test/java/org/amos/boot/module/jxiop/biz/AppTest.java
+0
-38
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/Util/CommonResponse.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
Util
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
/**
* <pre>
* 返回封装对象
* </pre>
*
* @author mincx
* @version CommonReponse.java v0.1
* @time 2017-9-19 15:43:32
*/
public
class
CommonResponse
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
8737351878134480646L
;
/**
* 操作状态
*/
@ApiModelProperty
(
required
=
true
,
value
=
"操作状态"
)
private
String
result
;
/**
* 操作状态
*/
@ApiModelProperty
(
required
=
true
,
value
=
"状态码"
)
private
int
status
;
/**
* 数据
*/
@ApiModelProperty
(
required
=
false
,
value
=
"数据"
)
private
Object
dataList
;
/**
* 操作详细信息
*/
@ApiModelProperty
(
required
=
false
,
value
=
"操作详细信息"
)
private
String
message
;
public
CommonResponse
(){
}
public
CommonResponse
(
String
result
)
{
this
.
result
=
result
;
}
public
CommonResponse
(
Object
dataList
)
{
this
.
dataList
=
dataList
;
this
.
result
=
""
;
}
public
CommonResponse
(
String
result
,
Object
dataList
)
{
this
.
dataList
=
dataList
;
this
.
result
=
result
;
}
public
CommonResponse
(
String
result
,
String
message
)
{
this
.
result
=
result
;
this
.
message
=
message
;
}
public
CommonResponse
(
String
result
,
Object
dataList
,
String
message
)
{
this
.
dataList
=
dataList
;
this
.
result
=
result
;
this
.
message
=
message
;
}
public
CommonResponse
(
String
result
,
Object
dataList
,
int
status
)
{
this
.
dataList
=
dataList
;
this
.
result
=
result
;
this
.
status
=
status
;
}
public
CommonResponse
(
String
result
,
String
message
,
int
status
)
{
this
.
result
=
result
;
this
.
message
=
message
;
this
.
status
=
status
;
}
public
CommonResponse
(
String
result
,
Object
dataList
,
String
message
,
int
status
)
{
this
.
dataList
=
dataList
;
this
.
result
=
result
;
this
.
message
=
message
;
this
.
status
=
status
;
}
public
Boolean
isSuccess
(){
return
"SUCCESS"
.
equals
(
getResult
());
}
public
String
getResult
()
{
return
result
;
}
public
void
setResult
(
String
result
)
{
this
.
result
=
result
;
}
public
String
getMessage
()
{
return
message
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
public
Object
getDataList
()
{
return
dataList
;
}
public
void
setDataList
(
Object
dataList
)
{
this
.
dataList
=
dataList
;
}
public
void
setStatus
(
int
status
)
{
this
.
status
=
status
;
}
public
int
getStatus
()
{
return
status
;
}
public
String
toJsonStr
()
throws
Exception
{
return
JSON
.
toJSONString
(
this
,
SerializerFeature
.
WriteMapNullValue
,
SerializerFeature
.
DisableCircularReferenceDetect
,
SerializerFeature
.
SkipTransientField
);
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/Util/CommonResponseUtil.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
Util
;
import
org.springframework.http.HttpStatus
;
public
class
CommonResponseUtil
{
public
static
CommonResponse
success
()
{
CommonResponse
response
=
new
CommonResponse
();
response
.
setResult
(
Constants
.
RESULT_SUCCESS
);
response
.
setStatus
(
HttpStatus
.
OK
.
value
());
return
response
;
}
public
static
CommonResponse
success
(
Object
obj
)
{
CommonResponse
response
=
new
CommonResponse
();
response
.
setResult
(
Constants
.
RESULT_SUCCESS
);
response
.
setStatus
(
HttpStatus
.
OK
.
value
());
response
.
setDataList
(
obj
);
return
response
;
}
public
static
CommonResponse
success
(
Object
obj
,
String
message
)
{
CommonResponse
response
=
new
CommonResponse
();
response
.
setResult
(
Constants
.
RESULT_SUCCESS
);
response
.
setStatus
(
HttpStatus
.
OK
.
value
());
response
.
setDataList
(
obj
);
response
.
setMessage
(
message
);
return
response
;
}
public
static
CommonResponse
failure
()
{
CommonResponse
response
=
new
CommonResponse
();
response
.
setResult
(
Constants
.
RESULT_FAILURE
);
response
.
setStatus
(
HttpStatus
.
INTERNAL_SERVER_ERROR
.
value
());
return
response
;
}
public
static
CommonResponse
failure
(
String
message
)
{
CommonResponse
response
=
new
CommonResponse
();
response
.
setResult
(
Constants
.
RESULT_FAILURE
);
response
.
setStatus
(
HttpStatus
.
INTERNAL_SERVER_ERROR
.
value
());
response
.
setMessage
(
message
);
return
response
;
}
public
static
CommonResponse
failure
(
Object
obj
,
String
message
)
{
CommonResponse
response
=
new
CommonResponse
();
response
.
setResult
(
Constants
.
RESULT_FAILURE
);
response
.
setStatus
(
HttpStatus
.
INTERNAL_SERVER_ERROR
.
value
());
response
.
setDataList
(
obj
);
response
.
setMessage
(
message
);
return
response
;
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/Util/Constants.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
Util
;
/**
* <pre>
* 系统常量
* </pre>
*
* @author mincx
* @version Constants.java v0.1
* @time 2017-9-19 15:43:32
*/
public
class
Constants
{
public
static
final
String
ERROR_MESSAGE
=
"系统异常"
;
public
static
final
String
RESULT_SUCCESS
=
"SUCCESS"
;
public
static
final
String
RESULT_FAILURE
=
"FAILURE"
;
public
static
final
String
RULE_FACT_PREFIX
=
"rule_"
;
public
static
final
String
RULE_COMPILATION_ERROR
=
"规则编译异常"
;
public
static
final
String
NEW_LINE
=
"\r\n"
;
public
static
final
String
POSITION_LATITUDE
=
"latitude"
;
public
static
final
String
POSITION_LONGITUDE
=
"longitude"
;
public
static
final
double
PI
=
3.1415
;
public
static
final
double
EARTH_RADIUS
=
6370.996
;
public
static
final
String
RULE_CONDITION_AND
=
"&&"
;
public
static
final
String
RULE_CONDITION_OR
=
"||"
;
/**
* DES加密解密默认key
*/
public
static
final
String
XSS_KEY
=
"qaz"
;
/**
* 灾情状态
*/
public
static
final
String
FireHappenStateID
=
"90db70b7-49a4-4a72-b54b-0fabbed9bec7"
;
//发生
public
static
final
String
FireDevelopStateID
=
"1f7fe7d7-b30c-4518-8c95-6e3bc506ca86"
;
//猛烈
/**
* 车辆状态
*/
public
static
final
String
CarArrivedStateID
=
"ad55748a-1206-4507-8831-95b7f2ad804f"
;
//到达
public
static
final
String
CarDispatchingStateID
=
"43a23576-3d0f-4c3d-a46b-555391a4d870"
;
//待出动
public
static
final
String
CarOnDutyStateID
=
"21cc717f-60b4-46ae-942e-9efd63d13415"
;
//执勤
public
static
final
String
CarOnSiteStateID
=
"d7eddc16-4c55-4de0-b726-3547c7b0b980"
;
//在位
public
static
final
String
CarOnTheWayStateID
=
"5e1b6e98-d1dc-4c49-a7ad-b959d2278dba"
;
//在途
public
static
final
String
CarRepairStateID
=
"e86d455b-e9fd-4938-9826-38ca46623287"
;
//维修
/**
* 战斗力量编队状态
*/
public
static
final
String
RescuePowerArrivedStateID
=
"0951f770-7f75-43d8-bcec-47d7559be727"
;
//到达
public
static
final
String
RescuePowerDispatchedStateID
=
"ec4afc56-6cec-41a3-95f5-20c735f052d4"
;
//已调派
public
static
final
String
RescuePowerEnhanceStateID
=
"3d6cf113-b69d-47c3-a3a8-ded448cc4636"
;
//增援
public
static
final
String
RescuePowerFightingStateID
=
"4bacd4b4-b07d-454e-b737-431e7c997cde"
;
//战斗
public
static
final
String
RescuePowerStandByStateID
=
"4fc6e4d6-c6a8-453c-b554-ce7de0b828b2"
;
//待命
/**
* sql注入关键字
*/
public
static
String
badStr
=
"'|and|exec|execute|insert|select|delete|update|count|drop|%|chr|mid|master|truncate|"
+
"char|declare|sitename|net user|xp_cmdshell|;|or|-|+|,|like'|and|exec|execute|insert|create|drop|"
+
"table|from|grant|use|group_concat|column_name|"
+
"information_schema.columns|table_schema|union|where|select|delete|update|order|by|count|"
+
"chr|mid|master|truncate|char|declare|or|;|-|--|,|like|//|/|%|#"
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/Util/HttpUtil.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
Util
;
import
org.apache.http.HttpEntity
;
import
org.apache.http.HttpStatus
;
import
org.apache.http.client.config.RequestConfig
;
import
org.apache.http.client.methods.*
;
import
org.apache.http.config.Registry
;
import
org.apache.http.config.RegistryBuilder
;
import
org.apache.http.conn.socket.ConnectionSocketFactory
;
import
org.apache.http.conn.socket.PlainConnectionSocketFactory
;
import
org.apache.http.conn.ssl.SSLConnectionSocketFactory
;
import
org.apache.http.conn.ssl.TrustSelfSignedStrategy
;
import
org.apache.http.entity.StringEntity
;
import
org.apache.http.impl.client.CloseableHttpClient
;
import
org.apache.http.impl.client.DefaultHttpRequestRetryHandler
;
import
org.apache.http.impl.client.HttpClients
;
import
org.apache.http.impl.conn.PoolingHttpClientConnectionManager
;
import
org.apache.http.ssl.SSLContextBuilder
;
import
org.apache.http.util.EntityUtils
;
import
java.io.BufferedReader
;
import
java.io.IOException
;
import
java.io.InputStreamReader
;
import
java.io.PrintWriter
;
import
java.net.HttpURLConnection
;
import
java.net.URL
;
import
java.util.Iterator
;
import
java.util.Map
;
public
class
HttpUtil
{
// utf-8字符编码
private
static
final
String
CHARSET_UTF_8
=
"utf-8"
;
// HTTP内容类型。
private
static
final
String
CONTENT_TYPE_TEXT_HTML
=
"text/xml"
;
// HTTP内容类型。相当于form表单的形式,提交数据
private
static
final
String
CONTENT_TYPE_FORM_URL
=
"application/x-www-form-urlencoded"
;
// HTTP内容类型。相当于form表单的形式,提交数据
private
static
final
String
CONTENT_TYPE_JSON_URL
=
"application/json;charset=utf-8"
;
// 连接管理器
private
static
PoolingHttpClientConnectionManager
pool
;
// 请求配置
private
static
RequestConfig
requestConfig
;
static
{
try
{
//System.out.println("初始化HttpClientTest~~~开始");
SSLContextBuilder
builder
=
new
SSLContextBuilder
();
builder
.
loadTrustMaterial
(
null
,
new
TrustSelfSignedStrategy
());
SSLConnectionSocketFactory
sslsf
=
new
SSLConnectionSocketFactory
(
builder
.
build
());
// 配置同时支持 HTTP 和 HTPPS
Registry
<
ConnectionSocketFactory
>
socketFactoryRegistry
=
RegistryBuilder
.<
ConnectionSocketFactory
>
create
().
register
(
"http"
,
PlainConnectionSocketFactory
.
getSocketFactory
()).
register
(
"https"
,
sslsf
).
build
();
// 初始化连接管理器
pool
=
new
PoolingHttpClientConnectionManager
(
socketFactoryRegistry
);
// 将最大连接数增加到200,实际项目最好从配置文件中读取这个值
pool
.
setMaxTotal
(
200
);
// 设置最大路由
pool
.
setDefaultMaxPerRoute
(
2
);
// 根据默认超时限制初始化requestConfig
int
socketTimeout
=
10000
;
int
connectTimeout
=
10000
;
int
connectionRequestTimeout
=
10000
;
requestConfig
=
RequestConfig
.
custom
().
setConnectionRequestTimeout
(
connectionRequestTimeout
).
setSocketTimeout
(
socketTimeout
).
setConnectTimeout
(
connectTimeout
).
build
();
//System.out.println("初始化HttpClientTest~~~结束");
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
// 设置请求超时时间
requestConfig
=
RequestConfig
.
custom
().
setSocketTimeout
(
50000
).
setConnectTimeout
(
50000
)
.
setConnectionRequestTimeout
(
50000
).
build
();
}
private
static
CloseableHttpClient
getHttpClient
()
{
return
HttpClients
.
custom
()
// 设置连接池管理
.
setConnectionManager
(
pool
)
// 设置请求配置
.
setDefaultRequestConfig
(
requestConfig
)
// 设置重试次数
.
setRetryHandler
(
new
DefaultHttpRequestRetryHandler
(
0
,
false
))
.
build
();
}
/**
* 发送Post请求
*/
private
static
String
sendHttpPost
(
HttpPost
httpPost
)
{
CloseableHttpClient
httpClient
=
null
;
CloseableHttpResponse
response
=
null
;
// 响应内容
String
responseContent
=
null
;
try
{
// 创建默认的httpClient实例.
httpClient
=
getHttpClient
();
// 配置请求信息
httpPost
.
setConfig
(
requestConfig
);
// 执行请求
response
=
httpClient
.
execute
(
httpPost
);
// 得到响应实例
HttpEntity
entity
=
response
.
getEntity
();
// 可以获得响应头
// Header[] headers = response.getHeaders(HttpHeaders.CONTENT_TYPE);
// for (Header header : headers) {
// System.out.println(header.getName());
// }
// 得到响应类型
// System.out.println(ContentType.getOrDefault(response.getEntity()).getMimeType());
// 判断响应状态
if
(
response
.
getStatusLine
().
getStatusCode
()
>=
300
)
{
throw
new
Exception
(
"HTTP Request is not success, Response code is "
+
response
.
getStatusLine
().
getStatusCode
());
}
if
(
HttpStatus
.
SC_OK
==
response
.
getStatusLine
().
getStatusCode
()
||
HttpStatus
.
SC_CREATED
==
response
.
getStatusLine
().
getStatusCode
())
{
responseContent
=
EntityUtils
.
toString
(
entity
,
CHARSET_UTF_8
);
EntityUtils
.
consume
(
entity
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
finally
{
try
{
// 释放资源
if
(
response
!=
null
)
{
response
.
close
();
}
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
}
return
responseContent
;
}
/**
* 发送Post请求
*
* @param httpPut
* @return
*/
private
static
String
sendHttpPut
(
HttpPut
httpPut
)
{
CloseableHttpClient
httpClient
=
null
;
CloseableHttpResponse
response
=
null
;
// 响应内容
String
responseContent
=
null
;
try
{
// 创建默认的httpClient实例.
httpClient
=
getHttpClient
();
// 配置请求信息
httpPut
.
setConfig
(
requestConfig
);
// 执行请求
response
=
httpClient
.
execute
(
httpPut
);
// 得到响应实例
HttpEntity
entity
=
response
.
getEntity
();
// 可以获得响应头
// Header[] headers = response.getHeaders(HttpHeaders.CONTENT_TYPE);
// for (Header header : headers) {
// System.out.println(header.getName());
// }
// 得到响应类型
// System.out.println(ContentType.getOrDefault(response.getEntity()).getMimeType());
// 判断响应状态
if
(
response
.
getStatusLine
().
getStatusCode
()
>=
300
)
{
throw
new
Exception
(
"HTTP Request is not success, Response code is "
+
response
.
getStatusLine
().
getStatusCode
());
}
if
(
HttpStatus
.
SC_OK
==
response
.
getStatusLine
().
getStatusCode
()
||
HttpStatus
.
SC_CREATED
==
response
.
getStatusLine
().
getStatusCode
())
{
responseContent
=
EntityUtils
.
toString
(
entity
,
CHARSET_UTF_8
);
EntityUtils
.
consume
(
entity
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
finally
{
try
{
// 释放资源
if
(
response
!=
null
)
{
response
.
close
();
}
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
}
return
responseContent
;
}
/**
* 发送Post请求
*
* @param httpDelete
* @return
*/
private
static
String
sendHttpDelete
(
HttpDelete
httpDelete
)
{
CloseableHttpClient
httpClient
=
null
;
CloseableHttpResponse
response
=
null
;
// 响应内容
String
responseContent
=
null
;
try
{
// 创建默认的httpClient实例.
httpClient
=
getHttpClient
();
// 配置请求信息
httpDelete
.
setConfig
(
requestConfig
);
// 执行请求
response
=
httpClient
.
execute
(
httpDelete
);
// 得到响应实例
HttpEntity
entity
=
response
.
getEntity
();
// 可以获得响应头
// Header[] headers = response.getHeaders(HttpHeaders.CONTENT_TYPE);
// for (Header header : headers) {
// System.out.println(header.getName());
// }
// 得到响应类型
// System.out.println(ContentType.getOrDefault(response.getEntity()).getMimeType());
// 判断响应状态
if
(
response
.
getStatusLine
().
getStatusCode
()
>=
300
)
{
throw
new
Exception
(
"HTTP Request is not success, Response code is "
+
response
.
getStatusLine
().
getStatusCode
());
}
if
(
HttpStatus
.
SC_OK
==
response
.
getStatusLine
().
getStatusCode
()
||
HttpStatus
.
SC_CREATED
==
response
.
getStatusLine
().
getStatusCode
())
{
responseContent
=
EntityUtils
.
toString
(
entity
,
CHARSET_UTF_8
);
EntityUtils
.
consume
(
entity
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
finally
{
try
{
// 释放资源
if
(
response
!=
null
)
{
response
.
close
();
}
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
}
return
responseContent
;
}
/**
* 发送Get请求
*
* @param httpGet
* @return
*/
private
static
String
sendHttpGet
(
HttpGet
httpGet
)
{
CloseableHttpClient
httpClient
=
null
;
CloseableHttpResponse
response
=
null
;
// 响应内容
String
responseContent
=
null
;
try
{
// 创建默认的httpClient实例.
httpClient
=
getHttpClient
();
// 配置请求信息
httpGet
.
setConfig
(
requestConfig
);
// 执行请求
response
=
httpClient
.
execute
(
httpGet
);
// 得到响应实例
HttpEntity
entity
=
response
.
getEntity
();
// 可以获得响应头
// Header[] headers = response.getHeaders(HttpHeaders.CONTENT_TYPE);
// for (Header header : headers) {
// System.out.println(header.getName());
// }
// 得到响应类型
// System.out.println(ContentType.getOrDefault(response.getEntity()).getMimeType());
// 判断响应状态
if
(
response
.
getStatusLine
().
getStatusCode
()
>=
300
)
{
throw
new
Exception
(
"HTTP Request is not success, Response code is "
+
response
.
getStatusLine
().
getStatusCode
());
}
if
(
HttpStatus
.
SC_OK
==
response
.
getStatusLine
().
getStatusCode
())
{
responseContent
=
EntityUtils
.
toString
(
entity
,
CHARSET_UTF_8
);
EntityUtils
.
consume
(
entity
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
finally
{
try
{
// 释放资源
if
(
response
!=
null
)
{
response
.
close
();
}
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
}
return
responseContent
;
}
/**
* 发送 post请求
*
* @param httpUrl 地址
*/
public
static
String
sendHttpPost
(
String
httpUrl
)
{
// 创建httpPost
HttpPost
httpPost
=
new
HttpPost
(
httpUrl
);
return
sendHttpPost
(
httpPost
);
}
/**
* 发送 delete请求
*
* @param httpUrl 地址
*/
public
static
String
sendHttpDelete
(
String
httpUrl
)
{
// 创建httpPost
HttpDelete
httpDelete
=
new
HttpDelete
(
httpUrl
);
return
sendHttpDelete
(
httpDelete
);
}
/**
* 发送 post请求
*
* @param httpUrl 地址
*/
public
static
String
sendHttpPostWithHeader
(
String
httpUrl
,
Map
<
String
,
String
>
headerMap
)
{
// 创建httpPost
HttpPost
httpPost
=
new
HttpPost
(
httpUrl
);
for
(
Map
.
Entry
<
String
,
String
>
entry
:
headerMap
.
entrySet
())
{
httpPost
.
setHeader
(
entry
.
getKey
(),
entry
.
getValue
());
}
return
sendHttpPost
(
httpPost
);
}
/**
* 发送 get请求
*
* @param httpUrl
*/
public
static
String
sendHttpGet
(
String
httpUrl
)
{
// 创建get请求
HttpGet
httpGet
=
new
HttpGet
(
httpUrl
);
return
sendHttpGet
(
httpGet
);
}
/**
* 发送 delete请求带请求头
*/
public
static
String
sendHttpDeleteWithHeader
(
String
httpUrl
,
Map
<
String
,
String
>
headerMap
)
{
// 创建get请求
HttpDelete
httpDelete
=
new
HttpDelete
(
httpUrl
);
for
(
Map
.
Entry
<
String
,
String
>
entry
:
headerMap
.
entrySet
())
{
httpDelete
.
setHeader
(
entry
.
getKey
(),
entry
.
getValue
());
}
return
sendHttpDelete
(
httpDelete
);
}
/**
* 发送 get请求带请求头
*/
public
static
String
sendHttpGetWithHeader
(
String
httpUrl
,
Map
<
String
,
String
>
headerMap
)
{
// 创建get请求
HttpGet
httpGet
=
new
HttpGet
(
httpUrl
);
for
(
Map
.
Entry
<
String
,
String
>
entry
:
headerMap
.
entrySet
())
{
httpGet
.
setHeader
(
entry
.
getKey
(),
entry
.
getValue
());
}
return
sendHttpGet
(
httpGet
);
}
/**
* 发送 delete请求带请求头
*/
public
static
String
sendHttpDeleteJsonWithHeader
(
String
httpUrl
,
String
paramsJson
,
Map
<
String
,
String
>
headerMap
)
{
StringBuffer
content
=
new
StringBuffer
();
try
{
URL
url
=
new
URL
(
httpUrl
);
HttpURLConnection
connection
=
(
HttpURLConnection
)
url
.
openConnection
();
connection
.
setRequestMethod
(
"DELETE"
);
connection
.
setDoInput
(
true
);
connection
.
setDoOutput
(
true
);
connection
.
setRequestProperty
(
"Content-Type"
,
"application/json;charset=UTF-8"
);
for
(
Map
.
Entry
<
String
,
String
>
entry
:
headerMap
.
entrySet
())
{
connection
.
setRequestProperty
(
entry
.
getKey
(),
entry
.
getValue
());
}
PrintWriter
printWriter
=
new
PrintWriter
(
connection
.
getOutputStream
());
printWriter
.
write
(
paramsJson
);
printWriter
.
flush
();
BufferedReader
br
=
new
BufferedReader
(
new
InputStreamReader
(
connection
.
getInputStream
()));
String
line
;
while
((
line
=
br
.
readLine
())
!=
null
)
{
content
.
append
(
line
);
}
br
.
close
();
connection
.
disconnect
();
}
catch
(
Exception
e
)
{
}
return
content
.
toString
();
}
/**
* 发送 post请求
*
* @param httpUrl 地址
* @param params 参数(格式:key1=value1&key2=value2)
*/
public
static
String
sendHttpPost
(
String
httpUrl
,
String
params
)
{
HttpPost
httpPost
=
new
HttpPost
(
httpUrl
);
// 创建httpPost
try
{
// 设置参数
if
(
params
!=
null
&&
params
.
trim
().
length
()
>
0
)
{
StringEntity
stringEntity
=
new
StringEntity
(
params
,
"UTF-8"
);
stringEntity
.
setContentType
(
CONTENT_TYPE_FORM_URL
);
httpPost
.
setEntity
(
stringEntity
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
sendHttpPost
(
httpPost
);
}
/**
* 发送 post请求
*
* @param maps 参数
*/
public
static
String
sendHttpPost
(
String
httpUrl
,
Map
<
String
,
String
>
maps
)
{
String
parem
=
convertStringParamter
(
maps
);
return
sendHttpPost
(
httpUrl
,
parem
);
}
/**
* 发送 post请求 发送json数据
*
* @param httpUrl 地址
* @param paramsJson 参数(格式 json)
*/
public
static
String
sendHttpPostJsonWithHeader
(
String
httpUrl
,
String
paramsJson
,
Map
<
String
,
String
>
headerMap
)
{
HttpPost
httpPost
=
new
HttpPost
(
httpUrl
);
// 创建httpPost
try
{
for
(
Map
.
Entry
<
String
,
String
>
entry
:
headerMap
.
entrySet
())
{
httpPost
.
setHeader
(
entry
.
getKey
(),
entry
.
getValue
());
}
// 设置参数
if
(
paramsJson
!=
null
&&
paramsJson
.
trim
().
length
()
>
0
)
{
StringEntity
stringEntity
=
new
StringEntity
(
paramsJson
,
"UTF-8"
);
stringEntity
.
setContentType
(
CONTENT_TYPE_JSON_URL
);
httpPost
.
setEntity
(
stringEntity
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
sendHttpPost
(
httpPost
);
}
/**
* 发送 put请求 发送json数据
*
* @param httpUrl 地址
* @param paramsJson 参数(格式 json)
*/
public
static
String
sendHttpPutJsonWithHeader
(
String
httpUrl
,
String
paramsJson
,
Map
<
String
,
String
>
headerMap
)
{
HttpPut
httpPost
=
new
HttpPut
(
httpUrl
);
// 创建HttpPut
try
{
for
(
Map
.
Entry
<
String
,
String
>
entry
:
headerMap
.
entrySet
())
{
httpPost
.
setHeader
(
entry
.
getKey
(),
entry
.
getValue
());
}
// 设置参数
if
(
paramsJson
!=
null
&&
paramsJson
.
trim
().
length
()
>
0
)
{
StringEntity
stringEntity
=
new
StringEntity
(
paramsJson
,
"UTF-8"
);
stringEntity
.
setContentType
(
CONTENT_TYPE_JSON_URL
);
httpPost
.
setEntity
(
stringEntity
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
sendHttpPut
(
httpPost
);
}
/**
* 发送 post请求 发送json数据
*
* @param httpUrl 地址
* @param paramsJson 参数(格式 json)
*/
public
static
String
sendHttpPostJson
(
String
httpUrl
,
String
paramsJson
)
{
HttpPost
httpPost
=
new
HttpPost
(
httpUrl
);
// 创建httpPost
try
{
// 设置参数
if
(
paramsJson
!=
null
&&
paramsJson
.
trim
().
length
()
>
0
)
{
StringEntity
stringEntity
=
new
StringEntity
(
paramsJson
,
"UTF-8"
);
stringEntity
.
setContentType
(
CONTENT_TYPE_JSON_URL
);
httpPost
.
setEntity
(
stringEntity
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
sendHttpPost
(
httpPost
);
}
/**
* 发送 post请求 发送xml数据
*
* @param httpUrl 地址
* @param paramsXml 参数(格式 Xml)
*/
public
static
String
sendHttpPostXml
(
String
httpUrl
,
String
paramsXml
)
{
HttpPost
httpPost
=
new
HttpPost
(
httpUrl
);
// 创建httpPost
try
{
// 设置参数
if
(
paramsXml
!=
null
&&
paramsXml
.
trim
().
length
()
>
0
)
{
StringEntity
stringEntity
=
new
StringEntity
(
paramsXml
,
"UTF-8"
);
stringEntity
.
setContentType
(
CONTENT_TYPE_TEXT_HTML
);
httpPost
.
setEntity
(
stringEntity
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
sendHttpPost
(
httpPost
);
}
/**
* 将map集合的键值对转化成:key1=value1&key2=value2 的形式
*
* @param parameterMap 需要转化的键值对集合
* @return 字符串
*/
private
static
String
convertStringParamter
(
Map
parameterMap
)
{
StringBuffer
parameterBuffer
=
new
StringBuffer
();
if
(
parameterMap
!=
null
)
{
Iterator
iterator
=
parameterMap
.
keySet
().
iterator
();
String
key
=
null
;
String
value
=
null
;
while
(
iterator
.
hasNext
())
{
key
=
(
String
)
iterator
.
next
();
if
(
parameterMap
.
get
(
key
)
!=
null
)
{
value
=
(
String
)
parameterMap
.
get
(
key
);
}
else
{
value
=
""
;
}
parameterBuffer
.
append
(
key
).
append
(
"="
).
append
(
value
);
if
(
iterator
.
hasNext
())
{
parameterBuffer
.
append
(
"&"
);
}
}
}
return
parameterBuffer
.
toString
();
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/HouseholdPvContactDto.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 户用光伏合同表
*
* @author system_generator
* @date 2023-03-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"HouseholdPvContactDto"
,
description
=
"户用光伏合同表"
)
public
class
HouseholdPvContactDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"户用光伏id"
)
private
Long
householdPvId
;
@ApiModelProperty
(
value
=
"备案证号"
)
private
String
number
;
@ApiModelProperty
(
value
=
"合同期限"
)
private
String
period
;
@ApiModelProperty
(
value
=
"合同描述"
)
private
String
description
;
@ApiModelProperty
(
value
=
"屋顶租赁及使用协议"
)
private
String
useAgreement
;
@ApiModelProperty
(
value
=
"签约视频"
)
private
String
signingVideo
;
@ApiModelProperty
(
value
=
"备案证明"
)
private
String
filingCertificate
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/HouseholdPvDeviceDto.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 户用光伏设备表
*
* @author system_generator
* @date 2023-03-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"HouseholdPvDeviceDto"
,
description
=
"户用光伏设备表"
)
public
class
HouseholdPvDeviceDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"户用光伏id"
)
private
Long
householdPvId
;
@ApiModelProperty
(
value
=
"设备名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"品牌"
)
private
String
brand
;
@ApiModelProperty
(
value
=
"SN编码"
)
private
String
snCode
;
@ApiModelProperty
(
value
=
"型号"
)
private
String
model
;
@ApiModelProperty
(
value
=
"功率"
)
private
String
power
;
@ApiModelProperty
(
value
=
"序列号"
)
private
String
serialNumber
;
@ApiModelProperty
(
value
=
"类型"
)
private
String
type
;
@ApiModelProperty
(
value
=
"描述"
)
private
String
description
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/HouseholdPvDistrictDto.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
*
*
* @author system_generator
* @date 2023-03-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"HouseholdPvDistrictDto"
,
description
=
""
)
public
class
HouseholdPvDistrictDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
name
;
private
Long
parentId
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
private
String
parentType
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/HouseholdPvDto.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 户用光伏表
*
* @author system_generator
* @date 2023-03-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"HouseholdPvDto"
,
description
=
"户用光伏表"
)
public
class
HouseholdPvDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"户主姓名"
)
private
String
name
;
@ApiModelProperty
(
value
=
"户号"
)
private
String
number
;
@ApiModelProperty
(
value
=
"厂商"
)
private
String
platformCompanyId
;
@ApiModelProperty
(
value
=
"性别"
)
private
String
sex
;
@ApiModelProperty
(
value
=
"身份证号"
)
private
String
idNumber
;
@ApiModelProperty
(
value
=
"证件过期时间"
)
private
Date
expiryTime
;
@ApiModelProperty
(
value
=
"签发机关"
)
private
String
issuingAuthority
;
@ApiModelProperty
(
value
=
"户籍地址"
)
private
String
residenceAddress
;
@ApiModelProperty
(
value
=
"手机号码"
)
private
String
phone
;
@ApiModelProperty
(
value
=
"居住地"
)
private
String
address
;
@ApiModelProperty
(
value
=
"邮编"
)
private
String
postcode
;
@ApiModelProperty
(
value
=
"身份证正面"
)
private
String
idFrontPhoto
;
@ApiModelProperty
(
value
=
"身份证背面"
)
private
String
idBackPhoto
;
@ApiModelProperty
(
value
=
"房屋产权证"
)
private
String
housePropertyCertificate
;
@ApiModelProperty
(
value
=
"农户首页照片"
)
private
String
homepagePhoto
;
@ApiModelProperty
(
value
=
"送达地址"
)
private
String
serviceAddress
;
@ApiModelProperty
(
value
=
"组织机构code"
)
private
String
orgCode
;
@ApiModelProperty
(
value
=
"告警等级"
)
private
String
level
;
@ApiModelProperty
(
value
=
"区域id"
)
private
Long
districtId
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/HouseholdPvInstallDto.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 户用光伏合同表
*
* @author system_generator
* @date 2023-03-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"HouseholdPvInstallDto"
,
description
=
"户用光伏合同表"
)
public
class
HouseholdPvInstallDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"户用光伏id"
)
private
Long
householdPvId
;
@ApiModelProperty
(
value
=
"所属厂站"
)
private
String
platformCompanyId
;
@ApiModelProperty
(
value
=
"安装信息描述"
)
private
String
description
;
@ApiModelProperty
(
value
=
"基础框架整体安装照片"
)
private
String
foundationFramePhoto
;
@ApiModelProperty
(
value
=
"组件铭牌安装照片"
)
private
String
nameplatePhoto
;
@ApiModelProperty
(
value
=
"配电箱、逆变器案场安装照片"
)
private
String
distributionBoxInverterPhoto
;
@ApiModelProperty
(
value
=
"电表照片"
)
private
String
electricityMeterPhoto
;
@ApiModelProperty
(
value
=
"其他照片"
)
private
String
otherPhoto
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/HouseholdPvLeaseDto.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 户用光伏合同表
*
* @author system_generator
* @date 2023-03-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"HouseholdPvLeaseDto"
,
description
=
"户用光伏合同表"
)
public
class
HouseholdPvLeaseDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"户用光伏id"
)
private
Long
householdPvId
;
@ApiModelProperty
(
value
=
"安装地址"
)
private
String
installAddress
;
@ApiModelProperty
(
value
=
"安装日期"
)
private
Date
installDate
;
@ApiModelProperty
(
value
=
"预计功率(w)"
)
private
Integer
estimatedPower
;
@ApiModelProperty
(
value
=
"组件单片功率(w)"
)
private
Integer
monolithicPower
;
@ApiModelProperty
(
value
=
"共计安装数量(块)"
)
private
Integer
installCount
;
@ApiModelProperty
(
value
=
"实际容量(w)"
)
private
Integer
actualCapacity
;
@ApiModelProperty
(
value
=
"电站类型"
)
private
String
stationType
;
@ApiModelProperty
(
value
=
"组件规格"
)
private
String
moduleType
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/HouseholdPv.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
* 户用光伏表
*
* @author system_generator
* @date 2023-03-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"household_pv"
)
public
class
HouseholdPv
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 户主姓名
*/
@TableField
(
"name"
)
private
String
name
;
/**
* 户号
*/
@TableField
(
"number"
)
private
String
number
;
/**
* 厂商
*/
@TableField
(
"platform_company_id"
)
private
String
platformCompanyId
;
/**
* 性别
*/
@TableField
(
"sex"
)
private
String
sex
;
/**
* 身份证号
*/
@TableField
(
"ID_number"
)
private
String
idNumber
;
/**
* 证件过期时间
*/
@TableField
(
"expiry_time"
)
private
Date
expiryTime
;
/**
* 签发机关
*/
@TableField
(
"issuing_authority"
)
private
String
issuingAuthority
;
/**
* 户籍地址
*/
@TableField
(
"residence_address"
)
private
String
residenceAddress
;
/**
* 手机号码
*/
@TableField
(
"phone"
)
private
String
phone
;
/**
* 居住地
*/
@TableField
(
"address"
)
private
String
address
;
/**
* 邮编
*/
@TableField
(
"postcode"
)
private
String
postcode
;
/**
* 身份证正面
*/
@TableField
(
"ID_front_photo"
)
private
String
idFrontPhoto
;
/**
* 身份证背面
*/
@TableField
(
"ID_back_photo"
)
private
String
idBackPhoto
;
/**
* 房屋产权证
*/
@TableField
(
"house_property_certificate"
)
private
String
housePropertyCertificate
;
/**
* 农户首页照片
*/
@TableField
(
"homepage_photo"
)
private
String
homepagePhoto
;
/**
* 送达地址
*/
@TableField
(
"service_address"
)
private
String
serviceAddress
;
/**
* 组织机构code
*/
@TableField
(
"org_code"
)
private
String
orgCode
;
/**
* 告警等级
*/
@TableField
(
"level"
)
private
String
level
;
/**
* 区域id
*/
@TableField
(
"district_id"
)
private
Long
districtId
;
/**
* 创建时间
*/
@TableField
(
"create_time"
)
private
Date
createTime
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/HouseholdPvContact.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
* 户用光伏合同表
*
* @author system_generator
* @date 2023-03-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"household_pv_contact"
)
public
class
HouseholdPvContact
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 户用光伏id
*/
@TableField
(
"household_pv_id"
)
private
Long
householdPvId
;
/**
* 备案证号
*/
@TableField
(
"number"
)
private
String
number
;
/**
* 合同期限
*/
@TableField
(
"period"
)
private
String
period
;
/**
* 合同描述
*/
@TableField
(
"description"
)
private
String
description
;
/**
* 屋顶租赁及使用协议
*/
@TableField
(
"use_agreement"
)
private
String
useAgreement
;
/**
* 签约视频
*/
@TableField
(
"signing_video"
)
private
String
signingVideo
;
/**
* 备案证明
*/
@TableField
(
"filing_certificate"
)
private
String
filingCertificate
;
/**
* 创建时间
*/
@TableField
(
"create_time"
)
private
Date
createTime
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/HouseholdPvDevice.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
* 户用光伏设备表
*
* @author system_generator
* @date 2023-03-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"household_pv_device"
)
public
class
HouseholdPvDevice
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 户用光伏id
*/
@TableField
(
"household_pv_id"
)
private
Long
householdPvId
;
/**
* 设备名称
*/
@TableField
(
"name"
)
private
String
name
;
/**
* 品牌
*/
@TableField
(
"brand"
)
private
String
brand
;
/**
* SN编码
*/
@TableField
(
"SN_code"
)
private
String
snCode
;
/**
* 型号
*/
@TableField
(
"model"
)
private
String
model
;
/**
* 功率
*/
@TableField
(
"power"
)
private
String
power
;
/**
* 序列号
*/
@TableField
(
"serial_number"
)
private
String
serialNumber
;
/**
* 类型
*/
@TableField
(
"type"
)
private
String
type
;
/**
* 描述
*/
@TableField
(
"description"
)
private
String
description
;
/**
* 创建时间
*/
@TableField
(
"create_time"
)
private
Date
createTime
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/HouseholdPvDistrict.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
*
*
* @author system_generator
* @date 2023-03-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"household_pv_district"
)
public
class
HouseholdPvDistrict
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
*
*/
@TableField
(
"name"
)
private
String
name
;
/**
*
*/
@TableField
(
"parent_id"
)
private
Long
parentId
;
/**
* 创建时间
*/
@TableField
(
"create_time"
)
private
Date
createTime
;
/**
*
*/
@TableField
(
"parent_type"
)
private
String
parentType
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/HouseholdPvInstall.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
* 户用光伏合同表
*
* @author system_generator
* @date 2023-03-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"household_pv_install"
)
public
class
HouseholdPvInstall
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 户用光伏id
*/
@TableField
(
"household_pv_id"
)
private
Long
householdPvId
;
/**
* 所属厂站
*/
@TableField
(
"platform_company_id"
)
private
String
platformCompanyId
;
/**
* 安装信息描述
*/
@TableField
(
"description"
)
private
String
description
;
/**
* 基础框架整体安装照片
*/
@TableField
(
"foundation_frame_photo"
)
private
String
foundationFramePhoto
;
/**
* 组件铭牌安装照片
*/
@TableField
(
"nameplate_photo"
)
private
String
nameplatePhoto
;
/**
* 配电箱、逆变器案场安装照片
*/
@TableField
(
"distribution_box_inverter_photo"
)
private
String
distributionBoxInverterPhoto
;
/**
* 电表照片
*/
@TableField
(
"electricity_meter_photo"
)
private
String
electricityMeterPhoto
;
/**
* 其他照片
*/
@TableField
(
"other_photo"
)
private
String
otherPhoto
;
/**
* 创建时间
*/
@TableField
(
"create_time"
)
private
Date
createTime
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/HouseholdPvLease.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
* 户用光伏合同表
*
* @author system_generator
* @date 2023-03-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"household_pv_lease"
)
public
class
HouseholdPvLease
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 户用光伏id
*/
@TableField
(
"household_pv_id"
)
private
Long
householdPvId
;
/**
* 安装地址
*/
@TableField
(
"install_address"
)
private
String
installAddress
;
/**
* 安装日期
*/
@TableField
(
"install_date"
)
private
Date
installDate
;
/**
* 预计功率(w)
*/
@TableField
(
"estimated_power"
)
private
Integer
estimatedPower
;
/**
* 组件单片功率(w)
*/
@TableField
(
"monolithic_power"
)
private
Integer
monolithicPower
;
/**
* 共计安装数量(块)
*/
@TableField
(
"install_count"
)
private
Integer
installCount
;
/**
* 实际容量(w)
*/
@TableField
(
"actual_capacity"
)
private
Integer
actualCapacity
;
/**
* 电站类型
*/
@TableField
(
"station_type"
)
private
String
stationType
;
/**
* 组件规格
*/
@TableField
(
"module_type"
)
private
String
moduleType
;
/**
* 创建时间
*/
@TableField
(
"create_time"
)
private
Date
createTime
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/HouseholdPvContactMapper.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPvContact
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 户用光伏合同表 Mapper 接口
*
* @author system_generator
* @date 2023-03-17
*/
public
interface
HouseholdPvContactMapper
extends
BaseMapper
<
HouseholdPvContact
>
{
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/HouseholdPvDeviceMapper.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPvDevice
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 户用光伏设备表 Mapper 接口
*
* @author system_generator
* @date 2023-03-17
*/
public
interface
HouseholdPvDeviceMapper
extends
BaseMapper
<
HouseholdPvDevice
>
{
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/HouseholdPvDistrictMapper.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPvDistrict
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* Mapper 接口
*
* @author system_generator
* @date 2023-03-17
*/
public
interface
HouseholdPvDistrictMapper
extends
BaseMapper
<
HouseholdPvDistrict
>
{
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/HouseholdPvInstallMapper.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPvInstall
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 户用光伏合同表 Mapper 接口
*
* @author system_generator
* @date 2023-03-17
*/
public
interface
HouseholdPvInstallMapper
extends
BaseMapper
<
HouseholdPvInstall
>
{
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/HouseholdPvLeaseMapper.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPvLease
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 户用光伏合同表 Mapper 接口
*
* @author system_generator
* @date 2023-03-17
*/
public
interface
HouseholdPvLeaseMapper
extends
BaseMapper
<
HouseholdPvLease
>
{
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/HouseholdPvMapper.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPv
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 户用光伏表 Mapper 接口
*
* @author system_generator
* @date 2023-03-17
*/
public
interface
HouseholdPvMapper
extends
BaseMapper
<
HouseholdPv
>
{
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/service/IHouseholdPvContactService.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
service
;
/**
* 户用光伏合同表接口类
*
* @author system_generator
* @date 2023-03-17
*/
public
interface
IHouseholdPvContactService
{
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/service/IHouseholdPvDeviceService.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
service
;
/**
* 户用光伏设备表接口类
*
* @author system_generator
* @date 2023-03-17
*/
public
interface
IHouseholdPvDeviceService
{
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/service/IHouseholdPvDistrictService.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
service
;
/**
* 接口类
*
* @author system_generator
* @date 2023-03-17
*/
public
interface
IHouseholdPvDistrictService
{
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/service/IHouseholdPvInstallService.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
service
;
/**
* 户用光伏合同表接口类
*
* @author system_generator
* @date 2023-03-17
*/
public
interface
IHouseholdPvInstallService
{
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/service/IHouseholdPvLeaseService.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
service
;
/**
* 户用光伏合同表接口类
*
* @author system_generator
* @date 2023-03-17
*/
public
interface
IHouseholdPvLeaseService
{
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/service/IHouseholdPvService.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
service
;
/**
* 户用光伏表接口类
*
* @author system_generator
* @date 2023-03-17
*/
public
interface
IHouseholdPvService
{
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/org/amos/boot/module/jxiop/api/App.java
deleted
100644 → 0
View file @
4bc9f9b1
package
org
.
amos
.
boot
.
module
.
jxiop
.
api
;
/**
* Hello world!
*
*/
public
class
App
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"Hello World!"
);
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/HouseholdPvContactMapper.xml
0 → 100644
View file @
8bd45e87
<?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.yeejoin.amos.boot.module.jxiop.api.mapper.HouseholdPvContactMapper"
>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/HouseholdPvDeviceMapper.xml
0 → 100644
View file @
8bd45e87
<?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.yeejoin.amos.boot.module.jxiop.api.mapper.HouseholdPvDeviceMapper"
>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/HouseholdPvDistrictMapper.xml
0 → 100644
View file @
8bd45e87
<?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.yeejoin.amos.boot.module.jxiop.api.mapper.HouseholdPvDistrictMapper"
>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/HouseholdPvInstallMapper.xml
0 → 100644
View file @
8bd45e87
<?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.yeejoin.amos.boot.module.jxiop.api.mapper.HouseholdPvInstallMapper"
>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/HouseholdPvLeaseMapper.xml
0 → 100644
View file @
8bd45e87
<?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.yeejoin.amos.boot.module.jxiop.api.mapper.HouseholdPvLeaseMapper"
>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/HouseholdPvMapper.xml
0 → 100644
View file @
8bd45e87
<?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.yeejoin.amos.boot.module.jxiop.api.mapper.HouseholdPvMapper"
>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/test/java/org/amos/boot/module/jxiop/api/AppTest.java
deleted
100644 → 0
View file @
4bc9f9b1
package
org
.
amos
.
boot
.
module
.
jxiop
.
api
;
import
junit.framework.Test
;
import
junit.framework.TestCase
;
import
junit.framework.TestSuite
;
/**
* Unit test for simple App.
*/
public
class
AppTest
extends
TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public
AppTest
(
String
testName
)
{
super
(
testName
);
}
/**
* @return the suite of tests being tested
*/
public
static
Test
suite
()
{
return
new
TestSuite
(
AppTest
.
class
);
}
/**
* Rigourous Test :-)
*/
public
void
testApp
()
{
assertTrue
(
true
);
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/pom.xml
View file @
8bd45e87
...
@@ -30,5 +30,11 @@
...
@@ -30,5 +30,11 @@
<artifactId>
amos-boot-biz-common
</artifactId>
<artifactId>
amos-boot-biz-common
</artifactId>
<version>
1.0.0
</version>
<version>
1.0.0
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-jxiop-api
</artifactId>
<version>
1.0.0
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/HouseholdPvContactController.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.HouseholdPvContactServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvContactDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
* 户用光伏合同表
*
* @author system_generator
* @date 2023-03-17
*/
@RestController
@Api
(
tags
=
"户用光伏合同表Api"
)
@RequestMapping
(
value
=
"/household-pv-contact"
)
public
class
HouseholdPvContactController
extends
BaseController
{
@Autowired
HouseholdPvContactServiceImpl
householdPvContactServiceImpl
;
/**
* 新增户用光伏合同表
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增户用光伏合同表"
,
notes
=
"新增户用光伏合同表"
)
public
ResponseModel
<
HouseholdPvContactDto
>
save
(
@RequestBody
HouseholdPvContactDto
model
)
{
model
=
householdPvContactServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新户用光伏合同表"
,
notes
=
"根据sequenceNbr更新户用光伏合同表"
)
public
ResponseModel
<
HouseholdPvContactDto
>
updateBySequenceNbrHouseholdPvContact
(
@RequestBody
HouseholdPvContactDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
householdPvContactServiceImpl
.
updateWithModel
(
model
));
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除户用光伏合同表"
,
notes
=
"根据sequenceNbr删除户用光伏合同表"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
householdPvContactServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个户用光伏合同表"
,
notes
=
"根据sequenceNbr查询单个户用光伏合同表"
)
public
ResponseModel
<
HouseholdPvContactDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
householdPvContactServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏合同表分页查询"
,
notes
=
"户用光伏合同表分页查询"
)
public
ResponseModel
<
Page
<
HouseholdPvContactDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
HouseholdPvContactDto
>
page
=
new
Page
<
HouseholdPvContactDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
householdPvContactServiceImpl
.
queryForHouseholdPvContactPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏合同表列表全部数据查询"
,
notes
=
"户用光伏合同表列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
HouseholdPvContactDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
householdPvContactServiceImpl
.
queryForHouseholdPvContactList
());
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/HouseholdPvController.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.HouseholdPvServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
* 户用光伏表
*
* @author system_generator
* @date 2023-03-17
*/
@RestController
@Api
(
tags
=
"户用光伏表Api"
)
@RequestMapping
(
value
=
"/household-pv"
)
public
class
HouseholdPvController
extends
BaseController
{
@Autowired
HouseholdPvServiceImpl
householdPvServiceImpl
;
/**
* 新增户用光伏表
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增户用光伏表"
,
notes
=
"新增户用光伏表"
)
public
ResponseModel
<
HouseholdPvDto
>
save
(
@RequestBody
HouseholdPvDto
model
)
{
model
=
householdPvServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新户用光伏表"
,
notes
=
"根据sequenceNbr更新户用光伏表"
)
public
ResponseModel
<
HouseholdPvDto
>
updateBySequenceNbrHouseholdPv
(
@RequestBody
HouseholdPvDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
householdPvServiceImpl
.
updateWithModel
(
model
));
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除户用光伏表"
,
notes
=
"根据sequenceNbr删除户用光伏表"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
householdPvServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个户用光伏表"
,
notes
=
"根据sequenceNbr查询单个户用光伏表"
)
public
ResponseModel
<
HouseholdPvDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
householdPvServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏表分页查询"
,
notes
=
"户用光伏表分页查询"
)
public
ResponseModel
<
Page
<
HouseholdPvDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
HouseholdPvDto
>
page
=
new
Page
<
HouseholdPvDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
householdPvServiceImpl
.
queryForHouseholdPvPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏表列表全部数据查询"
,
notes
=
"户用光伏表列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
HouseholdPvDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
householdPvServiceImpl
.
queryForHouseholdPvList
());
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/HouseholdPvDeviceController.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.HouseholdPvDeviceServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvDeviceDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
* 户用光伏设备表
*
* @author system_generator
* @date 2023-03-17
*/
@RestController
@Api
(
tags
=
"户用光伏设备表Api"
)
@RequestMapping
(
value
=
"/household-pv-device"
)
public
class
HouseholdPvDeviceController
extends
BaseController
{
@Autowired
HouseholdPvDeviceServiceImpl
householdPvDeviceServiceImpl
;
/**
* 新增户用光伏设备表
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增户用光伏设备表"
,
notes
=
"新增户用光伏设备表"
)
public
ResponseModel
<
HouseholdPvDeviceDto
>
save
(
@RequestBody
HouseholdPvDeviceDto
model
)
{
model
=
householdPvDeviceServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新户用光伏设备表"
,
notes
=
"根据sequenceNbr更新户用光伏设备表"
)
public
ResponseModel
<
HouseholdPvDeviceDto
>
updateBySequenceNbrHouseholdPvDevice
(
@RequestBody
HouseholdPvDeviceDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
householdPvDeviceServiceImpl
.
updateWithModel
(
model
));
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除户用光伏设备表"
,
notes
=
"根据sequenceNbr删除户用光伏设备表"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
householdPvDeviceServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个户用光伏设备表"
,
notes
=
"根据sequenceNbr查询单个户用光伏设备表"
)
public
ResponseModel
<
HouseholdPvDeviceDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
householdPvDeviceServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏设备表分页查询"
,
notes
=
"户用光伏设备表分页查询"
)
public
ResponseModel
<
Page
<
HouseholdPvDeviceDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
HouseholdPvDeviceDto
>
page
=
new
Page
<
HouseholdPvDeviceDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
householdPvDeviceServiceImpl
.
queryForHouseholdPvDevicePage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏设备表列表全部数据查询"
,
notes
=
"户用光伏设备表列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
HouseholdPvDeviceDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
householdPvDeviceServiceImpl
.
queryForHouseholdPvDeviceList
());
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/HouseholdPvDistrictController.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.HouseholdPvDistrictServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvDistrictDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
*
*
* @author system_generator
* @date 2023-03-17
*/
@RestController
@Api
(
tags
=
"Api"
)
@RequestMapping
(
value
=
"/household-pv-district"
)
public
class
HouseholdPvDistrictController
extends
BaseController
{
@Autowired
HouseholdPvDistrictServiceImpl
householdPvDistrictServiceImpl
;
/**
* 新增
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
public
ResponseModel
<
HouseholdPvDistrictDto
>
save
(
@RequestBody
HouseholdPvDistrictDto
model
)
{
model
=
householdPvDistrictServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
public
ResponseModel
<
HouseholdPvDistrictDto
>
updateBySequenceNbrHouseholdPvDistrict
(
@RequestBody
HouseholdPvDistrictDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
householdPvDistrictServiceImpl
.
updateWithModel
(
model
));
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除"
,
notes
=
"根据sequenceNbr删除"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
householdPvDistrictServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
public
ResponseModel
<
HouseholdPvDistrictDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
householdPvDistrictServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
ResponseModel
<
Page
<
HouseholdPvDistrictDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
HouseholdPvDistrictDto
>
page
=
new
Page
<
HouseholdPvDistrictDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
householdPvDistrictServiceImpl
.
queryForHouseholdPvDistrictPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表全部数据查询"
,
notes
=
"列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
HouseholdPvDistrictDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
householdPvDistrictServiceImpl
.
queryForHouseholdPvDistrictList
());
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/HouseholdPvInstallController.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.HouseholdPvInstallServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvInstallDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
* 户用光伏合同表
*
* @author system_generator
* @date 2023-03-17
*/
@RestController
@Api
(
tags
=
"户用光伏合同表Api"
)
@RequestMapping
(
value
=
"/household-pv-install"
)
public
class
HouseholdPvInstallController
extends
BaseController
{
@Autowired
HouseholdPvInstallServiceImpl
householdPvInstallServiceImpl
;
/**
* 新增户用光伏合同表
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增户用光伏合同表"
,
notes
=
"新增户用光伏合同表"
)
public
ResponseModel
<
HouseholdPvInstallDto
>
save
(
@RequestBody
HouseholdPvInstallDto
model
)
{
model
=
householdPvInstallServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新户用光伏合同表"
,
notes
=
"根据sequenceNbr更新户用光伏合同表"
)
public
ResponseModel
<
HouseholdPvInstallDto
>
updateBySequenceNbrHouseholdPvInstall
(
@RequestBody
HouseholdPvInstallDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
householdPvInstallServiceImpl
.
updateWithModel
(
model
));
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除户用光伏合同表"
,
notes
=
"根据sequenceNbr删除户用光伏合同表"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
householdPvInstallServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个户用光伏合同表"
,
notes
=
"根据sequenceNbr查询单个户用光伏合同表"
)
public
ResponseModel
<
HouseholdPvInstallDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
householdPvInstallServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏合同表分页查询"
,
notes
=
"户用光伏合同表分页查询"
)
public
ResponseModel
<
Page
<
HouseholdPvInstallDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
HouseholdPvInstallDto
>
page
=
new
Page
<
HouseholdPvInstallDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
householdPvInstallServiceImpl
.
queryForHouseholdPvInstallPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏合同表列表全部数据查询"
,
notes
=
"户用光伏合同表列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
HouseholdPvInstallDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
householdPvInstallServiceImpl
.
queryForHouseholdPvInstallList
());
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/HouseholdPvLeaseController.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.HouseholdPvLeaseServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvLeaseDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
* 户用光伏合同表
*
* @author system_generator
* @date 2023-03-17
*/
@RestController
@Api
(
tags
=
"户用光伏合同表Api"
)
@RequestMapping
(
value
=
"/household-pv-lease"
)
public
class
HouseholdPvLeaseController
extends
BaseController
{
@Autowired
HouseholdPvLeaseServiceImpl
householdPvLeaseServiceImpl
;
/**
* 新增户用光伏合同表
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增户用光伏合同表"
,
notes
=
"新增户用光伏合同表"
)
public
ResponseModel
<
HouseholdPvLeaseDto
>
save
(
@RequestBody
HouseholdPvLeaseDto
model
)
{
model
=
householdPvLeaseServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新户用光伏合同表"
,
notes
=
"根据sequenceNbr更新户用光伏合同表"
)
public
ResponseModel
<
HouseholdPvLeaseDto
>
updateBySequenceNbrHouseholdPvLease
(
@RequestBody
HouseholdPvLeaseDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
householdPvLeaseServiceImpl
.
updateWithModel
(
model
));
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除户用光伏合同表"
,
notes
=
"根据sequenceNbr删除户用光伏合同表"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
householdPvLeaseServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个户用光伏合同表"
,
notes
=
"根据sequenceNbr查询单个户用光伏合同表"
)
public
ResponseModel
<
HouseholdPvLeaseDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
householdPvLeaseServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏合同表分页查询"
,
notes
=
"户用光伏合同表分页查询"
)
public
ResponseModel
<
Page
<
HouseholdPvLeaseDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
HouseholdPvLeaseDto
>
page
=
new
Page
<
HouseholdPvLeaseDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
householdPvLeaseServiceImpl
.
queryForHouseholdPvLeasePage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏合同表列表全部数据查询"
,
notes
=
"户用光伏合同表列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
HouseholdPvLeaseDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
householdPvLeaseServiceImpl
.
queryForHouseholdPvLeaseList
());
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HouseholdPvContactServiceImpl.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPvContact
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.HouseholdPvContactMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.service.IHouseholdPvContactService
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvContactDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 户用光伏合同表服务实现类
*
* @author system_generator
* @date 2023-03-17
*/
@Service
public
class
HouseholdPvContactServiceImpl
extends
BaseService
<
HouseholdPvContactDto
,
HouseholdPvContact
,
HouseholdPvContactMapper
>
implements
IHouseholdPvContactService
{
/**
* 分页查询
*/
public
Page
<
HouseholdPvContactDto
>
queryForHouseholdPvContactPage
(
Page
<
HouseholdPvContactDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
HouseholdPvContactDto
>
queryForHouseholdPvContactList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HouseholdPvDeviceServiceImpl.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPvDevice
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.HouseholdPvDeviceMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.service.IHouseholdPvDeviceService
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvDeviceDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 户用光伏设备表服务实现类
*
* @author system_generator
* @date 2023-03-17
*/
@Service
public
class
HouseholdPvDeviceServiceImpl
extends
BaseService
<
HouseholdPvDeviceDto
,
HouseholdPvDevice
,
HouseholdPvDeviceMapper
>
implements
IHouseholdPvDeviceService
{
/**
* 分页查询
*/
public
Page
<
HouseholdPvDeviceDto
>
queryForHouseholdPvDevicePage
(
Page
<
HouseholdPvDeviceDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
HouseholdPvDeviceDto
>
queryForHouseholdPvDeviceList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HouseholdPvDistrictServiceImpl.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPvDistrict
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.HouseholdPvDistrictMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.service.IHouseholdPvDistrictService
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvDistrictDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 服务实现类
*
* @author system_generator
* @date 2023-03-17
*/
@Service
public
class
HouseholdPvDistrictServiceImpl
extends
BaseService
<
HouseholdPvDistrictDto
,
HouseholdPvDistrict
,
HouseholdPvDistrictMapper
>
implements
IHouseholdPvDistrictService
{
/**
* 分页查询
*/
public
Page
<
HouseholdPvDistrictDto
>
queryForHouseholdPvDistrictPage
(
Page
<
HouseholdPvDistrictDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
HouseholdPvDistrictDto
>
queryForHouseholdPvDistrictList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HouseholdPvInstallServiceImpl.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPvInstall
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.HouseholdPvInstallMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.service.IHouseholdPvInstallService
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvInstallDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 户用光伏合同表服务实现类
*
* @author system_generator
* @date 2023-03-17
*/
@Service
public
class
HouseholdPvInstallServiceImpl
extends
BaseService
<
HouseholdPvInstallDto
,
HouseholdPvInstall
,
HouseholdPvInstallMapper
>
implements
IHouseholdPvInstallService
{
/**
* 分页查询
*/
public
Page
<
HouseholdPvInstallDto
>
queryForHouseholdPvInstallPage
(
Page
<
HouseholdPvInstallDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
HouseholdPvInstallDto
>
queryForHouseholdPvInstallList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HouseholdPvLeaseServiceImpl.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPvLease
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.HouseholdPvLeaseMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.service.IHouseholdPvLeaseService
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvLeaseDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 户用光伏合同表服务实现类
*
* @author system_generator
* @date 2023-03-17
*/
@Service
public
class
HouseholdPvLeaseServiceImpl
extends
BaseService
<
HouseholdPvLeaseDto
,
HouseholdPvLease
,
HouseholdPvLeaseMapper
>
implements
IHouseholdPvLeaseService
{
/**
* 分页查询
*/
public
Page
<
HouseholdPvLeaseDto
>
queryForHouseholdPvLeasePage
(
Page
<
HouseholdPvLeaseDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
HouseholdPvLeaseDto
>
queryForHouseholdPvLeaseList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HouseholdPvServiceImpl.java
0 → 100644
View file @
8bd45e87
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPv
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.HouseholdPvMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.service.IHouseholdPvService
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 户用光伏表服务实现类
*
* @author system_generator
* @date 2023-03-17
*/
@Service
public
class
HouseholdPvServiceImpl
extends
BaseService
<
HouseholdPvDto
,
HouseholdPv
,
HouseholdPvMapper
>
implements
IHouseholdPvService
{
/**
* 分页查询
*/
public
Page
<
HouseholdPvDto
>
queryForHouseholdPvPage
(
Page
<
HouseholdPvDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
HouseholdPvDto
>
queryForHouseholdPvList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/resource/application-dev.properties
View file @
8bd45e87
## DB properties:
## DB properties:
spring.datasource.url
=
jdbc:mysql://
172.16.3.18:3306/amos_idx_biz
?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.url
=
jdbc:mysql://
39.98.45.134:3306/production
?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
Yeejoin@2020
spring.datasource.password
=
Yeejoin@2020
## eureka properties:
## eureka properties:
eureka.instance.hostname
=
172.16.3.18
eureka.instance.hostname
=
39.98.45.134
eureka.client.serviceUrl.defaultZone
=
http://${eureka.instance.hostname}:10001/eureka/
eureka.client.serviceUrl.defaultZone
=
http://${eureka.instance.hostname}:10001/eureka/
## redis properties:
## redis properties:
spring.redis.database
=
1
spring.redis.database
=
1
spring.redis.host
=
172.16.3.18
spring.redis.host
=
39.98.45.134
spring.redis.port
=
6379
spring.redis.port
=
6379
spring.redis.password
=
yeejoin@2020
spring.redis.password
=
yeejoin@2020
...
@@ -67,4 +67,6 @@ knife4j.basic.password=a1234560
...
@@ -67,4 +67,6 @@ knife4j.basic.password=a1234560
management.security.enabled
=
true
management.security.enabled
=
true
spring.security.user.name
=
admin
spring.security.user.name
=
admin
spring.security.user.password
=
a1234560
spring.security.user.password
=
a1234560
\ No newline at end of file
fire-rescue
=
123
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/test/java/org/amos/boot/module/jxiop/biz/AppTest.java
deleted
100644 → 0
View file @
4bc9f9b1
package
org
.
amos
.
boot
.
module
.
jxiop
.
biz
;
import
junit.framework.Test
;
import
junit.framework.TestCase
;
import
junit.framework.TestSuite
;
/**
* Unit test for simple App.
*/
public
class
AppTest
extends
TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public
AppTest
(
String
testName
)
{
super
(
testName
);
}
/**
* @return the suite of tests being tested
*/
public
static
Test
suite
()
{
return
new
TestSuite
(
AppTest
.
class
);
}
/**
* Rigourous Test :-)
*/
public
void
testApp
()
{
assertTrue
(
true
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment