Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhmes-agecal
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
耿迪迪
zhmes-agecal
Commits
5179d8fe
Commit
5179d8fe
authored
Jun 06, 2025
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通讯3次、托盘、点位
parent
1504025b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
718 additions
and
127 deletions
+718
-127
EquipmentDataCollection.java
...ong/web/controller/equipment/EquipmentDataCollection.java
+36
-51
TPointInfoController.java
...zehong/web/controller/equipment/TPointInfoController.java
+8
-1
TTrayInfoController.java
.../zehong/web/controller/equipment/TTrayInfoController.java
+103
-0
TPointInfo.java
...em/src/main/java/com/zehong/system/domain/TPointInfo.java
+60
-31
TStoreyInfo.java
...m/src/main/java/com/zehong/system/domain/TStoreyInfo.java
+2
-15
TTrayInfo.java
...tem/src/main/java/com/zehong/system/domain/TTrayInfo.java
+126
-0
TPointInfoMapper.java
.../main/java/com/zehong/system/mapper/TPointInfoMapper.java
+1
-1
TTrayInfoMapper.java
...c/main/java/com/zehong/system/mapper/TTrayInfoMapper.java
+61
-0
ITPointInfoService.java
...in/java/com/zehong/system/service/ITPointInfoService.java
+1
-1
ITTrayInfoService.java
...ain/java/com/zehong/system/service/ITTrayInfoService.java
+61
-0
TPointInfoServiceImpl.java
...com/zehong/system/service/impl/TPointInfoServiceImpl.java
+1
-1
TTrayInfoServiceImpl.java
.../com/zehong/system/service/impl/TTrayInfoServiceImpl.java
+93
-0
TPointInfoMapper.xml
...tem/src/main/resources/mapper/system/TPointInfoMapper.xml
+31
-21
TStoreyInfoMapper.xml
...em/src/main/resources/mapper/system/TStoreyInfoMapper.xml
+0
-5
TTrayInfoMapper.xml
...stem/src/main/resources/mapper/system/TTrayInfoMapper.xml
+81
-0
tray.js
zhmes-agecal-web/src/api/tray/tray.js
+53
-0
No files found.
zhmes-agecal-admin/src/main/java/com/zehong/web/controller/equipment/EquipmentDataCollection.java
View file @
5179d8fe
This diff is collapsed.
Click to expand it.
zhmes-agecal-admin/src/main/java/com/zehong/web/controller/equipment/TPointInfoController.java
View file @
5179d8fe
package
com
.
zehong
.
web
.
controller
.
equipment
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
...
@@ -23,7 +24,7 @@ import com.zehong.common.core.page.TableDataInfo;
* 老化层点位信息Controller
*
* @author zehong
* @date 2025-0
5-28
* @date 2025-0
6-06
*/
@RestController
@RequestMapping
(
"/point"
)
...
...
@@ -35,6 +36,7 @@ public class TPointInfoController extends BaseController
/**
* 查询老化层点位信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('point:point:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TPointInfo
tPointInfo
)
{
...
...
@@ -46,6 +48,7 @@ public class TPointInfoController extends BaseController
/**
* 导出老化层点位信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('point:point:export')"
)
@Log
(
title
=
"老化层点位信息"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TPointInfo
tPointInfo
)
...
...
@@ -58,6 +61,7 @@ public class TPointInfoController extends BaseController
/**
* 获取老化层点位信息详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('point:point:query')"
)
@GetMapping
(
value
=
"/{fPointId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fPointId"
)
Long
fPointId
)
{
...
...
@@ -67,6 +71,7 @@ public class TPointInfoController extends BaseController
/**
* 新增老化层点位信息
*/
@PreAuthorize
(
"@ss.hasPermi('point:point:add')"
)
@Log
(
title
=
"老化层点位信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TPointInfo
tPointInfo
)
...
...
@@ -77,6 +82,7 @@ public class TPointInfoController extends BaseController
/**
* 修改老化层点位信息
*/
@PreAuthorize
(
"@ss.hasPermi('point:point:edit')"
)
@Log
(
title
=
"老化层点位信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TPointInfo
tPointInfo
)
...
...
@@ -87,6 +93,7 @@ public class TPointInfoController extends BaseController
/**
* 删除老化层点位信息
*/
@PreAuthorize
(
"@ss.hasPermi('point:point:remove')"
)
@Log
(
title
=
"老化层点位信息"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fPointIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fPointIds
)
...
...
zhmes-agecal-admin/src/main/java/com/zehong/web/controller/equipment/TTrayInfoController.java
0 → 100644
View file @
5179d8fe
package
com
.
zehong
.
web
.
controller
.
equipment
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
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.TTrayInfo
;
import
com.zehong.system.service.ITTrayInfoService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 托盘信息Controller
*
* @author zehong
* @date 2025-06-06
*/
@RestController
@RequestMapping
(
"/tray"
)
public
class
TTrayInfoController
extends
BaseController
{
@Autowired
private
ITTrayInfoService
tTrayInfoService
;
/**
* 查询托盘信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('tray:tray:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TTrayInfo
tTrayInfo
)
{
startPage
();
List
<
TTrayInfo
>
list
=
tTrayInfoService
.
selectTTrayInfoList
(
tTrayInfo
);
return
getDataTable
(
list
);
}
/**
* 导出托盘信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('tray:tray:export')"
)
@Log
(
title
=
"托盘信息"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TTrayInfo
tTrayInfo
)
{
List
<
TTrayInfo
>
list
=
tTrayInfoService
.
selectTTrayInfoList
(
tTrayInfo
);
ExcelUtil
<
TTrayInfo
>
util
=
new
ExcelUtil
<
TTrayInfo
>(
TTrayInfo
.
class
);
return
util
.
exportExcel
(
list
,
"托盘信息数据"
);
}
/**
* 获取托盘信息详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('tray:tray:query')"
)
@GetMapping
(
value
=
"/{fTrayId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fTrayId"
)
Long
fTrayId
)
{
return
AjaxResult
.
success
(
tTrayInfoService
.
selectTTrayInfoById
(
fTrayId
));
}
/**
* 新增托盘信息
*/
@PreAuthorize
(
"@ss.hasPermi('tray:tray:add')"
)
@Log
(
title
=
"托盘信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TTrayInfo
tTrayInfo
)
{
return
toAjax
(
tTrayInfoService
.
insertTTrayInfo
(
tTrayInfo
));
}
/**
* 修改托盘信息
*/
@PreAuthorize
(
"@ss.hasPermi('tray:tray:edit')"
)
@Log
(
title
=
"托盘信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TTrayInfo
tTrayInfo
)
{
return
toAjax
(
tTrayInfoService
.
updateTTrayInfo
(
tTrayInfo
));
}
/**
* 删除托盘信息
*/
@PreAuthorize
(
"@ss.hasPermi('tray:tray:remove')"
)
@Log
(
title
=
"托盘信息"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fTrayIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fTrayIds
)
{
return
toAjax
(
tTrayInfoService
.
deleteTTrayInfoByIds
(
fTrayIds
));
}
}
zhmes-agecal-system/src/main/java/com/zehong/system/domain/TPointInfo.java
View file @
5179d8fe
...
...
@@ -11,7 +11,7 @@ import com.zehong.common.core.domain.BaseEntity;
* 老化层点位信息对象 t_point_info
*
* @author zehong
* @date 2025-0
5-28
* @date 2025-0
6-06
*/
public
class
TPointInfo
extends
BaseEntity
{
...
...
@@ -20,9 +20,9 @@ public class TPointInfo extends BaseEntity
/** 点位ID */
private
Long
fPointId
;
/** 所属
层
ID */
@Excel
(
name
=
"所属
层
ID"
)
private
Long
f
Store
yId
;
/** 所属
托盘
ID */
@Excel
(
name
=
"所属
托盘
ID"
)
private
Long
f
Tra
yId
;
/** 点位编号 */
@Excel
(
name
=
"点位编号"
)
...
...
@@ -30,7 +30,7 @@ public class TPointInfo extends BaseEntity
/** 绑定PCBA设备号 */
@Excel
(
name
=
"绑定PCBA设备号"
)
private
Long
fDevice
Code
;
private
String
fPcba
Code
;
/** 点位状态:0在线,1离线,2故障 */
@Excel
(
name
=
"点位状态:0在线,1离线,2故障"
)
...
...
@@ -41,15 +41,24 @@ public class TPointInfo extends BaseEntity
@Excel
(
name
=
"创建时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fCreateTime
;
/** 更新时间 */
/** 板子状态:0预热,1正常,3传感器故障,4报警,5通讯故障 */
@Excel
(
name
=
"板子状态:0预热,1正常,3传感器故障,4报警,5通讯故障"
)
private
String
fPcbaStatus
;
/** 绑定时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"绑定时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fBindingTime
;
/** 解绑时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"
更新
时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fU
pdate
Time
;
@Excel
(
name
=
"
解绑
时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fU
nbinding
Time
;
/**
报警
时间 */
/**
上料
时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"
报警
时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
f
Alarm
Time
;
@Excel
(
name
=
"
上料
时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
f
Loading
Time
;
public
void
setfPointId
(
Long
fPointId
)
{
...
...
@@ -60,14 +69,14 @@ public class TPointInfo extends BaseEntity
{
return
fPointId
;
}
public
void
setf
StoreyId
(
Long
fStore
yId
)
public
void
setf
TrayId
(
Long
fTra
yId
)
{
this
.
f
StoreyId
=
fStore
yId
;
this
.
f
TrayId
=
fTra
yId
;
}
public
Long
getf
Store
yId
()
public
Long
getf
Tra
yId
()
{
return
f
Store
yId
;
return
f
Tra
yId
;
}
public
void
setfPointCode
(
String
fPointCode
)
{
...
...
@@ -78,14 +87,14 @@ public class TPointInfo extends BaseEntity
{
return
fPointCode
;
}
public
void
setf
DeviceCode
(
Long
fDevice
Code
)
public
void
setf
PcbaCode
(
String
fPcba
Code
)
{
this
.
f
DeviceCode
=
fDevice
Code
;
this
.
f
PcbaCode
=
fPcba
Code
;
}
public
Long
getfDevice
Code
()
public
String
getfPcba
Code
()
{
return
f
Device
Code
;
return
f
Pcba
Code
;
}
public
void
setfStatus
(
String
fStatus
)
{
...
...
@@ -105,36 +114,56 @@ public class TPointInfo extends BaseEntity
{
return
fCreateTime
;
}
public
void
setfUpdateTime
(
Date
fUpdateTime
)
public
void
setfPcbaStatus
(
String
fPcbaStatus
)
{
this
.
fPcbaStatus
=
fPcbaStatus
;
}
public
String
getfPcbaStatus
()
{
return
fPcbaStatus
;
}
public
void
setfBindingTime
(
Date
fBindingTime
)
{
this
.
fBindingTime
=
fBindingTime
;
}
public
Date
getfBindingTime
()
{
return
fBindingTime
;
}
public
void
setfUnbindingTime
(
Date
fUnbindingTime
)
{
this
.
fU
pdateTime
=
fUpdate
Time
;
this
.
fU
nbindingTime
=
fUnbinding
Time
;
}
public
Date
getfU
pdate
Time
()
public
Date
getfU
nbinding
Time
()
{
return
fU
pdate
Time
;
return
fU
nbinding
Time
;
}
public
void
setf
AlarmTime
(
Date
fAlarm
Time
)
public
void
setf
LoadingTime
(
Date
fLoading
Time
)
{
this
.
f
AlarmTime
=
fAlarm
Time
;
this
.
f
LoadingTime
=
fLoading
Time
;
}
public
Date
getf
Alarm
Time
()
public
Date
getf
Loading
Time
()
{
return
f
Alarm
Time
;
return
f
Loading
Time
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fPointId"
,
getfPointId
())
.
append
(
"f
StoreyId"
,
getfStore
yId
())
.
append
(
"f
TrayId"
,
getfTra
yId
())
.
append
(
"fPointCode"
,
getfPointCode
())
.
append
(
"f
DeviceCode"
,
getfDevice
Code
())
.
append
(
"f
PcbaCode"
,
getfPcba
Code
())
.
append
(
"fStatus"
,
getfStatus
())
.
append
(
"fCreateTime"
,
getfCreateTime
())
.
append
(
"fUpdateTime"
,
getfUpdateTime
())
.
append
(
"fAlarmTime"
,
getfAlarmTime
())
.
append
(
"fPcbaStatus"
,
getfPcbaStatus
())
.
append
(
"fBindingTime"
,
getfBindingTime
())
.
append
(
"fUnbindingTime"
,
getfUnbindingTime
())
.
append
(
"fLoadingTime"
,
getfLoadingTime
())
.
toString
();
}
}
zhmes-agecal-system/src/main/java/com/zehong/system/domain/TStoreyInfo.java
View file @
5179d8fe
...
...
@@ -28,10 +28,6 @@ public class TStoreyInfo extends BaseEntity
@Excel
(
name
=
"层编号"
)
private
String
fStoreyCode
;
/** 绑定托盘编号 */
@Excel
(
name
=
"绑定托盘编号"
)
private
String
fTrayCode
;
/** IP地址 */
@Excel
(
name
=
"IP地址"
)
private
String
fIp
;
...
...
@@ -40,8 +36,8 @@ public class TStoreyInfo extends BaseEntity
@Excel
(
name
=
"端口号"
)
private
Integer
fPort
;
/** 状态:0空闲,1运行,2故障
*/
@Excel
(
name
=
"状态:0空闲,1运行,2故障"
)
/** 状态:0空闲,1运行,2故障
,3断电
*/
@Excel
(
name
=
"状态:0空闲,1运行,2故障
,3断电
"
)
private
String
fStatus
;
/** 更新时间 */
...
...
@@ -86,15 +82,7 @@ public class TStoreyInfo extends BaseEntity
{
return
fStoreyCode
;
}
public
void
setfTrayCode
(
String
fTrayCode
)
{
this
.
fTrayCode
=
fTrayCode
;
}
public
String
getfTrayCode
()
{
return
fTrayCode
;
}
public
void
setfIp
(
String
fIp
)
{
this
.
fIp
=
fIp
;
...
...
@@ -156,7 +144,6 @@ public class TStoreyInfo extends BaseEntity
.
append
(
"fStoreyId"
,
getfStoreyId
())
.
append
(
"fEquipmentId"
,
getfEquipmentId
())
.
append
(
"fStoreyCode"
,
getfStoreyCode
())
.
append
(
"fTrayCode"
,
getfTrayCode
())
.
append
(
"fIp"
,
getfIp
())
.
append
(
"fStatus"
,
getfStatus
())
.
append
(
"fPort"
,
getfPort
())
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/domain/TTrayInfo.java
0 → 100644
View file @
5179d8fe
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_tray_info
*
* @author zehong
* @date 2025-06-06
*/
public
class
TTrayInfo
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 托盘id */
private
Long
fTrayId
;
/** 托盘编号 */
@Excel
(
name
=
"托盘编号"
)
private
String
fTrayCode
;
/** 绑定层编号 */
@Excel
(
name
=
"绑定层编号"
)
private
String
fStoreyCode
;
/** 状态:0.空闲 1.运行 */
@Excel
(
name
=
"状态:0.空闲 1.运行"
)
private
String
fStatus
;
/** 绑定时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"绑定时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fBindingTime
;
/** 解绑时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"解绑时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fUnbindingTime
;
/** 创建时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"创建时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fCreateTime
;
public
void
setfTrayId
(
Long
fTrayId
)
{
this
.
fTrayId
=
fTrayId
;
}
public
Long
getfTrayId
()
{
return
fTrayId
;
}
public
void
setfTrayCode
(
String
fTrayCode
)
{
this
.
fTrayCode
=
fTrayCode
;
}
public
String
getfTrayCode
()
{
return
fTrayCode
;
}
public
void
setfStoreyCode
(
String
fStoreyCode
)
{
this
.
fStoreyCode
=
fStoreyCode
;
}
public
String
getfStoreyCode
()
{
return
fStoreyCode
;
}
public
void
setfStatus
(
String
fStatus
)
{
this
.
fStatus
=
fStatus
;
}
public
String
getfStatus
()
{
return
fStatus
;
}
public
void
setfBindingTime
(
Date
fBindingTime
)
{
this
.
fBindingTime
=
fBindingTime
;
}
public
Date
getfBindingTime
()
{
return
fBindingTime
;
}
public
void
setfUnbindingTime
(
Date
fUnbindingTime
)
{
this
.
fUnbindingTime
=
fUnbindingTime
;
}
public
Date
getfUnbindingTime
()
{
return
fUnbindingTime
;
}
public
void
setfCreateTime
(
Date
fCreateTime
)
{
this
.
fCreateTime
=
fCreateTime
;
}
public
Date
getfCreateTime
()
{
return
fCreateTime
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fTrayId"
,
getfTrayId
())
.
append
(
"fTrayCode"
,
getfTrayCode
())
.
append
(
"fStoreyCode"
,
getfStoreyCode
())
.
append
(
"fStatus"
,
getfStatus
())
.
append
(
"fBindingTime"
,
getfBindingTime
())
.
append
(
"fUnbindingTime"
,
getfUnbindingTime
())
.
append
(
"fCreateTime"
,
getfCreateTime
())
.
toString
();
}
}
zhmes-agecal-system/src/main/java/com/zehong/system/mapper/TPointInfoMapper.java
View file @
5179d8fe
...
...
@@ -7,7 +7,7 @@ import com.zehong.system.domain.TPointInfo;
* 老化层点位信息Mapper接口
*
* @author zehong
* @date 2025-0
5-28
* @date 2025-0
6-06
*/
public
interface
TPointInfoMapper
{
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/mapper/TTrayInfoMapper.java
0 → 100644
View file @
5179d8fe
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TTrayInfo
;
/**
* 托盘信息Mapper接口
*
* @author zehong
* @date 2025-06-06
*/
public
interface
TTrayInfoMapper
{
/**
* 查询托盘信息
*
* @param fTrayId 托盘信息ID
* @return 托盘信息
*/
public
TTrayInfo
selectTTrayInfoById
(
Long
fTrayId
);
/**
* 查询托盘信息列表
*
* @param tTrayInfo 托盘信息
* @return 托盘信息集合
*/
public
List
<
TTrayInfo
>
selectTTrayInfoList
(
TTrayInfo
tTrayInfo
);
/**
* 新增托盘信息
*
* @param tTrayInfo 托盘信息
* @return 结果
*/
public
int
insertTTrayInfo
(
TTrayInfo
tTrayInfo
);
/**
* 修改托盘信息
*
* @param tTrayInfo 托盘信息
* @return 结果
*/
public
int
updateTTrayInfo
(
TTrayInfo
tTrayInfo
);
/**
* 删除托盘信息
*
* @param fTrayId 托盘信息ID
* @return 结果
*/
public
int
deleteTTrayInfoById
(
Long
fTrayId
);
/**
* 批量删除托盘信息
*
* @param fTrayIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTTrayInfoByIds
(
Long
[]
fTrayIds
);
}
zhmes-agecal-system/src/main/java/com/zehong/system/service/ITPointInfoService.java
View file @
5179d8fe
...
...
@@ -7,7 +7,7 @@ import com.zehong.system.domain.TPointInfo;
* 老化层点位信息Service接口
*
* @author zehong
* @date 2025-0
5-28
* @date 2025-0
6-06
*/
public
interface
ITPointInfoService
{
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/service/ITTrayInfoService.java
0 → 100644
View file @
5179d8fe
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TTrayInfo
;
/**
* 托盘信息Service接口
*
* @author zehong
* @date 2025-06-06
*/
public
interface
ITTrayInfoService
{
/**
* 查询托盘信息
*
* @param fTrayId 托盘信息ID
* @return 托盘信息
*/
public
TTrayInfo
selectTTrayInfoById
(
Long
fTrayId
);
/**
* 查询托盘信息列表
*
* @param tTrayInfo 托盘信息
* @return 托盘信息集合
*/
public
List
<
TTrayInfo
>
selectTTrayInfoList
(
TTrayInfo
tTrayInfo
);
/**
* 新增托盘信息
*
* @param tTrayInfo 托盘信息
* @return 结果
*/
public
int
insertTTrayInfo
(
TTrayInfo
tTrayInfo
);
/**
* 修改托盘信息
*
* @param tTrayInfo 托盘信息
* @return 结果
*/
public
int
updateTTrayInfo
(
TTrayInfo
tTrayInfo
);
/**
* 批量删除托盘信息
*
* @param fTrayIds 需要删除的托盘信息ID
* @return 结果
*/
public
int
deleteTTrayInfoByIds
(
Long
[]
fTrayIds
);
/**
* 删除托盘信息信息
*
* @param fTrayId 托盘信息ID
* @return 结果
*/
public
int
deleteTTrayInfoById
(
Long
fTrayId
);
}
zhmes-agecal-system/src/main/java/com/zehong/system/service/impl/TPointInfoServiceImpl.java
View file @
5179d8fe
...
...
@@ -11,7 +11,7 @@ import com.zehong.system.service.ITPointInfoService;
* 老化层点位信息Service业务层处理
*
* @author zehong
* @date 2025-0
5-28
* @date 2025-0
6-06
*/
@Service
public
class
TPointInfoServiceImpl
implements
ITPointInfoService
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/service/impl/TTrayInfoServiceImpl.java
0 → 100644
View file @
5179d8fe
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TTrayInfoMapper
;
import
com.zehong.system.domain.TTrayInfo
;
import
com.zehong.system.service.ITTrayInfoService
;
/**
* 托盘信息Service业务层处理
*
* @author zehong
* @date 2025-06-06
*/
@Service
public
class
TTrayInfoServiceImpl
implements
ITTrayInfoService
{
@Autowired
private
TTrayInfoMapper
tTrayInfoMapper
;
/**
* 查询托盘信息
*
* @param fTrayId 托盘信息ID
* @return 托盘信息
*/
@Override
public
TTrayInfo
selectTTrayInfoById
(
Long
fTrayId
)
{
return
tTrayInfoMapper
.
selectTTrayInfoById
(
fTrayId
);
}
/**
* 查询托盘信息列表
*
* @param tTrayInfo 托盘信息
* @return 托盘信息
*/
@Override
public
List
<
TTrayInfo
>
selectTTrayInfoList
(
TTrayInfo
tTrayInfo
)
{
return
tTrayInfoMapper
.
selectTTrayInfoList
(
tTrayInfo
);
}
/**
* 新增托盘信息
*
* @param tTrayInfo 托盘信息
* @return 结果
*/
@Override
public
int
insertTTrayInfo
(
TTrayInfo
tTrayInfo
)
{
return
tTrayInfoMapper
.
insertTTrayInfo
(
tTrayInfo
);
}
/**
* 修改托盘信息
*
* @param tTrayInfo 托盘信息
* @return 结果
*/
@Override
public
int
updateTTrayInfo
(
TTrayInfo
tTrayInfo
)
{
return
tTrayInfoMapper
.
updateTTrayInfo
(
tTrayInfo
);
}
/**
* 批量删除托盘信息
*
* @param fTrayIds 需要删除的托盘信息ID
* @return 结果
*/
@Override
public
int
deleteTTrayInfoByIds
(
Long
[]
fTrayIds
)
{
return
tTrayInfoMapper
.
deleteTTrayInfoByIds
(
fTrayIds
);
}
/**
* 删除托盘信息信息
*
* @param fTrayId 托盘信息ID
* @return 结果
*/
@Override
public
int
deleteTTrayInfoById
(
Long
fTrayId
)
{
return
tTrayInfoMapper
.
deleteTTrayInfoById
(
fTrayId
);
}
}
zhmes-agecal-system/src/main/resources/mapper/system/TPointInfoMapper.xml
View file @
5179d8fe
...
...
@@ -6,29 +6,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap
type=
"TPointInfo"
id=
"TPointInfoResult"
>
<result
property=
"fPointId"
column=
"f_point_id"
/>
<result
property=
"f
StoreyId"
column=
"f_store
y_id"
/>
<result
property=
"f
TrayId"
column=
"f_tra
y_id"
/>
<result
property=
"fPointCode"
column=
"f_point_code"
/>
<result
property=
"f
DeviceCode"
column=
"f_device
_code"
/>
<result
property=
"f
PcbaCode"
column=
"f_pcba
_code"
/>
<result
property=
"fStatus"
column=
"f_status"
/>
<result
property=
"fCreateTime"
column=
"f_create_time"
/>
<result
property=
"fUpdateTime"
column=
"f_update_time"
/>
<result
property=
"fAlarmTime"
column=
"f_alarm_time"
/>
<result
property=
"fPcbaStatus"
column=
"f_pcba_status"
/>
<result
property=
"fBindingTime"
column=
"f_binding_time"
/>
<result
property=
"fUnbindingTime"
column=
"f_unbinding_time"
/>
<result
property=
"fLoadingTime"
column=
"f_loading_time"
/>
</resultMap>
<sql
id=
"selectTPointInfoVo"
>
select f_point_id, f_
storey_id, f_point_code, f_device_code, f_status, f_create_time, f_update_time, f_alarm
_time from t_point_info
select f_point_id, f_
tray_id, f_point_code, f_pcba_code, f_status, f_create_time, f_pcba_status, f_binding_time, f_unbinding_time, f_loading
_time from t_point_info
</sql>
<select
id=
"selectTPointInfoList"
parameterType=
"TPointInfo"
resultMap=
"TPointInfoResult"
>
<include
refid=
"selectTPointInfoVo"
/>
<where>
<if
test=
"f
StoreyId != null "
>
and f_storey_id = #{fStore
yId}
</if>
<if
test=
"f
TrayId != null "
>
and f_tray_id = #{fTra
yId}
</if>
<if
test=
"fPointCode != null and fPointCode != ''"
>
and f_point_code = #{fPointCode}
</if>
<if
test=
"f
DeviceCode != null "
>
and f_device_code = #{fDevice
Code}
</if>
<if
test=
"f
PcbaCode != null and fPcbaCode != ''"
>
and f_pcba_code = #{fPcba
Code}
</if>
<if
test=
"fStatus != null and fStatus != ''"
>
and f_status = #{fStatus}
</if>
<if
test=
"fCreateTime != null "
>
and f_create_time = #{fCreateTime}
</if>
<if
test=
"fUpdateTime != null "
>
and f_update_time = #{fUpdateTime}
</if>
<if
test=
"fAlarmTime != null "
>
and f_alarm_time = #{fAlarmTime}
</if>
<if
test=
"fPcbaStatus != null and fPcbaStatus != ''"
>
and f_pcba_status = #{fPcbaStatus}
</if>
<if
test=
"fBindingTime != null "
>
and f_binding_time = #{fBindingTime}
</if>
<if
test=
"fUnbindingTime != null "
>
and f_unbinding_time = #{fUnbindingTime}
</if>
<if
test=
"fLoadingTime != null "
>
and f_loading_time = #{fLoadingTime}
</if>
</where>
</select>
...
...
@@ -40,35 +44,41 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert
id=
"insertTPointInfo"
parameterType=
"TPointInfo"
useGeneratedKeys=
"true"
keyProperty=
"fPointId"
>
insert into t_point_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"f
StoreyId != null"
>
f_store
y_id,
</if>
<if
test=
"f
TrayId != null"
>
f_tra
y_id,
</if>
<if
test=
"fPointCode != null"
>
f_point_code,
</if>
<if
test=
"f
DeviceCode != null"
>
f_device
_code,
</if>
<if
test=
"f
PcbaCode != null"
>
f_pcba
_code,
</if>
<if
test=
"fStatus != null"
>
f_status,
</if>
<if
test=
"fCreateTime != null"
>
f_create_time,
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time,
</if>
<if
test=
"fAlarmTime != null"
>
f_alarm_time,
</if>
<if
test=
"fPcbaStatus != null"
>
f_pcba_status,
</if>
<if
test=
"fBindingTime != null"
>
f_binding_time,
</if>
<if
test=
"fUnbindingTime != null"
>
f_unbinding_time,
</if>
<if
test=
"fLoadingTime != null"
>
f_loading_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"f
StoreyId != null"
>
#{fStore
yId},
</if>
<if
test=
"f
TrayId != null"
>
#{fTra
yId},
</if>
<if
test=
"fPointCode != null"
>
#{fPointCode},
</if>
<if
test=
"f
DeviceCode != null"
>
#{fDevice
Code},
</if>
<if
test=
"f
PcbaCode != null"
>
#{fPcba
Code},
</if>
<if
test=
"fStatus != null"
>
#{fStatus},
</if>
<if
test=
"fCreateTime != null"
>
#{fCreateTime},
</if>
<if
test=
"fUpdateTime != null"
>
#{fUpdateTime},
</if>
<if
test=
"fAlarmTime != null"
>
#{fAlarmTime},
</if>
<if
test=
"fPcbaStatus != null"
>
#{fPcbaStatus},
</if>
<if
test=
"fBindingTime != null"
>
#{fBindingTime},
</if>
<if
test=
"fUnbindingTime != null"
>
#{fUnbindingTime},
</if>
<if
test=
"fLoadingTime != null"
>
#{fLoadingTime},
</if>
</trim>
</insert>
<update
id=
"updateTPointInfo"
parameterType=
"TPointInfo"
>
update t_point_info
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"f
StoreyId != null"
>
f_storey_id = #{fStore
yId},
</if>
<if
test=
"f
TrayId != null"
>
f_tray_id = #{fTra
yId},
</if>
<if
test=
"fPointCode != null"
>
f_point_code = #{fPointCode},
</if>
<if
test=
"f
DeviceCode != null"
>
f_device_code = #{fDevice
Code},
</if>
<if
test=
"f
PcbaCode != null"
>
f_pcba_code = #{fPcba
Code},
</if>
<if
test=
"fStatus != null"
>
f_status = #{fStatus},
</if>
<if
test=
"fCreateTime != null"
>
f_create_time = #{fCreateTime},
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time = #{fUpdateTime},
</if>
<if
test=
"fAlarmTime != null"
>
f_alarm_time = #{fAlarmTime},
</if>
<if
test=
"fPcbaStatus != null"
>
f_pcba_status = #{fPcbaStatus},
</if>
<if
test=
"fBindingTime != null"
>
f_binding_time = #{fBindingTime},
</if>
<if
test=
"fUnbindingTime != null"
>
f_unbinding_time = #{fUnbindingTime},
</if>
<if
test=
"fLoadingTime != null"
>
f_loading_time = #{fLoadingTime},
</if>
</trim>
where f_point_id = #{fPointId}
</update>
...
...
zhmes-agecal-system/src/main/resources/mapper/system/TStoreyInfoMapper.xml
View file @
5179d8fe
...
...
@@ -8,7 +8,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"fStoreyId"
column=
"f_storey_id"
/>
<result
property=
"fEquipmentId"
column=
"f_equipment_id"
/>
<result
property=
"fStoreyCode"
column=
"f_storey_code"
/>
<result
property=
"fTrayCode"
column=
"f_tray_code"
/>
<result
property=
"fIp"
column=
"f_ip"
/>
<result
property=
"fStatus"
column=
"f_status"
/>
<result
property=
"fPort"
column=
"f_port"
/>
...
...
@@ -26,7 +25,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<if
test=
"fEquipmentId != null "
>
and f_equipment_id = #{fEquipmentId}
</if>
<if
test=
"fStoreyCode != null and fStoreyCode != ''"
>
and f_storey_code = #{fStoreyCode}
</if>
<if
test=
"fTrayCode != null "
>
and f_tray_code = #{fTrayCode}
</if>
<if
test=
"fIp != null and fIp != ''"
>
and f_ip = #{fIp}
</if>
<if
test=
"fStatus != null and fStatus != ''"
>
and f_status = #{fStatus}
</if>
<if
test=
"fPort != null "
>
and f_port = #{fPort}
</if>
...
...
@@ -52,7 +50,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fStoreyId != null"
>
f_storey_id,
</if>
<if
test=
"fEquipmentId != null"
>
f_equipment_id,
</if>
<if
test=
"fStoreyCode != null"
>
f_storey_code,
</if>
<if
test=
"fTrayCode != null"
>
f_tray_code,
</if>
<if
test=
"fIp != null"
>
f_ip,
</if>
<if
test=
"fStatus != null"
>
f_status,
</if>
<if
test=
"fPort != null"
>
f_port,
</if>
...
...
@@ -64,7 +61,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fStoreyId != null"
>
#{fStoreyId},
</if>
<if
test=
"fEquipmentId != null"
>
#{fEquipmentId},
</if>
<if
test=
"fStoreyCode != null"
>
#{fStoreyCode},
</if>
<if
test=
"fTrayCode != null"
>
#{fTrayCode},
</if>
<if
test=
"fIp != null"
>
#{fIp},
</if>
<if
test=
"fStatus != null"
>
#{fStatus},
</if>
<if
test=
"fPort != null"
>
#{fPort},
</if>
...
...
@@ -79,7 +75,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fEquipmentId != null"
>
f_equipment_id = #{fEquipmentId},
</if>
<if
test=
"fStoreyCode != null"
>
f_storey_code = #{fStoreyCode},
</if>
<if
test=
"fTrayCode != null"
>
f_tray_code = #{fTrayCode},
</if>
<if
test=
"fIp != null"
>
f_ip = #{fIp},
</if>
<if
test=
"fStatus != null"
>
f_status = #{fStatus},
</if>
<if
test=
"fPort != null"
>
f_port = #{fPort},
</if>
...
...
zhmes-agecal-system/src/main/resources/mapper/system/TTrayInfoMapper.xml
0 → 100644
View file @
5179d8fe
<?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.TTrayInfoMapper"
>
<resultMap
type=
"TTrayInfo"
id=
"TTrayInfoResult"
>
<result
property=
"fTrayId"
column=
"f_tray_id"
/>
<result
property=
"fTrayCode"
column=
"f_tray_code"
/>
<result
property=
"fStoreyCode"
column=
"f_storey_code"
/>
<result
property=
"fStatus"
column=
"f_status"
/>
<result
property=
"fBindingTime"
column=
"f_binding_time"
/>
<result
property=
"fUnbindingTime"
column=
"f_unbinding_time"
/>
<result
property=
"fCreateTime"
column=
"f_create_time"
/>
</resultMap>
<sql
id=
"selectTTrayInfoVo"
>
select f_tray_id, f_tray_code, f_storey_code, f_status, f_binding_time, f_unbinding_time, f_create_time from t_tray_info
</sql>
<select
id=
"selectTTrayInfoList"
parameterType=
"TTrayInfo"
resultMap=
"TTrayInfoResult"
>
<include
refid=
"selectTTrayInfoVo"
/>
<where>
<if
test=
"fTrayCode != null and fTrayCode != ''"
>
and f_tray_code = #{fTrayCode}
</if>
<if
test=
"fStoreyCode != null and fStoreyCode != ''"
>
and f_storey_code = #{fStoreyCode}
</if>
<if
test=
"fStatus != null and fStatus != ''"
>
and f_status = #{fStatus}
</if>
<if
test=
"fBindingTime != null "
>
and f_binding_time = #{fBindingTime}
</if>
<if
test=
"fUnbindingTime != null "
>
and f_unbinding_time = #{fUnbindingTime}
</if>
<if
test=
"fCreateTime != null "
>
and f_create_time = #{fCreateTime}
</if>
</where>
</select>
<select
id=
"selectTTrayInfoById"
parameterType=
"Long"
resultMap=
"TTrayInfoResult"
>
<include
refid=
"selectTTrayInfoVo"
/>
where f_tray_id = #{fTrayId}
</select>
<insert
id=
"insertTTrayInfo"
parameterType=
"TTrayInfo"
useGeneratedKeys=
"true"
keyProperty=
"fTrayId"
>
insert into t_tray_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fTrayCode != null"
>
f_tray_code,
</if>
<if
test=
"fStoreyCode != null"
>
f_storey_code,
</if>
<if
test=
"fStatus != null"
>
f_status,
</if>
<if
test=
"fBindingTime != null"
>
f_binding_time,
</if>
<if
test=
"fUnbindingTime != null"
>
f_unbinding_time,
</if>
<if
test=
"fCreateTime != null"
>
f_create_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fTrayCode != null"
>
#{fTrayCode},
</if>
<if
test=
"fStoreyCode != null"
>
#{fStoreyCode},
</if>
<if
test=
"fStatus != null"
>
#{fStatus},
</if>
<if
test=
"fBindingTime != null"
>
#{fBindingTime},
</if>
<if
test=
"fUnbindingTime != null"
>
#{fUnbindingTime},
</if>
<if
test=
"fCreateTime != null"
>
#{fCreateTime},
</if>
</trim>
</insert>
<update
id=
"updateTTrayInfo"
parameterType=
"TTrayInfo"
>
update t_tray_info
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fTrayCode != null"
>
f_tray_code = #{fTrayCode},
</if>
<if
test=
"fStoreyCode != null"
>
f_storey_code = #{fStoreyCode},
</if>
<if
test=
"fStatus != null"
>
f_status = #{fStatus},
</if>
<if
test=
"fBindingTime != null"
>
f_binding_time = #{fBindingTime},
</if>
<if
test=
"fUnbindingTime != null"
>
f_unbinding_time = #{fUnbindingTime},
</if>
<if
test=
"fCreateTime != null"
>
f_create_time = #{fCreateTime},
</if>
</trim>
where f_tray_id = #{fTrayId}
</update>
<delete
id=
"deleteTTrayInfoById"
parameterType=
"Long"
>
delete from t_tray_info where f_tray_id = #{fTrayId}
</delete>
<delete
id=
"deleteTTrayInfoByIds"
parameterType=
"String"
>
delete from t_tray_info where f_tray_id in
<foreach
item=
"fTrayId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fTrayId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zhmes-agecal-web/src/api/tray/tray.js
0 → 100644
View file @
5179d8fe
import
request
from
'@/utils/request'
// 查询托盘信息列表
export
function
listTray
(
query
)
{
return
request
({
url
:
'/tray/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询托盘信息详细
export
function
getTray
(
fTrayId
)
{
return
request
({
url
:
'/tray/'
+
fTrayId
,
method
:
'get'
})
}
// 新增托盘信息
export
function
addTray
(
data
)
{
return
request
({
url
:
'/tray'
,
method
:
'post'
,
data
:
data
})
}
// 修改托盘信息
export
function
updateTray
(
data
)
{
return
request
({
url
:
'/tray'
,
method
:
'put'
,
data
:
data
})
}
// 删除托盘信息
export
function
delTray
(
fTrayId
)
{
return
request
({
url
:
'/tray/'
+
fTrayId
,
method
:
'delete'
})
}
// 导出托盘信息
export
function
exportTray
(
query
)
{
return
request
({
url
:
'/tray/export'
,
method
:
'get'
,
params
:
query
})
}
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