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
d0f55657
Commit
d0f55657
authored
Jan 19, 2024
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
e87a3904
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
BasicGridAcceptanceMapper.xml
...main/resources/mapper/mysql/BasicGridAcceptanceMapper.xml
+1
-1
BasicGridAcceptanceController.java
...le/hygf/biz/controller/BasicGridAcceptanceController.java
+2
-2
BasicGridAcceptanceServiceImpl.java
...hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
+7
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/BasicGridAcceptanceMapper.xml
View file @
d0f55657
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
AND hbga.grid_status = #{map.gridStatus}
AND hbga.grid_status = #{map.gridStatus}
</if>
</if>
<if
test=
"map.gridConnectionTime != null"
>
<if
test=
"map.gridConnectionTime != null"
>
AND DATE_FORMAT(hogaa.grid_connection_time, '%Y-%m-%d') = DATE_FORMAT(
map.gridConnectionTime
, '%Y-%m-%d')
AND DATE_FORMAT(hogaa.grid_connection_time, '%Y-%m-%d') = DATE_FORMAT(
#{map.gridConnectionTime}
, '%Y-%m-%d')
</if>
</if>
</where>
</where>
</select>
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/BasicGridAcceptanceController.java
View file @
d0f55657
...
@@ -141,7 +141,7 @@ public class BasicGridAcceptanceController extends BaseController {
...
@@ -141,7 +141,7 @@ public class BasicGridAcceptanceController extends BaseController {
@RequestParam
(
required
=
false
,
value
=
"powerStationCode"
)
String
powerStationCode
,
@RequestParam
(
required
=
false
,
value
=
"powerStationCode"
)
String
powerStationCode
,
@RequestParam
(
required
=
false
,
value
=
"ownersName"
)
String
ownersName
,
@RequestParam
(
required
=
false
,
value
=
"ownersName"
)
String
ownersName
,
@RequestParam
(
required
=
false
,
value
=
"gridStatus"
)
String
gridStatus
,
@RequestParam
(
required
=
false
,
value
=
"gridStatus"
)
String
gridStatus
,
@RequestParam
(
required
=
false
,
value
=
"gridConnectionTime"
)
Date
gridConnectionTime
)
{
@RequestParam
(
required
=
false
,
value
=
"gridConnectionTime"
)
String
gridConnectionTime
)
throws
Exception
{
//当前登录人所属场站
//当前登录人所属场站
UserUnitInformationDto
userUnitInformationDto
=
personnelBusinessMapper
.
getUserUnitInformationDto
(
getUserInfo
().
getUserId
());
UserUnitInformationDto
userUnitInformationDto
=
personnelBusinessMapper
.
getUserUnitInformationDto
(
getUserInfo
().
getUserId
());
Page
<
BasicGridAcceptanceDto
>
page
=
basicGridAcceptanceServiceImpl
.
selectPage
(
userUnitInformationDto
.
getRegionalCompaniesSeq
(),
userUnitInformationDto
.
getAmosDealerId
(),
current
,
size
,
projectAddress
,
powerStationCode
,
ownersName
,
gridStatus
,
gridConnectionTime
,
""
);
Page
<
BasicGridAcceptanceDto
>
page
=
basicGridAcceptanceServiceImpl
.
selectPage
(
userUnitInformationDto
.
getRegionalCompaniesSeq
(),
userUnitInformationDto
.
getAmosDealerId
(),
current
,
size
,
projectAddress
,
powerStationCode
,
ownersName
,
gridStatus
,
gridConnectionTime
,
""
);
...
@@ -164,7 +164,7 @@ public class BasicGridAcceptanceController extends BaseController {
...
@@ -164,7 +164,7 @@ public class BasicGridAcceptanceController extends BaseController {
@RequestParam
(
required
=
false
,
value
=
"powerStationCode"
)
String
powerStationCode
,
@RequestParam
(
required
=
false
,
value
=
"powerStationCode"
)
String
powerStationCode
,
@RequestParam
(
required
=
false
,
value
=
"ownersName"
)
String
ownersName
,
@RequestParam
(
required
=
false
,
value
=
"ownersName"
)
String
ownersName
,
@RequestParam
(
required
=
false
,
value
=
"gridStatus"
)
String
gridStatus
,
@RequestParam
(
required
=
false
,
value
=
"gridStatus"
)
String
gridStatus
,
@RequestParam
(
required
=
false
,
value
=
"gridConnectionTime"
)
Date
gridConnectionTime
)
{
@RequestParam
(
required
=
false
,
value
=
"gridConnectionTime"
)
String
gridConnectionTime
)
throws
Exception
{
//当前登录人所属场站
//当前登录人所属场站
Page
<
BasicGridAcceptanceDto
>
page
=
basicGridAcceptanceServiceImpl
.
selectPage
(
null
,
null
,
current
,
size
,
projectAddress
,
powerStationCode
,
ownersName
,
gridStatus
,
gridConnectionTime
,
"check"
);
Page
<
BasicGridAcceptanceDto
>
page
=
basicGridAcceptanceServiceImpl
.
selectPage
(
null
,
null
,
current
,
size
,
projectAddress
,
powerStationCode
,
ownersName
,
gridStatus
,
gridConnectionTime
,
"check"
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
View file @
d0f55657
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.hygf.biz.service.impl;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.hygf.biz.service.impl;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.StringUtils
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
...
@@ -17,7 +18,6 @@ import org.springframework.beans.BeanUtils;
...
@@ -17,7 +18,6 @@ import org.springframework.beans.BeanUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.StringUtils
;
import
org.typroject.tyboot.core.foundation.utils.DateUtil
;
import
org.typroject.tyboot.core.foundation.utils.DateUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
...
@@ -51,14 +51,18 @@ public class BasicGridAcceptanceServiceImpl extends BaseService<BasicGridAccepta
...
@@ -51,14 +51,18 @@ public class BasicGridAcceptanceServiceImpl extends BaseService<BasicGridAccepta
private
final
String
OK
=
"0"
;
private
final
String
OK
=
"0"
;
private
final
String
PASS
=
"5"
;
private
final
String
PASS
=
"5"
;
public
Page
<
BasicGridAcceptanceDto
>
selectPage
(
Long
regionCompanyId
,
Long
amosDealerId
,
int
current
,
int
size
,
String
projectAddress
,
String
powerStationCode
,
String
ownersName
,
String
gridStatus
,
Date
gridConnectionTime
,
String
formType
)
{
public
Page
<
BasicGridAcceptanceDto
>
selectPage
(
Long
regionCompanyId
,
Long
amosDealerId
,
int
current
,
int
size
,
String
projectAddress
,
String
powerStationCode
,
String
ownersName
,
String
gridStatus
,
String
gridConnectionTime
,
String
formType
)
throws
Exception
{
PageHelper
.
startPage
(
current
,
size
);
PageHelper
.
startPage
(
current
,
size
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Date
date
=
null
;
if
(
StringUtils
.
isNotEmpty
(
gridConnectionTime
))
{
date
=
DateUtil
.
formatStringToDate
(
gridConnectionTime
,
"yyyy-MM-dd HH:mm:ss"
);
}
map
.
put
(
"projectAddress"
,
projectAddress
);
map
.
put
(
"projectAddress"
,
projectAddress
);
map
.
put
(
"powerStationCode"
,
powerStationCode
);
map
.
put
(
"powerStationCode"
,
powerStationCode
);
map
.
put
(
"ownersName"
,
ownersName
);
map
.
put
(
"ownersName"
,
ownersName
);
map
.
put
(
"gridStatus"
,
gridStatus
);
map
.
put
(
"gridStatus"
,
gridStatus
);
map
.
put
(
"gridConnectionTime"
,
gridConnectionTim
e
);
map
.
put
(
"gridConnectionTime"
,
dat
e
);
map
.
put
(
"formType"
,
formType
);
map
.
put
(
"formType"
,
formType
);
map
.
put
(
"regionCompanyId"
,
regionCompanyId
);
map
.
put
(
"regionCompanyId"
,
regionCompanyId
);
map
.
put
(
"amosDealerId"
,
amosDealerId
);
map
.
put
(
"amosDealerId"
,
amosDealerId
);
...
...
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