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
edc05407
Commit
edc05407
authored
Feb 18, 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
f9e9d21e
27c1efa9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
17 deletions
+28
-17
FireTeam.java
.../yeejoin/amos/boot/module/common/api/entity/FireTeam.java
+6
-0
DynamicFormInstanceMapper.xml
...i/src/main/resources/mapper/DynamicFormInstanceMapper.xml
+5
-5
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+4
-0
AlertSubmittedServiceImpl.java
...odule/jcs/biz/service/impl/AlertSubmittedServiceImpl.java
+5
-3
UnitPersonController.java
...t/module/tzs/flc/biz/controller/UnitPersonController.java
+7
-2
UnitPersonServiceImpl.java
...odule/tzs/flc/biz/service/impl/UnitPersonServiceImpl.java
+1
-7
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/entity/FireTeam.java
View file @
edc05407
...
@@ -80,4 +80,10 @@ public class FireTeam extends BaseEntity {
...
@@ -80,4 +80,10 @@ public class FireTeam extends BaseEntity {
@ApiModelProperty
(
value
=
"树结构层级code"
)
@ApiModelProperty
(
value
=
"树结构层级code"
)
private
String
treeCode
;
private
String
treeCode
;
@ApiModelProperty
(
value
=
"bizOrgCode"
)
private
String
bizOrgCode
;
@ApiModelProperty
(
value
=
"bizOrgName"
)
private
String
bizOrgName
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/DynamicFormInstanceMapper.xml
View file @
edc05407
...
@@ -377,10 +377,10 @@ FROM
...
@@ -377,10 +377,10 @@ FROM
SELECT
SELECT
Max(
Max(
CASE
CASE
WHEN cbd.field_code = '
administrativePositionCod
e' THEN
WHEN cbd.field_code = '
positionTyp
e' THEN
cbd.field_value
cbd.field_value
END
END
) AS
administrativePositionCod
e,
) AS
positionTyp
e,
Max(
Max(
CASE
CASE
WHEN cbd.field_code = 'telephone' THEN
WHEN cbd.field_code = 'telephone' THEN
...
@@ -412,16 +412,16 @@ FROM
...
@@ -412,16 +412,16 @@ FROM
biz_org_name = #{departmentName} and is_delete = 0
biz_org_name = #{departmentName} and is_delete = 0
)
)
AND cou.biz_org_type = 'PERSON'
AND cou.biz_org_type = 'PERSON'
and is_delete = 0
) group by cbd.instance_id
) group by cbd.instance_id
) dd
) dd
LEFT JOIN cb_org_usr cour ON dd.instance_id = cour.sequence_nbr
LEFT JOIN cb_org_usr cour ON dd.instance_id = cour.sequence_nbr
WHERE
WHERE
<if
test=
"positionType == null "
>
<if
test=
"positionType == null "
>
dd.
administrativePositionCod
e IS NOT NULL
dd.
positionTyp
e IS NOT NULL
</if>
</if>
<if
test=
"positionType != null"
>
<if
test=
"positionType != null"
>
dd.
administrativePositionCode in
dd.
positionType in
<foreach
collection=
"positionType"
item=
"item"
separator=
","
open=
"("
close=
")"
index=
""
>
<foreach
collection=
"positionType"
item=
"item"
separator=
","
open=
"("
close=
")"
index=
""
>
#{item, jdbcType=NUMERIC}
#{item, jdbcType=NUMERIC}
</foreach>
</foreach>
...
...
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 @
edc05407
...
@@ -64,6 +64,7 @@ import org.typroject.tyboot.core.foundation.context.RequestContext;
...
@@ -64,6 +64,7 @@ import org.typroject.tyboot.core.foundation.context.RequestContext;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -2026,6 +2027,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -2026,6 +2027,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
this
.
updateById
(
orgUsr
);
this
.
updateById
(
orgUsr
);
BeanUtils
.
copyProperties
(
orgUsr
,
result
);
BeanUtils
.
copyProperties
(
orgUsr
,
result
);
}
else
{
}
else
{
if
(
OrgPersonVo
.
getDynamicFormValue
()
==
null
||
OrgPersonVo
.
getDynamicFormValue
().
size
()
==
0
)
{
throw
new
BadRequest
(
"人员动态表单信息未填写"
);
}
result
=
saveOrgUsrDynamicFormInstance
(
orgUsr
,
OrgPersonVo
.
getDynamicFormValue
());
result
=
saveOrgUsrDynamicFormInstance
(
orgUsr
,
OrgPersonVo
.
getDynamicFormValue
());
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertSubmittedServiceImpl.java
View file @
edc05407
...
@@ -541,7 +541,7 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
...
@@ -541,7 +541,7 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
smsParams
.
put
(
"callTimeStr"
,
calledRo
.
getCallTimeStr
());
smsParams
.
put
(
"callTimeStr"
,
calledRo
.
getCallTimeStr
());
smsParams
.
put
(
"address"
,
calledRo
.
getAddress
());
smsParams
.
put
(
"address"
,
calledRo
.
getAddress
());
smsParams
.
put
(
"fireLocation"
,
calledRo
.
getFireLocation
());
smsParams
.
put
(
"fireLocation"
,
calledRo
.
getFireLocation
());
smsParams
.
put
(
"endTimeStr"
,
DateUtils
.
convertDateToString
(
alertCalled
.
getUpdateTime
(),
DateUtils
.
DATE_TIME_PATTERN
)
);
smsParams
.
put
(
"endTimeStr"
,
alertCalled
.
getUpdateTime
()
!=
null
?
DateUtils
.
convertDateToString
(
alertCalled
.
getUpdateTime
(),
DateUtils
.
DATE_TIME_PATTERN
)
:
""
);
smsParams
.
put
(
"burningMaterial"
,
calledRo
.
getBurningMaterial
());
smsParams
.
put
(
"burningMaterial"
,
calledRo
.
getBurningMaterial
());
smsParams
.
put
(
"fireSituation"
,
calledRo
.
getFireSituation
());
smsParams
.
put
(
"fireSituation"
,
calledRo
.
getFireSituation
());
smsParams
.
put
(
"trappedNum"
,
calledRo
.
getTrappedNum
());
smsParams
.
put
(
"trappedNum"
,
calledRo
.
getTrappedNum
());
...
@@ -1442,8 +1442,10 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
...
@@ -1442,8 +1442,10 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
String
[]
groupCode
=
jsonObject1
.
getString
(
"fireBrigade"
).
split
(
","
);
String
[]
groupCode
=
jsonObject1
.
getString
(
"fireBrigade"
).
split
(
","
);
List
<
String
>
positionType
=
Arrays
.
asList
(
groupCode
);
List
<
String
>
positionType
=
Arrays
.
asList
(
groupCode
);
if
(
jsonObject1
.
containsKey
(
"fireBrigade"
))
{
{
if
(
jsonObject1
.
containsKey
(
"fireBrigade"
))
{
{
LambdaQueryWrapper
<
OrgUsr
>
queryWrapper
=
new
LambdaQueryWrapper
<
OrgUsr
>();
List
<
Map
<
String
,
Object
>>
mapList
=
dynamicFormInstanceMapper
.
getFireRescueDepartmentStaff
(
fireTeam
.
getCompanyName
(),
positionType
);
queryWrapper
.
eq
(
OrgUsr:
:
getBizOrgCode
,
fireTeam
.
getBizOrgCode
());
OrgUsr
one
=
orgUsrService
.
getOne
(
queryWrapper
);
List
<
Map
<
String
,
Object
>>
mapList
=
dynamicFormInstanceMapper
.
getFireRescueDepartmentStaff
(
one
.
getBizOrgName
(),
positionType
);
sendUserIds
.
addAll
(
mapList
);
sendUserIds
.
addAll
(
mapList
);
}
}
if
(
jsonObject1
.
containsKey
(
"onDuty"
))
{
if
(
jsonObject1
.
containsKey
(
"onDuty"
))
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/UnitPersonController.java
View file @
edc05407
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.module.common.api.dto.OrgMenuDto;
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.module.common.api.dto.OrgMenuDto;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgPersonDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgPersonDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.UnitInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.UnitInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.UnitPersonInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.UnitPersonInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.UnitInfo
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.UnitInfo
;
...
@@ -90,11 +91,15 @@ public class UnitPersonController extends BaseController {
...
@@ -90,11 +91,15 @@ public class UnitPersonController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增人员信息"
,
notes
=
"新增人员信息"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增人员信息"
,
notes
=
"新增人员信息"
)
public
ResponseModel
<?>
saveOrgUsr
(
@RequestBody
UnitPersonInfoDto
unitPersonInfoDto
)
{
public
ResponseModel
saveOrgUsr
(
@RequestBody
UnitPersonInfoDto
unitPersonInfoDto
)
{
if
(
ValidationUtil
.
isEmpty
(
unitPersonInfoDto
.
getParentId
()))
{
if
(
ValidationUtil
.
isEmpty
(
unitPersonInfoDto
.
getParentId
()))
{
throw
new
BadRequest
(
"参数校验失败."
);
throw
new
BadRequest
(
"参数校验失败."
);
}
}
return
ResponseHelper
.
buildResponse
(
iUnitPersonService
.
saveUser
(
unitPersonInfoDto
));
try
{
return
CommonResponseUtil
.
success
(
iUnitPersonService
.
saveUser
(
unitPersonInfoDto
));
}
catch
(
Exception
e
)
{
return
CommonResponseUtil
.
failure
(
e
.
getMessage
());
}
}
}
/**
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/UnitPersonServiceImpl.java
View file @
edc05407
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.constants.CommonConstant
;
import
com.yeejoin.amos.boot.biz.common.constants.CommonConstant
;
...
@@ -18,13 +16,10 @@ import com.yeejoin.amos.boot.module.common.api.dto.OrgPersonDto;
...
@@ -18,13 +16,10 @@ import com.yeejoin.amos.boot.module.common.api.dto.OrgPersonDto;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgPersonFormDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgPersonFormDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.enums.OrgPersonEnum
;
import
com.yeejoin.amos.boot.module.common.api.mapper.OrgUsrMapper
;
import
com.yeejoin.amos.boot.module.common.api.service.ISourceFileService
;
import
com.yeejoin.amos.boot.module.common.api.service.ISourceFileService
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.DynamicFormColumnServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.DynamicFormColumnServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.SourceFileServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.SourceFileServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.Elevator
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.TzsCommonParam
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.TzsCommonParam
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.PersonEducationDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.PersonEducationDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.PersonQualityDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.PersonQualityDto
;
...
@@ -41,7 +36,6 @@ import com.yeejoin.amos.feign.privilege.model.CompanyModel;
...
@@ -41,7 +36,6 @@ import com.yeejoin.amos.feign.privilege.model.CompanyModel;
import
com.yeejoin.amos.feign.privilege.model.RoleModel
;
import
com.yeejoin.amos.feign.privilege.model.RoleModel
;
import
com.yeejoin.amos.feign.privilege.util.DesUtil
;
import
com.yeejoin.amos.feign.privilege.util.DesUtil
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.apache.logging.log4j.Logger
;
...
@@ -213,7 +207,7 @@ public class UnitPersonServiceImpl implements IUnitPersonService {
...
@@ -213,7 +207,7 @@ public class UnitPersonServiceImpl implements IUnitPersonService {
BeanUtils
.
copyProperties
(
result
,
unitPersonInfoDto
);
BeanUtils
.
copyProperties
(
result
,
unitPersonInfoDto
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
throw
new
BadRequest
(
e
.
getMessage
()
);
}
}
return
unitPersonInfoDto
;
return
unitPersonInfoDto
;
}
}
...
...
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