Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
e56ada59
Commit
e56ada59
authored
Aug 27, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 燃气用户下 增加 安全装置加装信息 开发中
parent
0d7e386d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1177 additions
and
19 deletions
+1177
-19
TGasuserSafetyDeviceInfoController.java
...troller/supervise/TGasuserSafetyDeviceInfoController.java
+127
-0
TGasuserSafetyDeviceInfo.java
...va/com/zehong/system/domain/TGasuserSafetyDeviceInfo.java
+195
-0
TGasuserSafetyDeviceInfoMapper.java
.../zehong/system/mapper/TGasuserSafetyDeviceInfoMapper.java
+77
-0
ITGasuserSafetyDeviceInfoService.java
...hong/system/service/ITGasuserSafetyDeviceInfoService.java
+82
-0
TGasuserSafetyDeviceInfoServiceImpl.java
...tem/service/impl/TGasuserSafetyDeviceInfoServiceImpl.java
+123
-0
TGasuserSafetyDeviceInfoMapper.xml
...esources/mapper/system/TGasuserSafetyDeviceInfoMapper.xml
+133
-0
user.js
zh-baseversion-web/src/api/regulation/user.js
+40
-0
index.vue
...eb/src/views/regulation/userManagement/gasUsers/index.vue
+400
-19
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/supervise/TGasuserSafetyDeviceInfoController.java
0 → 100644
View file @
e56ada59
package
com
.
zehong
.
web
.
controller
.
supervise
;
import
java.util.List
;
import
com.zehong.system.domain.TDeviceInfoS
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.TGasuserSafetyDeviceInfo
;
import
com.zehong.system.service.ITGasuserSafetyDeviceInfoService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 用户管理-燃气用户-安全装置加装维护Controller
*
* @author zehong
* @date 2024-08-27
*/
@RestController
@RequestMapping
(
"/gasUserSafetyDevice/info"
)
public
class
TGasuserSafetyDeviceInfoController
extends
BaseController
{
@Autowired
private
ITGasuserSafetyDeviceInfoService
tGasuserSafetyDeviceInfoService
;
/**
* 查询用户管理-燃气用户-安全装置加装维护列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
)
{
startPage
();
List
<
TGasuserSafetyDeviceInfo
>
list
=
tGasuserSafetyDeviceInfoService
.
selectTGasuserSafetyDeviceInfoList
(
tGasuserSafetyDeviceInfo
);
return
getDataTable
(
list
);
}
/**
* 查询无绑定的 关联设备信息
* @return
*/
@RequestMapping
(
"/queryNoSelectSafeDeviceInfoList"
)
public
TableDataInfo
queryNoSelectSafeDeviceInfoList
(
@RequestBody
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
){
List
<
TGasuserSafetyDeviceInfo
>
tGasuserSafetyDeviceInfos
=
tGasuserSafetyDeviceInfoService
.
queryNoSelectSafeDeviceInfoList
(
tGasuserSafetyDeviceInfo
);
return
getDataTable
(
tGasuserSafetyDeviceInfos
);
}
/**
* 导出用户管理-燃气用户-安全装置加装维护列表
*/
@Log
(
title
=
"用户管理-燃气用户-安全装置加装维护"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
)
{
List
<
TGasuserSafetyDeviceInfo
>
list
=
tGasuserSafetyDeviceInfoService
.
queryNoSelectSafeDeviceInfoList
(
tGasuserSafetyDeviceInfo
);
ExcelUtil
<
TGasuserSafetyDeviceInfo
>
util
=
new
ExcelUtil
<
TGasuserSafetyDeviceInfo
>(
TGasuserSafetyDeviceInfo
.
class
);
return
util
.
exportExcel
(
list
,
"用户管理-燃气用户-安全装置加装维护数据"
);
}
/**
* 获取用户管理-燃气用户-安全装置加装维护详细信息
*/
@GetMapping
(
value
=
"/{gasUserSafetyDeviceId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"gasUserSafetyDeviceId"
)
Long
gasUserSafetyDeviceId
)
{
return
AjaxResult
.
success
(
tGasuserSafetyDeviceInfoService
.
selectTGasuserSafetyDeviceInfoById
(
gasUserSafetyDeviceId
));
}
/**
* 新增用户管理-燃气用户-安全装置加装维护
*/
@Log
(
title
=
"用户管理-燃气用户-安全装置加装维护"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
)
{
return
toAjax
(
tGasuserSafetyDeviceInfoService
.
insertTGasuserSafetyDeviceInfo
(
tGasuserSafetyDeviceInfo
));
}
/**
* 修改用户管理-燃气用户-安全装置加装维护
*/
@Log
(
title
=
"用户管理-燃气用户-安全装置加装维护"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
)
{
return
toAjax
(
tGasuserSafetyDeviceInfoService
.
updateTGasuserSafetyDeviceInfo
(
tGasuserSafetyDeviceInfo
));
}
/**
* 删除用户管理-燃气用户-安全装置加装维护
*/
@Log
(
title
=
"用户管理-燃气用户-安全装置加装维护"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{gasUserSafetyDeviceIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
gasUserSafetyDeviceIds
)
{
return
toAjax
(
tGasuserSafetyDeviceInfoService
.
deleteTGasuserSafetyDeviceInfoByIds
(
gasUserSafetyDeviceIds
));
}
/**
* 关联安装加装装置 批量删除
* @param safetyDetailIds s
*/
@RequestMapping
(
"/deleteSafetyDeviceListInfo"
)
public
void
deleteSafetyDeviceListInfo
(
@RequestBody
Long
[]
safetyDetailIds
){
tGasuserSafetyDeviceInfoService
.
deleteSafetyDeviceListInfo
(
safetyDetailIds
);
}
/**
* 关联安装加装装置 单条删除
* @param safetyDetailId i
*/
@RequestMapping
(
"/deleteSafetyDeviceInfo"
)
public
void
deleteSafetyDeviceInfo
(
@RequestBody
Long
safetyDetailId
){
tGasuserSafetyDeviceInfoService
.
deleteSafetyDeviceInfo
(
safetyDetailId
);
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TGasuserSafetyDeviceInfo.java
0 → 100644
View file @
e56ada59
package
com
.
zehong
.
system
.
domain
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 用户管理-燃气用户-安全装置加装维护对象 t_gasuser_safety_device_info
*
* @author zehong
* @date 2024-08-27
*/
public
class
TGasuserSafetyDeviceInfo
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 安全装置加装ID */
private
Long
gasUserSafetyDeviceId
;
/** 用户管理-燃气用户关联id */
@Excel
(
name
=
"用户管理-燃气用户关联id"
)
private
Long
relationGasuserId
;
/** 关联设备类型 */
@Excel
(
name
=
"关联设备类型"
)
private
String
relationDeviceType
;
/** 设备名称 */
@Excel
(
name
=
"设备名称"
)
private
String
deviceName
;
/** 设备型号 */
@Excel
(
name
=
"设备型号"
)
private
String
deviceModel
;
/** 物联网编号 */
@Excel
(
name
=
"物联网编号"
)
private
String
fIotNo
;
/** 探测介质 */
@Excel
(
name
=
"探测介质"
)
private
String
detectionMedium
;
/** 设备安装时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"设备安装时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
deviceInstallTime
;
/** 安装位置 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"安装位置"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
deviceInstallPosition
;
/** 负责人 */
@Excel
(
name
=
"负责人"
)
private
String
head
;
/** 联系电话 */
@Excel
(
name
=
"联系电话"
)
private
String
phone
;
/** 是否删除(0正常,1删除) */
@Excel
(
name
=
"是否删除(0正常,1删除)"
)
private
String
isDel
;
public
void
setGasUserSafetyDeviceId
(
Long
gasUserSafetyDeviceId
)
{
this
.
gasUserSafetyDeviceId
=
gasUserSafetyDeviceId
;
}
public
Long
getGasUserSafetyDeviceId
()
{
return
gasUserSafetyDeviceId
;
}
public
void
setRelationGasuserId
(
Long
relationGasuserId
)
{
this
.
relationGasuserId
=
relationGasuserId
;
}
public
Long
getRelationGasuserId
()
{
return
relationGasuserId
;
}
public
void
setRelationDeviceType
(
String
relationDeviceType
)
{
this
.
relationDeviceType
=
relationDeviceType
;
}
public
String
getRelationDeviceType
()
{
return
relationDeviceType
;
}
public
void
setDeviceName
(
String
deviceName
)
{
this
.
deviceName
=
deviceName
;
}
public
String
getDeviceName
()
{
return
deviceName
;
}
public
void
setDeviceModel
(
String
deviceModel
)
{
this
.
deviceModel
=
deviceModel
;
}
public
String
getDeviceModel
()
{
return
deviceModel
;
}
public
void
setfIotNo
(
String
fIotNo
)
{
this
.
fIotNo
=
fIotNo
;
}
public
String
getfIotNo
()
{
return
fIotNo
;
}
public
void
setDetectionMedium
(
String
detectionMedium
)
{
this
.
detectionMedium
=
detectionMedium
;
}
public
String
getDetectionMedium
()
{
return
detectionMedium
;
}
public
void
setDeviceInstallTime
(
Date
deviceInstallTime
)
{
this
.
deviceInstallTime
=
deviceInstallTime
;
}
public
Date
getDeviceInstallTime
()
{
return
deviceInstallTime
;
}
public
void
setDeviceInstallPosition
(
Date
deviceInstallPosition
)
{
this
.
deviceInstallPosition
=
deviceInstallPosition
;
}
public
Date
getDeviceInstallPosition
()
{
return
deviceInstallPosition
;
}
public
void
setHead
(
String
head
)
{
this
.
head
=
head
;
}
public
String
getHead
()
{
return
head
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
public
String
getPhone
()
{
return
phone
;
}
public
void
setIsDel
(
String
isDel
)
{
this
.
isDel
=
isDel
;
}
public
String
getIsDel
()
{
return
isDel
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"gasUserSafetyDeviceId"
,
getGasUserSafetyDeviceId
())
.
append
(
"relationGasuserId"
,
getRelationGasuserId
())
.
append
(
"relationDeviceType"
,
getRelationDeviceType
())
.
append
(
"deviceName"
,
getDeviceName
())
.
append
(
"deviceModel"
,
getDeviceModel
())
.
append
(
"fIotNo"
,
getfIotNo
())
.
append
(
"detectionMedium"
,
getDetectionMedium
())
.
append
(
"deviceInstallTime"
,
getDeviceInstallTime
())
.
append
(
"deviceInstallPosition"
,
getDeviceInstallPosition
())
.
append
(
"head"
,
getHead
())
.
append
(
"phone"
,
getPhone
())
.
append
(
"isDel"
,
getIsDel
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TGasuserSafetyDeviceInfoMapper.java
0 → 100644
View file @
e56ada59
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TGasuserSafetyDeviceInfo
;
/**
* 用户管理-燃气用户-安全装置加装维护Mapper接口
*
* @author zehong
* @date 2024-08-27
*/
public
interface
TGasuserSafetyDeviceInfoMapper
{
/**
* 查询用户管理-燃气用户-安全装置加装维护
*
* @param gasUserSafetyDeviceId 用户管理-燃气用户-安全装置加装维护ID
* @return 用户管理-燃气用户-安全装置加装维护
*/
public
TGasuserSafetyDeviceInfo
selectTGasuserSafetyDeviceInfoById
(
Long
gasUserSafetyDeviceId
);
/**
* 查询用户管理-燃气用户-安全装置加装维护列表
*
* @param tGasuserSafetyDeviceInfo 用户管理-燃气用户-安全装置加装维护
* @return 用户管理-燃气用户-安全装置加装维护集合
*/
public
List
<
TGasuserSafetyDeviceInfo
>
selectTGasuserSafetyDeviceInfoList
(
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
);
/**
* 查询没有被关联的数据
* @param gasuserSafetyDeviceInfo g
* @return r
*/
public
List
<
TGasuserSafetyDeviceInfo
>
queryNoSelectSafeDeviceInfoList
(
TGasuserSafetyDeviceInfo
gasuserSafetyDeviceInfo
);
/**
* 新增用户管理-燃气用户-安全装置加装维护
*
* @param tGasuserSafetyDeviceInfo 用户管理-燃气用户-安全装置加装维护
* @return 结果
*/
public
int
insertTGasuserSafetyDeviceInfo
(
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
);
/**
* 修改用户管理-燃气用户-安全装置加装维护
*
* @param tGasuserSafetyDeviceInfo 用户管理-燃气用户-安全装置加装维护
* @return 结果
*/
public
int
updateTGasuserSafetyDeviceInfo
(
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
);
/**
* 删除用户管理-燃气用户-安全装置加装维护
*
* @param gasUserSafetyDeviceId 用户管理-燃气用户-安全装置加装维护ID
* @return 结果
*/
public
int
deleteTGasuserSafetyDeviceInfoById
(
Long
gasUserSafetyDeviceId
);
/**
* 批量删除用户管理-燃气用户-安全装置加装维护
*
* @param gasUserSafetyDeviceIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTGasuserSafetyDeviceInfoByIds
(
Long
[]
gasUserSafetyDeviceIds
);
/**
* 逻辑删除
* @param gasUserSafetyDeviceIds gas
* @return r
*/
public
int
deleteSafetyDeviceListInfo
(
Long
[]
gasUserSafetyDeviceIds
);
public
int
deleteSafetyDeviceInfo
(
Long
deviceId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITGasuserSafetyDeviceInfoService.java
0 → 100644
View file @
e56ada59
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TGasuserSafetyDeviceInfo
;
/**
* 用户管理-燃气用户-安全装置加装维护Service接口
*
* @author zehong
* @date 2024-08-27
*/
public
interface
ITGasuserSafetyDeviceInfoService
{
/**
* 查询用户管理-燃气用户-安全装置加装维护
*
* @param gasUserSafetyDeviceId 用户管理-燃气用户-安全装置加装维护ID
* @return 用户管理-燃气用户-安全装置加装维护
*/
public
TGasuserSafetyDeviceInfo
selectTGasuserSafetyDeviceInfoById
(
Long
gasUserSafetyDeviceId
);
/**
* 查询用户管理-燃气用户-安全装置加装维护列表
*
* @param tGasuserSafetyDeviceInfo 用户管理-燃气用户-安全装置加装维护
* @return 用户管理-燃气用户-安全装置加装维护集合
*/
public
List
<
TGasuserSafetyDeviceInfo
>
selectTGasuserSafetyDeviceInfoList
(
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
);
/**
* 查询用户管理-燃气用户-安全装置加装维护列表-燃气用户界面使用
*
* @param tGasuserSafetyDeviceInfo 用户管理-燃气用户-安全装置加装维护
* @return 用户管理-燃气用户-安全装置加装维护集合
*/
public
List
<
TGasuserSafetyDeviceInfo
>
queryNoSelectSafeDeviceInfoList
(
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
);
/**
* 新增用户管理-燃气用户-安全装置加装维护
*
* @param tGasuserSafetyDeviceInfo 用户管理-燃气用户-安全装置加装维护
* @return 结果
*/
public
int
insertTGasuserSafetyDeviceInfo
(
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
);
/**
* 修改用户管理-燃气用户-安全装置加装维护
*
* @param tGasuserSafetyDeviceInfo 用户管理-燃气用户-安全装置加装维护
* @return 结果
*/
public
int
updateTGasuserSafetyDeviceInfo
(
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
);
/**
* 批量删除用户管理-燃气用户-安全装置加装维护
*
* @param gasUserSafetyDeviceIds 需要删除的用户管理-燃气用户-安全装置加装维护ID
* @return 结果
*/
public
int
deleteTGasuserSafetyDeviceInfoByIds
(
Long
[]
gasUserSafetyDeviceIds
);
/**
* 关联设备数据删除接口
* @param deviceIds
*/
void
deleteSafetyDeviceListInfo
(
Long
[]
deviceIds
);
/**
* 关联设备数据删除接口
* @param deviceIds
*/
void
deleteSafetyDeviceInfo
(
Long
deviceId
);
/**
* 删除用户管理-燃气用户-安全装置加装维护信息
*
* @param gasUserSafetyDeviceId 用户管理-燃气用户-安全装置加装维护ID
* @return 结果
*/
public
int
deleteTGasuserSafetyDeviceInfoById
(
Long
gasUserSafetyDeviceId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TGasuserSafetyDeviceInfoServiceImpl.java
0 → 100644
View file @
e56ada59
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TGasuserSafetyDeviceInfoMapper
;
import
com.zehong.system.domain.TGasuserSafetyDeviceInfo
;
import
com.zehong.system.service.ITGasuserSafetyDeviceInfoService
;
import
javax.annotation.Resource
;
/**
* 用户管理-燃气用户-安全装置加装维护Service业务层处理
*
* @author zehong
* @date 2024-08-27
*/
@Service
public
class
TGasuserSafetyDeviceInfoServiceImpl
implements
ITGasuserSafetyDeviceInfoService
{
@Resource
private
TGasuserSafetyDeviceInfoMapper
tGasuserSafetyDeviceInfoMapper
;
/**
* 查询用户管理-燃气用户-安全装置加装维护
*
* @param gasUserSafetyDeviceId 用户管理-燃气用户-安全装置加装维护ID
* @return 用户管理-燃气用户-安全装置加装维护
*/
@Override
public
TGasuserSafetyDeviceInfo
selectTGasuserSafetyDeviceInfoById
(
Long
gasUserSafetyDeviceId
)
{
return
tGasuserSafetyDeviceInfoMapper
.
selectTGasuserSafetyDeviceInfoById
(
gasUserSafetyDeviceId
);
}
/**
* 查询用户管理-燃气用户-安全装置加装维护列表
*
* @param tGasuserSafetyDeviceInfo 用户管理-燃气用户-安全装置加装维护
* @return 用户管理-燃气用户-安全装置加装维护
*/
@Override
public
List
<
TGasuserSafetyDeviceInfo
>
selectTGasuserSafetyDeviceInfoList
(
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
)
{
return
tGasuserSafetyDeviceInfoMapper
.
selectTGasuserSafetyDeviceInfoList
(
tGasuserSafetyDeviceInfo
);
}
/**
* 查询用户管理-燃气用户-安全装置加装维护列表-燃气用户界面使用
*
* @param tGasuserSafetyDeviceInfo 用户管理-燃气用户-安全装置加装维护
* @return 用户管理-燃气用户-安全装置加装维护集合
*/
@Override
public
List
<
TGasuserSafetyDeviceInfo
>
queryNoSelectSafeDeviceInfoList
(
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
)
{
return
tGasuserSafetyDeviceInfoMapper
.
queryNoSelectSafeDeviceInfoList
(
tGasuserSafetyDeviceInfo
);
}
/**
* 新增用户管理-燃气用户-安全装置加装维护
*
* @param tGasuserSafetyDeviceInfo 用户管理-燃气用户-安全装置加装维护
* @return 结果
*/
@Override
public
int
insertTGasuserSafetyDeviceInfo
(
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
)
{
return
tGasuserSafetyDeviceInfoMapper
.
insertTGasuserSafetyDeviceInfo
(
tGasuserSafetyDeviceInfo
);
}
/**
* 修改用户管理-燃气用户-安全装置加装维护
*
* @param tGasuserSafetyDeviceInfo 用户管理-燃气用户-安全装置加装维护
* @return 结果
*/
@Override
public
int
updateTGasuserSafetyDeviceInfo
(
TGasuserSafetyDeviceInfo
tGasuserSafetyDeviceInfo
)
{
return
tGasuserSafetyDeviceInfoMapper
.
updateTGasuserSafetyDeviceInfo
(
tGasuserSafetyDeviceInfo
);
}
/**
* 批量删除用户管理-燃气用户-安全装置加装维护
*
* @param gasUserSafetyDeviceIds 需要删除的用户管理-燃气用户-安全装置加装维护ID
* @return 结果
*/
@Override
public
int
deleteTGasuserSafetyDeviceInfoByIds
(
Long
[]
gasUserSafetyDeviceIds
)
{
return
tGasuserSafetyDeviceInfoMapper
.
deleteTGasuserSafetyDeviceInfoByIds
(
gasUserSafetyDeviceIds
);
}
/**
* 关联安装加装装置 批量删除
* @param deviceIds ids
*/
@Override
public
void
deleteSafetyDeviceListInfo
(
Long
[]
deviceIds
)
{
tGasuserSafetyDeviceInfoMapper
.
deleteSafetyDeviceListInfo
(
deviceIds
);
}
/**
* 关联安装加装装置 单条删除
* @param deviceId deviceId
*/
@Override
public
void
deleteSafetyDeviceInfo
(
Long
deviceId
)
{
tGasuserSafetyDeviceInfoMapper
.
deleteSafetyDeviceInfo
(
deviceId
);
}
/**
* 删除用户管理-燃气用户-安全装置加装维护信息
*
* @param gasUserSafetyDeviceId 用户管理-燃气用户-安全装置加装维护ID
* @return 结果
*/
@Override
public
int
deleteTGasuserSafetyDeviceInfoById
(
Long
gasUserSafetyDeviceId
)
{
return
tGasuserSafetyDeviceInfoMapper
.
deleteTGasuserSafetyDeviceInfoById
(
gasUserSafetyDeviceId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/TGasuserSafetyDeviceInfoMapper.xml
0 → 100644
View file @
e56ada59
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TGasuserSafetyDeviceInfoMapper"
>
<resultMap
type=
"TGasuserSafetyDeviceInfo"
id=
"TGasuserSafetyDeviceInfoResult"
>
<result
property=
"gasUserSafetyDeviceId"
column=
"f_gasUser_safety_device_id"
/>
<result
property=
"relationGasuserId"
column=
"f_relation_gasUser_id"
/>
<result
property=
"relationDeviceType"
column=
"f_relation_device_type"
/>
<result
property=
"deviceName"
column=
"f_device_name"
/>
<result
property=
"deviceModel"
column=
"f_device_model"
/>
<result
property=
"fIotNo"
column=
"f_iot_no"
/>
<result
property=
"detectionMedium"
column=
"f_detection_medium"
/>
<result
property=
"deviceInstallTime"
column=
"f_device_install_time"
/>
<result
property=
"deviceInstallPosition"
column=
"f_device_install_position"
/>
<result
property=
"head"
column=
"f_head"
/>
<result
property=
"phone"
column=
"f_phone"
/>
<result
property=
"isDel"
column=
"is_del"
/>
</resultMap>
<sql
id=
"selectTGasuserSafetyDeviceInfoVo"
>
select f_gasUser_safety_device_id, f_relation_gasUser_id, f_relation_device_type, f_device_name, f_device_model, f_iot_no, f_detection_medium, f_device_install_time, f_device_install_position, f_head, f_phone, is_del from t_gasuser_safety_device_info
</sql>
<select
id=
"selectTGasuserSafetyDeviceInfoList"
parameterType=
"TGasuserSafetyDeviceInfo"
resultMap=
"TGasuserSafetyDeviceInfoResult"
>
<include
refid=
"selectTGasuserSafetyDeviceInfoVo"
/>
<where>
<if
test=
"relationGasuserId != null "
>
and f_relation_gasUser_id = #{relationGasuserId}
</if>
<if
test=
"relationDeviceType != null and relationDeviceType != ''"
>
and f_relation_device_type = #{relationDeviceType}
</if>
<if
test=
"deviceName != null and deviceName != ''"
>
and f_device_name like concat('%', #{deviceName}, '%')
</if>
<if
test=
"deviceModel != null and deviceModel != ''"
>
and f_device_model = #{deviceModel}
</if>
<if
test=
"fIotNo != null and fIotNo != ''"
>
and f_iot_no = #{fIotNo}
</if>
<if
test=
"detectionMedium != null and detectionMedium != ''"
>
and f_detection_medium = #{detectionMedium}
</if>
<if
test=
"deviceInstallTime != null "
>
and f_device_install_time = #{deviceInstallTime}
</if>
<if
test=
"deviceInstallPosition != null "
>
and f_device_install_position = #{deviceInstallPosition}
</if>
<if
test=
"head != null and head != ''"
>
and f_head = #{head}
</if>
<if
test=
"phone != null and phone != ''"
>
and f_phone = #{phone}
</if>
<if
test=
"isDel != null and isDel != ''"
>
and is_del = #{isDel}
</if>
</where>
</select>
<select
id=
"queryNoSelectSafeDeviceInfoList"
parameterType=
"tGasuserSafetyDeviceInfo"
resultMap=
"TGasuserSafetyDeviceInfoResult"
>
<include
refid=
"selectTGasuserSafetyDeviceInfoVo"
/>
<where>
is_del='0' and f_relation_gasUser_id is null
<if
test=
"relationGasuserId != null "
>
and f_relation_gasUser_id = #{relationGasuserId}
</if>
<if
test=
"relationDeviceType != null and relationDeviceType != ''"
>
and f_relation_device_type = #{relationDeviceType}
</if>
<if
test=
"deviceName != null and deviceName != ''"
>
and f_device_name like concat('%', #{deviceName}, '%')
</if>
<if
test=
"deviceModel != null and deviceModel != ''"
>
and f_device_model = #{deviceModel}
</if>
<if
test=
"fIotNo != null and fIotNo != ''"
>
and f_iot_no = #{fIotNo}
</if>
<if
test=
"detectionMedium != null and detectionMedium != ''"
>
and f_detection_medium = #{detectionMedium}
</if>
<if
test=
"deviceInstallTime != null "
>
and f_device_install_time = #{deviceInstallTime}
</if>
<if
test=
"deviceInstallPosition != null "
>
and f_device_install_position = #{deviceInstallPosition}
</if>
<if
test=
"head != null and head != ''"
>
and f_head = #{head}
</if>
<if
test=
"phone != null and phone != ''"
>
and f_phone = #{phone}
</if>
<if
test=
"isDel != null and isDel != ''"
>
and is_del = #{isDel}
</if>
</where>
</select>
<select
id=
"selectTGasuserSafetyDeviceInfoById"
parameterType=
"Long"
resultMap=
"TGasuserSafetyDeviceInfoResult"
>
<include
refid=
"selectTGasuserSafetyDeviceInfoVo"
/>
where f_gasUser_safety_device_id = #{gasUserSafetyDeviceId}
</select>
<insert
id=
"insertTGasuserSafetyDeviceInfo"
parameterType=
"TGasuserSafetyDeviceInfo"
useGeneratedKeys=
"true"
keyProperty=
"gasUserSafetyDeviceId"
>
insert into t_gasuser_safety_device_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"relationGasuserId != null"
>
f_relation_gasUser_id,
</if>
<if
test=
"relationDeviceType != null"
>
f_relation_device_type,
</if>
<if
test=
"deviceName != null"
>
f_device_name,
</if>
<if
test=
"deviceModel != null"
>
f_device_model,
</if>
<if
test=
"fIotNo != null"
>
f_iot_no,
</if>
<if
test=
"detectionMedium != null"
>
f_detection_medium,
</if>
<if
test=
"deviceInstallTime != null"
>
f_device_install_time,
</if>
<if
test=
"deviceInstallPosition != null"
>
f_device_install_position,
</if>
<if
test=
"head != null"
>
f_head,
</if>
<if
test=
"phone != null"
>
f_phone,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"relationGasuserId != null"
>
#{relationGasuserId},
</if>
<if
test=
"relationDeviceType != null"
>
#{relationDeviceType},
</if>
<if
test=
"deviceName != null"
>
#{deviceName},
</if>
<if
test=
"deviceModel != null"
>
#{deviceModel},
</if>
<if
test=
"fIotNo != null"
>
#{fIotNo},
</if>
<if
test=
"detectionMedium != null"
>
#{detectionMedium},
</if>
<if
test=
"deviceInstallTime != null"
>
#{deviceInstallTime},
</if>
<if
test=
"deviceInstallPosition != null"
>
#{deviceInstallPosition},
</if>
<if
test=
"head != null"
>
#{head},
</if>
<if
test=
"phone != null"
>
#{phone},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
</trim>
</insert>
<update
id=
"updateTGasuserSafetyDeviceInfo"
parameterType=
"TGasuserSafetyDeviceInfo"
>
update t_gasuser_safety_device_info
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"relationGasuserId != null"
>
f_relation_gasUser_id = #{relationGasuserId},
</if>
<if
test=
"relationDeviceType != null"
>
f_relation_device_type = #{relationDeviceType},
</if>
<if
test=
"deviceName != null"
>
f_device_name = #{deviceName},
</if>
<if
test=
"deviceModel != null"
>
f_device_model = #{deviceModel},
</if>
<if
test=
"fIotNo != null"
>
f_iot_no = #{fIotNo},
</if>
<if
test=
"detectionMedium != null"
>
f_detection_medium = #{detectionMedium},
</if>
<if
test=
"deviceInstallTime != null"
>
f_device_install_time = #{deviceInstallTime},
</if>
<if
test=
"deviceInstallPosition != null"
>
f_device_install_position = #{deviceInstallPosition},
</if>
<if
test=
"head != null"
>
f_head = #{head},
</if>
<if
test=
"phone != null"
>
f_phone = #{phone},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
</trim>
where f_gasUser_safety_device_id = #{gasUserSafetyDeviceId}
</update>
<delete
id=
"deleteTGasuserSafetyDeviceInfoById"
parameterType=
"Long"
>
delete from t_gasuser_safety_device_info where f_gasUser_safety_device_id = #{gasUserSafetyDeviceId}
</delete>
<delete
id=
"deleteTGasuserSafetyDeviceInfoByIds"
parameterType=
"String"
>
delete from t_gasuser_safety_device_info where f_gasUser_safety_device_id in
<foreach
item=
"gasUserSafetyDeviceId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{gasUserSafetyDeviceId}
</foreach>
</delete>
<update
id=
"deleteSafetyDeviceListInfo"
>
update t_gasuser_safety_device_info set is_del='1' where f_gasUser_safety_device_id in
<foreach
item=
"deviceId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{deviceId}
</foreach>
</update>
<update
id=
"deleteSafetyDeviceInfo"
>
update t_gasuser_safety_device_info set is_del='1' where f_gasUser_safety_device_id = #{deviceId}
</update>
</mapper>
\ No newline at end of file
zh-baseversion-web/src/api/regulation/user.js
View file @
e56ada59
...
...
@@ -60,4 +60,44 @@ export function newExportUser(query) {
method
:
'get'
,
params
:
query
})
}
// 查询 安装加装装置数据
export
function
getNoSelectSafetyDetailInfo
(
data
)
{
return
request
({
url
:
'/gasUserSafetyDevice/info/queryNoSelectSafeDeviceInfoList'
,
method
:
'post'
,
data
:
data
})
}
// 查询 安装加装装置数据
export
function
addSafetyDetailInfo
(
data
)
{
return
request
({
url
:
'/gasUserSafetyDevice/info'
,
method
:
'post'
,
data
:
data
})
}
// 关联安装加装装置 批量删除
export
function
deleteSafetyDeviceListInfo
(
data
)
{
return
request
({
url
:
'/gasUserSafetyDevice/deleteSafetyDeviceListInfo'
,
method
:
'post'
,
data
:
data
})
}
// 删除关联设备信息
export
function
deleteSafetyDeviceInfo
(
deviceId
)
{
return
request
({
url
:
'/gasUserSafetyDevice/deleteSafetyDeviceInfo'
,
method
:
'delete'
,
data
:
deviceId
})
}
\ No newline at end of file
zh-baseversion-web/src/views/regulation/userManagement/gasUsers/index.vue
View file @
e56ada59
This diff is collapsed.
Click to expand it.
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