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
859f7408
Commit
859f7408
authored
Aug 15, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
65799d09
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
4 deletions
+57
-4
WaterResourceController.java
...module/common/biz/controller/WaterResourceController.java
+4
-1
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+3
-1
RiskSourceSceneServiceImpl.java
.../equipmanage/service/impl/RiskSourceSceneServiceImpl.java
+3
-2
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+47
-0
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 @
859f7408
...
@@ -250,6 +250,7 @@ public class WaterResourceController extends BaseController {
...
@@ -250,6 +250,7 @@ public class WaterResourceController extends BaseController {
sequenceNbr
));
sequenceNbr
));
BeanUtils
.
copyProperties
(
model
,
waterResourceHydrantDto
);
BeanUtils
.
copyProperties
(
model
,
waterResourceHydrantDto
);
waterResourceHydrantDto
.
setSequenceNbr
(
waterResourceHydrant
.
getSequenceNbr
());
waterResourceHydrantDto
.
setSequenceNbr
(
waterResourceHydrant
.
getSequenceNbr
());
waterResourceHydrantDto
.
setResourceId
(
sequenceNbr
);
waterResourceHydrantService
.
updateWithModel
(
waterResourceHydrantDto
);
waterResourceHydrantService
.
updateWithModel
(
waterResourceHydrantDto
);
break
;
break
;
case
"crane"
:
case
"crane"
:
...
@@ -259,6 +260,7 @@ public class WaterResourceController extends BaseController {
...
@@ -259,6 +260,7 @@ public class WaterResourceController extends BaseController {
sequenceNbr
));
sequenceNbr
));
BeanUtils
.
copyProperties
(
model
,
waterResourceCraneDto
);
BeanUtils
.
copyProperties
(
model
,
waterResourceCraneDto
);
waterResourceCraneDto
.
setSequenceNbr
(
waterResourceCrane
.
getSequenceNbr
());
waterResourceCraneDto
.
setSequenceNbr
(
waterResourceCrane
.
getSequenceNbr
());
waterResourceCraneDto
.
setResourceId
(
sequenceNbr
);
waterResourceCraneService
.
updateWithModel
(
waterResourceCraneDto
);
waterResourceCraneService
.
updateWithModel
(
waterResourceCraneDto
);
break
;
break
;
case
"natural"
:
case
"natural"
:
...
@@ -269,6 +271,7 @@ public class WaterResourceController extends BaseController {
...
@@ -269,6 +271,7 @@ public class WaterResourceController extends BaseController {
sequenceNbr
));
sequenceNbr
));
BeanUtils
.
copyProperties
(
model
,
waterResourceNaturalDto
);
BeanUtils
.
copyProperties
(
model
,
waterResourceNaturalDto
);
waterResourceNaturalDto
.
setSequenceNbr
(
waterResourceNatural
.
getSequenceNbr
());
waterResourceNaturalDto
.
setSequenceNbr
(
waterResourceNatural
.
getSequenceNbr
());
waterResourceNaturalDto
.
setResourceId
(
sequenceNbr
);
waterResourceNaturalService
.
updateWithModel
(
waterResourceNaturalDto
);
waterResourceNaturalService
.
updateWithModel
(
waterResourceNaturalDto
);
break
;
break
;
case
"pool"
:
case
"pool"
:
...
@@ -278,6 +281,7 @@ public class WaterResourceController extends BaseController {
...
@@ -278,6 +281,7 @@ public class WaterResourceController extends BaseController {
sequenceNbr
));
sequenceNbr
));
BeanUtils
.
copyProperties
(
model
,
waterResourcePoolDto
);
BeanUtils
.
copyProperties
(
model
,
waterResourcePoolDto
);
waterResourcePoolDto
.
setSequenceNbr
(
waterResourcePool
.
getSequenceNbr
());
waterResourcePoolDto
.
setSequenceNbr
(
waterResourcePool
.
getSequenceNbr
());
waterResourcePoolDto
.
setResourceId
(
sequenceNbr
);
waterResourcePoolService
.
updateWithModel
(
waterResourcePoolDto
);
waterResourcePoolService
.
updateWithModel
(
waterResourcePoolDto
);
break
;
break
;
}
}
...
@@ -457,7 +461,6 @@ public class WaterResourceController extends BaseController {
...
@@ -457,7 +461,6 @@ public class WaterResourceController extends BaseController {
}
}
}
}
/*bug 2913 更换保存方式 存储到公共附件表 chenzhao 2021-10-18 start*/
/*bug 2913 更换保存方式 存储到公共附件表 chenzhao 2021-10-18 start*/
Page
<
WaterResourceDto
>
waterResourceDtoPage
=
waterResourceServiceImpl
.
queryForWaterResourcePage
(
page
,
name
,
resourceType
,
Page
<
WaterResourceDto
>
waterResourceDtoPage
=
waterResourceServiceImpl
.
queryForWaterResourcePage
(
page
,
name
,
resourceType
,
belongBuildingId
,
belongFightingSystemId
,
sequenceNbr
,
classifyId
,
bizOrgCode
,
equipCateGoryCode
,
ids
,
companyId
);
belongBuildingId
,
belongFightingSystemId
,
sequenceNbr
,
classifyId
,
bizOrgCode
,
equipCateGoryCode
,
ids
,
companyId
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
859f7408
...
@@ -87,7 +87,9 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -87,7 +87,9 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List
<
String
>
getEquipmentIotCodeLists
();
List
<
String
>
getEquipmentIotCodeLists
();
List
<
HashMap
<
String
,
Object
>>
getEquipBySourceId
(
@Param
(
"sourceIds"
)
List
<
Long
>
sourceIds
,
@Param
(
"categoryId"
)
List
<
Long
>
categoryId
,
@Param
(
"equipCode"
)
String
equipCode
,
@Param
(
"equipName"
)
String
equipName
,
@Param
(
"companyId"
)
String
companyId
);
List
<
HashMap
<
String
,
Object
>>
getEquipBySourceId
(
@Param
(
"sourceIds"
)
List
<
Long
>
sourceIds
,
@Param
(
"categoryId"
)
List
<
Long
>
categoryId
,
@Param
(
"equipCode"
)
String
equipCode
,
@Param
(
"equipName"
)
String
equipName
,
@Param
(
"companyId"
)
String
companyId
,
@Param
(
"current"
)
Long
current
,
@Param
(
"size"
)
Long
size
);
int
getEquipBySourceIdCount
(
@Param
(
"sourceIds"
)
List
<
Long
>
sourceIds
,
@Param
(
"categoryId"
)
List
<
Long
>
categoryId
,
@Param
(
"equipCode"
)
String
equipCode
,
@Param
(
"equipName"
)
String
equipName
,
@Param
(
"companyId"
)
String
companyId
);
List
getMenuChildren
(
@Param
(
"id"
)
Long
id
);
List
getMenuChildren
(
@Param
(
"id"
)
Long
id
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/RiskSourceSceneServiceImpl.java
View file @
859f7408
...
@@ -673,8 +673,9 @@ public class RiskSourceSceneServiceImpl extends ServiceImpl<RiskSourceSceneMappe
...
@@ -673,8 +673,9 @@ public class RiskSourceSceneServiceImpl extends ServiceImpl<RiskSourceSceneMappe
categoryIdList
=
categorieChildren
.
stream
().
map
(
category
->
category
.
getId
()).
collect
(
Collectors
.
toList
());
categoryIdList
=
categorieChildren
.
stream
().
map
(
category
->
category
.
getId
()).
collect
(
Collectors
.
toList
());
categoryIdList
.
add
(
categoryRoot
);
categoryIdList
.
add
(
categoryRoot
);
}
}
List
<
HashMap
<
String
,
Object
>>
equipmentList
=
equipmentSpecificMapper
.
getEquipBySourceId
(
idsList
,
categoryIdList
,
equipCode
==
null
?
equipCode:
equipCode
.
replace
(
" "
,
""
),
equipName
==
null
?
equipName:
equipName
.
replace
(
" "
,
""
),
companyId
);
List
<
HashMap
<
String
,
Object
>>
equipmentList
=
equipmentSpecificMapper
.
getEquipBySourceId
(
idsList
,
categoryIdList
,
equipCode
==
null
?
equipCode:
equipCode
.
replace
(
" "
,
""
),
equipName
==
null
?
equipName:
equipName
.
replace
(
" "
,
""
),
companyId
,
page
.
getCurrent
(),
page
.
getSize
());
page
.
setTotal
(
equipmentList
.
size
());
int
total
=
equipmentSpecificMapper
.
getEquipBySourceIdCount
(
idsList
,
categoryIdList
,
equipCode
==
null
?
equipCode:
equipCode
.
replace
(
" "
,
""
),
equipName
==
null
?
equipName:
equipName
.
replace
(
" "
,
""
),
companyId
);
page
.
setTotal
(
total
);
page
.
setRecords
(
equipmentList
);
page
.
setRecords
(
equipmentList
);
return
page
;
return
page
;
}
}
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
859f7408
...
@@ -405,6 +405,53 @@
...
@@ -405,6 +405,53 @@
<if
test=
"equipName != '' and equipName != null"
>
<if
test=
"equipName != '' and equipName != null"
>
and spec.name like CONCAT("%", #{equipName},'%')
and spec.name like CONCAT("%", #{equipName},'%')
</if>
</if>
<if
test=
"current != null and size != null"
>
Limit #{current},#{size}
</if>
</select>
<select
id=
"getEquipBySourceIdCount"
resultType=
"int"
>
SELECT
count(spec.id)
FROM
wl_equipment_specific spec
LEFT JOIN wl_equipment_detail equipment_detail ON equipment_detail.id = spec.equipment_detail_id
LEFT JOIN (
SELECT
DISTINCT equipment_specific_id
, warehouse_structure_id
FROM
wl_stock_detail
) AS detail ON detail.equipment_specific_id = spec.id
LEFT JOIN wl_warehouse_structure structure ON spec.warehouse_structure_id = structure.id
LEFT JOIN (
SELECT
s.id,
s.name AS prevName
FROM
wl_warehouse_structure s
) AS area ON area.id = structure.parent_id
LEFT JOIN wl_equipment we ON we.id = equipment_detail.equipment_id
LEFT JOIN wl_equipment_category category ON category.id = we.category_id
WHERE 1=1
<if
test=
"sourceIds != null"
>
and structure.id IN
<foreach
collection=
"sourceIds"
item=
"sourceIds"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{sourceIds}
</foreach>
</if>
<if
test=
"categoryId != null and categoryId.size() > 0"
>
and category.id in
<foreach
collection=
"categoryId"
item=
"id"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</if>
<if
test=
"companyId != null and companyId != ''"
>
and spec.agency_id = #{companyId}
</if>
<if
test=
"equipCode != '' and equipCode != null"
>
and spec.code like concat("%", #{equipCode}, "%")
</if>
<if
test=
"equipName != '' and equipName != null"
>
and spec.name like CONCAT("%", #{equipName},'%')
</if>
</select>
</select>
<select
id=
"findAllParents"
resultMap=
"menuTree"
>
<select
id=
"findAllParents"
resultMap=
"menuTree"
>
...
...
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