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
b1dbc050
Commit
b1dbc050
authored
Oct 10, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
91ffeea4
7c12c0d3
Expand all
Hide 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 @
b1dbc050
...
...
@@ -269,6 +269,48 @@ public class UnitInfoController extends BaseController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"单位注册"
,
notes
=
"单位注册"
)
public
ResponseModel
<
UnitRegisterDto
>
save
(
@RequestBody
UnitRegisterDto
model
)
{
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
.
setProduct
(
"AMOS_STUDIO_WEB"
);
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 @
b1dbc050
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/pom.xml
View file @
b1dbc050
...
...
@@ -35,12 +35,12 @@
<groupId>
org.influxdb
</groupId>
<artifactId>
influxdb-java
</artifactId>
</dependency>
<dependency
>
<groupId>
com.yeejoin
</groupId
>
<artifactId>
amos-component-influxdb
</artifactId
>
<version>
1.9.0-SNAPSHOT
</version
>
<scope>
compile
</scope
>
</dependency
>
<!-- <dependency>--
>
<!-- <groupId>com.yeejoin</groupId>--
>
<!-- <artifactId>amos-component-influxdb</artifactId>--
>
<!-- <version>1.9.0-SNAPSHOT</version>--
>
<!-- <scope>compile</scope>--
>
<!-- </dependency>--
>
<dependency>
<groupId>
com.taosdata.jdbc
</groupId>
<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 @
b1dbc050
...
...
@@ -177,9 +177,7 @@ public class PowerGenerationImpl {
}
public
List
<
ESMoonPowerGeneration
>
getESMoonPowerGeneration
(
StationCacheInfoDto
stationCacheInfoDto
,
List
<
IndicatorData
>
indexDto
,
String
daty
,
String
day
,
String
year
,
Double
flags
){
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
()){
for
(
IndicatorData
dto
:
indexDto
)
{
double
value
=
dto
.
getValueF
()!=
null
?(
double
)
dto
.
getValueF
():
0.0
;
...
...
@@ -187,7 +185,7 @@ public class PowerGenerationImpl {
value
=
value
*
flags
;
}
ESMoonPowerGeneration
moonPowerGeneration
=
new
ESMoonPowerGeneration
(
daty
new
+
"_"
+
dto
.
getAddress
(),
daty
+
"_"
+
dto
.
getAddress
(),
stationCacheInfoDto
.
getStationId
(),
stationCacheInfoDto
.
getStationName
(),
stationCacheInfoDto
.
getStationType
(),
...
...
@@ -209,9 +207,7 @@ public class PowerGenerationImpl {
}
public
List
<
ESYearPowerGeneration
>
getESYearPowerGeneration
(
StationCacheInfoDto
stationCacheInfoDto
,
List
<
IndicatorData
>
indexDto
,
String
daty
,
String
day
,
Double
flags
){
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
()){
for
(
IndicatorData
dto
:
indexDto
)
{
double
value
=
dto
.
getValueF
()!=
null
?(
double
)
dto
.
getValueF
():
0.0
;
...
...
@@ -219,7 +215,7 @@ public class PowerGenerationImpl {
value
=
value
*
flags
;
}
ESYearPowerGeneration
yearPowerGeneration
=
new
ESYearPowerGeneration
(
daty
new
+
"_"
+
dto
.
getAddress
(),
daty
+
"_"
+
dto
.
getAddress
(),
stationCacheInfoDto
.
getStationId
(),
stationCacheInfoDto
.
getStationName
(),
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