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
4904334b
Commit
4904334b
authored
Jan 07, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of 172.16.10.76:moa/amos-boot-biz into developer
parents
80ff3eaf
c6cc6845
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
274 additions
and
89 deletions
+274
-89
DutyPersonShiftMapper.java
.../boot/module/common/api/mapper/DutyPersonShiftMapper.java
+5
-2
IDutyCommonService.java
...os/boot/module/common/api/service/IDutyCommonService.java
+8
-1
DutyPersonShiftMapper.xml
...n-api/src/main/resources/mapper/DutyPersonShiftMapper.xml
+17
-2
BuildingVideoVO.java
...yeejoin/equipmanage/common/entity/vo/BuildingVideoVO.java
+2
-1
DutyCarController.java
.../boot/module/common/biz/controller/DutyCarController.java
+14
-0
DutyFireFightingController.java
...ule/common/biz/controller/DutyFireFightingController.java
+14
-1
DutyFirstAidController.java
.../module/common/biz/controller/DutyFirstAidController.java
+9
-1
DutyPersonController.java
...ot/module/common/biz/controller/DutyPersonController.java
+14
-1
DutyCarServiceImpl.java
...ot/module/common/biz/service/impl/DutyCarServiceImpl.java
+13
-35
DutyCommonServiceImpl.java
...module/common/biz/service/impl/DutyCommonServiceImpl.java
+123
-0
DutyFireFightingServiceImpl.java
.../common/biz/service/impl/DutyFireFightingServiceImpl.java
+12
-15
DutyFirstAidServiceImpl.java
...dule/common/biz/service/impl/DutyFirstAidServiceImpl.java
+13
-15
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+4
-0
LatentDangerServiceImpl.java
...danger/business/service/impl/LatentDangerServiceImpl.java
+7
-4
HiddenDangerServiceImpl.java
...vision/business/service/impl/HiddenDangerServiceImpl.java
+7
-11
mt-1.0.0.xml
...-maintenance/src/main/resources/db/changelog/mt-1.0.0.xml
+12
-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/DutyPersonShiftMapper.java
View file @
4904334b
...
...
@@ -60,8 +60,11 @@ public interface DutyPersonShiftMapper extends BaseMapper<DutyPersonShift> {
@Param
(
"appKey"
)
String
appKey
,
@Param
(
"groupCode"
)
String
groupCode
);
List
<
Map
<
String
,
Object
>>
newStationViewData
(
@Param
(
"dutyDate"
)
String
dutyDate
,
@Param
(
"groupCode"
)
String
groupCode
);
/**
* 利用mysql 生成连续时间区间
*
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/IDutyCommonService.java
View file @
4904334b
...
...
@@ -30,7 +30,14 @@ public interface IDutyCommonService {
* @return ResponseModel
*/
List
<
Map
<
String
,
Object
>>
statisticsDay
(
String
beginDate
,
String
endDate
)
throws
ParseException
;
/**
* 新值班月视图
* @param beginDate
* @param endDate
* @return
* @throws ParseException
*/
List
<
Map
<
String
,
Object
>>
newStatisticsDay
(
String
beginDate
,
String
endDate
)
throws
ParseException
;
/**
* 不分页查询
*
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/DutyPersonShiftMapper.xml
View file @
4904334b
...
...
@@ -87,6 +87,21 @@
and i.group_code =#{groupCode}
GROUP BY i.field_value
</select>
<select
id=
"newStationViewData"
resultType=
"java.util.Map"
>
select
i.field_value as postTypeName,
count(1) as total
from
cb_duty_person_shift s,
cb_dynamic_form_instance i
where
s.instance_id = i.instance_id
and i.field_code = 'postTypeName'
AND s.duty_date = #{dutyDate}
AND s.shift_id is not null
and i.group_code =#{groupCode}
GROUP BY i.field_value
</select>
<select
id=
"genRangeDate"
resultType=
"map"
>
SELECT
DATE_FORMAT(DATE( DATE_ADD( #{beginDate}, INTERVAL @s DAY )),'%Y-%m-%d') AS date,
...
...
@@ -288,7 +303,7 @@ FROM
GROUP BY
cd.instance_id
) ss
LEFT JOIN (
<!--
LEFT JOIN (
SELECT
dp.instance_id,
ds.`name`
...
...
@@ -301,7 +316,7 @@ LEFT JOIN (
AND NAME IS NOT NULL
) cds ON ss.instance_id = cds.instance_id
WHERE
cds.NAME =#{duty}
cds.NAME =#{duty}
-->
GROUP BY
ss.postTypeName
</select>
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/vo/BuildingVideoVO.java
View file @
4904334b
...
...
@@ -43,5 +43,6 @@ public class BuildingVideoVO {
@ApiModelProperty
(
"详细地址"
)
private
String
presetPosition
;
@ApiModelProperty
(
"视频转码"
)
private
String
vedioFormat
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/DutyCarController.java
View file @
4904334b
...
...
@@ -94,6 +94,20 @@ public class DutyCarController extends BaseController {
}
/**
* 值班月视图
*
* @return ResponseModel
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
"/new-statistics-day"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"新值班月视图"
,
notes
=
"新值班月视图"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
newDutyDetail
(
@ApiParam
(
value
=
"开始日期"
,
required
=
true
)
@RequestParam
String
beginDate
,
@ApiParam
(
value
=
"结束日期"
,
required
=
true
)
@RequestParam
String
endDate
)
throws
ParseException
{
return
ResponseHelper
.
buildResponse
(
iDutyCarService
.
newStatisticsDay
(
beginDate
,
endDate
));
}
/**
* 调班
*
* @return ResponseModel
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/DutyFireFightingController.java
View file @
4904334b
...
...
@@ -92,7 +92,20 @@ public class DutyFireFightingController extends BaseController{
)
throws
ParseException
{
return
ResponseHelper
.
buildResponse
(
iDutyFireFightingService
.
statisticsDay
(
beginDate
,
endDate
));
}
/**
* 新值班月视图
*
* @return ResponseModel
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
"/new-statistics-day"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"新值班月视图"
,
notes
=
"新值班月视图"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
newDutyDetail
(
@ApiParam
(
value
=
"开始日期"
,
required
=
true
)
@RequestParam
String
beginDate
,
@ApiParam
(
value
=
"结束日期"
,
required
=
true
)
@RequestParam
String
endDate
)
throws
ParseException
{
return
ResponseHelper
.
buildResponse
(
iDutyFireFightingService
.
newStatisticsDay
(
beginDate
,
endDate
));
}
/**
* 调班
*
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/DutyFirstAidController.java
View file @
4904334b
...
...
@@ -84,7 +84,15 @@ public class DutyFirstAidController extends BaseController{
)
throws
ParseException
{
return
ResponseHelper
.
buildResponse
(
iDutyFirstAidService
.
statisticsDay
(
beginDate
,
endDate
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
"/new-statistics-day"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"新值班月视图"
,
notes
=
"新值班月视图"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
newDutyDetail
(
@ApiParam
(
value
=
"开始日期"
,
required
=
true
)
@RequestParam
String
beginDate
,
@ApiParam
(
value
=
"结束日期"
,
required
=
true
)
@RequestParam
String
endDate
)
throws
ParseException
{
return
ResponseHelper
.
buildResponse
(
iDutyFirstAidService
.
newStatisticsDay
(
beginDate
,
endDate
));
}
/**
* 调班
*
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/DutyPersonController.java
View file @
4904334b
...
...
@@ -93,7 +93,20 @@ public class DutyPersonController extends BaseController {
)
throws
ParseException
{
return
ResponseHelper
.
buildResponse
(
iDutyPersonService
.
statisticsDay
(
beginDate
,
endDate
));
}
/**
* 值班月视图
*
* @return ResponseModel
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
"/new-duty-detail"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"新值班月视图"
,
notes
=
"新值班月视图"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
newDutyDetail
(
@ApiParam
(
value
=
"开始日期"
,
required
=
true
)
@RequestParam
String
beginDate
,
@ApiParam
(
value
=
"结束日期"
,
required
=
true
)
@RequestParam
String
endDate
)
throws
ParseException
{
return
ResponseHelper
.
buildResponse
(
iDutyPersonService
.
newStatisticsDay
(
beginDate
,
endDate
));
}
/**
* 调班
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/DutyCarServiceImpl.java
View file @
4904334b
...
...
@@ -170,21 +170,23 @@ public class DutyCarServiceImpl extends DutyCommonServiceImpl implements IDutyCa
if
(
StringUtils
.
isNotBlank
(
instanceId
))
{
String
[]
instanceIds
=
instanceId
.
split
(
","
);
List
<
Map
<
String
,
Object
>>
dutyList
=
dutyPersonShiftMapper
.
getDutyForSpecifyDate
(
dutyDay
);
if
(
dutyList
!=
null
&&
dutyList
.
size
()>
0
)
{
for
(
Map
<
String
,
Object
>
dutyDetail
:
dutyList
)
{
if
(!
dutyDetail
.
containsKey
(
"name"
))
{
continue
;
}
//
List<Map<String, Object>> dutyList = dutyPersonShiftMapper.getDutyForSpecifyDate(dutyDay);
//
if(dutyList!=null && dutyList.size()>0) {
//
for (Map<String, Object> dutyDetail : dutyList) {
//
if(!dutyDetail.containsKey("name")) {
//
continue;
//
}
// 获取当前装备ID下的排版数据
List
<
Map
<
String
,
Object
>>
specifyDateList
=
dutyPersonShiftMapper
.
getPositionStaffDutyForSpecifyDate
(
dutyDay
,
this
.
getGroupCode
(),
instanceIds
,
dutyDetail
.
get
(
"name"
).
toString
()
);
this
.
getGroupCode
(),
instanceIds
,
null
);
if
(
specifyDateList
==
null
||
specifyDateList
.
size
()
<
1
||
specifyDateList
.
get
(
0
)==
null
)
{
continue
;
}
LinkedHashMap
<
String
,
Object
>
infoMap_1
=
new
LinkedHashMap
<
String
,
Object
>();
infoMap_1
.
put
(
dutyDetail
.
get
(
"name"
).
toString
(),
""
);
resultList
.
add
(
infoMap_1
);
//取消掉班次的显示---2022-01-16 by chenhao ---start
//infoMap_1.put(dutyDetail.get("name").toString(), "");
//resultList.add(infoMap_1);
//取消掉班次的显示---2022-01-16 by chenhao ---end
for
(
Map
<
String
,
Object
>
specify
:
specifyDateList
)
{
LinkedHashMap
<
String
,
Object
>
infoMap_2
=
new
LinkedHashMap
<
String
,
Object
>();
// infoMap_2.put(specify.get("postTypeName").toString(),specify.get("userName").toString());
...
...
@@ -194,32 +196,8 @@ public class DutyCarServiceImpl extends DutyCommonServiceImpl implements IDutyCa
resultList
.
add
(
infoMap_2
);
}
}
}
}
// 获取当前装备ID下的排版数据
// List<Map<String, Object>> specifyDateList = dutyPersonShiftMapper.getSpecifyDateList(dutyDay,
// this.getGroupCode(), instanceIds,null);
// for (Map<String, Object> specify : specifyDateList) {
//
// if(!specify.containsKey("name") || specify.get("name").toString()==null) {
// continue;
// }
// LinkedHashMap<String, Object> infoMap_1 =new LinkedHashMap<String, Object>();
// infoMap_1.put(specify.get("name").toString(), "");
// resultList.add(infoMap_1);
// Map<String, Object> equipmentOperatorMap = dutyPersonShiftMapper.getEquipmentOperator(dutyDay,
// this.getGroupCode(), instanceIds, "消防车驾驶员", specify.get("name").toString());
// String operator =null;
// if (equipmentOperatorMap!=null && equipmentOperatorMap.containsKey("userName")) {
// operator = equipmentOperatorMap.get("equipmentOperatorMap").toString();
// }
// LinkedHashMap<String, Object> infoMap_2 =new LinkedHashMap<String, Object>();
// infoMap_2.put("驾驶员", operator!=null?operator:"");
// resultList.add(infoMap_2);
// LinkedHashMap<String, Object> infoMap_3 =new LinkedHashMap<String, Object>();
// infoMap_3.put("战斗员",specify.get("value").toString());
// resultList.add(infoMap_3);
// }
// }
//}
}
detailList
.
add
(
resultList
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/DutyCommonServiceImpl.java
View file @
4904334b
...
...
@@ -46,6 +46,7 @@ import com.yeejoin.amos.boot.module.common.api.entity.DynamicFormColumn;
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.enums.DutyViewTypeEnum
;
import
com.yeejoin.amos.boot.module.common.api.mapper.DutyPersonShiftMapper
;
import
com.yeejoin.amos.boot.module.common.api.service.IDutyCommonService
;
/**
...
...
@@ -75,6 +76,9 @@ public class DutyCommonServiceImpl implements IDutyCommonService {
@Autowired
OrgUsrServiceImpl
orgUsrService
;
@Autowired
DutyPersonShiftMapper
dutyPersonShiftMapper
;
/**
* 每天单个班次执勤人数全部小于等于3人
...
...
@@ -213,7 +217,126 @@ public class DutyCommonServiceImpl implements IDutyCommonService {
return
resultMap
;
/*bug2468 值班排班,日历视图单班次执勤人数满足≤3且班次≤2时,值班显示方式错误 陈召 结束*/
}
public
List
<
Map
<
String
,
Object
>>
newStatisticsDay
(
String
beginDate
,
String
endDate
)
throws
ParseException
{
Date
dateBegin
=
DateUtils
.
dateParse
(
beginDate
,
DateUtils
.
DATE_PATTERN
);
String
timeStart
=
DateUtils
.
dateTimeToDateString
(
dateBegin
);
Date
dateEnd
=
DateUtils
.
dateParse
(
endDate
,
DateUtils
.
DATE_PATTERN
);
String
timeEnd
=
DateUtils
.
dateTimeToDateString
(
dateEnd
);
List
<
String
>
betweenDate
=
getBetweenDate
(
timeStart
,
timeEnd
);
//拿到每一天的视图展示
String
beginTime
=
null
;
String
endTime
=
null
;
List
<
Map
<
String
,
Object
>>
viewTypeResult
=
new
ArrayList
<>();
for
(
String
time
:
betweenDate
)
{
beginTime
=
time
+
" 00:00:00"
;
endTime
=
time
+
" 23:59:59"
;
Map
<
String
,
Object
>
viewTypeMap
=
new
HashMap
<>();
viewTypeMap
.
put
(
"date"
,
time
);
viewTypeResult
.
add
(
viewTypeMap
);
}
List
<
Map
<
String
,
Object
>>
rangeDate
=
dutyPersonShiftService
.
getBaseMapper
().
genRangeDate
(
beginDate
,
endDate
);
List
<
Map
<
String
,
Object
>>
resultMap
=
new
ArrayList
<>();
for
(
Map
<
String
,
Object
>
stringObjectMap
:
viewTypeResult
)
{
for
(
Map
<
String
,
Object
>
objectMap
:
rangeDate
)
{
if
(
stringObjectMap
.
get
(
"date"
).
equals
(
objectMap
.
get
(
"date"
))){
Map
<
String
,
Object
>
result
=
new
LinkedHashMap
<>();
result
.
put
(
"key"
,
objectMap
.
get
(
"date"
));
String
dateString
=
objectMap
.
get
(
"date"
).
toString
();
if
(
this
.
getGroupCode
().
equals
(
"dutyPerson"
))
{
result
.
put
(
"data"
,
getPersonPostTypeNameAndCount
(
dateString
));
}
else
if
(
this
.
getGroupCode
().
equals
(
"dutyCar"
))
{
result
.
put
(
"data"
,
getCarPostTypeNameAndCount
(
dateString
));
}
else
if
(
this
.
getGroupCode
().
equals
(
"dutyFireFighting"
))
{
result
.
put
(
"data"
,
getFireFightingPostTypeNameAndCount
(
dateString
));
}
else
if
(
this
.
getGroupCode
().
equals
(
"dutyFirstAid"
))
{
result
.
put
(
"data"
,
getFirstAidPostTypeNameAndCount
(
dateString
));
}
resultMap
.
add
(
result
);
}
}
}
return
resultMap
;
}
/**
* 排班值班人员的统计类型为:
* 岗位: 岗位人员数量
* @param dutyDate
* @return
*/
public
Object
getPersonPostTypeNameAndCount
(
String
dutyDate
)
{
return
dutyPersonShiftService
.
getBaseMapper
().
newStationViewData
(
dutyDate
,
this
.
getGroupCode
());
}
/**
* 车辆值班人员左侧的统计: 只有几辆车
* @param dutyDate
* @return
*/
public
Object
getCarPostTypeNameAndCount
(
String
dutyDate
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
int
station
=
0
;
int
person
=
0
;
List
<
Map
<
String
,
Object
>>
equipmentList
=
dutyPersonShiftMapper
.
getEquipmentForSpecifyDate
(
dutyDate
,
this
.
getGroupCode
(),
"carId"
,
"carName"
,
"teamName"
,
"result.carId"
);
if
(
equipmentList
==
null
||
equipmentList
.
size
()<
1
||
equipmentList
.
get
(
0
)==
null
)
{
station
=
0
;
}
else
{
station
=
equipmentList
.
size
();
}
map
.
put
(
"station"
,
station
);
List
<
Map
<
String
,
Object
>>
list
=
dutyPersonShiftService
.
getBaseMapper
().
newStationViewData
(
dutyDate
,
this
.
getGroupCode
());
for
(
Map
<
String
,
Object
>
map2
:
list
)
{
person
=
person
+
Integer
.
parseInt
(
map2
.
get
(
"total"
).
toString
());
}
map
.
put
(
"person"
,
person
);
return
map
;
}
public
Object
getFireFightingPostTypeNameAndCount
(
String
dutyDate
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
int
station
=
0
;
int
person
=
0
;
List
<
Map
<
String
,
Object
>>
equipmentList
=
dutyPersonShiftMapper
.
getEquipmentForSpecifyDate
(
dutyDate
,
this
.
getGroupCode
(),
"fireFightingId"
,
"fireFighting"
,
"teamName"
,
"result.fireFightingId"
);
if
(
equipmentList
==
null
||
equipmentList
.
size
()<
1
||
equipmentList
.
get
(
0
)==
null
)
{
station
=
0
;
}
else
{
station
=
equipmentList
.
size
();
}
map
.
put
(
"station"
,
station
);
List
<
Map
<
String
,
Object
>>
list
=
dutyPersonShiftService
.
getBaseMapper
().
newStationViewData
(
dutyDate
,
this
.
getGroupCode
());
for
(
Map
<
String
,
Object
>
map2
:
list
)
{
person
=
person
+
Integer
.
parseInt
(
map2
.
get
(
"total"
).
toString
());
}
map
.
put
(
"person"
,
person
);
return
map
;
}
public
Object
getFirstAidPostTypeNameAndCount
(
String
dutyDate
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
int
station
=
0
;
int
person
=
0
;
List
<
Map
<
String
,
Object
>>
equipmentList
=
dutyPersonShiftMapper
.
getEquipmentForSpecifyDate
(
dutyDate
,
this
.
getGroupCode
(),
"firstAidId"
,
"firstAid"
,
"teamName"
,
"result.firstAidId"
);
if
(
equipmentList
==
null
||
equipmentList
.
size
()<
1
||
equipmentList
.
get
(
0
)==
null
)
{
station
=
0
;
}
else
{
station
=
equipmentList
.
size
();
}
map
.
put
(
"station"
,
station
);
List
<
Map
<
String
,
Object
>>
list
=
dutyPersonShiftService
.
getBaseMapper
().
newStationViewData
(
dutyDate
,
this
.
getGroupCode
());
for
(
Map
<
String
,
Object
>
map2
:
list
)
{
person
=
person
+
Integer
.
parseInt
(
map2
.
get
(
"total"
).
toString
());
}
map
.
put
(
"person"
,
person
);
return
map
;
}
private
Object
buildViewData
(
DutyViewTypeEnum
viewTypeEnum
,
String
dutyDate
,
String
appKey
)
{
List
<
Map
<
String
,
Object
>>
result
=
new
ArrayList
<>();
switch
(
viewTypeEnum
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/DutyFireFightingServiceImpl.java
View file @
4904334b
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
import
static
org
.
hamcrest
.
CoreMatchers
.
nullValue
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.LinkedHashMap
;
...
...
@@ -15,7 +13,6 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
com.itextpdf.text.pdf.PdfStructTreeController.returnType
;
import
com.yeejoin.amos.boot.module.common.api.dto.DutyFireFightingDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.DynamicFormInstanceDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.FireStationDto
;
...
...
@@ -85,29 +82,29 @@ public class DutyFireFightingServiceImpl extends DutyCommonServiceImpl implement
if
(
StringUtils
.
isNotBlank
(
instanceId
))
{
String
[]
instanceIds
=
instanceId
.
split
(
","
);
List
<
Map
<
String
,
Object
>>
dutyList
=
dutyPersonShiftMapper
.
getDutyForSpecifyDate
(
dutyDay
);
if
(
dutyList
!=
null
&&
dutyList
.
size
()>
0
)
{
for
(
Map
<
String
,
Object
>
dutyDetail
:
dutyList
)
{
if
(!
dutyDetail
.
containsKey
(
"name"
))
{
continue
;
}
//
List<Map<String, Object>> dutyList = dutyPersonShiftMapper.getDutyForSpecifyDate(dutyDay);
//
if(dutyList!=null && dutyList.size()>0) {
//
for (Map<String, Object> dutyDetail : dutyList) {
//
if(!dutyDetail.containsKey("name")) {
//
continue;
//
}
// 获取当前装备ID下的排版数据
List
<
Map
<
String
,
Object
>>
specifyDateList
=
dutyPersonShiftMapper
.
getPositionStaffDutyForSpecifyDate
(
dutyDay
,
this
.
getGroupCode
(),
instanceIds
,
dutyDetail
.
get
(
"name"
).
toString
()
);
this
.
getGroupCode
(),
instanceIds
,
null
);
if
(
specifyDateList
==
null
||
specifyDateList
.
size
()
<
1
||
specifyDateList
.
get
(
0
)==
null
)
{
continue
;
}
LinkedHashMap
<
String
,
Object
>
infoMap_1
=
new
LinkedHashMap
<
String
,
Object
>();
infoMap_1
.
put
(
dutyDetail
.
get
(
"name"
).
toString
(),
""
);
resultList
.
add
(
infoMap_1
);
//
LinkedHashMap<String, Object> infoMap_1 =new LinkedHashMap<String, Object>();
//
infoMap_1.put(dutyDetail.get("name").toString(), "");
//
resultList.add(infoMap_1);
for
(
Map
<
String
,
Object
>
specify
:
specifyDateList
)
{
LinkedHashMap
<
String
,
Object
>
infoMap_2
=
new
LinkedHashMap
<
String
,
Object
>();
if
(
specify
.
containsKey
(
"postTypeName"
)&&
specify
.
get
(
"postTypeName"
)!=
null
&&
specify
.
containsKey
(
"userName"
)&&
specify
.
get
(
"userName"
)!=
null
)
{
infoMap_2
.
put
(
specify
.
get
(
"postTypeName"
).
toString
(),
specify
.
get
(
"userName"
).
toString
());
resultList
.
add
(
infoMap_2
);
}
}
}
//
}
//
}
}
}
detailList
.
add
(
resultList
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/DutyFirstAidServiceImpl.java
View file @
4904334b
...
...
@@ -18,8 +18,6 @@ import com.yeejoin.amos.boot.module.common.api.entity.OrgUsr;
import
com.yeejoin.amos.boot.module.common.api.mapper.DutyPersonShiftMapper
;
import
com.yeejoin.amos.boot.module.common.api.service.IDutyFirstAidService
;
import
ch.qos.logback.core.joran.conditional.IfAction
;
@Service
public
class
DutyFirstAidServiceImpl
extends
DutyCommonServiceImpl
implements
IDutyFirstAidService
{
...
...
@@ -86,22 +84,22 @@ public class DutyFirstAidServiceImpl extends DutyCommonServiceImpl implements ID
if
(
StringUtils
.
isNotBlank
(
instanceId
))
{
String
[]
instanceIds
=
instanceId
.
split
(
","
);
List
<
Map
<
String
,
Object
>>
dutyList
=
dutyPersonShiftMapper
.
getDutyForSpecifyDate
(
dutyDay
);
if
(
dutyList
!=
null
&&
dutyList
.
size
()
>
0
)
{
for
(
Map
<
String
,
Object
>
dutyDetail
:
dutyList
)
{
if
(!
dutyDetail
.
containsKey
(
"name"
))
{
continue
;
}
//
List<Map<String, Object>> dutyList = dutyPersonShiftMapper.getDutyForSpecifyDate(dutyDay);
//
if (dutyList != null && dutyList.size() > 0) {
//
for (Map<String, Object> dutyDetail : dutyList) {
//
if (!dutyDetail.containsKey("name")) {
//
continue;
//
}
// 获取当前装备ID下的排版数据
List
<
Map
<
String
,
Object
>>
specifyDateList
=
dutyPersonShiftMapper
.
getPositionStaffDutyForSpecifyDate
(
dutyDay
,
this
.
getGroupCode
(),
instanceIds
,
dutyDetail
.
get
(
"name"
).
toString
()
);
null
);
if
(
specifyDateList
==
null
||
specifyDateList
.
size
()
<
1
||
specifyDateList
.
get
(
0
)
==
null
)
{
continue
;
}
LinkedHashMap
<
String
,
Object
>
infoMap_1
=
new
LinkedHashMap
<
String
,
Object
>();
infoMap_1
.
put
(
dutyDetail
.
get
(
"name"
).
toString
(),
""
);
resultList
.
add
(
infoMap_1
);
//
LinkedHashMap<String, Object> infoMap_1 = new LinkedHashMap<String, Object>();
//
infoMap_1.put(dutyDetail.get("name").toString(), "");
//
resultList.add(infoMap_1);
for
(
Map
<
String
,
Object
>
specify
:
specifyDateList
)
{
LinkedHashMap
<
String
,
Object
>
infoMap_2
=
new
LinkedHashMap
<
String
,
Object
>();
// infoMap_2.put(specify.get("postTypeName").toString(), specify.get("userName").toString());
...
...
@@ -110,9 +108,9 @@ public class DutyFirstAidServiceImpl extends DutyCommonServiceImpl implements ID
infoMap_2
.
put
(
specify
.
get
(
"postTypeName"
).
toString
(),
specify
.
get
(
"userName"
).
toString
());
resultList
.
add
(
infoMap_2
);
}
}
}
//
}
//
//
}
}
}
detailList
.
add
(
resultList
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
4904334b
...
...
@@ -115,6 +115,9 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
@Value
(
"${systemctl.sync.switch}"
)
private
Boolean
syncSwitch
;
@Value
(
"${window.vedioFormat}"
)
private
String
vedioFormat
;
@Autowired
private
SourceSceneMapper
sourceSceneMapper
;
...
...
@@ -763,6 +766,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
x
.
setLocation
(
x
.
getAddress
());
}
}
x
.
setVedioFormat
(
vedioFormat
);
x
.
setUrl
(
videoService
.
getVideoUrl
(
x
.
getName
(),
x
.
getPresetPosition
(),
x
.
getUrl
(),
x
.
getCode
()));
});
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/service/impl/LatentDangerServiceImpl.java
View file @
4904334b
...
...
@@ -403,13 +403,15 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
record
.
setExecuteUserName
(
userName
);
record
.
setExecuteDepartmentId
(
departmentId
);
record
.
setExecuteDepartmentName
(
departmentName
);
record
.
setFlowJson
(
flowJson
!=
null
?
flowJson
.
toJSONString
()
:
null
);
record
.
setFlowTaskName
(
taskName
);
record
.
setDangerId
(
dangerId
);
record
.
setExecuteState
(
executeState
);
record
.
setExecuteResult
(
executeResult
);
record
.
setActionFlag
(
dangerState
);
record
.
setRemark
(
remark
);
if
(!
ValidationUtil
.
isEmpty
(
flowJson
))
{
record
.
setFlowJson
(
flowJson
.
toJSONString
());
record
.
setRemark
(
ValidationUtil
.
isEmpty
(
remark
)
?
flowJson
.
getString
(
"remark"
)
:
remark
);
}
record
.
setUpdateDate
(
new
Date
());
latentDangerFlowRecordService
.
saveOrUpdate
(
record
);
return
record
;
...
...
@@ -1148,13 +1150,14 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
ReginParams
reginParams
)
throws
Exception
{
// 隐患的巡查信息
JSONObject
bizInfo
=
latentDanger
.
getBizInfo
();
if
(
ValidationUtil
.
isEmpty
(
bizInfo
)
||
ValidationUtil
.
isEmpty
(
bizInfo
.
get
(
"planType"
))
||
ValidationUtil
.
isEmpty
(
bizInfo
.
get
(
"
accompanyingUser
Id"
)))
{
if
(
ValidationUtil
.
isEmpty
(
bizInfo
)
||
ValidationUtil
.
isEmpty
(
bizInfo
.
get
(
"planType"
))
||
ValidationUtil
.
isEmpty
(
bizInfo
.
get
(
"
leadPeople
Id"
)))
{
executeSubmitDto
.
setIsOk
(
false
);
executeSubmitDto
.
setMsg
(
"业务信息错误"
);
return
executeSubmitDto
;
}
String
planType
=
bizInfo
.
get
(
"planType"
).
toString
();
AgencyUserModel
userModel
=
jcsFeignClient
.
getAmosIdByUserId
((
String
)
bizInfo
.
get
(
"accompanyingUserId"
)).
getResult
();
// 获取检查组长
AgencyUserModel
userModel
=
jcsFeignClient
.
getAmosIdByUserId
((
String
)
bizInfo
.
get
(
"leadPeopleId"
)).
getResult
();
if
(
ValidationUtil
.
isEmpty
(
userModel
))
{
executeSubmitDto
.
setIsOk
(
false
);
executeSubmitDto
.
setMsg
(
"业务信息错误"
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/HiddenDangerServiceImpl.java
View file @
4904334b
...
...
@@ -288,10 +288,8 @@ public class HiddenDangerServiceImpl implements IHiddenDangerService {
result
.
put
(
"bizId"
,
hiddenDangerDto
.
getCheckInputId
());
result
.
put
(
"bizName"
,
hiddenDangerDto
.
getInputItemName
());
result
.
put
(
"routeId"
,
plan
.
getRouteId
());
result
.
put
(
"accompanyingUserId"
,
plan
.
getLeadPeopleIds
());
// 检查陪同人id
result
.
put
(
"accompanyingUserName"
,
plan
.
getLeadPeopleNames
());
// 检查陪同人名称
result
.
put
(
"checkUnitId"
,
plan
.
getCheckUnitId
());
result
.
put
(
"checkUnitName"
,
plan
.
getCheckUnitName
());
result
.
put
(
"checkUnitId"
,
plan
.
getCheckUnitId
());
// 检查人所在单位id逗号隔开
result
.
put
(
"checkUnitName"
,
plan
.
getCheckUnitName
());
// 检查人所在单位名称逗号隔开
result
.
put
(
"leadPeopleId"
,
plan
.
getLeadPeopleIds
());
// 牵头人id
result
.
put
(
"leadPeopleName"
,
plan
.
getLeadPeopleNames
());
// 牵头人名称
result
.
put
(
"makerUserId"
,
plan
.
getMakerUserId
());
// 计划制定人id
...
...
@@ -313,13 +311,11 @@ public class HiddenDangerServiceImpl implements IHiddenDangerService {
return
;
}
List
<
CheckShot
>
shotList
=
iCheckShotDao
.
findAllByCheckIdAndCheckInputId
(
checkInput
.
getCheckId
(),
checkInput
.
getId
());
result
.
put
(
"checkUserId"
,
checkInput
.
getUserId
());
result
.
put
(
"checkUserName"
,
checkInput
.
getUserName
());
result
.
put
(
"accompanyUserId"
,
checkInput
.
getAccompanyUserId
());
result
.
put
(
"accompanyUserName"
,
checkInput
.
getAccompanyUserName
());
result
.
put
(
"accompanyingUserId"
,
checkInput
.
getAccompanyUserId
());
result
.
put
(
"accompanyingUserName"
,
checkInput
.
getAccompanyUserName
());
result
.
put
(
"planExecuteTime"
,
checkInput
.
getCreateDate
());
result
.
put
(
"checkUserId"
,
checkInput
.
getUserId
());
// 任务执行人id
result
.
put
(
"checkUserName"
,
checkInput
.
getUserName
());
// 任务执行人名称
result
.
put
(
"accompanyingUserId"
,
checkInput
.
getAccompanyUserId
());
// 检查陪同人id
result
.
put
(
"accompanyingUserName"
,
checkInput
.
getAccompanyUserName
());
// 检查陪同人名称
result
.
put
(
"planExecuteTime"
,
checkInput
.
getCreateDate
());
// 计划任务执行时间
result
.
put
(
"checkPhotoUrl"
,
shotList
.
stream
().
map
(
CheckShot:
:
getPhotoData
).
collect
(
Collectors
.
joining
(
","
)));
}
}
amos-boot-system-maintenance/src/main/resources/db/changelog/mt-1.0.0.xml
View file @
4904334b
...
...
@@ -289,4 +289,15 @@
ALTER TABLE p_check add COLUMN `owner_name` varchar(255) DEFAULT NULL COMMENT '业主单位名称' after `owner_id`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1641519644827-01"
>
<preConditions
onFail=
"MARK_RAN"
>
<columnExists
tableName=
"p_check"
columnName=
"point_no"
/>
</preConditions>
<comment>
p_check MODIFY `point_no`
</comment>
<sql>
alter table p_check MODIFY `point_no` varchar(100) DEFAULT NULL COMMENT '编号';
</sql>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
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