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
b0b8c2bc
Commit
b0b8c2bc
authored
Sep 16, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
88d5fce8
16352e4d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
40 deletions
+42
-40
FireExpertsDto.java
...ejoin/amos/boot/module/common/api/dto/FireExpertsDto.java
+5
-3
LinkageUnitMapper.xml
...ommon-api/src/main/resources/mapper/LinkageUnitMapper.xml
+1
-1
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+6
-0
KeySiteController.java
.../boot/module/common/biz/controller/KeySiteController.java
+5
-7
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+3
-2
RoutePointItemController.java
...rvision/business/controller/RoutePointItemController.java
+1
-7
RoutePointItemServiceImpl.java
...sion/business/service/impl/RoutePointItemServiceImpl.java
+21
-20
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/dto/FireExpertsDto.java
View file @
b0b8c2bc
...
...
@@ -107,11 +107,13 @@ public class FireExpertsDto extends BaseDto {
@ApiModelProperty
(
value
=
"消防专家领域code"
)
private
String
expertCode
;
@ExcelProperty
(
value
=
"人员照片"
,
index
=
16
)
// @ExcelProperty(value = "人员照片", index = 16)
@ExcelIgnore
@ApiModelProperty
(
value
=
"人员照片"
)
private
String
personnelPhotos
;
@ExcelProperty
(
value
=
"资质证书"
,
index
=
17
)
// @ExcelProperty(value = "资质证书", index = 17)
@ExcelIgnore
@ApiModelProperty
(
value
=
"资质证书"
)
private
String
qualificationCertificate
;
...
...
@@ -131,7 +133,7 @@ public class FireExpertsDto extends BaseDto {
@ApiModelProperty
(
value
=
"消防机构name"
)
private
Long
fireTeamName
;
@ExcelProperty
(
value
=
"备注"
,
index
=
1
8
)
@ExcelProperty
(
value
=
"备注"
,
index
=
1
6
)
@ApiModelProperty
(
value
=
"备注"
)
private
String
note
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/LinkageUnitMapper.xml
View file @
b0b8c2bc
...
...
@@ -127,7 +127,7 @@
cb_dynamic_form_instance m GROUP BY m.instance_id) b
on
b.instance_id=a.instance_id where a.unit_name is not null
b.instance_id=a.instance_id where a.unit_name is not null
and a.is_delete=0
</select>
<!--联动单位列表按时间倒叙排列add order by clu.rec_date desc 同时处理单位根节点-1时查询全部数据问题 2021-09-08 by kongfm -->
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
b0b8c2bc
...
...
@@ -41,6 +41,9 @@
<if
test=
"bizOrgCode != null and bizOrgCode != '-1'"
>
AND u.biz_org_code like concat(#{bizOrgCode}, '%')
</if>
<if
test=
"parentId != null and parentId != '-1'"
>
AND u.parent_id like concat(#{map.parentId}, '%')
</if>
GROUP BY
u.sequence_nbr ,
u.biz_org_name ,
...
...
@@ -82,6 +85,9 @@
<if
test=
"map.bizOrgCode != null and map.bizOrgCode != '-1'"
>
AND u.biz_org_code like concat(#{map.bizOrgCode}, '%')
</if>
<if
test=
"map.parentId != null and map.parentId != '-1'"
>
AND u.parent_id like concat(#{map.parentId}, '%')
</if>
GROUP BY
u.sequence_nbr ,
u.biz_org_name ,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/KeySiteController.java
View file @
b0b8c2bc
...
...
@@ -139,17 +139,15 @@ public class KeySiteController extends BaseController {
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@
Pos
tMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"
POS
T"
,
value
=
"重点部位分页查询"
,
notes
=
"重点部位分页查询"
)
@
Ge
tMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"
GE
T"
,
value
=
"重点部位分页查询"
,
notes
=
"重点部位分页查询"
)
public
ResponseModel
<
IPage
<
KeySiteDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
KeySiteDto
KeySiteDto
// @RequestParam(required = false) String name,@RequestParam(required = false) Long buildingId,@RequestParam(required = false) String fireEnduranceRate,
// @RequestParam(required = false) String useNature,@RequestParam(required = false) String fireFacilitiesInfo,@RequestParam(required = false) Long belongId
)
{
(
value
=
"size"
)
int
size
,
@RequestParam
(
required
=
false
)
String
name
,
@RequestParam
(
required
=
false
)
Long
buildingId
,
@RequestParam
(
required
=
false
)
String
fireEnduranceRate
,
@RequestParam
(
required
=
false
)
String
useNature
,
@RequestParam
(
required
=
false
)
String
fireFacilitiesInfo
,
@RequestParam
(
required
=
false
)
Long
belongId
)
{
Page
<
KeySiteDto
>
page
=
new
Page
<
KeySiteDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
keySiteServiceImpl
.
getPageList
(
page
,
KeySiteDto
.
getName
(),
KeySiteDto
.
getBuildingId
(),
KeySiteDto
.
getFireEnduranceRate
(),
KeySiteDto
.
getUseNature
(),
KeySiteDto
.
getFireFacilitiesInfo
(),
KeySiteDto
.
getBelongId
()
));
return
ResponseHelper
.
buildResponse
(
keySiteServiceImpl
.
getPageList
(
page
,
name
,
buildingId
,
fireEnduranceRate
,
useNature
,
fireFacilitiesInfo
,
belongId
));
}
/**
...
...
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 @
b0b8c2bc
...
...
@@ -364,8 +364,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
}
/*BUG2680 查询部门人员错误 传递参数类型不正确 修改为string 2021-09-14 陈召 开始*/
if
(
req
.
get
(
"parentId"
)
!=
null
&&
req
.
get
(
"parentId"
)
!=
""
){
OrgUsr
parent
=
this
.
getById
(
req
.
get
(
"parentId"
).
toString
());
map
.
put
(
"bizOrgCode"
,
ObjectUtils
.
isEmpty
(
parent
)
?
null
:
parent
.
getBizOrgCode
());
// OrgUsr parent = this.getById(req.get("parentId").toString());
map
.
put
(
"parentId"
,
req
.
get
(
"parentId"
));
// map.put("bizOrgCode", ObjectUtils.isEmpty(parent) ? null : parent.getBizOrgCode());
}
/*BUG2680 查询部门人员错误 传递参数类型不正确 修改为string 2021-09-14 陈召 开始*/
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/controller/RoutePointItemController.java
View file @
b0b8c2bc
...
...
@@ -10,11 +10,9 @@ import com.yeejoin.amos.supervision.business.vo.RoutePointItemVo;
import
com.yeejoin.amos.supervision.core.common.request.CommonPageable
;
import
com.yeejoin.amos.supervision.core.common.request.CommonRequest
;
import
com.yeejoin.amos.supervision.dao.entity.Plan
;
import
com.yeejoin.amos.supervision.dao.entity.RoutePointItem
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -57,11 +55,7 @@ public class RoutePointItemController extends AbstractBaseController {
try
{
String
userId
=
getUserId
();
if
(
StringUtils
.
isNotBlank
(
userId
))
{
List
<
RoutePointItem
>
list
=
routePointItemService
.
addRoutePointItemList
(
plan
,
inputItemIds
,
status
,
userId
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
return
CommonResponseUtil
.
success
();
}
return
CommonResponseUtil
.
failure
(
"路线点或检查项为空!"
);
return
CommonResponseUtil
.
success
(
routePointItemService
.
addRoutePointItemList
(
plan
,
inputItemIds
,
status
,
userId
));
}
return
CommonResponseUtil
.
failure
(
"创建用户为空!"
);
}
catch
(
Exception
e
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/RoutePointItemServiceImpl.java
View file @
b0b8c2bc
...
...
@@ -48,32 +48,33 @@ public class RoutePointItemServiceImpl implements IRoutePointItemService {
public
List
<
RoutePointItem
>
addRoutePointItemList
(
Plan
plan
,
List
<
Long
>
inputItemIds
,
Boolean
status
,
String
userId
)
{
Long
planId
=
plan
.
getId
();
Long
routeId
=
plan
.
getRouteId
();
if
(
CollectionUtils
.
isNotEmpty
(
inputItemIds
)
&&
routeId
!=
null
&&
planId
!=
null
)
{
if
(
routeId
!=
null
&&
planId
!=
null
)
{
if
(
status
)
{
planDao
.
updatePlanStatus
(
PlanStatusEnum
.
EXAMINE_DEVELOPED
.
getValue
(),
planId
);
}
else
{
List
<
InputItem
>
inputItemList
=
inputItemMapper
.
findByIdIn
(
inputItemIds
);
List
<
RoutePoint
>
routePointList
=
routePointDao
.
findByRouteId
(
routeId
);
if
(
CollectionUtils
.
isNotEmpty
(
inputItemList
)
&&
CollectionUtils
.
isNotEmpty
(
routePointList
))
{
List
<
RoutePointItem
>
list
=
new
ArrayList
<>();
routePointList
.
stream
().
forEach
(
route
->
{
Long
routePointId
=
route
.
getId
();
inputItemList
.
stream
().
forEach
(
item
->
{
RoutePointItem
routePointItem
=
new
RoutePointItem
();
routePointItem
.
setPlanId
(
planId
);
routePointItem
.
setInputItemId
(
item
.
getId
());
routePointItem
.
setBasisJson
(
item
.
getBasisJson
());
routePointItem
.
setOrderNo
(
item
.
getOrderNo
());
routePointItem
.
setRoutePointId
(
routePointId
);
routePointItem
.
setCreatorId
(
userId
);
routePointItem
.
setCreateDate
(
new
Date
());
list
.
add
(
routePointItem
);
if
(
CollectionUtils
.
isNotEmpty
(
inputItemIds
))
{
List
<
InputItem
>
inputItemList
=
inputItemMapper
.
findByIdIn
(
inputItemIds
);
List
<
RoutePoint
>
routePointList
=
routePointDao
.
findByRouteId
(
routeId
);
if
(
CollectionUtils
.
isNotEmpty
(
inputItemList
)
&&
CollectionUtils
.
isNotEmpty
(
routePointList
))
{
List
<
RoutePointItem
>
list
=
new
ArrayList
<>();
routePointList
.
stream
().
forEach
(
route
->
{
Long
routePointId
=
route
.
getId
();
inputItemList
.
stream
().
forEach
(
item
->
{
RoutePointItem
routePointItem
=
new
RoutePointItem
();
routePointItem
.
setPlanId
(
planId
);
routePointItem
.
setInputItemId
(
item
.
getId
());
routePointItem
.
setBasisJson
(
item
.
getBasisJson
());
routePointItem
.
setOrderNo
(
item
.
getOrderNo
());
routePointItem
.
setRoutePointId
(
routePointId
);
routePointItem
.
setCreatorId
(
userId
);
routePointItem
.
setCreateDate
(
new
Date
());
list
.
add
(
routePointItem
);
});
});
}
);
return
routePointItemDao
.
saveAll
(
list
);
return
routePointItemDao
.
saveAll
(
list
);
}
}
}
// routePointItemDao.deleteByPlanId(planId);
}
return
Lists
.
newArrayList
();
}
...
...
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