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
7f627600
Commit
7f627600
authored
Jul 25, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
950dab5c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
24 deletions
+42
-24
EquipmentManageVo.java
.../com/yeejoin/equipmanage/common/vo/EquipmentManageVo.java
+3
-0
EquipmentCategoryController.java
...n/equipmanage/controller/EquipmentCategoryController.java
+1
-1
PointController.java
...join/amos/patrol/business/controller/PointController.java
+4
-20
PointVo.java
...ain/java/com/yeejoin/amos/patrol/business/vo/PointVo.java
+1
-0
EquipmentCategoryMapper.xml
...uip/src/main/resources/mapper/EquipmentCategoryMapper.xml
+19
-3
EquipmentManageMapper.xml
...equip/src/main/resources/mapper/EquipmentManageMapper.xml
+2
-0
dbTemplate_input_item.xml
...ol/src/main/resources/db/mapper/dbTemplate_input_item.xml
+12
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/vo/EquipmentManageVo.java
View file @
7f627600
...
@@ -121,4 +121,7 @@ public class EquipmentManageVo implements Serializable {
...
@@ -121,4 +121,7 @@ public class EquipmentManageVo implements Serializable {
private
String
bizOrgCode
;
private
String
bizOrgCode
;
private
String
bizOrgName
;
private
String
bizOrgName
;
private
String
controBoxBuildName
;
private
String
controBoxBuildId
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentCategoryController.java
View file @
7f627600
...
@@ -339,7 +339,7 @@ public class EquipmentCategoryController extends AbstractBaseController {
...
@@ -339,7 +339,7 @@ public class EquipmentCategoryController extends AbstractBaseController {
List
<
EquipmentCategory
>
list
=
new
ArrayList
<>();
List
<
EquipmentCategory
>
list
=
new
ArrayList
<>();
Map
<
String
,
List
<
EquipmentCategory
>>
tmpMap
=
new
HashMap
<
String
,
List
<
EquipmentCategory
>>();
Map
<
String
,
List
<
EquipmentCategory
>>
tmpMap
=
new
HashMap
<
String
,
List
<
EquipmentCategory
>>();
equipmentCategorys
.
forEach
(
action
->
{
equipmentCategorys
.
forEach
(
action
->
{
if
(
action
.
getName
().
equals
(
"消防设施"
))
{
if
(
action
.
getName
().
equals
(
"消防设施"
)
||
action
.
getName
().
equals
(
"消防系统"
)
)
{
list
.
add
(
action
);
list
.
add
(
action
);
}
else
{
}
else
{
if
(
tmpMap
.
get
(
action
.
getParentId
().
toString
())
==
null
)
{
if
(
tmpMap
.
get
(
action
.
getParentId
().
toString
())
==
null
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PointController.java
View file @
7f627600
...
@@ -295,7 +295,7 @@ public class PointController extends AbstractBaseController {
...
@@ -295,7 +295,7 @@ public class PointController extends AbstractBaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"删除巡查对象"
,
notes
=
"删除巡查对象"
)
@ApiOperation
(
value
=
"删除巡查对象"
,
notes
=
"删除巡查对象"
)
@GetMapping
(
value
=
"/
queryPointByIdNew
"
,
produces
=
"application/json;charset=UTF-8"
)
@GetMapping
(
value
=
"/
deletPointClassify
"
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
deletPointClassify
(
@ApiParam
(
value
=
"巡查对象id"
,
required
=
true
)
@RequestParam
Long
id
)
{
public
CommonResponse
deletPointClassify
(
@ApiParam
(
value
=
"巡查对象id"
,
required
=
true
)
@RequestParam
Long
id
)
{
try
{
try
{
//如果点下只有一个对象,并且点已经关联线路就不能删除
//如果点下只有一个对象,并且点已经关联线路就不能删除
...
@@ -375,22 +375,6 @@ public class PointController extends AbstractBaseController {
...
@@ -375,22 +375,6 @@ public class PointController extends AbstractBaseController {
*
*
* 新增接口
* 新增接口
* **/
* **/
/**
/**
* 增加巡检点
* 增加巡检点
*
*
...
@@ -705,14 +689,14 @@ public class PointController extends AbstractBaseController {
...
@@ -705,14 +689,14 @@ public class PointController extends AbstractBaseController {
}
}
/**新加接口**/
/**新加接口**/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"导入导入模板新"
,
notes
=
"导入模板新"
)
@ApiOperation
(
value
=
"导入导入模板新"
,
notes
=
"导入模板新"
)
@
Pos
tMapping
(
value
=
"/exportTemplateNew"
,
produces
=
"application/json;charset=UTF-8"
)
@
Ge
tMapping
(
value
=
"/exportTemplateNew"
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
exportTemplateNew
(
HttpServletResponse
response
)
{
public
CommonResponse
exportTemplateNew
(
HttpServletResponse
response
)
{
String
userId
=
getUserId
();
String
userId
=
getUserId
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
loginOrgCode
=
getOrgCode
(
reginParams
);
String
loginOrgCode
=
getOrgCode
(
reginParams
);
String
fileName
=
"巡检点导入模板"
;
//模板名称
String
fileName
=
"巡检点导入模板
.xls
"
;
//模板名称
String
[]
handers
=
{
"点编号"
,
"点名称"
,
"是否为移动点"
,
"计划外巡检是否评分"
,
"是否允许离线巡检"
,
"参考地址"
,
"最少拍照数量"
,
"最多拍照数量"
,
"风险等级"
,
"备注说明"
,
"检查项目"
,
"是否室内"
};
//列标题
String
[]
handers
=
{
"点编号"
,
"点名称"
,
"是否为移动点"
,
"计划外巡检是否评分"
,
"是否允许离线巡检"
,
"参考地址"
,
"最少拍照数量"
,
"最多拍照数量"
,
"风险等级"
,
"备注说明"
,
"检查项目"
,
"是否室内"
};
//列标题
List
<
String
[]>
downData
=
new
ArrayList
();
List
<
String
[]>
downData
=
new
ArrayList
();
String
[]
isScore
=
{
"否"
,
"是"
};
String
[]
isScore
=
{
"否"
,
"是"
};
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/vo/PointVo.java
View file @
7f627600
...
@@ -17,6 +17,7 @@ public class PointVo {
...
@@ -17,6 +17,7 @@ public class PointVo {
private
String
routeName
;
private
String
routeName
;
private
String
bizOrgCode
;
private
String
bizOrgCode
;
@Excel
(
name
=
"所属单位/部门"
,
orderNum
=
"7"
)
private
String
bizOrgName
;
private
String
bizOrgName
;
public
String
getBizOrgCode
()
{
public
String
getBizOrgCode
()
{
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentCategoryMapper.xml
View file @
7f627600
...
@@ -321,7 +321,7 @@
...
@@ -321,7 +321,7 @@
FROM wl_equipment_category ec
FROM wl_equipment_category ec
left join wl_industry i on ec.industry_code = i.code
left join wl_industry i on ec.industry_code = i.code
WHERE
WHERE
ec.code NOT LIKE CONCAT ('930','%')
ec.code NOT LIKE CONCAT ('930','%')
and ec.code NOT LIKE CONCAT ('92','%')
</select>
</select>
<select
id=
"getEquipmentCategoryListByFacilities"
resultMap=
"Category"
>
<select
id=
"getEquipmentCategoryListByFacilities"
resultMap=
"Category"
>
...
@@ -335,13 +335,29 @@
...
@@ -335,13 +335,29 @@
ec.remark,
ec.remark,
ec.create_date,
ec.create_date,
i.`name` as industryName,
i.`name` as industryName,
-- industry_code = 2代表消防设备
IF(LEFT(ec.CODE, 1) = 2 and ec.industry_code = 2, 'car', 'equipment')
IF(LEFT(ec.CODE, 1) = #{head} and ec.industry_code = 2, 'car', 'equipment')
AS type
AS type
FROM wl_equipment_category ec
FROM wl_equipment_category ec
left join wl_industry i on ec.industry_code = i.code
left join wl_industry i on ec.industry_code = i.code
WHERE
WHERE
ec.code LIKE CONCAT ('930','%')
ec.code LIKE CONCAT ('930','%')
UNION ALL
SELECT ec.id,
ec.parent_id,
ec.id as CODE,
ec.NAME,
ec.is_consumptive,
ec.description,
ec.industry_code,
ec.remark,
ec.create_date,
i.`name` as industryName,
IF(LEFT(ec.CODE, 1) = 2 and ec.industry_code = 2, 'car', 'equipment')
AS type
FROM wl_equipment_category ec
left join wl_industry i on ec.industry_code = i.code
WHERE
(ec.code LIKE CONCAT ('92','%') and ec.parent_id = '1302863809086623746') or (ec.code LIKE CONCAT ('92','%') and ec.parent_id = '846')
</select>
</select>
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentManageMapper.xml
View file @
7f627600
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
instance_id,
instance_id,
date_format(install_date,'%Y-%m-%d') AS installDate,
date_format(install_date,'%Y-%m-%d') AS installDate,
date_format(first_maintenance_date,'%Y-%m-%d') AS firstMaintenanceDate,
date_format(first_maintenance_date,'%Y-%m-%d') AS firstMaintenanceDate,
contro_box_build as controBoxBuildId,
(select full_name from wl_warehouse_structure where id = contro_box_build) as controBoxBuildName,
charge_person_name as chargePerson,
charge_person_name as chargePerson,
(select name from wl_manufacturer_info where id = construction_unit) as constructionUnit,
(select name from wl_manufacturer_info where id = construction_unit) as constructionUnit,
(select name from wl_manufacturer_info where id = maintenance_unit) as maintenanceUnit,
(select name from wl_manufacturer_info where id = maintenance_unit) as maintenanceUnit,
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_input_item.xml
View file @
7f627600
...
@@ -149,6 +149,18 @@
...
@@ -149,6 +149,18 @@
<if
test=
"nameOrItemNo!=null and nameOrItemNo !='' "
>
<if
test=
"nameOrItemNo!=null and nameOrItemNo !='' "
>
and (name like concat("%", #{nameOrItemNo}, "%") or item_no like concat("%", #{nameOrItemNo}, "%"))
and (name like concat("%", #{nameOrItemNo}, "%") or item_no like concat("%", #{nameOrItemNo}, "%"))
</if>
</if>
<if
test=
"equipmentType!=null and equipmentType !=''"
>
and equipment_type = #{equipmentType}
</if>
<if
test=
"keyPartsType!=null and keyPartsType !=''"
>
and key_parts_type = #{keyPartsType}
</if>
<if
test=
"facilitiesType!=null and facilitiesType !=''"
>
and facilities_type = #{facilitiesType}
</if>
<if
test=
"customType!=null and customType !=''"
>
and custom_type = #{customType}
</if>
ORDER BY create_date DESC
ORDER BY create_date DESC
</select>
</select>
<select
id=
"queryCustomInputItemByPointId"
resultType=
"com.yeejoin.amos.patrol.business.vo.PointInputItemVo"
>
<select
id=
"queryCustomInputItemByPointId"
resultType=
"com.yeejoin.amos.patrol.business.vo.PointInputItemVo"
>
...
...
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