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
c7a51b5a
Commit
c7a51b5a
authored
Aug 18, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏API修改
parent
9fa4453c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
206 additions
and
57 deletions
+206
-57
FirefightersMapper.java
...mos/boot/module/common/api/mapper/FirefightersMapper.java
+2
-2
FirefightersMapper.xml
...mmon-api/src/main/resources/mapper/FirefightersMapper.xml
+150
-21
FirefightersServiceImpl.java
...dule/common/biz/service/impl/FirefightersServiceImpl.java
+14
-4
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+9
-6
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+10
-6
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+21
-18
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/FirefightersMapper.java
View file @
c7a51b5a
...
...
@@ -45,7 +45,7 @@ public interface FirefightersMapper extends BaseMapper<Firefighters> {
Integer
getTeamCountByCode
(
@Param
(
"companyCode"
)
String
companyCode
);
Map
<
String
,
Object
>
getFireForceInfoByCode
(
@Param
(
"
companyCode"
)
String
company
Code
);
Map
<
String
,
Object
>
getFireForceInfoByCode
(
@Param
(
"
bizOrgCode"
)
String
bizOrg
Code
);
List
<
Map
<
String
,
Object
>>
getStationSignInfo
(
@Param
(
"
companyCode"
)
String
company
Code
);
List
<
Map
<
String
,
Object
>>
getStationSignInfo
(
@Param
(
"
bizOrgCode"
)
String
bizOrg
Code
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FirefightersMapper.xml
View file @
c7a51b5a
...
...
@@ -495,8 +495,8 @@ LEFT JOIN cb_fire_team cft ON cff.fire_team_id = cft.sequence_nbr
WHERE
u.is_delete = 0
AND u.biz_org_type = 'PERSON'
<if
test=
"
companyCode != null and company
Code != ''"
>
AND u.`
code` = #{companyCode}
<if
test=
"
bizOrgCode != null and bizOrg
Code != ''"
>
AND u.`
biz_org_code` like concat(#{bizOrgCode}, '%')
</if>
GROUP BY
u.sequence_nbr
...
...
@@ -505,35 +505,164 @@ LEFT JOIN cb_fire_team cft ON cff.fire_team_id = cft.sequence_nbr
</select>
<select
id=
"getStationSignInfo"
resultType=
"java.util.Map"
>
SELECT b.qualifiedNum, b.unQualifiedNum, (TRUNCATE ( abs(( b.qualifiedNum ) / IF (( b.totalNum = 0 ),
1,
b.totalNum
)) * 100 ,2)) as qualifiedAbs
FROM
(
<!-- SELECT b.qualifiedNum, b.unQualifiedNum, (TRUNCATE ( abs(( b.qualifiedNum ) / IF (( b.totalNum = 0 ),-->
<!-- 1,-->
<!-- b.totalNum-->
<!-- )) * 100 ,2)) as qualifiedAbs-->
<!-- FROM-->
<!-- (-->
<!-- SELECT-->
<!-- count( a.signCount >= 8 OR NULL ) AS qualifiedNum,-->
<!-- count( 1 ) AS totalNum,-->
<!-- count( a.signCount < 8 OR NULL ) AS unQualifiedNum-->
<!-- FROM-->
<!-- (-->
<!-- SELECT-->
<!-- si.`code`,-->
<!-- count( DISTINCT cs.user_id ) AS signCount-->
<!-- FROM-->
<!-- idx_biz_station_info si-->
<!-- LEFT JOIN cb_org_usr ou ON ou.`code` = si.`code`-->
<!-- AND ou.is_delete = 0-->
<!-- LEFT JOIN cb_sign cs ON cs.biz_org_code = ou.biz_org_code-->
<!-- AND cs.date LIKE CONCAT( DATE_FORMAT( now(), '%Y-%m' ), '%' )-->
<!-- <where>-->
<!-- <if test="companyCode != null and companyCode != ''">-->
<!-- si.`code` = #{companyCode}-->
<!-- </if>-->
<!-- </where>-->
<!-- GROUP BY-->
<!-- si.`code`-->
<!-- ) a-->
<!-- ) b-->
<!-- SELECT-->
<!-- sum( c.isNormal ) AS qualifiedNum,-->
<!-- (-->
<!-- count( 1 ) - sum( c.isNormal )) AS unQualifiedNum,-->
<!-- (-->
<!-- TRUNCATE (-->
<!-- abs(-->
<!-- sum( c.isNormal ) /-->
<!-- IF-->
<!-- (( count( 1 ) = 0 ), 1, count( 1 ) )) * 100,-->
<!-- 2-->
<!-- )) AS qualifiedAbs-->
<!-- FROM-->
<!-- (-->
<!-- SELECT-->
<!-- si.`code`,-->
<!-- CASE-->
<!-- WHEN count( b.`date` IS NOT NULL OR NULL ) = DATEDIFF(-->
<!-- DATE_ADD( CURDATE(), INTERVAL 1 DAY ),-->
<!-- DATE_ADD( curdate(), INTERVAL - DAY ( curdate()) + 1 DAY )) THEN-->
<!-- 1 ELSE 0-->
<!-- END AS isNormal-->
<!-- FROM-->
<!-- idx_biz_station_info si-->
<!-- LEFT JOIN (-->
<!-- SELECT-->
<!-- *-->
<!-- FROM-->
<!-- (-->
<!-- SELECT-->
<!-- t.date,-->
<!-- count( DISTINCT cs.user_id ) AS num,-->
<!-- si.`code`-->
<!-- FROM-->
<!-- (-->
<!-- SELECT-->
<!-- DATE_ADD( DATE_ADD( CURDATE(), INTERVAL - 1 DAY ), INTERVAL @s DAY ) AS date,-->
<!-- @s := @s - 1 AS `index`-->
<!-- FROM-->
<!-- mysql.help_topic,-->
<!-- ( SELECT @s := 1 ) temp-->
<!-- WHERE-->
<!-- @s > DATEDIFF( date_add( curdate(), INTERVAL - DAY ( curdate()) + 1 DAY ), CURDATE() )) t-->
<!-- LEFT JOIN cb_sign cs ON cs.date = t.date-->
<!-- LEFT JOIN cb_org_usr ou ON ou.`biz_org_code` = cs.`biz_org_code`-->
<!-- AND ou.is_delete = 0-->
<!-- LEFT JOIN idx_biz_station_info si ON si.`code` = ou.`code`-->
<!-- GROUP BY-->
<!-- t.date,-->
<!-- si.`code`-->
<!-- ) a-->
<!-- WHERE-->
<!-- num >= 8-->
<!-- ) b ON b.`code` = si.`code`-->
<!-- <where>-->
<!-- <if test="bizOrgCode != null and bizOrgCode != ''">-->
<!-- si.`code` = #{bizOrgCode}-->
<!-- </if>-->
<!-- </where>-->
<!-- GROUP BY-->
<!-- si.`code`-->
<!-- ) c-->
SELECT
count( a.signCount
>
= 8 OR NULL ) AS qualifiedNum,
count( 1 ) AS totalNum,
count( a.signCount
<
8 OR NULL ) AS unQualifiedNum
sum( c.isNormal ) AS qualifiedNum,
(
count( 1 ) - sum( c.isNormal )) AS unQualifiedNum,
(
TRUNCATE (
abs(
sum( c.isNormal ) /
IF
(( count( 1 ) = 0 ), 1, count( 1 ) )) * 100,
2
)) AS qualifiedAbs
FROM
(
SELECT
si.`code`,
count( DISTINCT cs.user_id ) AS signCount
CASE
WHEN count( b.`date` IS NOT NULL OR NULL ) = DATEDIFF(
DATE_ADD( CURDATE(), INTERVAL 1 DAY ),
DATE_ADD( curdate(), INTERVAL - DAY ( curdate()) + 1 DAY )) THEN
1 ELSE 0
END AS isNormal
FROM
idx_biz_station_info si
LEFT JOIN cb_org_usr ou ON ou.`code` = si.`code`
LEFT JOIN (
SELECT
*
FROM
(
SELECT
t.date,
count( DISTINCT cs.user_id ) AS num,
si.`code`
FROM
(
SELECT
DATE_ADD( DATE_ADD( CURDATE(), INTERVAL - 1 DAY ), INTERVAL @s DAY ) AS date,
@s := @s - 1 AS `index`
FROM
mysql.help_topic,
( SELECT @s := 1 ) temp
WHERE
@s > DATEDIFF( date_add( curdate(), INTERVAL - DAY ( curdate()) + 1 DAY ), CURDATE() )) t
LEFT JOIN cb_sign cs ON cs.date = t.date
LEFT JOIN cb_org_usr ou ON ou.`biz_org_code` = cs.`biz_org_code`
AND ou.is_delete = 0
LEFT JOIN cb_sign cs ON cs.biz_org_code = ou.biz_org_code
AND cs.date LIKE CONCAT( DATE_FORMAT( now(), '%Y-%m' ), '%' )
<where>
<if
test=
"companyCode != null and companyCode != ''"
>
si.`code` = #{companyCode}
</if>
</where>
LEFT JOIN idx_biz_station_info si ON si.`code` = ou.`code`
GROUP BY
t.date,
si.`code`
) a
) b
WHERE
num >= 8
) b ON b.`code` = si.`code`
LEFT JOIN cb_org_usr ou1 ON ou1.`code` = si.`code`
AND is_delete = 0
<where>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
ou1.`biz_org_code` = #{bizOrgCode}
</if>
</where>
GROUP BY
si.`code`
) c
</select>
</mapper>
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FirefightersServiceImpl.java
View file @
c7a51b5a
...
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisKey;
import
com.yeejoin.amos.boot.module.common.api.dto.*
;
import
com.yeejoin.amos.boot.module.common.api.entity.DynamicFormInstance
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.mapper.OrgUsrMapper
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
org.apache.commons.lang3.ObjectUtils
;
...
...
@@ -57,6 +58,8 @@ public class FirefightersServiceImpl extends BaseService<FirefightersDto, Firefi
OrgUsrServiceImpl
orgUsrService
;
@Autowired
FirefightersContactsServiceImpl
ifirefightersContactsService
;
@Autowired
private
OrgUsrMapper
orgUsrMapper
;
@Override
public
List
<
FirefightersZhDto
>
getFirefighters
(
int
pageNum
,
int
pageSize
,
FirefightersDto
par
)
{
...
...
@@ -273,9 +276,16 @@ public class FirefightersServiceImpl extends BaseService<FirefightersDto, Firefi
@Override
public
BigScreen1VO
getFireForceInfoByCode
(
String
companyCode
)
{
String
bizOrgCode
=
null
;
if
(
StringUtils
.
isNotEmpty
(
companyCode
))
{
OrgUsr
orgUsr
=
orgUsrMapper
.
queryByCompanyCode
(
companyCode
);
if
(
ObjectUtils
.
isNotEmpty
(
orgUsr
))
{
bizOrgCode
=
orgUsr
.
getBizOrgCode
();
}
}
BigScreen1VO
bigScreen1VO
=
new
BigScreen1VO
();
Integer
teamCount
=
firefightersMapper
.
getTeamCountByCode
(
companyCode
);
Map
<
String
,
Object
>
fireForceInfoByCode
=
firefightersMapper
.
getFireForceInfoByCode
(
company
Code
);
//
Integer teamCount = firefightersMapper.getTeamCountByCode(companyCode);
Map
<
String
,
Object
>
fireForceInfoByCode
=
firefightersMapper
.
getFireForceInfoByCode
(
bizOrg
Code
);
List
<
Map
<
String
,
Object
>>
personInfoList
=
new
ArrayList
<>();
HashMap
<
String
,
Object
>
fireInfo
=
new
HashMap
<>();
fireInfo
.
put
(
"fireCer"
,
fireForceInfoByCode
.
get
(
"fireCer"
));
...
...
@@ -292,12 +302,12 @@ public class FirefightersServiceImpl extends BaseService<FirefightersDto, Firefi
bigScreen1VO
.
setPersonList
(
personInfoList
);
List
<
Map
<
String
,
Object
>>
teamInfoList
=
new
ArrayList
<>();
HashMap
<
String
,
Object
>
teamInfoMap
=
new
HashMap
<>();
teamInfoMap
.
put
(
"teamNum"
,
teamCount
);
//
teamInfoMap.put("teamNum", teamCount);
teamInfoList
.
add
(
teamInfoMap
);
bigScreen1VO
.
setTeamNumInfo
(
teamInfoList
);
// bigScreen1VO.setTeamNum(teamCount);
// bigScreen1VO.setFirefightersInfo(fireForceInfoByCode);
List
<
Map
<
String
,
Object
>>
stationSignInfo
=
firefightersMapper
.
getStationSignInfo
(
company
Code
);
List
<
Map
<
String
,
Object
>>
stationSignInfo
=
firefightersMapper
.
getStationSignInfo
(
bizOrg
Code
);
bigScreen1VO
.
setUsrSignInfo
(
stationSignInfo
);
return
bigScreen1VO
;
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
c7a51b5a
...
...
@@ -374,17 +374,17 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
/**
* 获取系统告警信息
* @param
company
Code
* @param
bizOrg
Code
* @return
*/
List
<
Map
<
String
,
Object
>>
getSystemAlarmInfoNum
(
@Param
(
"
companyCode"
)
String
company
Code
);
List
<
Map
<
String
,
Object
>>
getSystemAlarmInfoNum
(
@Param
(
"
bizOrgCode"
)
String
bizOrg
Code
);
/**
* 消防水池或者工业水池信息
* @param
company
Code
* @param
bizOrg
Code
* @return
*/
List
<
Map
<
String
,
Object
>>
getWaterPoolInfoNum
(
@Param
(
"
companyCode"
)
String
company
Code
,
@Param
(
"poolType"
)
String
poolType
);
List
<
Map
<
String
,
Object
>>
getWaterPoolInfoNum
(
@Param
(
"
bizOrgCode"
)
String
bizOrg
Code
,
@Param
(
"poolType"
)
String
poolType
);
/**
* 消防水源总量统计
...
...
@@ -400,9 +400,9 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
*/
Integer
getCarNum
(
@Param
(
"companyCode"
)
String
companyCode
);
List
<
Map
<
String
,
Object
>>
getCarInfo
(
@Param
(
"
companyCode"
)
String
company
Code
);
List
<
Map
<
String
,
Object
>>
getCarInfo
(
@Param
(
"
bizOrgCode"
)
String
bizOrg
Code
);
List
<
Map
<
String
,
Object
>>
getEquipInfo
(
@Param
(
"
companyCode"
)
String
company
Code
,
@Param
(
"alarmType"
)
String
alarmType
);
List
<
Map
<
String
,
Object
>>
getEquipInfo
(
@Param
(
"
bizOrgCode"
)
String
bizOrg
Code
,
@Param
(
"alarmType"
)
String
alarmType
);
/**
* 统计某站下装备总数、摄像头总数
...
...
@@ -465,4 +465,7 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
*/
Page
<
Map
<
String
,
Object
>>
equipList
(
Page
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
String
queryByCompanyCode
(
@Param
(
"companyCode"
)
String
companyCode
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
c7a51b5a
...
...
@@ -1412,17 +1412,21 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
@Override
public
BigScreenVo
getCarInfo
(
String
companyCode
)
{
String
bizOrgCode
=
null
;
if
(
StringUtil
.
isNotEmpty
(
companyCode
))
{
bizOrgCode
=
fireFightingSystemMapper
.
queryByCompanyCode
(
companyCode
);
}
BigScreenVo
bigScreenVo
=
new
BigScreenVo
();
List
<
Map
<
String
,
Object
>>
carInfo
=
fireFightingSystemMapper
.
getCarInfo
(
company
Code
);
List
<
Map
<
String
,
Object
>>
carInfo
=
fireFightingSystemMapper
.
getCarInfo
(
bizOrg
Code
);
bigScreenVo
.
setCarNumInfo
(
carInfo
);
List
<
Map
<
String
,
Object
>>
systemAlarmInfoNum
=
fireFightingSystemMapper
.
getSystemAlarmInfoNum
(
company
Code
);
List
<
Map
<
String
,
Object
>>
pool
=
fireFightingSystemMapper
.
getWaterPoolInfoNum
(
company
Code
,
"pool"
);
List
<
Map
<
String
,
Object
>>
industryPool
=
fireFightingSystemMapper
.
getWaterPoolInfoNum
(
company
Code
,
"industryPool"
);
List
<
Map
<
String
,
Object
>>
systemAlarmInfoNum
=
fireFightingSystemMapper
.
getSystemAlarmInfoNum
(
bizOrg
Code
);
List
<
Map
<
String
,
Object
>>
pool
=
fireFightingSystemMapper
.
getWaterPoolInfoNum
(
bizOrg
Code
,
"pool"
);
List
<
Map
<
String
,
Object
>>
industryPool
=
fireFightingSystemMapper
.
getWaterPoolInfoNum
(
bizOrg
Code
,
"industryPool"
);
bigScreenVo
.
setSystemAlarmInfoNum
(
systemAlarmInfoNum
);
bigScreenVo
.
setIndustryPool
(
industryPool
);
bigScreenVo
.
setPool
(
pool
);
List
<
Map
<
String
,
Object
>>
equipInfo
=
fireFightingSystemMapper
.
getEquipInfo
(
company
Code
,
null
);
List
<
Map
<
String
,
Object
>>
breakdown
=
fireFightingSystemMapper
.
getEquipInfo
(
company
Code
,
"BREAKDOWN"
);
List
<
Map
<
String
,
Object
>>
equipInfo
=
fireFightingSystemMapper
.
getEquipInfo
(
bizOrg
Code
,
null
);
List
<
Map
<
String
,
Object
>>
breakdown
=
fireFightingSystemMapper
.
getEquipInfo
(
bizOrg
Code
,
"BREAKDOWN"
);
bigScreenVo
.
setEquipInfo
(
equipInfo
);
bigScreenVo
.
setBreakdownInfo
(
breakdown
);
return
bigScreenVo
;
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
c7a51b5a
...
...
@@ -2677,11 +2677,10 @@
IFNULL( sum( esa.`status` ), 0 ) AS alarmNum
FROM
f_fire_fighting_system fs
LEFT JOIN cb_org_usr ou ON ou.biz_org_code = fs.biz_org_code
LEFT JOIN wl_equipment_specific_alarm esa ON FIND_IN_SET( fs.id, esa.system_ids )
<where>
<if
test=
"
companyCode != null and company
Code != ''"
>
ou.`code` = #{companyCode}
<if
test=
"
bizOrgCode != null and bizOrg
Code != ''"
>
fs.`biz_org_code` like concat(#{bizOrgCode}, '%')
</if>
</where>
GROUP BY
...
...
@@ -2704,7 +2703,6 @@
FROM
(
SELECT
`ou`.`code` AS `code`,
ifnull( `rp`.`min_water_level`, 0 ) AS `minLevel`,
ifnull( `rp`.`max_water_level`, 0 ) AS `maxLevel`,
ifnull(
...
...
@@ -2718,16 +2716,14 @@
ifnull( `rp`.`min_water_level`, 0 )) AS `nowLevel`
FROM
`cb_water_resource` `r`
LEFT JOIN `cb_org_usr` `ou` ON `ou`.`biz_org_code` = `r`.`biz_org_code`
LEFT JOIN `cb_water_resource_pool` `rp` ON `rp`.`resource_id` = `r`.`sequence_nbr`
LEFT JOIN `wl_equipment_specific` `es` ON `es`.`id` = `rp`.`level_device_id`
LEFT JOIN `wl_equipment_detail` `ed` ON `ed`.`id` = `es`.`equipment_detail_id`
LEFT JOIN `wl_equipment_index` `ei` ON `ei`.`equipment_id` = `ed`.`equipment_id`
WHERE
`r`.`is_delete` = 1
AND `ou`.`code` IS NOT NULL
<if
test=
"companyCode != null and companyCode != ''"
>
AND ou.`code` = #{companyCode}
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND r.`biz_org_code` like concat(#{bizOrgCode}, '%')
</if>
AND `r`.`resource_type` = #{poolType}
GROUP BY
...
...
@@ -2815,10 +2811,9 @@
FROM
`wl_car` `wc`
LEFT JOIN `wl_car_property` `wcp` ON `wcp`.`car_id` = `wc`.`id`
LEFT JOIN cb_org_usr ou ON ou.amos_org_code = wc.org_code
<where>
<if
test=
"
companyCode!=null and company
Code!=''"
>
ou.`code` = #{companyCode}
<if
test=
"
bizOrgCode!=null and bizOrg
Code!=''"
>
wc.`biz_org_code` like concat(#{bizOrgCode}, '%')
</if>
</where>
GROUP BY
...
...
@@ -2849,11 +2844,10 @@
wl_equipment_specific es
LEFT JOIN wl_equipment_detail ed ON es.equipment_detail_id = ed.id
LEFT JOIN wl_equipment e ON e.id = ed.equipment_id
LEFT JOIN cb_org_usr ou ON ou.biz_org_code = es.biz_org_code
WHERE
e.is_iot = 1
<if
test=
"
companyCode != null and company
Code != ''"
>
and
ou.`code` = #{companyCode}
<if
test=
"
bizOrgCode != null and bizOrg
Code != ''"
>
and
es.`biz_org_code` like concat(#{bizOrgCode}, '%')
</if>
) AS total,
(
...
...
@@ -2868,8 +2862,8 @@
<if
test=
"alarmType != null and alarmType != ''"
>
AND esa.type = #{alarmType}
</if>
<if
test=
"
companyCode != null and company
Code != ''"
>
and ou.`
code` = #{companyCode}
<if
test=
"
bizOrgCode != null and bizOrg
Code != ''"
>
and ou.`
biz_org_code` like concat(#{bizOrgCode}, '%')
</if>
) AS alarmEquipTotalNum,
(
...
...
@@ -2885,8 +2879,8 @@
<if
test=
"alarmType != null and alarmType != ''"
>
AND esa.type = #{alarmType}
</if>
<if
test=
"
companyCode != null and company
Code != ''"
>
and ou.`
code` = #{companyCode}
<if
test=
"
bizOrgCode != null and bizOrg
Code != ''"
>
and ou.`
biz_org_code` like concat(#{bizOrgCode}, '%')
</if>
) AS notReturned
) temp
...
...
@@ -3500,4 +3494,13 @@
</where>
</select>
<select
id=
"queryByCompanyCode"
resultType=
"java.lang.String"
>
SELECT biz_org_code
FROM cb_org_usr
WHERE is_delete = 0
<if
test=
"companyCode != null and companyCode != ''"
>
AND code = #{companyCode}
</if>
</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