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
86b7ecf2
Commit
86b7ecf2
authored
Apr 12, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
25a5bdc8
829077b8
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
563 additions
and
46 deletions
+563
-46
WaterResourceForExportDto.java
...boot/module/common/api/dto/WaterResourceForExportDto.java
+10
-10
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+1
-0
pom.xml
.../amos-boot-module-biz/amos-boot-module-patrol-biz/pom.xml
+19
-0
InputItemController.java
.../amos/patrol/business/controller/InputItemController.java
+4
-3
PointController.java
...join/amos/patrol/business/controller/PointController.java
+1
-1
InputItemMapper.java
...join/amos/patrol/business/dao/mapper/InputItemMapper.java
+2
-1
InputItemExcelDto.java
...m/yeejoin/amos/patrol/business/dto/InputItemExcelDto.java
+14
-7
InputItemExcelVo.java
...om/yeejoin/amos/patrol/business/dto/InputItemExcelVo.java
+486
-0
PointServiceImpl.java
...n/amos/patrol/business/service/impl/PointServiceImpl.java
+16
-0
dbTemplate_input_item.xml
...ol/src/main/resources/db/mapper/dbTemplate_input_item.xml
+10
-21
pointMapper.xml
...ystem-patrol/src/main/resources/db/mapper/pointMapper.xml
+0
-3
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/WaterResourceForExportDto.java
View file @
86b7ecf2
...
...
@@ -154,7 +154,7 @@ public class WaterResourceForExportDto extends BaseDto {
@ExcelProperty
(
value
=
"高度(cm)"
,
index
=
11
)
@ApiModelProperty
(
value
=
"高度(cm)"
)
private
Float
height
;
private
Double
height
;
@ExcelIgnore
@ApiModelProperty
(
value
=
"水源可用状态类别代码"
)
...
...
@@ -184,15 +184,15 @@ public class WaterResourceForExportDto extends BaseDto {
@ExcelProperty
(
value
=
"管网直径(cm)"
,
index
=
16
)
@ApiModelProperty
(
value
=
"管网直径(cm)"
)
private
Float
pipeDiameter
;
private
Double
pipeDiameter
;
@ExcelProperty
(
value
=
"进水管直径(cm)"
,
index
=
17
)
@ApiModelProperty
(
value
=
"进水管直径(cm)"
)
private
Float
inletPipeDiameter
;
private
Double
inletPipeDiameter
;
@ExcelProperty
(
value
=
"出水管直径(cm)"
,
index
=
18
)
@ApiModelProperty
(
value
=
"出水管直径(cm)"
)
private
Float
outletPipeDiameter
;
private
Double
outletPipeDiameter
;
@ExcelProperty
(
value
=
"加水车道数量(个)"
,
index
=
19
)
@ApiModelProperty
(
value
=
"加水车道数量(个)"
)
...
...
@@ -257,11 +257,11 @@ public class WaterResourceForExportDto extends BaseDto {
@ExcelProperty
(
value
=
"容积(m³)"
,
index
=
28
)
@ApiModelProperty
(
value
=
"容积(m³)"
)
private
Float
volume
;
private
Double
volume
;
@ExcelProperty
(
value
=
"面积(㎡)"
,
index
=
29
)
@ApiModelProperty
(
value
=
"面积(㎡)"
)
private
Float
area
;
private
Double
area
;
@ExcelProperty
(
value
=
"水质情况"
,
index
=
30
)
@ApiModelProperty
(
value
=
"水质情况"
)
...
...
@@ -288,11 +288,11 @@ public class WaterResourceForExportDto extends BaseDto {
@ExcelProperty
(
value
=
"取水高度(cm)"
,
index
=
34
)
@ApiModelProperty
(
value
=
"取水高度(cm)"
)
private
Float
intakeHeight
;
private
Double
intakeHeight
;
@ExcelProperty
(
value
=
"水源标高差(cm)"
,
index
=
35
)
@ApiModelProperty
(
value
=
"水源标高差(cm)"
)
private
Float
elevationDifference
;
private
Double
elevationDifference
;
@ExcelProperty
(
value
=
"停车位置"
,
index
=
36
)
@ApiModelProperty
(
value
=
"停车位置"
)
...
...
@@ -376,11 +376,11 @@ public class WaterResourceForExportDto extends BaseDto {
@ExcelProperty
(
value
=
"最低报警水位(m)"
,
index
=
43
)
@ApiModelProperty
(
value
=
"最低报警水位(m)"
)
private
Float
minWaterLevel
;
private
Double
minWaterLevel
;
@ExcelProperty
(
value
=
"最高报警水位(m)"
,
index
=
44
)
@ApiModelProperty
(
value
=
"最高报警水位(m)"
)
private
Float
maxWaterLevel
;
private
Double
maxWaterLevel
;
@ExcelIgnore
@ApiModelProperty
(
"水池液位显示装置id"
)
...
...
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 @
86b7ecf2
...
...
@@ -484,6 +484,7 @@ public class ExcelServiceImpl {
}
@Transactional
public
Object
commonUpload
(
MultipartFile
multipartFile
,
ExcelDto
excelDto
,
String
uuidString
,
HttpServletRequest
equest
)
throws
Exception
{
switch
(
excelDto
.
getType
())
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/pom.xml
View file @
86b7ecf2
...
...
@@ -18,6 +18,25 @@
<version>
${amos-biz-boot.version}
</version>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
easyexcel
</artifactId>
<version>
3.1.1
</version>
<exclusions>
<exclusion>
<groupId>
org.ow2.asm
</groupId>
<artifactId>
asm
</artifactId>
</exclusion>
<exclusion>
<groupId>
org.apache.poi
</groupId>
<artifactId>
poi
</artifactId>
</exclusion>
<exclusion>
<groupId>
org.apache.poi
</groupId>
<artifactId>
poi-ooxml
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-component-rule
</artifactId>
<exclusions>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/InputItemController.java
View file @
86b7ecf2
...
...
@@ -12,6 +12,7 @@ import com.yeejoin.amos.patrol.business.dao.repository.IPointInputItemDao;
import
com.yeejoin.amos.patrol.business.dto.InputItemDataDto
;
import
com.yeejoin.amos.patrol.business.dto.InputItemDataJsonlDto
;
import
com.yeejoin.amos.patrol.business.dto.InputItemExcelDto
;
import
com.yeejoin.amos.patrol.business.dto.InputItemExcelVo
;
import
com.yeejoin.amos.patrol.business.feign.JcsFeignClient
;
import
com.yeejoin.amos.patrol.business.param.InputItemPageParam
;
import
com.yeejoin.amos.patrol.business.param.InputItemParam
;
...
...
@@ -370,9 +371,9 @@ public class InputItemController extends AbstractBaseController {
@RequestMapping
(
value
=
"/exportData"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
GET
)
public
void
exportData
(
HttpServletResponse
response
)
{
InputItemPageParam
criterias
=
new
InputItemPageParam
();
List
<
InputItemExcel
Dt
o
>
content
=
inputItemMapper
.
getInputItemInfoExcelNew
(
criterias
);
List
<
InputItemExcel
V
o
>
content
=
inputItemMapper
.
getInputItemInfoExcelNew
(
criterias
);
//此处对数据做统一处理 拼接为易读内容
for
(
InputItemExcel
Dt
o
inputItemExcelDto
:
content
)
{
for
(
InputItemExcel
V
o
inputItemExcelDto
:
content
)
{
String
text
=
""
;
if
(
inputItemExcelDto
.
getItemType
().
equals
(
"选择"
)&&
!
inputItemExcelDto
.
getDataJson
().
equals
(
"[]"
))
{
List
<
Map
>
maps
=
JSONObject
.
parseArray
(
inputItemExcelDto
.
getDataJson
(),
Map
.
class
);
...
...
@@ -395,7 +396,7 @@ public class InputItemController extends AbstractBaseController {
}
}
ExcelUtil
.
createTemplate
(
response
,
"检查项"
,
"检查项"
,
content
,
InputItemExcel
Dt
o
.
class
,
null
,
true
);
ExcelUtil
.
createTemplate
(
response
,
"检查项"
,
"检查项"
,
content
,
InputItemExcel
V
o
.
class
,
null
,
true
);
}
...
...
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 @
86b7ecf2
...
...
@@ -926,7 +926,7 @@ public class PointController extends AbstractBaseController {
}
else
{
downData
.
add
(
new
String
[
0
]);
}
String
[]
downRows
=
{
"2"
,
"3"
,
"4"
,
"8"
,
"1
1"
,
"12"
,
"13"
,
"14
"
};
//下拉的列序号数组(序号从0开始)
String
[]
downRows
=
{
"2"
,
"3"
,
"4"
,
"8"
,
"1
0"
,
"11"
,
"12"
,
"13
"
};
//下拉的列序号数组(序号从0开始)
try
{
FileHelper
.
createExcelTemplate
(
fileName
,
handers
,
downData
,
downRows
,
response
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/InputItemMapper.java
View file @
86b7ecf2
...
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.patrol.business.dao.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.patrol.business.dto.InputItemExcelDto
;
import
com.yeejoin.amos.patrol.business.dto.InputItemExcelVo
;
import
com.yeejoin.amos.patrol.business.param.InputItemPageParam
;
import
com.yeejoin.amos.patrol.business.vo.InputItemVo
;
import
com.yeejoin.amos.patrol.business.vo.PointInputItemVo
;
...
...
@@ -31,7 +32,7 @@ public interface InputItemMapper extends BaseMapper<InputItem> {
public
List
<
InputItemVo
>
getInputItemInfoNew
(
InputItemPageParam
param
);
public
List
<
InputItemExcel
Dt
o
>
getInputItemInfoExcelNew
(
InputItemPageParam
param
);
public
List
<
InputItemExcel
V
o
>
getInputItemInfoExcelNew
(
InputItemPageParam
param
);
Map
<
Long
,
Long
>
getAllCountInfo
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dto/InputItemExcelDto.java
View file @
86b7ecf2
...
...
@@ -71,7 +71,7 @@ public class InputItemExcelDto extends BaseDto {
@ExplicitConstraint
(
indexNum
=
11
,
source
=
{
"是"
,
"否"
})
@ExcelProperty
(
value
=
"是否必填"
,
index
=
11
)
@ApiModelProperty
(
value
=
"是否必填"
)
private
String
isMust
=
"
0
"
;
private
String
isMust
=
"
否
"
;
@ExplicitConstraint
(
indexNum
=
12
,
source
=
{
"是"
,
"否"
})
@ExcelProperty
(
value
=
"是否评分"
,
index
=
12
)
...
...
@@ -298,20 +298,27 @@ public class InputItemExcelDto extends BaseDto {
}
public
String
getKeyPartsType
()
{
return
keyPartsType
.
equals
(
"是"
)?
"0"
:
"1"
;
return
keyPartsType
;
// keyPartsType.equals("是")?"0":"1";
}
public
void
setKeyPartsType
(
String
keyPartsType
)
{
this
.
keyPartsType
=
StringUtils
.
isEmpty
(
keyPartsType
)
?
"1"
:
keyPartsType
;
// this.keyPartsType = StringUtils.isEmpty(keyPartsType) ? "1":keyPartsType;
this
.
keyPartsType
=
StringUtils
.
isNotEmpty
(
keyPartsType
)
?
(
keyPartsType
.
equals
(
"是"
)?
"0"
:
"1"
)
:
keyPartsType
;
}
public
String
getCustomType
()
{
return
customType
.
equals
(
"是"
)?
"0"
:
"1"
;
return
customType
;
}
public
void
setCustomType
(
String
customType
)
{
/*
public void setCustomType(String customType) {
this.customType = StringUtils.isEmpty(customType) ? "1":customType;
}*/
public
void
setCustomType
(
String
customType
)
{
this
.
customType
=
StringUtils
.
isNotEmpty
(
customType
)
?
(
customType
.
equals
(
"是"
)?
"0"
:
"1"
)
:
customType
;
}
public
String
getUnit
()
{
...
...
@@ -347,11 +354,11 @@ public class InputItemExcelDto extends BaseDto {
}
public
String
getLevel
()
{
return
level
==
null
?
null
:
String
.
valueOf
(
PointLevelEnum
.
getValue
(
level
))
;
return
level
;
}
public
void
setLevel
(
String
level
)
{
this
.
level
=
level
;
this
.
level
=
level
==
null
?
null
:
String
.
valueOf
(
PointLevelEnum
.
getValue
(
level
))
;
}
public
long
getCatalogId
()
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dto/InputItemExcelVo.java
0 → 100644
View file @
86b7ecf2
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
dto
;
import
cn.jiguang.common.utils.StringUtils
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.excel.ExplicitConstraint
;
import
com.yeejoin.amos.patrol.common.enums.PointCheckTypeEnum
;
import
com.yeejoin.amos.patrol.common.enums.PointLevelEnum
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@ApiModel
(
value
=
"InputItemExcelVo"
,
description
=
"检查项"
)
@Data
public
class
InputItemExcelVo
extends
BaseDto
{
@ExcelProperty
(
value
=
"编号"
,
index
=
0
)
@ApiModelProperty
(
value
=
"检查项编号"
)
private
String
itemNo
;
@ExcelProperty
(
value
=
"名称"
,
index
=
1
)
@ApiModelProperty
(
value
=
"检查项名称"
)
private
String
name
;
@ExplicitConstraint
(
indexNum
=
2
,
source
=
{
"选择"
,
"数字"
,
"文本"
})
@ExcelProperty
(
value
=
"检查项类型"
,
index
=
2
)
@ApiModelProperty
(
value
=
"检查项类型"
)
private
String
itemType
;
@ExplicitConstraint
(
indexNum
=
3
,
source
=
{
"一级"
,
"二级"
,
"三级"
,
"四级"
,
"五级"
})
@ExcelProperty
(
value
=
"检查项等级"
,
index
=
3
)
@ApiModelProperty
(
value
=
"检查项等级"
)
private
String
level
;
@ExcelProperty
(
value
=
"检查方法"
,
index
=
4
)
@ApiModelProperty
(
value
=
"检查方法"
)
private
String
checkMethod
;
@ExcelProperty
(
value
=
"评分项(选择)"
,
index
=
5
)
@ApiModelProperty
(
value
=
"评分项"
)
private
String
dataJson
;
@ExcelProperty
(
value
=
"消防装备类型"
,
index
=
6
)
@ApiModelProperty
(
value
=
"消防装备类型"
)
private
String
equipmentType
;
@ExcelProperty
(
value
=
"消防设施类型"
,
index
=
7
)
@ApiModelProperty
(
value
=
"消防设施类型"
)
private
String
facilitiesType
;
@ExplicitConstraint
(
indexNum
=
8
,
source
=
{
"是"
,
"否"
})
@ExcelProperty
(
value
=
"是否重点类型"
,
index
=
8
)
@ApiModelProperty
(
value
=
"重点类型"
)
private
String
keyPartsType
=
"1"
;
@ExplicitConstraint
(
indexNum
=
9
,
source
=
{
"是"
,
"否"
})
@ExcelProperty
(
value
=
"是否自定义类型"
,
index
=
9
)
@ApiModelProperty
(
value
=
"自定义类型"
)
private
String
customType
=
"1"
;
@ExplicitConstraint
(
indexNum
=
10
,
source
=
{
"外观检查"
,
"功能测试"
,
"环境检查"
,
"其他"
})
@ExcelProperty
(
value
=
"检查类型"
,
index
=
10
)
@ApiModelProperty
(
value
=
"检查类型"
)
private
String
inputClassify
;
@ExcelProperty
(
value
=
"拍照项(文本/选择)"
,
index
=
14
)
@ApiModelProperty
(
value
=
"拍照项"
)
private
Object
pictureJson
;
@ExplicitConstraint
(
indexNum
=
11
,
source
=
{
"是"
,
"否"
})
@ExcelProperty
(
value
=
"是否必填"
,
index
=
11
)
@ApiModelProperty
(
value
=
"是否必填"
)
private
String
isMust
=
"否"
;
@ExplicitConstraint
(
indexNum
=
12
,
source
=
{
"是"
,
"否"
})
@ExcelProperty
(
value
=
"是否评分"
,
index
=
12
)
@ApiModelProperty
(
value
=
"是否评分"
)
private
String
isScore
=
"0"
;
@ExplicitConstraint
(
indexNum
=
13
,
source
=
{
"始终合格"
,
"始终不合格"
,
"无内容合格"
,
"有内容合格"
})
@ExcelProperty
(
value
=
"合格判断方法(文本)"
,
index
=
13
)
@ApiModelProperty
(
value
=
"合格判断方法"
)
private
String
checkType
=
"始终合格"
;
@ExcelProperty
(
value
=
"默认输入值(文本/数字)"
,
index
=
17
)
@ApiModelProperty
(
value
=
"默认输入值"
)
private
String
defaultValue
;
@ExcelProperty
(
value
=
"合格评分数(文本/数字)"
,
index
=
16
)
@ApiModelProperty
(
value
=
"合格评分数"
)
private
Integer
okScore
;
@ExcelProperty
(
value
=
"不合格评分数(文本/数字)"
,
index
=
15
)
@ApiModelProperty
(
value
=
"不合格评分数"
)
private
Integer
noScore
;
@ExcelProperty
(
value
=
"输入值单位(数字)"
,
index
=
27
)
@ApiModelProperty
(
value
=
"输入值单位"
)
private
String
unit
;
@ExcelProperty
(
value
=
"有效值上限(数字)"
,
index
=
18
)
@ApiModelProperty
(
value
=
"有效值上限"
)
private
Integer
validUp
;
@ExcelProperty
(
value
=
"有效值下限(数字)"
,
index
=
19
)
@ApiModelProperty
(
value
=
"有效值下限"
)
private
Integer
validDown
;
@ExcelProperty
(
value
=
"合格值上限(数字)"
,
index
=
20
)
@ApiModelProperty
(
value
=
"合格值上限"
)
private
Integer
okUp
;
@ExcelProperty
(
value
=
"合格值下限(数字)"
,
index
=
21
)
@ApiModelProperty
(
value
=
"合格值下限"
)
private
Integer
okDown
;
@ExcelProperty
(
value
=
"强制校验,输入值不能大于有效值上限(数字)"
,
index
=
22
)
@ApiModelProperty
(
value
=
"强制校验,输入值不能大于有效值上限"
)
private
String
checkValidUp
=
"false"
;
@ExcelProperty
(
value
=
"强制校验,输入值不能小于有效值下限(数字)"
,
index
=
23
)
@ApiModelProperty
(
value
=
"强制校验,输入值不能小于有效值下限"
)
private
String
checkValidDown
=
"false"
;
@ExcelProperty
(
value
=
"合格判断,输入值大于合格值上限时为不合格(数字)"
,
index
=
24
)
@ApiModelProperty
(
value
=
"合格判断,输入值大于合格值上限时为不合格"
)
private
String
checkOkUp
=
"false"
;
@ExcelProperty
(
value
=
"合格判断,输入值小于合格值上限时为不合格(数字)"
,
index
=
25
)
@ApiModelProperty
(
value
=
"合格判断,输入值小于合格值上限时为不合格"
)
private
String
checkOkDown
=
"false"
;
@ExcelProperty
(
value
=
"小数点后位数(数字)"
,
index
=
26
)
@ApiModelProperty
(
value
=
"小数点后位数"
)
private
Integer
precision
;
@ExcelIgnore
private
long
id
;
@ExcelIgnore
private
long
catalogId
;
@ExcelIgnore
private
String
inputJson
;
@ExcelIgnore
private
String
isMultiline
;
@ExcelIgnore
private
int
orderNo
;
@ExcelIgnore
private
String
orgCode
;
@ExcelIgnore
private
String
remark
;
@ExcelIgnore
private
String
riskDesc
;
/**
* 新加字段
*/
//单位code
@ExcelIgnore
private
String
bizOrgCode
;
//单位名称
@ExcelIgnore
private
String
bizOrgName
;
public
Integer
getValidUp
()
{
return
validUp
;
}
public
void
setValidUp
(
Integer
validUp
)
{
this
.
validUp
=
validUp
;
}
public
Integer
getValidDown
()
{
return
validDown
;
}
public
void
setValidDown
(
Integer
validDown
)
{
this
.
validDown
=
validDown
;
}
public
Integer
getOkUp
()
{
return
okUp
;
}
public
void
setOkUp
(
Integer
okUp
)
{
this
.
okUp
=
okUp
;
}
public
Integer
getOkDown
()
{
return
okDown
;
}
public
void
setOkDown
(
Integer
okDown
)
{
this
.
okDown
=
okDown
;
}
public
String
getCheckValidUp
()
{
return
checkValidUp
;
}
public
void
setCheckValidUp
(
String
checkValidUp
)
{
this
.
checkValidUp
=
checkValidUp
;
}
public
String
getCheckValidDown
()
{
return
checkValidDown
;
}
public
void
setCheckValidDown
(
String
checkValidDown
)
{
this
.
checkValidDown
=
checkValidDown
;
}
public
String
getCheckOkUp
()
{
return
checkOkUp
;
}
public
void
setCheckOkUp
(
String
checkOkUp
)
{
this
.
checkOkUp
=
checkOkUp
;
}
public
String
getCheckOkDown
()
{
return
checkOkDown
;
}
public
void
setCheckOkDown
(
String
checkOkDown
)
{
this
.
checkOkDown
=
checkOkDown
;
}
public
Integer
getPrecision
()
{
return
precision
;
}
public
void
setPrecision
(
Integer
precision
)
{
this
.
precision
=
precision
;
}
public
Integer
getOkScore
()
{
return
okScore
;
}
public
void
setOkScore
(
Integer
okScore
)
{
this
.
okScore
=
okScore
;
}
public
Integer
getNoScore
()
{
return
noScore
;
}
public
void
setNoScore
(
Integer
noScore
)
{
this
.
noScore
=
noScore
;
}
public
String
getCheckType
()
{
return
checkType
;
}
public
void
setCheckType
(
String
checkType
)
{
this
.
checkType
=
checkType
;
}
public
String
getBizOrgCode
()
{
return
bizOrgCode
;
}
public
void
setBizOrgCode
(
String
bizOrgCode
)
{
this
.
bizOrgCode
=
bizOrgCode
;
}
public
String
getBizOrgName
()
{
return
bizOrgName
;
}
public
void
setBizOrgName
(
String
bizOrgName
)
{
this
.
bizOrgName
=
bizOrgName
;
}
public
String
getEquipmentType
()
{
return
equipmentType
;
}
public
void
setEquipmentType
(
String
equipmentType
)
{
this
.
equipmentType
=
equipmentType
;
}
public
String
getFacilitiesType
()
{
return
facilitiesType
;
}
public
void
setFacilitiesType
(
String
facilitiesType
)
{
this
.
facilitiesType
=
facilitiesType
;
}
public
String
getKeyPartsType
()
{
return
keyPartsType
;
}
public
void
setKeyPartsType
(
String
keyPartsType
)
{
this
.
keyPartsType
=
keyPartsType
.
equals
(
"1"
)?
"否"
:
"是"
;
}
public
String
getCustomType
()
{
return
customType
;
}
/* public void setCustomType(String customType) {
this.customType = StringUtils.isEmpty(customType) ? "1":customType;
}*/
public
void
setCustomType
(
String
customType
)
{
this
.
customType
=
customType
.
equals
(
"1"
)?
"否"
:
"是"
;
}
public
String
getUnit
()
{
return
unit
;
}
public
void
setUnit
(
String
unit
)
{
this
.
unit
=
unit
;
}
public
String
getCheckMethod
()
{
return
checkMethod
;
}
public
void
setCheckMethod
(
String
checkMethod
)
{
this
.
checkMethod
=
checkMethod
;
}
public
String
getInputClassify
()
{
return
inputClassify
;
}
public
void
setInputClassify
(
String
inputClassify
)
{
this
.
inputClassify
=
PointCheckTypeEnum
.
getName
(
inputClassify
);
}
public
String
getItemNo
()
{
return
itemNo
;
}
public
void
setItemNo
(
String
itemNo
)
{
this
.
itemNo
=
itemNo
;
}
public
String
getLevel
()
{
return
PointLevelEnum
.
getName
(
Integer
.
parseInt
(
level
))
;
}
public
void
setLevel
(
String
level
)
{
this
.
level
=
level
==
null
?
null
:
String
.
valueOf
(
PointLevelEnum
.
getValue
(
level
));
}
public
long
getCatalogId
()
{
return
catalogId
;
}
public
void
setCatalogId
(
long
catalogId
)
{
this
.
catalogId
=
catalogId
;
}
public
String
getDataJson
()
{
return
dataJson
;
}
public
void
setDataJson
(
String
dataJson
)
{
this
.
dataJson
=
dataJson
;
}
public
String
getDefaultValue
()
{
return
defaultValue
;
}
public
void
setDefaultValue
(
String
defaultValue
)
{
this
.
defaultValue
=
defaultValue
;
}
public
String
getInputJson
()
{
return
inputJson
;
}
public
void
setInputJson
(
String
inputJson
)
{
this
.
inputJson
=
inputJson
;
}
public
String
getIsMultiline
()
{
return
isMultiline
;
}
public
void
setIsMultiline
(
String
isMultiline
)
{
this
.
isMultiline
=
isMultiline
;
}
public
String
getIsMust
()
{
return
isMust
;
}
public
void
setIsMust
(
String
isMust
)
{
this
.
isMust
=
isMust
;
}
public
String
getIsScore
()
{
return
isScore
;
}
public
void
setIsScore
(
String
isScore
)
{
this
.
isScore
=
isScore
;
}
public
String
getItemType
()
{
return
itemType
;
}
public
void
setItemType
(
String
itemType
)
{
this
.
itemType
=
itemType
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
int
getOrderNo
()
{
return
orderNo
;
}
public
void
setOrderNo
(
int
orderNo
)
{
this
.
orderNo
=
orderNo
;
}
public
String
getOrgCode
()
{
return
orgCode
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
Object
getPictureJson
()
{
return
pictureJson
;
}
public
void
setPictureJson
(
Object
pictureJson
)
{
this
.
pictureJson
=
pictureJson
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
long
getId
()
{
return
id
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
public
InputItemExcelVo
()
{
super
();
}
public
String
getRiskDesc
()
{
return
riskDesc
;
}
public
void
setRiskDesc
(
String
riskDesc
)
{
this
.
riskDesc
=
riskDesc
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PointServiceImpl.java
View file @
86b7ecf2
...
...
@@ -179,6 +179,7 @@ public class PointServiceImpl implements IPointService {
}
@Override
@Transactional
public
List
<
Long
>
addImportPoint
(
List
<
PointImportParam
>
list
,
String
orgCode
,
String
userId
)
{
List
<
Long
>
ids
=
new
ArrayList
<>();
...
...
@@ -192,6 +193,21 @@ public class PointServiceImpl implements IPointService {
if
(
count
>
0
)
{
// 该单位已存在该编号的点
continue
;
}
if
(
ObjectUtils
.
isEmpty
(
param
.
getChargePersonId
()))
{
throw
new
BadRequest
(
"责任人不能为空"
);
}
if
(!
ObjectUtils
.
isEmpty
(
param
.
getName
()))
{
List
<
Point
>
result
=
iPointDao
.
findByName
(
param
.
getName
(),
null
);
if
(
org
.
apache
.
commons
.
collections
.
CollectionUtils
.
isNotEmpty
(
result
))
{
throw
new
BadRequest
(
param
.
getName
()+
"该名称巡检点已存在"
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
param
.
getPointNo
()))
{
List
<
Point
>
result
=
iPointDao
.
findByNo
(
param
.
getPointNo
(),
null
);
if
(
org
.
apache
.
commons
.
collections
.
CollectionUtils
.
isNotEmpty
(
result
))
{
throw
new
BadRequest
(
param
.
getPointNo
()+
"该编号已存在"
);
}
}
point
.
setAddress
(
param
.
getAddress
());
point
.
setCatalogId
(
param
.
getCatalogId
()
==
null
?
0
:
param
.
getCatalogId
());
// 负责人
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_input_item.xml
View file @
86b7ecf2
...
...
@@ -388,7 +388,7 @@
</choose>
</select>
<select
id=
"getInputItemInfoExcelNew"
resultType=
"com.yeejoin.amos.patrol.business.dto.InputItemExcel
Dt
o"
>
<select
id=
"getInputItemInfoExcelNew"
resultType=
"com.yeejoin.amos.patrol.business.dto.InputItemExcel
V
o"
>
SELECT
a.id,
a.name,
...
...
@@ -402,40 +402,29 @@
a.input_classify,
a.check_method,
(CASE a.equipment_type
WHEN
a.equipment_type is not null and a.equipment_type =
'-1'
WHEN '-1'
THEN '通用消防装备'
ELSE
(select name from wl_equipment_category where code = a.equipment_type AND industry_code = 2)
END) as equipment_type,
(CASE a.facilities_type
WHEN
a.facilities_type is not null and a.facilities_type =
'-1'
WHEN '-1'
THEN '通用消防设施'
ELSE (select name from wl_equipment_category where code = a.facilities_type AND industry_code = 2)
END) as facilities_type,
(CASE a.level
WHEN 1 THEN
'
1
级'
'
一
级'
WHEN 2 THEN
'
2
级'
'
二
级'
WHEN 3 THEN
'
3
级'
'
三
级'
WHEN 4 THEN
'
4
级'
'
四
级'
ELSE
'5级'
END )AS level,
(CASE a.key_parts_type
WHEN 0 THEN
'是'
WHEN 1 THEN
'否'
END )AS keyPartsType,
(CASE a.custom_type
WHEN 0 THEN
'是'
WHEN 1 THEN
'否'
END )AS customType,
'五级'
IFNULL(a.key_parts_type,1) AS keyPartsType,
IFNULL(a.custom_type,1) AS customType,
a.risk_desc,
a.data_json
from
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/pointMapper.xml
View file @
86b7ecf2
...
...
@@ -1082,9 +1082,6 @@
LEFT JOIN p_point_classify ppc ON ppc.point_id = p.id
<where>
p.is_delete = 0
<if
test=
"orgCode !=null and orgCode !=''"
>
and p.org_code = #{orgCode}
</if>
<if
test=
"bizOrgCode !=null and bizOrgCode !=''"
>
and p.biz_org_code like CONCAT(#{bizOrgCode},'%')
</if>
...
...
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