Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
e92867f6
Commit
e92867f6
authored
Apr 29, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加权限
parent
9688067c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
23 deletions
+19
-23
JpStationMapper.java
...oin/amos/boot/module/hygf/api/mapper/JpStationMapper.java
+2
-3
IJpStationService.java
.../amos/boot/module/hygf/api/service/IJpStationService.java
+1
-1
JpStationMapper.xml
...f-api/src/main/resources/mapper/mysql/JpStationMapper.xml
+10
-13
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+4
-4
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+2
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/JpStationMapper.java
View file @
e92867f6
...
...
@@ -69,14 +69,13 @@ public interface JpStationMapper extends BaseMapper<JpStation> {
List
<
DropDown
>
getDealerNew
(
@Param
(
"regionalCompaniesSeq"
)
String
regionalCompaniesSeq
);
//
@UserEmpower(field ={"ORG_CODE"} ,dealerField ={"ORG_CODE"}, fieldConditions ={"in","in"} ,relationship="and",specific=false)
@UserEmpower
(
field
={
"ORG_CODE"
}
,
dealerField
={
"ORG_CODE"
},
fieldConditions
={
"in"
,
"in"
}
,
relationship
=
"and"
,
specific
=
false
)
List
<
PowerStationStatistics
>
getRegionPage
(
String
regionName
);
PowerStationStatistics
getRegionStatistics
(
String
code
);
List
<
PowerStationStatistics
>
getDealerPage
(
String
regionCompanyOrgCode
,
String
dealerName
);
List
<
PowerStationStatistics
>
getDealerPage
(
String
regionalCompaniesCode
,
String
dealerName
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/service/IJpStationService.java
View file @
e92867f6
...
...
@@ -38,7 +38,7 @@ public interface IJpStationService {
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
PowerStationStatistics
>
getRegionStatistics
(
Integer
current
,
Integer
size
,
String
regionName
);
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
PowerStationStatistics
>
getDealerStatistics
(
Integer
current
,
Integer
size
,
String
region
CompanyOrg
Code
,
String
dealerName
);
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
PowerStationStatistics
>
getDealerStatistics
(
Integer
current
,
Integer
size
,
String
region
alCompanies
Code
,
String
dealerName
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpStationMapper.xml
View file @
e92867f6
...
...
@@ -645,19 +645,16 @@
<!-- 根据区域orgCode查询经销商-->
<select
id=
"getDealerPage"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.PowerStationStatistics"
>
select hui.name as name, hui.amos_company_code as code
from hygf_regional_companies hrc
RIGHT JOIN hygf_unit_info hui
ON hrc.unit_info_id = hui.sequence_nbr
<where>
hui.blacklist=0 and hui.is_delete=0
<if
test=
"regionCompanyOrgCode != null and regionCompanyOrgCode!=''"
>
and hrc.regional_companies_code = #{regionCompanyOrgCode}
</if>
<if
test=
"dealerName != null and dealerName!=''"
>
and hui.name like concat("%",#{dealerName},"%")
</if>
</where>
SELECT hygf_unit_info.`name` name, hygf_unit_info.amos_company_code code, hygf_regional_companies.regional_companies_code FROM hygf_regional_companies LEFT JOIN hygf_unit_info
ON hygf_unit_info.sequence_nbr=hygf_regional_companies.unit_info_id WHERE hygf_unit_info.audit_status='2'
AND hygf_unit_info.blacklist='0' AND hygf_unit_info.is_delete='0'
<if
test=
"regionalCompaniesCode!=null and regionalCompaniesCode!=''"
>
and hygf_regional_companies.regional_companies_code = #{regionalCompaniesCode}
</if>
<if
test=
"dealerName != null and dealerName!=''"
>
and hygf_unit_info.`name` like concat("%",#{dealerName},"%")
</if>
and hygf_unit_info.amos_company_code is not null
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpStationController.java
View file @
e92867f6
...
...
@@ -825,7 +825,7 @@ public class JpStationController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询当前登录人权限区域公司统计数据"
,
notes
=
"查询当前登录人权限区域公司统计数据"
)
@GetMapping
(
value
=
"/getRegionStatistics"
)
//
@UserLimits
@UserLimits
public
ResponseModel
<
Page
<
PowerStationStatistics
>>
getRegionStatistics
(
@RequestParam
(
defaultValue
=
"1"
)
Integer
current
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
size
,
@RequestParam
(
required
=
false
)
String
regionName
)
{
Page
<
PowerStationStatistics
>
poserStatisticsData
=
jpStationServiceImpl
.
getRegionStatistics
(
current
,
size
,
regionName
);
...
...
@@ -837,10 +837,10 @@ public class JpStationController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询经销商统计数据"
,
notes
=
"查询经销商统计数据"
)
@GetMapping
(
value
=
"/getDealerStatistics"
)
//
@UserLimits
public
ResponseModel
<
Page
<
PowerStationStatistics
>>
getDealerStatistics
(
@RequestParam
(
defaultValue
=
"1"
)
Integer
current
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
size
,
String
region
CompanyOrg
Code
,
@RequestParam
(
required
=
false
)
String
dealerName
)
{
@UserLimits
public
ResponseModel
<
Page
<
PowerStationStatistics
>>
getDealerStatistics
(
@RequestParam
(
defaultValue
=
"1"
)
Integer
current
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
size
,
String
region
alCompanies
Code
,
@RequestParam
(
required
=
false
)
String
dealerName
)
{
Page
<
PowerStationStatistics
>
poserStatisticsData
=
jpStationServiceImpl
.
getDealerStatistics
(
current
,
size
,
region
CompanyOrg
Code
,
dealerName
);
Page
<
PowerStationStatistics
>
poserStatisticsData
=
jpStationServiceImpl
.
getDealerStatistics
(
current
,
size
,
region
alCompanies
Code
,
dealerName
);
return
ResponseHelper
.
buildResponse
(
poserStatisticsData
);
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/JpStationServiceImpl.java
View file @
e92867f6
...
...
@@ -940,10 +940,10 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
}
@Override
public
Page
<
PowerStationStatistics
>
getDealerStatistics
(
Integer
current
,
Integer
size
,
String
region
CompanyOrg
Code
,
String
dealerName
)
{
public
Page
<
PowerStationStatistics
>
getDealerStatistics
(
Integer
current
,
Integer
size
,
String
region
alCompanies
Code
,
String
dealerName
)
{
PageHelper
.
startPage
(
current
,
size
);
// 根据区域公司orgCode查询区域公司下所有的经销商
List
<
PowerStationStatistics
>
dealerPage
=
jpStationMapper
.
getDealerPage
(
region
CompanyOrg
Code
,
dealerName
);
List
<
PowerStationStatistics
>
dealerPage
=
jpStationMapper
.
getDealerPage
(
region
alCompanies
Code
,
dealerName
);
PageInfo
<
PowerStationStatistics
>
page
=
new
PageInfo
(
dealerPage
);
Page
<
PowerStationStatistics
>
pagenew
=
new
Page
<
PowerStationStatistics
>();
...
...
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