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
84b7b527
Commit
84b7b527
authored
Oct 18, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/moa/amos-boot-biz
into developer
parents
b31c4b02
723be421
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
35 deletions
+77
-35
DutyPersonShiftMapper.java
.../boot/module/common/api/mapper/DutyPersonShiftMapper.java
+2
-2
DutyPersonShiftMapper.xml
...n-api/src/main/resources/mapper/DutyPersonShiftMapper.xml
+10
-10
WaterResourceController.java
...module/common/biz/controller/WaterResourceController.java
+49
-21
DutyFirstAidServiceImpl.java
...dule/common/biz/service/impl/DutyFirstAidServiceImpl.java
+1
-1
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+1
-1
FireTeamServiceImpl.java
...boot/module/jcs/biz/service/impl/FireTeamServiceImpl.java
+14
-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 @
84b7b527
...
@@ -129,7 +129,7 @@ public interface DutyPersonShiftMapper extends BaseMapper<DutyPersonShift> {
...
@@ -129,7 +129,7 @@ public interface DutyPersonShiftMapper extends BaseMapper<DutyPersonShift> {
*/
*/
List
<
Map
<
String
,
Object
>>
getDutyForSpecifyDate
(
String
duty
);
List
<
Map
<
String
,
Object
>>
getDutyForSpecifyDate
(
String
duty
);
Map
<
String
,
Object
>
getFireTeamBySequenceNbr
(
L
ong
sequenceNbr
);
Map
<
String
,
Object
>
getFireTeamBySequenceNbr
(
l
ong
sequenceNbr
);
List
<
Map
<
String
,
Object
>>
getFirstAidForTypeCodeAndCompanyId
(
L
ong
company
);
List
<
Map
<
String
,
Object
>>
getFirstAidForTypeCodeAndCompanyId
(
l
ong
company
);
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/DutyPersonShiftMapper.xml
View file @
84b7b527
...
@@ -321,24 +321,24 @@ WHERE
...
@@ -321,24 +321,24 @@ WHERE
</select>
</select>
<select
id=
'getFirstAidForTypeCodeAndCompanyId'
resultType=
"map"
>
>
<select
id=
'getFirstAidForTypeCodeAndCompanyId'
resultType=
"map"
>
SELECT
SELECT
name,
cft.
name,
sequence_nbr
cft.
sequence_nbr
FROM
FROM
cb_fire_team
cb_fire_team
cft
WHERE
WHERE
company = #{company}
cft.is_delete = 0
AND is_delete = 0
AND cft.type_code = (
AND type_code = (
SELECT
SELECT
CODE
CODE
FROM
FROM
cb_data_dictionary
cb_data_dictionary
cd
WHERE
WHERE
`name`
= '企(事)业单位医疗救援队(站)'
cd.name
= '企(事)业单位医疗救援队(站)'
AND type = 'XFJGLX'
AND
cd.
type = 'XFJGLX'
)
)
AND cft.company = #{company}
</select>
</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/WaterResourceController.java
View file @
84b7b527
...
@@ -10,13 +10,7 @@ import com.yeejoin.amos.boot.biz.common.constants.BizConstant;
...
@@ -10,13 +10,7 @@ import com.yeejoin.amos.boot.biz.common.constants.BizConstant;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.EnumsUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.EnumsUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.QRCodeUtil
;
import
com.yeejoin.amos.boot.biz.common.utils.QRCodeUtil
;
import
com.yeejoin.amos.boot.module.common.api.dto.WaterResourceCraneDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.*
;
import
com.yeejoin.amos.boot.module.common.api.dto.WaterResourceDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.WaterResourceHydrantDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.WaterResourceIotDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.WaterResourceNaturalDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.WaterResourcePoolDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.WaterResourceTypeDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.WaterResource
;
import
com.yeejoin.amos.boot.module.common.api.entity.WaterResource
;
import
com.yeejoin.amos.boot.module.common.api.entity.WaterResourceCrane
;
import
com.yeejoin.amos.boot.module.common.api.entity.WaterResourceCrane
;
import
com.yeejoin.amos.boot.module.common.api.entity.WaterResourceHydrant
;
import
com.yeejoin.amos.boot.module.common.api.entity.WaterResourceHydrant
;
...
@@ -24,12 +18,7 @@ import com.yeejoin.amos.boot.module.common.api.entity.WaterResourceIot;
...
@@ -24,12 +18,7 @@ import com.yeejoin.amos.boot.module.common.api.entity.WaterResourceIot;
import
com.yeejoin.amos.boot.module.common.api.entity.WaterResourceNatural
;
import
com.yeejoin.amos.boot.module.common.api.entity.WaterResourceNatural
;
import
com.yeejoin.amos.boot.module.common.api.entity.WaterResourcePool
;
import
com.yeejoin.amos.boot.module.common.api.entity.WaterResourcePool
;
import
com.yeejoin.amos.boot.module.common.api.enums.WaterResourceTypeEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.WaterResourceTypeEnum
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.WaterResourceCraneServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.*
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.WaterResourceHydrantServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.WaterResourceIotServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.WaterResourceNaturalServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.WaterResourcePoolServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.WaterResourceServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.beanutils.BeanMap
;
import
org.apache.commons.beanutils.BeanMap
;
...
@@ -78,6 +67,8 @@ public class WaterResourceController extends BaseController {
...
@@ -78,6 +67,8 @@ public class WaterResourceController extends BaseController {
WaterResourcePoolServiceImpl
waterResourcePoolService
;
WaterResourcePoolServiceImpl
waterResourcePoolService
;
@Autowired
@Autowired
WaterResourceIotServiceImpl
waterResourceIotService
;
WaterResourceIotServiceImpl
waterResourceIotService
;
@Autowired
SourceFileServiceImpl
sourceFileService
;
/**
/**
* 新增
* 新增
...
@@ -91,15 +82,23 @@ public class WaterResourceController extends BaseController {
...
@@ -91,15 +82,23 @@ public class WaterResourceController extends BaseController {
String
resourceType
=
model
.
getResourceType
();
String
resourceType
=
model
.
getResourceType
();
Optional
<
WaterResourceTypeEnum
>
resourceTypeEnum
=
EnumsUtils
.
getEnumObject
(
WaterResourceTypeEnum
.
class
,
Optional
<
WaterResourceTypeEnum
>
resourceTypeEnum
=
EnumsUtils
.
getEnumObject
(
WaterResourceTypeEnum
.
class
,
e
->
e
.
getCode
().
equals
(
resourceType
));
e
->
e
.
getCode
().
equals
(
resourceType
));
/*bug 2913
截取名字防止传递文件名太长随机生成文件名保存 chenzhao 2021-09-30
start*/
/*bug 2913
更换保存方式 存储到公共附件表 chenzhao 2021-10-18
start*/
List
<
Object
>
realityImgList
=
model
.
getRealityImgList
();
List
<
Object
>
realityImgList
=
model
.
getRealityImgList
();
/*
if (realityImgList != null ){
}
realityImgList.forEach(i->{
realityImgList.forEach(i->{
((Map<String, Object>) i).put("name",QRCodeUtil.generateQRCode()+"."+i.toString().substring(i.toString().lastIndexOf(".") + 1).toLowerCase());
((Map<String, Object>) i).put("name",QRCodeUtil.generateQRCode()+"."+i.toString().substring(i.toString().lastIndexOf(".") + 1).toLowerCase());
});
});*/
/*截取名字防止传递文件名太长随机生成文件名保存 chenzhao 2021-09-30 end*/
/* 更换保存方式 存储到公共附件表 chenzhao 2021-10-18 end*/
model
.
setResourceTypeName
(
resourceTypeEnum
.
get
().
getName
());
model
.
setResourceTypeName
(
resourceTypeEnum
.
get
().
getName
());
model
.
setRealityImg
(
JSONArray
.
toJSONString
(
realityImgList
));
model
.
setRealityImg
(
JSONArray
.
toJSONString
(
realityImgList
));
model
.
setOrientationImg
(
JSONArray
.
toJSONString
(
model
.
getOrientationImgList
()));
model
.
setOrientationImg
(
JSONArray
.
toJSONString
(
model
.
getOrientationImgList
()));
/*2021-09-08 前端表示前端传递的address参数已经切割过,后端无需再切割获取 陈召 屏蔽代码 97-102行*/
/*2021-09-08 前端表示前端传递的address参数已经切割过,后端无需再切割获取 陈召 屏蔽代码 97-102行*/
/* if(model.getAddress()!=null){
/* if(model.getAddress()!=null){
JSONObject address = WaterResourceServiceImpl.getLongLatFromAddress(model.getAddress());
JSONObject address = WaterResourceServiceImpl.getLongLatFromAddress(model.getAddress());
...
@@ -161,6 +160,11 @@ public class WaterResourceController extends BaseController {
...
@@ -161,6 +160,11 @@ public class WaterResourceController extends BaseController {
}
else
{
}
else
{
waterResourceServiceImpl
.
createWithModel
(
model
);
waterResourceServiceImpl
.
createWithModel
(
model
);
}
}
if
(
model
.
getAttachments
()
!=
null
&&
!
model
.
getAttachments
().
isEmpty
()){
sourceFileService
.
saveAttachments
(
model
.
getSequenceNbr
(),
model
.
getAttachments
());
}
return
ResponseHelper
.
buildResponse
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
}
...
@@ -182,9 +186,14 @@ public class WaterResourceController extends BaseController {
...
@@ -182,9 +186,14 @@ public class WaterResourceController extends BaseController {
model.setLongitude(Double.valueOf(address.getString(BizConstant.LONGITUDE)));
model.setLongitude(Double.valueOf(address.getString(BizConstant.LONGITUDE)));
model.setLatitude(Double.valueOf(address.getString(BizConstant.LATITUDE)));
model.setLatitude(Double.valueOf(address.getString(BizConstant.LATITUDE)));
}*/
}*/
/*bug 2913 更换保存方式 存储到公共附件表 chenzhao 2021-10-18 start*/
if
(
model
.
getAttachments
()
!=
null
&&
!
model
.
getAttachments
().
isEmpty
()){
sourceFileService
.
saveAttachments
(
model
.
getSequenceNbr
(),
model
.
getAttachments
());
}
/*bug 2913 更换保存方式 存储到公共附件表 chenzhao 2021-10-18 start*/
// 更新基本信息
// 更新基本信息
model
.
setSequenceNbr
(
sequenceNbr
);
model
.
setSequenceNbr
(
sequenceNbr
);
model
.
setRealityImg
(
JSONArray
.
toJSONString
(
model
.
getRealityImgList
()));
//
model.setRealityImg(JSONArray.toJSONString(model.getRealityImgList()));
model
.
setOrientationImg
(
JSONArray
.
toJSONString
(
model
.
getOrientationImgList
()));
model
.
setOrientationImg
(
JSONArray
.
toJSONString
(
model
.
getOrientationImgList
()));
WaterResourceDto
waterResourceDto
=
waterResourceServiceImpl
.
updateWithModel
(
model
);
WaterResourceDto
waterResourceDto
=
waterResourceServiceImpl
.
updateWithModel
(
model
);
// 更新属性信息
// 更新属性信息
...
@@ -291,7 +300,15 @@ public class WaterResourceController extends BaseController {
...
@@ -291,7 +300,15 @@ public class WaterResourceController extends BaseController {
public
ResponseModel
<
WaterResourceDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
public
ResponseModel
<
WaterResourceDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
// 查询基本信息
// 查询基本信息
WaterResourceDto
waterResourceDto
=
waterResourceServiceImpl
.
queryBySeq
(
sequenceNbr
);
WaterResourceDto
waterResourceDto
=
waterResourceServiceImpl
.
queryBySeq
(
sequenceNbr
);
waterResourceDto
.
setRealityImgList
(
JSONArray
.
parseArray
(
waterResourceDto
.
getRealityImg
(),
Object
.
class
));
/*bug 2913 更换保存方式 存储到公共附件表 chenzhao 2021-10-18 start*/
Map
<
String
,
List
<
AttachmentDto
>>
attachments
=
sourceFileService
.
getAttachments
(
sequenceNbr
);
if
(
attachments
!=
null
){
waterResourceDto
.
setAttachments
(
attachments
);
}
/*bug 2913 更换保存方式 存储到公共附件表 chenzhao 2021-10-18 end*/
waterResourceDto
.
setRealityImgList
(
waterResourceDto
.
getRealityImg
()!=
null
?
JSONArray
.
parseArray
(
waterResourceDto
.
getRealityImg
()):
null
);
waterResourceDto
.
setOrientationImgList
(
waterResourceDto
.
getOrientationImg
()!=
null
?
JSONArray
.
parseArray
(
waterResourceDto
.
getOrientationImg
()):
null
);
waterResourceDto
.
setOrientationImgList
(
waterResourceDto
.
getOrientationImg
()!=
null
?
JSONArray
.
parseArray
(
waterResourceDto
.
getOrientationImg
()):
null
);
Boolean
isDelete
=
waterResourceDto
.
getIsDelete
();
Boolean
isDelete
=
waterResourceDto
.
getIsDelete
();
// 查询属性信息
// 查询属性信息
...
@@ -360,8 +377,19 @@ public class WaterResourceController extends BaseController {
...
@@ -360,8 +377,19 @@ public class WaterResourceController extends BaseController {
Page
<
WaterResourceDto
>
page
=
new
Page
<>();
Page
<
WaterResourceDto
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
waterResourceServiceImpl
.
queryForWaterResourcePage
(
page
,
name
,
resourceType
,
belongBuildingId
,
belongFightingSystemId
,
sequenceNbr
,
classifyId
));
/*bug 2913 更换保存方式 存储到公共附件表 chenzhao 2021-10-18 start*/
Page
<
WaterResourceDto
>
waterResourceDtoPage
=
waterResourceServiceImpl
.
queryForWaterResourcePage
(
page
,
name
,
resourceType
,
belongBuildingId
,
belongFightingSystemId
,
sequenceNbr
,
classifyId
);
List
<
WaterResourceDto
>
records
=
waterResourceDtoPage
.
getRecords
();
records
.
forEach
(
i
->{
Map
<
String
,
List
<
AttachmentDto
>>
attachments
=
sourceFileService
.
getAttachments
(
i
.
getSequenceNbr
());
if
(
attachments
!=
null
){
i
.
setAttachments
(
attachments
);
}
});
/*bug 2913 更换保存方式 存储到公共附件表 chenzhao 2021-10-18 end*/
return
ResponseHelper
.
buildResponse
(
waterResourceDtoPage
);
}
}
/**
/**
...
...
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 @
84b7b527
...
@@ -113,7 +113,7 @@ public class DutyFirstAidServiceImpl extends DutyCommonServiceImpl implements ID
...
@@ -113,7 +113,7 @@ public class DutyFirstAidServiceImpl extends DutyCommonServiceImpl implements ID
public
List
<
Map
<
String
,
Object
>>
getFirstAidExportData
(
List
<
String
>
ids
)
{
public
List
<
Map
<
String
,
Object
>>
getFirstAidExportData
(
List
<
String
>
ids
)
{
List
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
List
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
String
typeString
=
"
XFJGLX
"
;
String
typeString
=
"
DUTY_POST_TYPE
"
;
ids
.
stream
().
forEach
(
i
->{
ids
.
stream
().
forEach
(
i
->{
Map
<
String
,
Object
>
detailMap
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
detailMap
=
new
HashMap
<
String
,
Object
>();
List
<
OrgUsr
>
personList
=
orgUsrServiceImpl
.
getPersonListByParentId
(
Long
.
parseLong
(
i
));
List
<
OrgUsr
>
personList
=
orgUsrServiceImpl
.
getPersonListByParentId
(
Long
.
parseLong
(
i
));
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
View file @
84b7b527
...
@@ -957,7 +957,7 @@ public class ExcelServiceImpl {
...
@@ -957,7 +957,7 @@ public class ExcelServiceImpl {
dutyFireFightingService
.
saveImportData
(
dataList
);
dutyFireFightingService
.
saveImportData
(
dataList
);
}
else
if
(
ExcelEnums
.
JJZB
.
getType
().
equals
(
dutyType
))
{
}
else
if
(
ExcelEnums
.
JJZB
.
getType
().
equals
(
dutyType
))
{
initDutyFirstAidData
(
sheet
,
dataList
,
dayByMonth
);
initDutyFirstAidData
(
sheet
,
dataList
,
dayByMonth
);
dutyFir
eFighting
Service
.
saveImportData
(
dataList
);
dutyFir
stAid
Service
.
saveImportData
(
dataList
);
}
}
}
}
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/FireTeamServiceImpl.java
View file @
84b7b527
...
@@ -227,6 +227,20 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
...
@@ -227,6 +227,20 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
if
(
ValidationUtil
.
isEmpty
(
fireTeam
.
getSequenceNbr
()))
{
if
(
ValidationUtil
.
isEmpty
(
fireTeam
.
getSequenceNbr
()))
{
save
(
fireTeam
);
save
(
fireTeam
);
}
else
{
}
else
{
/*如果修改的队伍有下级队伍,所属单位一起修改 2021-10-18 陈召 开始*/
LambdaQueryWrapper
<
FireTeam
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
FireTeam:
:
getParent
,
fireTeam
.
getSequenceNbr
());
wrapper
.
eq
(
BaseEntity:
:
getIsDelete
,
false
);
List
<
FireTeam
>
fireTeams
=
baseMapper
.
selectList
(
wrapper
);
if
(!
fireTeams
.
isEmpty
()){
fireTeams
.
forEach
(
i
->{
i
.
setCompany
(
fireTeam
.
getCompany
());
i
.
setCompanyName
(
fireTeam
.
getCompanyName
());
i
.
setCompanyCode
(
fireTeam
.
getCompanyCode
());
updateById
(
i
);
});
}
/*如果修改的队伍有下级队伍,所属单位一起修改 2021-10-18 陈召 结束*/
updateById
(
fireTeam
);
updateById
(
fireTeam
);
}
}
return
fireTeam
;
return
fireTeam
;
...
...
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