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
8439db4e
Commit
8439db4e
authored
Aug 01, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人大金仓适配
parent
26f71d01
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
7 deletions
+25
-7
IdxBizFanWeightController.java
...odule/jxiop/biz/controller/IdxBizFanWeightController.java
+7
-6
IdxBizPvWeightController.java
...module/jxiop/biz/controller/IdxBizPvWeightController.java
+1
-1
IdxBizFanWeightMapper.java
.../boot/module/jxiop/biz/mapper2/IdxBizFanWeightMapper.java
+4
-0
IdxBizFanWeightMapper.xml
...c/main/resources/mapper/cluster/IdxBizFanWeightMapper.xml
+13
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizFanWeightController.java
View file @
8439db4e
...
@@ -126,7 +126,7 @@ public class IdxBizFanWeightController extends BaseController {
...
@@ -126,7 +126,7 @@ public class IdxBizFanWeightController extends BaseController {
if
(!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
if
(!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
);
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
);
}
}
QueryWrapper
<
IdxBizFanWeight
>
qu
=
new
QueryWrapper
<>();
//
QueryWrapper< IdxBizFanWeight> qu=new QueryWrapper<>();
String
name
=
""
;
String
name
=
""
;
switch
(
type
){
switch
(
type
){
case
"1"
:
case
"1"
:
...
@@ -160,11 +160,12 @@ public class IdxBizFanWeightController extends BaseController {
...
@@ -160,11 +160,12 @@ public class IdxBizFanWeightController extends BaseController {
// qu.eq("POINT_NAME",pointName);
// qu.eq("POINT_NAME",pointName);
break
;
break
;
}
}
qu
.
like
(
"ORG_CODE"
,
orgCode
);
// qu.like("ORG_CODE",orgCode);
qu
.
isNotNull
(
name
);
// qu.isNotNull(name);
qu
.
groupBy
(
name
);
// qu.groupBy(name);
qu
.
orderByAsc
(
name
);
// qu.orderByAsc(name);
List
<
IdxBizFanWeight
>
list
=
idxBizFanWeightMapper
.
selectList
(
qu
);
// List<IdxBizFanWeight> list = idxBizFanWeightMapper.selectList(qu);
List
<
IdxBizFanWeight
>
list
=
idxBizFanWeightMapper
.
selectAllByParams
(
name
,
"%"
+
orgCode
+
"%"
);
return
ResponseHelper
.
buildResponse
(
list
);
return
ResponseHelper
.
buildResponse
(
list
);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizPvWeightController.java
View file @
8439db4e
...
@@ -175,7 +175,7 @@ public class IdxBizPvWeightController extends BaseController {
...
@@ -175,7 +175,7 @@ public class IdxBizPvWeightController extends BaseController {
// qu.groupBy(name);
// qu.groupBy(name);
// qu.orderByAsc(name);
// qu.orderByAsc(name);
// List<IdxBizPvWeight> list = idxBizPvWeightMapper.selectList(qu);
// List<IdxBizPvWeight> list = idxBizPvWeightMapper.selectList(qu);
List
<
IdxBizPvWeight
>
list
=
idxBizPvWeightMapper
.
selectAllByParams
(
name
,
"%"
+
orgCode
+
"%"
);
;
List
<
IdxBizPvWeight
>
list
=
idxBizPvWeightMapper
.
selectAllByParams
(
name
,
"%"
+
orgCode
+
"%"
);
return
ResponseHelper
.
buildResponse
(
list
);
return
ResponseHelper
.
buildResponse
(
list
);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/mapper2/IdxBizFanWeightMapper.java
View file @
8439db4e
...
@@ -3,6 +3,9 @@ package com.yeejoin.amos.boot.module.jxiop.biz.mapper2;
...
@@ -3,6 +3,9 @@ package com.yeejoin.amos.boot.module.jxiop.biz.mapper2;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFanWeight
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFanWeight
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFelk
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFelk
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
/**
* @description:
* @description:
...
@@ -10,4 +13,5 @@ import com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFelk;
...
@@ -10,4 +13,5 @@ import com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFelk;
* @createDate: 2023/10/23
* @createDate: 2023/10/23
*/
*/
public
interface
IdxBizFanWeightMapper
extends
BaseMapper
<
IdxBizFanWeight
>
{
public
interface
IdxBizFanWeightMapper
extends
BaseMapper
<
IdxBizFanWeight
>
{
List
<
IdxBizFanWeight
>
selectAllByParams
(
@Param
(
"name"
)
String
name
,
@Param
(
"orgCode"
)
String
orgCode
);
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizFanWeightMapper.xml
0 → 100644
View file @
8439db4e
<?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.biz.mapper2.IdxBizFanWeightMapper"
>
<select
id=
"selectAllByParams"
resultType=
"com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFanWeight"
>
SELECT ibfw.sequence_nbr,FLAG,ORG_CODE,POINT_NAME,STATION,ARAE,EQUIPMENT_NAME,TYPE,VALUE,SUBARRAY
FROM (SELECT MIN(sequence_nbr) as sequence_nbr
FROM idx_biz_fan_weight WHERE (ORG_CODE LIKE #{orgCode} AND ${name} IS NOT NULL)
GROUP BY ${name} ORDER BY ${name} ASC)aa
LEFT JOIN idx_biz_fan_weight ibfw ON ibfw.sequence_nbr=aa.sequence_nbr
</select>
</mapper>
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