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
46c92a02
Commit
46c92a02
authored
Aug 10, 2023
by
李秀明
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl' into develop_dl
parents
e9dac5b3
b7e2f19a
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
161 additions
and
15 deletions
+161
-15
OrgUsrMapper.java
...join/amos/boot/module/common/api/mapper/OrgUsrMapper.java
+4
-0
IOrgUsrService.java
...n/amos/boot/module/common/api/service/IOrgUsrService.java
+4
-0
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+111
-5
OrgPersonController.java
...oot/module/common/biz/controller/OrgPersonController.java
+14
-0
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+16
-3
EquipmentManageController.java
...oin/equipmanage/controller/EquipmentManageController.java
+1
-1
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+2
-1
EquipmentManageService.java
...m/yeejoin/equipmanage/service/EquipmentManageService.java
+1
-1
IFireFightingSystemService.java
...ejoin/equipmanage/service/IFireFightingSystemService.java
+1
-1
EquipmentManageServiceImpl.java
.../equipmanage/service/impl/EquipmentManageServiceImpl.java
+2
-1
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+2
-2
EquipmentManageMapper.xml
...equip/src/main/resources/mapper/EquipmentManageMapper.xml
+3
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/OrgUsrMapper.java
View file @
46c92a02
...
@@ -36,6 +36,10 @@ public interface OrgUsrMapper extends BaseMapper<OrgUsr> {
...
@@ -36,6 +36,10 @@ public interface OrgUsrMapper extends BaseMapper<OrgUsr> {
List
<
OrgUsr
>
selectCompanyDepartmentMsg
();
List
<
OrgUsr
>
selectCompanyDepartmentMsg
();
List
<
Map
<
String
,
Object
>>
selectStaticFire
(
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
selectStaticYw
(
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
selectPersonAllList
(
Map
<
String
,
Object
>
map
);
List
<
Map
<
String
,
Object
>>
selectPersonAllList
(
Map
<
String
,
Object
>
map
);
List
<
OrgUsr
>
queryOrgUsrListByBizOrgCode
(
String
bizOrgCode
);
List
<
OrgUsr
>
queryOrgUsrListByBizOrgCode
(
String
bizOrgCode
);
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/IOrgUsrService.java
View file @
46c92a02
...
@@ -115,6 +115,10 @@ public interface IOrgUsrService {
...
@@ -115,6 +115,10 @@ public interface IOrgUsrService {
void
updateDynamicFormInstance
(
Long
instanceId
,
List
<
DynamicFormInstance
>
fromValueList
)
throws
Exception
;
void
updateDynamicFormInstance
(
Long
instanceId
,
List
<
DynamicFormInstance
>
fromValueList
)
throws
Exception
;
/**
/**
* @throws Exception
*/
List
<
Map
<
String
,
Object
>>
selectStatic
(
String
bizOrgCode
,
String
type
);
/**
* @param id
* @param id
* @throws Exception
* @throws Exception
*/
*/
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
46c92a02
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
max(case v.field_code when 'administrativePositionCode' then IFNULL(v.field_value_label,v.field_value) end) administrativePositionCode,
max(case v.field_code when 'administrativePositionCode' then IFNULL(v.field_value_label,v.field_value) end) administrativePositionCode,
max(case v.field_code when 'internalPositionCode' then IFNULL(v.field_value_label,v.field_value) end) internalPositionCode,
max(case v.field_code when 'internalPositionCode' then IFNULL(v.field_value_label,v.field_value) end) internalPositionCode,
max(case v.field_code when 'fireManagementPostCode' then IFNULL(v.field_value_label,v.field_value) end) fireManagementPostCode,
max(case v.field_code when 'fireManagementPostCode' then IFNULL(v.field_value_label,v.field_value) end) fireManagementPostCode,
max(case v.field_code when 'fireManagementPostCode' then v.field_value end) fireManagementPost,
max(case v.field_code when 'positionType' then IFNULL(v.field_value,v.field_value_label) end) positionType,
max(case v.field_code when 'positionType' then IFNULL(v.field_value,v.field_value_label) end) positionType,
max(case v.field_code when 'certificateType' then IFNULL(v.field_value_label,v.field_value) end) certificateType,
max(case v.field_code when 'certificateType' then IFNULL(v.field_value_label,v.field_value) end) certificateType,
max(case v.field_code when 'holdingTime' then IFNULL(v.field_value_label,v.field_value) end) holdingTime,
max(case v.field_code when 'holdingTime' then IFNULL(v.field_value_label,v.field_value) end) holdingTime,
...
@@ -84,6 +85,12 @@
...
@@ -84,6 +85,12 @@
<if
test=
"map.peopleType != null and map.peopleType != ''"
>
<if
test=
"map.peopleType != null and map.peopleType != ''"
>
AND g.peopleType = #{map.peopleType}
AND g.peopleType = #{map.peopleType}
</if>
</if>
<if
test=
"map.fireManagementPost != null"
>
AND g.fireManagementPost IN
<foreach
item=
"item"
index=
"index"
collection=
"map.fireManagementPost"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
GROUP BY
GROUP BY
u.sequence_nbr ,
u.sequence_nbr ,
u.biz_org_name ,
u.biz_org_name ,
...
@@ -112,6 +119,7 @@
...
@@ -112,6 +119,7 @@
u.amos_org_id amosOrgId,
u.amos_org_id amosOrgId,
u.biz_org_code bizOrgCode,
u.biz_org_code bizOrgCode,
u.parent_id parentId,
u.parent_id parentId,
(select bizOrgName from cb_org_usr where sequence_nbr = u.parent_id) as companyName,
g.*
g.*
FROM
FROM
cb_org_usr u
cb_org_usr u
...
@@ -130,7 +138,9 @@
...
@@ -130,7 +138,9 @@
max(case v.field_code when 'internalPositionCode' then IFNULL(v.field_value_label,v.field_value) end) internalPositionCode,
max(case v.field_code when 'internalPositionCode' then IFNULL(v.field_value_label,v.field_value) end) internalPositionCode,
max(case v.field_code when 'fireManagementPostCode' then IFNULL(v.field_value_label,v.field_value) end) fireManagementPostCode,
max(case v.field_code when 'fireManagementPostCode' then IFNULL(v.field_value_label,v.field_value) end) fireManagementPostCode,
max(case v.field_code when 'fireManagementPostCode' then v.field_value end) fireManagementPost,
max(case v.field_code when 'fireManagementPostCode' then v.field_value end) fireManagementPost,
max(case v.field_code when 'fireManagementPostCode' then IFNULL(v.field_value_label,'其他') end) fireManagementPostName,
max(case v.field_code when 'positionType' then IFNULL(v.field_value,v.field_value_label) end) positionType,
max(case v.field_code when 'positionType' then IFNULL(v.field_value,v.field_value_label) end) positionType,
max(case v.field_code when 'positionType' then IFNULL(v.field_value_label,'其他') end) positionTypeName,
max(case v.field_code when 'certificateType' then IFNULL(v.field_value_label,v.field_value) end) certificateType,
max(case v.field_code when 'certificateType' then IFNULL(v.field_value_label,v.field_value) end) certificateType,
max(case v.field_code when 'holdingTime' then IFNULL(v.field_value_label,v.field_value) end) holdingTime,
max(case v.field_code when 'holdingTime' then IFNULL(v.field_value_label,v.field_value) end) holdingTime,
max(case v.field_code when 'auditCycle' then IFNULL(v.field_value_label,v.field_value) end) auditCycle,
max(case v.field_code when 'auditCycle' then IFNULL(v.field_value_label,v.field_value) end) auditCycle,
...
@@ -170,12 +180,9 @@
...
@@ -170,12 +180,9 @@
AND FIND_IN_SET(#{map.positionType},g.positionType)
AND FIND_IN_SET(#{map.positionType},g.positionType)
</if>
</if>
<if
test=
"map.peopleType != null and map.peopleType != ''"
>
<if
test=
"map.peopleType != null and map.peopleType != ''"
>
AND g.peopleType IN
AND g.peopleType = #{map.peopleType}
<foreach
item=
"item"
index=
"index"
collection=
"map.peopleType"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
</if>
<if
test=
"map.fireManagementPost != null
and map.fireManagementPost != ''
"
>
<if
test=
"map.fireManagementPost != null"
>
AND g.fireManagementPost IN
AND g.fireManagementPost IN
<foreach
item=
"item"
index=
"index"
collection=
"map.fireManagementPost"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"item"
index=
"index"
collection=
"map.fireManagementPost"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
...
@@ -1307,5 +1314,104 @@ LEFT JOIN (
...
@@ -1307,5 +1314,104 @@ LEFT JOIN (
)a where a.sequenceNbr is not null
)a where a.sequenceNbr is not null
LIMIT #{map.pageNum}, #{map.pageSize}
LIMIT #{map.pageNum}, #{map.pageSize}
</select>
</select>
<select
id=
"selectStaticFire"
resultType=
"java.util.Map"
>
SELECT count( postName ) as num,( count( postName )/( SELECT count(*) AS count FROM cb_org_usr a WHERE is_delete = 0 AND biz_org_type = 'PERSON'
AND biz_org_code like concat(#{bizOrgCode}, '%')
))* 100 AS percent, postName
FROM
(
SELECT
a.*,
IFNULL( b.NAME, '其他' ) AS postName
FROM
(
SELECT DISTINCT
u.sequence_nbr sequenceNbr,
g.*
FROM
cb_org_usr u
LEFT JOIN (
SELECT
v.`instance_id`,
max( CASE v.field_code WHEN 'fireManagementPostCode' THEN IFNULL( v.field_value_label, v.field_value ) END ) fireManagementPostCode,
max( CASE v.field_code WHEN 'fireManagementPostCode' THEN v.field_value END ) fireManagementPost,
max( CASE v.field_code WHEN 'fireManagementPostCode' THEN v.field_value_label END ) fireManagementPostName,
max( CASE v.field_code WHEN 'positionType' THEN IFNULL( v.field_value, v.field_value_label ) END ) positionType,
max( CASE v.field_code WHEN 'positionType' THEN v.field_value_label END ) positionTypeName,
max( CASE v.field_code WHEN 'peopleType' THEN v.field_value END ) peopleType
FROM
`cb_dynamic_form_instance` v
WHERE
v.group_code = 246
GROUP BY
v.`instance_id`
) g ON u.sequence_nbr = g.instance_id
WHERE
u.biz_org_type = 'person'
AND g.peopleType = '1601'
AND u.is_delete = 0
AND u.biz_org_code like concat(#{bizOrgCode}, '%')
GROUP BY
u.sequence_nbr,
u.biz_org_name,
u.biz_org_code
ORDER BY
u.rec_date DESC
) a
LEFT JOIN ( SELECT * FROM cb_data_dictionary WHERE type = 'XFGLGW' ) b ON LOCATE( b.CODE, a.fireManagementPost ) != 0
WHERE
a.sequenceNbr IS NOT NULL
) a
GROUP BY
postName
</select>
<select
id=
"selectStaticYw"
resultType=
"java.util.Map"
>
SELECT count( postName ) as num, (count( postName )/( SELECT count(*) AS count FROM cb_org_usr a WHERE is_delete = 0 AND biz_org_type = 'PERSON'
AND biz_org_code like concat(#{bizOrgCode}, '%')
))* 100 AS percent, postName
FROM
(
SELECT
a.*,
IFNULL( b.NAME, '其他' ) AS postName
FROM
(
SELECT DISTINCT
u.sequence_nbr sequenceNbr,
g.*
FROM
cb_org_usr u
LEFT JOIN (
SELECT
v.`instance_id`,
max( CASE v.field_code WHEN 'positionType' THEN v.field_value END ) positionType,
max( CASE v.field_code WHEN 'positionType' THEN v.field_value_label END ) positionTypeName,
max( CASE v.field_code WHEN 'peopleType' THEN v.field_value END ) peopleType
FROM
`cb_dynamic_form_instance` v
WHERE
v.group_code = 246
GROUP BY
v.`instance_id`
) g ON u.sequence_nbr = g.instance_id
WHERE
u.biz_org_type = 'PERSON'
AND g.peopleType = '1602'
AND u.biz_org_code like concat(#{bizOrgCode}, '%')
AND u.is_delete = 0
GROUP BY
u.sequence_nbr,
u.biz_org_name,
u.biz_org_code
ORDER BY
u.rec_date DESC
) a
LEFT JOIN ( SELECT * FROM cb_data_dictionary WHERE type = 'GWMC' ) b ON LOCATE( b.CODE, a.positionType ) != 0
WHERE
a.sequenceNbr IS NOT NULL
) a
GROUP BY
postName
</select>
</mapper>
</mapper>
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgPersonController.java
View file @
46c92a02
...
@@ -179,6 +179,20 @@ public class OrgPersonController extends BaseController {
...
@@ -179,6 +179,20 @@ public class OrgPersonController extends BaseController {
return
ResponseHelper
.
buildResponse
(
result
);
return
ResponseHelper
.
buildResponse
(
result
);
}
}
/**
* 消防资源监管,驻站消防员,运维人员环状态图统计接口
*
* @param bizOrgCode type
* @return
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getStaticByFire"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"消防资源监管,驻站消防员,运维人员环状态图统计接口"
,
notes
=
"消防资源监管,驻站消防员,运维人员环状态图统计接口"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
selectStatic
(
String
bizOrgCode
,
String
type
)
throws
Exception
{
List
<
Map
<
String
,
Object
>>
result
=
iOrgUsrService
.
selectStatic
(
bizOrgCode
,
type
);
return
ResponseHelper
.
buildResponse
(
result
);
}
/**
/**
* 获取人员树
* 获取人员树
...
...
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 @
46c92a02
...
@@ -600,10 +600,12 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -600,10 +600,12 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
map
.
put
(
"positionType"
,
positionType
);
map
.
put
(
"positionType"
,
positionType
);
}
}
String
fireManagementPost
=
""
;
List
<
String
>
fireManagementPost
;
if
(
req
.
containsKey
(
"fireManagementPost"
))
{
if
(
req
.
containsKey
(
"fireManagementPost"
))
{
fireManagementPost
=
req
.
get
(
"fireManagementPost"
).
toString
();
if
(
StringUtils
.
isNotEmpty
(
req
.
get
(
"fireManagementPost"
).
toString
()))
{
map
.
put
(
"fireManagementPost"
,
fireManagementPost
);
fireManagementPost
=
Arrays
.
asList
(
req
.
get
(
"fireManagementPost"
).
toString
().
split
(
","
));
map
.
put
(
"fireManagementPost"
,
fireManagementPost
);
}
}
}
String
peopleType
=
""
;
String
peopleType
=
""
;
...
@@ -915,6 +917,17 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -915,6 +917,17 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
selectStatic
(
String
bizOrgCode
,
String
type
)
{
List
<
Map
<
String
,
Object
>>
listMap
;
if
(
"1601"
.
equals
(
type
))
{
listMap
=
this
.
baseMapper
.
selectStaticFire
(
bizOrgCode
);
}
else
{
listMap
=
this
.
baseMapper
.
selectStaticYw
(
bizOrgCode
);
}
return
listMap
;
}
@Override
public
Map
<
String
,
Object
>
selectForShowById
(
OrgUsr
orgUsr
,
Long
id
)
throws
Exception
{
public
Map
<
String
,
Object
>
selectForShowById
(
OrgUsr
orgUsr
,
Long
id
)
throws
Exception
{
QueryWrapper
<
DynamicFormColumn
>
queryWrapper
=
new
QueryWrapper
<
DynamicFormColumn
>();
QueryWrapper
<
DynamicFormColumn
>
queryWrapper
=
new
QueryWrapper
<
DynamicFormColumn
>();
queryWrapper
.
eq
(
"group_code"
,
OrgPersonEnum
.
人员
.
getCode
());
queryWrapper
.
eq
(
"group_code"
,
OrgPersonEnum
.
人员
.
getCode
());
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentManageController.java
View file @
46c92a02
...
@@ -67,7 +67,7 @@ public class EquipmentManageController extends AbstractBaseController{
...
@@ -67,7 +67,7 @@ public class EquipmentManageController extends AbstractBaseController{
companyId
=
result
.
get
(
"sequenceNbr"
).
toString
();
companyId
=
result
.
get
(
"sequenceNbr"
).
toString
();
}
}
}
}
return
equipmentManageService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
,
companyId
,
nameOrCode
);
return
equipmentManageService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
,
companyId
,
nameOrCode
,
null
);
}
}
@GetMapping
(
value
=
"/getUtils"
)
@GetMapping
(
value
=
"/getUtils"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
46c92a02
...
@@ -596,6 +596,7 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -596,6 +596,7 @@ public class FireFightingSystemController extends AbstractBaseController {
@RequestParam
(
value
=
"construction"
,
required
=
false
)
String
construction
,
@RequestParam
(
value
=
"construction"
,
required
=
false
)
String
construction
,
@RequestParam
(
value
=
"maintenance"
,
required
=
false
)
String
maintenance
,
@RequestParam
(
value
=
"maintenance"
,
required
=
false
)
String
maintenance
,
@RequestParam
(
value
=
"bizOrgCode"
,
required
=
false
)
String
bizOrgCode
,
@RequestParam
(
value
=
"bizOrgCode"
,
required
=
false
)
String
bizOrgCode
,
@RequestParam
(
value
=
"systemStatus"
,
required
=
false
)
String
systemStatus
,
@RequestParam
(
value
=
"formGroupId"
,
required
=
false
)
String
formGroupId
,
@RequestParam
(
value
=
"formGroupId"
,
required
=
false
)
String
formGroupId
,
@RequestParam
(
value
=
"controBoxBuildId"
,
required
=
false
)
String
controBoxBuildId
,
@RequestParam
(
value
=
"controBoxBuildId"
,
required
=
false
)
String
controBoxBuildId
,
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"current"
)
int
current
,
...
@@ -626,7 +627,7 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -626,7 +627,7 @@ public class FireFightingSystemController extends AbstractBaseController {
}
}
}
}
return
fireFightingSystemService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
,
companyId
,
nameOrCode
);
return
fireFightingSystemService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
,
companyId
,
nameOrCode
,
systemStatus
);
}
}
/**
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/EquipmentManageService.java
View file @
46c92a02
...
@@ -26,7 +26,7 @@ public interface EquipmentManageService extends IService<EquipmentManageEntity>
...
@@ -26,7 +26,7 @@ public interface EquipmentManageService extends IService<EquipmentManageEntity>
* @param pageSize
* @param pageSize
* @return
* @return
*/
*/
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
spage
,
int
pageSize
,
String
controBoxBuildId
,
String
companyId
,
String
nameOrCode
);
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
spage
,
int
pageSize
,
String
controBoxBuildId
,
String
companyId
,
String
nameOrCode
,
String
systemStatus
);
/**
/**
* 获取下拉菜单数据
* 获取下拉菜单数据
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IFireFightingSystemService.java
View file @
46c92a02
...
@@ -45,7 +45,7 @@ public interface IFireFightingSystemService extends IService<FireFightingSystemE
...
@@ -45,7 +45,7 @@ public interface IFireFightingSystemService extends IService<FireFightingSystemE
* @param pageSize
* @param pageSize
* @return
* @return
*/
*/
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
,
String
companyId
,
String
nameOrCode
);
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
,
String
companyId
,
String
nameOrCode
,
String
systemStatus
);
FireFightingSystemEntity
getOneById
(
Long
id
);
FireFightingSystemEntity
getOneById
(
Long
id
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentManageServiceImpl.java
View file @
46c92a02
...
@@ -53,7 +53,7 @@ public class EquipmentManageServiceImpl extends ServiceImpl<EquipmentManageMappe
...
@@ -53,7 +53,7 @@ public class EquipmentManageServiceImpl extends ServiceImpl<EquipmentManageMappe
@Override
@Override
public
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
public
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
,
String
companyCode
,
String
nameOrCode
)
{
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
,
String
companyCode
,
String
nameOrCode
,
String
systemStatus
)
{
HttpServletRequest
request
=
null
;
HttpServletRequest
request
=
null
;
Map
map
=
new
HashMap
<
String
,
Object
>();
Map
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"equimentName"
,
equimentName
);
map
.
put
(
"equimentName"
,
equimentName
);
...
@@ -67,6 +67,7 @@ public class EquipmentManageServiceImpl extends ServiceImpl<EquipmentManageMappe
...
@@ -67,6 +67,7 @@ public class EquipmentManageServiceImpl extends ServiceImpl<EquipmentManageMappe
map
.
put
(
"formGroupId"
,
formGroupId
);
map
.
put
(
"formGroupId"
,
formGroupId
);
map
.
put
(
"controBoxBuildId"
,
controBoxBuildId
);
map
.
put
(
"controBoxBuildId"
,
controBoxBuildId
);
map
.
put
(
"nameOrCode"
,
nameOrCode
);
map
.
put
(
"nameOrCode"
,
nameOrCode
);
map
.
put
(
"systemStatus"
,
systemStatus
);
List
<
EquipmentManageVo
>
dataList
=
equipmentManageMapper
.
queryEquipmenInfo
(
map
);
List
<
EquipmentManageVo
>
dataList
=
equipmentManageMapper
.
queryEquipmenInfo
(
map
);
Long
count
=
equipmentManageMapper
.
queryEquipmenCount
(
map
);
Long
count
=
equipmentManageMapper
.
queryEquipmenCount
(
map
);
map
.
clear
();
map
.
clear
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
46c92a02
...
@@ -191,9 +191,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -191,9 +191,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
@Override
@Override
public
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
public
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
,
String
companyId
,
String
nameOrCode
)
{
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
,
String
companyId
,
String
nameOrCode
,
String
systemStatus
)
{
Map
<
String
,
Object
>
map
=
equipmentManageService
.
queryEquipmenInfoAndCount
(
equimentName
,
equimentCode
,
Map
<
String
,
Object
>
map
=
equipmentManageService
.
queryEquipmenInfoAndCount
(
equimentName
,
equimentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
,
companyId
,
nameOrCode
);
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
,
companyId
,
nameOrCode
,
systemStatus
);
List
<
EquipmentManageVo
>
dataList
=
(
List
<
EquipmentManageVo
>)
map
.
get
(
"dataList"
);
List
<
EquipmentManageVo
>
dataList
=
(
List
<
EquipmentManageVo
>)
map
.
get
(
"dataList"
);
StringBuilder
stb
=
new
StringBuilder
();
StringBuilder
stb
=
new
StringBuilder
();
dataList
.
forEach
(
y
->
{
dataList
.
forEach
(
y
->
{
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentManageMapper.xml
View file @
46c92a02
...
@@ -51,6 +51,9 @@
...
@@ -51,6 +51,9 @@
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND sys.biz_org_code like CONCAT(#{bizOrgCode},'%')
AND sys.biz_org_code like CONCAT(#{bizOrgCode},'%')
</if>
</if>
<if
test=
"systemStatus != null and systemStatus != ''"
>
AND sys.system_status = #{systemStatus}
</if>
<if
test=
"companyCode != null and companyCode != ''"
>
<if
test=
"companyCode != null and companyCode != ''"
>
AND sys.biz_org_code = #{companyCode}
AND sys.biz_org_code = #{companyCode}
</if>
</if>
...
...
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