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
97faf008
Commit
97faf008
authored
Jun 30, 2022
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:【JCS】bug修改提交
parent
ded4b9e1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
25 deletions
+27
-25
WaterResourceController.java
...module/common/biz/controller/WaterResourceController.java
+9
-7
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+6
-4
IAreaService.java
...in/java/com/yeejoin/equipmanage/service/IAreaService.java
+0
-1
jcs-1.0.0.0.xml
...ystem-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
+12
-13
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/WaterResourceController.java
View file @
97faf008
...
...
@@ -427,14 +427,16 @@ public class WaterResourceController extends BaseController {
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
ResponseModel
<
Page
<
WaterResourceDto
>>
queryForPage
(
@RequestParam
(
value
=
"pageNum"
)
int
pageNum
,
@RequestParam
(
value
=
"pageSize"
)
int
pageSize
,
String
name
,
@RequestParam
(
value
=
"pageSize"
)
int
pageSize
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
,
@RequestParam
(
value
=
"belongBuildingId"
,
required
=
false
)
ArrayList
<
Long
>
belongBuildingId
,
Long
belongFightingSystemId
,
Long
sequenceNbr
,
String
resourceType
,
String
classifyId
,
String
bizOrgCode
,
String
equipCateGoryCode
,
List
<
String
>
ids
)
{
@RequestParam
(
value
=
"belongFightingSystemId"
,
required
=
false
)
Long
belongFightingSystemId
,
@RequestParam
(
value
=
"sequenceNbr"
,
required
=
false
)
Long
sequenceNbr
,
@RequestParam
(
value
=
"resourceType"
,
required
=
false
)
String
resourceType
,
@RequestParam
(
value
=
"classifyId"
,
required
=
false
)
String
classifyId
,
@RequestParam
(
value
=
"bizOrgCode"
,
required
=
false
)
String
bizOrgCode
,
@RequestParam
(
value
=
"equipCateGoryCode"
,
required
=
false
)
String
equipCateGoryCode
,
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
String
>
ids
)
{
Page
<
WaterResourceDto
>
page
=
new
Page
<>();
page
.
setCurrent
(
pageNum
);
page
.
setSize
(
pageSize
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
97faf008
...
...
@@ -1745,11 +1745,13 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
if
(
StringUtils
.
isNotEmpty
(
type
)
&&
type
.
equals
(
"COMPANY"
)){
//查询当前登录人所属单位/部门
OrgUsr
orgUsr
=
orgUsrMapper
.
selectById
(
reginParams
.
getPersonIdentity
().
getCompanyId
());
//判断登陆人是否已经是顶级节点单位
if
(
orgUsr
.
getParentId
()
!=
null
){
orgUsr
=
this
.
selectParentOrgUsr
(
orgUsr
);
bizOrgCode
=
orgUsr
.
getBizOrgCode
()
!=
null
?
orgUsr
.
getBizOrgCode
()
:
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
if
(!
ObjectUtils
.
isEmpty
(
orgUsr
))
{
//判断登陆人是否已经是顶级节点单位
if
(
orgUsr
.
getParentId
()
!=
null
){
orgUsr
=
this
.
selectParentOrgUsr
(
orgUsr
);
bizOrgCode
=
orgUsr
.
getBizOrgCode
()
!=
null
?
orgUsr
.
getBizOrgCode
()
:
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
}
}
}
param
.
put
(
"bizOrgCode"
,
bizOrgCode
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IAreaService.java
View file @
97faf008
...
...
@@ -7,7 +7,6 @@ import com.yeejoin.amos.boot.biz.common.dto.OrgMenuDto;
import
com.yeejoin.equipmanage.common.dto.AreaDto
;
import
com.yeejoin.equipmanage.common.entity.Area
;
import
com.yeejoin.equipmanage.common.vo.AreaResquest
;
import
com.yeejoin.equipmanage.common.vo.AreaTreeVo
;
import
com.yeejoin.equipmanage.common.vo.UnitAreaTreeVo
;
import
java.util.List
;
...
...
amos-boot-system-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
View file @
97faf008
...
...
@@ -2795,25 +2795,24 @@
</changeSet>
<changeSet
author=
"
tw"
id=
"20220217-2
"
runAlways=
"true"
>
<changeSet
author=
"
gaojianqiang"
id=
"202206301726-1
"
runAlways=
"true"
>
<comment>
`getChildLstCode`
</comment>
<sql
endDelimiter=
"#"
>
DROP FUNCTION IF EXISTS `getChildLstCode`#
CREATE DEFINER=`root`@`%` FUNCTION `getChildLstCode`(
rootId varchar(100)) RETURNS varchar(2000) CHARSET latin1
CREATE DEFINER=`root`@`%` FUNCTION `getChildLstCode`(
`rootId` bigint) RETURNS varchar(1000) CHARSET utf8
BEGIN
DECLARE i varchar(2000) default '';
DECLARE j varchar(1000) default rootId;
WHILE rootId is not null do
SET i =(SELECT group_concat(sequence_nbr) FROM cb_data_dictionary WHERE parent in ( rootId) );
IF i is not null THEN
SET j = concat(i, ',', j);
SET rootId = i;
ELSE
SET rootId = i;
END IF;
DECLARE sTemp TEXT;
DECLARE sTempChd VARCHAR(4000);
SET sTemp='$';
SET sTempChd = CAST(rootId AS CHAR);
WHILE sTempChd IS NOT NULL DO
SET sTemp= CONCAT(sTemp,',',sTempChd);
SELECT GROUP_CONCAT(distinct sequence_nbr) INTO sTempChd FROM cb_data_dictionary WHERE FIND_IN_SET(parent,sTempChd)>0;
END WHILE;
return j
;
RETURN substring(sTemp,3)
;
END#
</sql>
</changeSet>
...
...
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