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
1a7c2dfe
Commit
1a7c2dfe
authored
Oct 10, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改户用光伏注册
parent
95f30b0b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
14 deletions
+52
-14
UnitInfoController.java
...s/boot/module/hygf/biz/controller/UnitInfoController.java
+42
-0
UnitInfoServiceImpl.java
...oot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
+0
-0
pom.xml
...system-jxiop/amos-boot-module-jxiop-bigscreen-biz/pom.xml
+6
-6
PowerGenerationImpl.java
...ot/module/jxiop/biz/service/impl/PowerGenerationImpl.java
+4
-8
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/UnitInfoController.java
View file @
1a7c2dfe
...
@@ -269,6 +269,48 @@ public class UnitInfoController extends BaseController {
...
@@ -269,6 +269,48 @@ public class UnitInfoController extends BaseController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"单位注册"
,
notes
=
"单位注册"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"单位注册"
,
notes
=
"单位注册"
)
public
ResponseModel
<
UnitRegisterDto
>
save
(
@RequestBody
UnitRegisterDto
model
)
{
public
ResponseModel
<
UnitRegisterDto
>
save
(
@RequestBody
UnitRegisterDto
model
)
{
try
{
try
{
//判断公司名称重复,
LambdaQueryWrapper
<
UnitInfo
>
qudg
=
new
LambdaQueryWrapper
<>();
qudg
.
eq
(
UnitInfo:
:
getName
,
model
.
getUnitInfoDto
().
getName
());
qudg
.
eq
(
UnitInfo:
:
getIsDelete
,
0
);
List
<
UnitInfo
>
unitInfo
=
unitInfoMapper
.
selectList
(
qudg
);
if
(
unitInfo
!=
null
&&!
unitInfo
.
isEmpty
()){
throw
new
BadRequest
(
"公司名称重复"
);
}
//判断公司统一信息用代码重复
LambdaQueryWrapper
<
CommerceInfo
>
queryWrapper1
=
new
LambdaQueryWrapper
<
CommerceInfo
>();
queryWrapper1
.
eq
(
CommerceInfo:
:
getCreditCode
,
model
.
getCommerceInfoDto
().
getCreditCode
());
queryWrapper1
.
eq
(
CommerceInfo:
:
getIsDelete
,
0
);
List
<
CommerceInfo
>
commerceInfo
=
commerceInfoMapper
.
selectList
(
queryWrapper1
);
if
(
commerceInfo
!=
null
&&!
commerceInfo
.
isEmpty
()){
throw
new
BadRequest
(
"统一信用代码重复"
);
}
//用户名重复
LambdaQueryWrapper
<
UnitInfo
>
qudg1
=
new
LambdaQueryWrapper
<>();
qudg1
.
eq
(
UnitInfo:
:
getAdminLoginName
,
model
.
getUnitInfoDto
().
getAdminLoginName
());
qudg1
.
eq
(
UnitInfo:
:
getIsDelete
,
0
);
List
<
UnitInfo
>
unitInfo1
=
unitInfoMapper
.
selectList
(
qudg
);
if
(
unitInfo1
!=
null
&&!
unitInfo1
.
isEmpty
()){
throw
new
BadRequest
(
"管理员账户名重复,请更换"
);
}
LambdaQueryWrapper
<
PublicAgencyUser
>
qud2
=
new
LambdaQueryWrapper
<>();
qud2
.
eq
(
PublicAgencyUser:
:
getAmosUserName
,
model
.
getUnitInfoDto
().
getAdminLoginName
());
List
<
PublicAgencyUser
>
publicAgencyUse
=
publicAgencyUserMapper
.
selectList
(
qud2
);
if
(
publicAgencyUse
!=
null
&&!
publicAgencyUse
.
isEmpty
()){
throw
new
BadRequest
(
"管理员账户名重复,请更换"
);
}
RequestContext
.
setAppKey
(
"AMOS_STUDIO"
);
RequestContext
.
setAppKey
(
"AMOS_STUDIO"
);
RequestContext
.
setProduct
(
"AMOS_STUDIO_WEB"
);
RequestContext
.
setProduct
(
"AMOS_STUDIO_WEB"
);
RequestContext
.
setToken
(
requestContext
.
getToken
());
RequestContext
.
setToken
(
requestContext
.
getToken
());
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
View file @
1a7c2dfe
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/pom.xml
View file @
1a7c2dfe
...
@@ -35,12 +35,12 @@
...
@@ -35,12 +35,12 @@
<groupId>
org.influxdb
</groupId>
<groupId>
org.influxdb
</groupId>
<artifactId>
influxdb-java
</artifactId>
<artifactId>
influxdb-java
</artifactId>
</dependency>
</dependency>
<dependency
>
<!-- <dependency>--
>
<groupId>
com.yeejoin
</groupId
>
<!-- <groupId>com.yeejoin</groupId>--
>
<artifactId>
amos-component-influxdb
</artifactId
>
<!-- <artifactId>amos-component-influxdb</artifactId>--
>
<version>
1.9.0-SNAPSHOT
</version
>
<!-- <version>1.9.0-SNAPSHOT</version>--
>
<scope>
compile
</scope
>
<!-- <scope>compile</scope>--
>
</dependency
>
<!-- </dependency>--
>
<dependency>
<dependency>
<groupId>
com.taosdata.jdbc
</groupId>
<groupId>
com.taosdata.jdbc
</groupId>
<artifactId>
taos-jdbcdriver
</artifactId>
<artifactId>
taos-jdbcdriver
</artifactId>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PowerGenerationImpl.java
View file @
1a7c2dfe
...
@@ -178,9 +178,7 @@ public class PowerGenerationImpl {
...
@@ -178,9 +178,7 @@ public class PowerGenerationImpl {
}
}
public
List
<
ESMoonPowerGeneration
>
getESMoonPowerGeneration
(
StationCacheInfoDto
stationCacheInfoDto
,
List
<
IndicatorData
>
indexDto
,
String
daty
,
String
day
,
String
year
,
Double
flags
){
public
List
<
ESMoonPowerGeneration
>
getESMoonPowerGeneration
(
StationCacheInfoDto
stationCacheInfoDto
,
List
<
IndicatorData
>
indexDto
,
String
daty
,
String
day
,
String
year
,
Double
flags
){
List
<
ESMoonPowerGeneration
>
list
=
new
ArrayList
<>();
List
<
ESMoonPowerGeneration
>
list
=
new
ArrayList
<>();
SimpleDateFormat
myFmt2
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Date
now
=
new
Date
();
String
datynew
=
myFmt2
.
format
(
now
);
if
(
indexDto
!=
null
&&!
indexDto
.
isEmpty
()){
if
(
indexDto
!=
null
&&!
indexDto
.
isEmpty
()){
for
(
IndicatorData
dto
:
indexDto
)
{
for
(
IndicatorData
dto
:
indexDto
)
{
double
value
=
dto
.
getValueF
()!=
null
?(
double
)
dto
.
getValueF
():
0.0
;
double
value
=
dto
.
getValueF
()!=
null
?(
double
)
dto
.
getValueF
():
0.0
;
...
@@ -188,7 +186,7 @@ public class PowerGenerationImpl {
...
@@ -188,7 +186,7 @@ public class PowerGenerationImpl {
value
=
value
*
flags
;
value
=
value
*
flags
;
}
}
ESMoonPowerGeneration
moonPowerGeneration
=
new
ESMoonPowerGeneration
(
ESMoonPowerGeneration
moonPowerGeneration
=
new
ESMoonPowerGeneration
(
daty
new
+
"_"
+
dto
.
getAddress
(),
daty
+
"_"
+
dto
.
getAddress
(),
stationCacheInfoDto
.
getStationId
(),
stationCacheInfoDto
.
getStationId
(),
stationCacheInfoDto
.
getStationName
(),
stationCacheInfoDto
.
getStationName
(),
stationCacheInfoDto
.
getStationType
(),
stationCacheInfoDto
.
getStationType
(),
...
@@ -210,9 +208,7 @@ public class PowerGenerationImpl {
...
@@ -210,9 +208,7 @@ public class PowerGenerationImpl {
}
}
public
List
<
ESYearPowerGeneration
>
getESYearPowerGeneration
(
StationCacheInfoDto
stationCacheInfoDto
,
List
<
IndicatorData
>
indexDto
,
String
daty
,
String
day
,
Double
flags
){
public
List
<
ESYearPowerGeneration
>
getESYearPowerGeneration
(
StationCacheInfoDto
stationCacheInfoDto
,
List
<
IndicatorData
>
indexDto
,
String
daty
,
String
day
,
Double
flags
){
List
<
ESYearPowerGeneration
>
list
=
new
ArrayList
<>();
List
<
ESYearPowerGeneration
>
list
=
new
ArrayList
<>();
SimpleDateFormat
myFmt2
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Date
now
=
new
Date
();
String
datynew
=
myFmt2
.
format
(
now
);
if
(
indexDto
!=
null
&&!
indexDto
.
isEmpty
()){
if
(
indexDto
!=
null
&&!
indexDto
.
isEmpty
()){
for
(
IndicatorData
dto
:
indexDto
)
{
for
(
IndicatorData
dto
:
indexDto
)
{
double
value
=
dto
.
getValueF
()!=
null
?(
double
)
dto
.
getValueF
():
0.0
;
double
value
=
dto
.
getValueF
()!=
null
?(
double
)
dto
.
getValueF
():
0.0
;
...
@@ -220,7 +216,7 @@ public class PowerGenerationImpl {
...
@@ -220,7 +216,7 @@ public class PowerGenerationImpl {
value
=
value
*
flags
;
value
=
value
*
flags
;
}
}
ESYearPowerGeneration
yearPowerGeneration
=
new
ESYearPowerGeneration
(
ESYearPowerGeneration
yearPowerGeneration
=
new
ESYearPowerGeneration
(
daty
new
+
"_"
+
dto
.
getAddress
(),
daty
+
"_"
+
dto
.
getAddress
(),
stationCacheInfoDto
.
getStationId
(),
stationCacheInfoDto
.
getStationId
(),
stationCacheInfoDto
.
getStationName
(),
stationCacheInfoDto
.
getStationName
(),
stationCacheInfoDto
.
getStationType
(),
stationCacheInfoDto
.
getStationType
(),
...
...
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