Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
huaxin-rq
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
耿迪迪
huaxin-rq
Commits
78a911fa
Commit
78a911fa
authored
Jul 15, 2026
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺流程图
parent
ac4f58dd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
938 additions
and
0 deletions
+938
-0
TTechnologyProcessController.java
...ong/web/controller/safe/TTechnologyProcessController.java
+103
-0
TTechnologyProcess.java
...ain/java/com/zehong/system/domain/TTechnologyProcess.java
+111
-0
TTechnologyProcessMapper.java
...va/com/zehong/system/mapper/TTechnologyProcessMapper.java
+61
-0
ITTechnologyProcessService.java
...com/zehong/system/service/ITTechnologyProcessService.java
+61
-0
TTechnologyProcessServiceImpl.java
...ng/system/service/impl/TTechnologyProcessServiceImpl.java
+101
-0
TTechnologyProcessMapper.xml
...main/resources/mapper/system/TTechnologyProcessMapper.xml
+92
-0
process.js
huaxin-web/src/api/safe/process.js
+53
-0
index.vue
huaxin-web/src/views/safe/process/index.vue
+356
-0
No files found.
huaxin-admin/src/main/java/com/zehong/web/controller/safe/TTechnologyProcessController.java
0 → 100644
View file @
78a911fa
package
com
.
zehong
.
web
.
controller
.
safe
;
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.TTechnologyProcess
;
import
com.zehong.system.service.ITTechnologyProcessService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 工业流程图Controller
*
* @author zehong
* @date 2026-07-15
*/
@RestController
@RequestMapping
(
"/safe/process"
)
public
class
TTechnologyProcessController
extends
BaseController
{
@Autowired
private
ITTechnologyProcessService
tTechnologyProcessService
;
/**
* 查询工业流程图列表
*/
//@PreAuthorize("@ss.hasPermi('safe:process:list')")
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TTechnologyProcess
tTechnologyProcess
)
{
startPage
();
List
<
TTechnologyProcess
>
list
=
tTechnologyProcessService
.
selectTTechnologyProcessList
(
tTechnologyProcess
);
return
getDataTable
(
list
);
}
/**
* 导出工业流程图列表
*/
//@PreAuthorize("@ss.hasPermi('safe:process:export')")
@Log
(
title
=
"工业流程图"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TTechnologyProcess
tTechnologyProcess
)
{
List
<
TTechnologyProcess
>
list
=
tTechnologyProcessService
.
selectTTechnologyProcessList
(
tTechnologyProcess
);
ExcelUtil
<
TTechnologyProcess
>
util
=
new
ExcelUtil
<
TTechnologyProcess
>(
TTechnologyProcess
.
class
);
return
util
.
exportExcel
(
list
,
"工业流程图数据"
);
}
/**
* 获取工业流程图详细信息
*/
//@PreAuthorize("@ss.hasPermi('safe:process:query')")
@GetMapping
(
value
=
"/{processId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"processId"
)
Long
processId
)
{
return
AjaxResult
.
success
(
tTechnologyProcessService
.
selectTTechnologyProcessById
(
processId
));
}
/**
* 新增工业流程图
*/
//@PreAuthorize("@ss.hasPermi('safe:process:add')")
@Log
(
title
=
"工业流程图"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TTechnologyProcess
tTechnologyProcess
)
{
return
toAjax
(
tTechnologyProcessService
.
insertTTechnologyProcess
(
tTechnologyProcess
));
}
/**
* 修改工业流程图
*/
//@PreAuthorize("@ss.hasPermi('safe:process:edit')")
@Log
(
title
=
"工业流程图"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TTechnologyProcess
tTechnologyProcess
)
{
return
toAjax
(
tTechnologyProcessService
.
updateTTechnologyProcess
(
tTechnologyProcess
));
}
/**
* 删除工业流程图
*/
//@PreAuthorize("@ss.hasPermi('safe:process:remove')")
@Log
(
title
=
"工业流程图"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{processIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
processIds
)
{
return
toAjax
(
tTechnologyProcessService
.
deleteTTechnologyProcessByIds
(
processIds
));
}
}
huaxin-system/src/main/java/com/zehong/system/domain/TTechnologyProcess.java
0 → 100644
View file @
78a911fa
package
com
.
zehong
.
system
.
domain
;
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_technology_process
*
* @author zehong
* @date 2026-07-15
*/
public
class
TTechnologyProcess
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 主键 */
private
Long
processId
;
/** 标题 */
@Excel
(
name
=
"标题"
)
private
String
title
;
/** 内容 */
@Excel
(
name
=
"内容"
)
private
String
content
;
/** 附件 */
@Excel
(
name
=
"附件"
)
private
String
attachment
;
/** 是否删除(0正常,1删除) */
@Excel
(
name
=
"是否删除(0正常,1删除)"
)
private
String
isDel
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setProcessId
(
Long
processId
)
{
this
.
processId
=
processId
;
}
public
Long
getProcessId
()
{
return
processId
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
public
String
getContent
()
{
return
content
;
}
public
void
setAttachment
(
String
attachment
)
{
this
.
attachment
=
attachment
;
}
public
String
getAttachment
()
{
return
attachment
;
}
public
void
setIsDel
(
String
isDel
)
{
this
.
isDel
=
isDel
;
}
public
String
getIsDel
()
{
return
isDel
;
}
public
void
setRemarks
(
String
remarks
)
{
this
.
remarks
=
remarks
;
}
public
String
getRemarks
()
{
return
remarks
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"processId"
,
getProcessId
())
.
append
(
"title"
,
getTitle
())
.
append
(
"content"
,
getContent
())
.
append
(
"attachment"
,
getAttachment
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"isDel"
,
getIsDel
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
huaxin-system/src/main/java/com/zehong/system/mapper/TTechnologyProcessMapper.java
0 → 100644
View file @
78a911fa
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TTechnologyProcess
;
/**
* 工业流程图Mapper接口
*
* @author zehong
* @date 2026-07-15
*/
public
interface
TTechnologyProcessMapper
{
/**
* 查询工业流程图
*
* @param processId 工业流程图ID
* @return 工业流程图
*/
public
TTechnologyProcess
selectTTechnologyProcessById
(
Long
processId
);
/**
* 查询工业流程图列表
*
* @param tTechnologyProcess 工业流程图
* @return 工业流程图集合
*/
public
List
<
TTechnologyProcess
>
selectTTechnologyProcessList
(
TTechnologyProcess
tTechnologyProcess
);
/**
* 新增工业流程图
*
* @param tTechnologyProcess 工业流程图
* @return 结果
*/
public
int
insertTTechnologyProcess
(
TTechnologyProcess
tTechnologyProcess
);
/**
* 修改工业流程图
*
* @param tTechnologyProcess 工业流程图
* @return 结果
*/
public
int
updateTTechnologyProcess
(
TTechnologyProcess
tTechnologyProcess
);
/**
* 删除工业流程图
*
* @param processId 工业流程图ID
* @return 结果
*/
public
int
deleteTTechnologyProcessById
(
Long
processId
);
/**
* 批量删除工业流程图
*
* @param processIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTTechnologyProcessByIds
(
Long
[]
processIds
);
}
huaxin-system/src/main/java/com/zehong/system/service/ITTechnologyProcessService.java
0 → 100644
View file @
78a911fa
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TTechnologyProcess
;
/**
* 工业流程图Service接口
*
* @author zehong
* @date 2026-07-15
*/
public
interface
ITTechnologyProcessService
{
/**
* 查询工业流程图
*
* @param processId 工业流程图ID
* @return 工业流程图
*/
public
TTechnologyProcess
selectTTechnologyProcessById
(
Long
processId
);
/**
* 查询工业流程图列表
*
* @param tTechnologyProcess 工业流程图
* @return 工业流程图集合
*/
public
List
<
TTechnologyProcess
>
selectTTechnologyProcessList
(
TTechnologyProcess
tTechnologyProcess
);
/**
* 新增工业流程图
*
* @param tTechnologyProcess 工业流程图
* @return 结果
*/
public
int
insertTTechnologyProcess
(
TTechnologyProcess
tTechnologyProcess
);
/**
* 修改工业流程图
*
* @param tTechnologyProcess 工业流程图
* @return 结果
*/
public
int
updateTTechnologyProcess
(
TTechnologyProcess
tTechnologyProcess
);
/**
* 批量删除工业流程图
*
* @param processIds 需要删除的工业流程图ID
* @return 结果
*/
public
int
deleteTTechnologyProcessByIds
(
Long
[]
processIds
);
/**
* 删除工业流程图信息
*
* @param processId 工业流程图ID
* @return 结果
*/
public
int
deleteTTechnologyProcessById
(
Long
processId
);
}
huaxin-system/src/main/java/com/zehong/system/service/impl/TTechnologyProcessServiceImpl.java
0 → 100644
View file @
78a911fa
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.SecurityUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TTechnologyProcessMapper
;
import
com.zehong.system.domain.TTechnologyProcess
;
import
com.zehong.system.service.ITTechnologyProcessService
;
/**
* 工业流程图Service业务层处理
*
* @author zehong
* @date 2026-07-15
*/
@Service
public
class
TTechnologyProcessServiceImpl
implements
ITTechnologyProcessService
{
@Autowired
private
TTechnologyProcessMapper
tTechnologyProcessMapper
;
/**
* 查询工业流程图
*
* @param processId 工业流程图ID
* @return 工业流程图
*/
@Override
public
TTechnologyProcess
selectTTechnologyProcessById
(
Long
processId
)
{
return
tTechnologyProcessMapper
.
selectTTechnologyProcessById
(
processId
);
}
/**
* 查询工业流程图列表
*
* @param tTechnologyProcess 工业流程图
* @return 工业流程图
*/
@Override
public
List
<
TTechnologyProcess
>
selectTTechnologyProcessList
(
TTechnologyProcess
tTechnologyProcess
)
{
return
tTechnologyProcessMapper
.
selectTTechnologyProcessList
(
tTechnologyProcess
);
}
/**
* 新增工业流程图
*
* @param tTechnologyProcess 工业流程图
* @return 结果
*/
@Override
public
int
insertTTechnologyProcess
(
TTechnologyProcess
tTechnologyProcess
)
{
tTechnologyProcess
.
setCreateTime
(
DateUtils
.
getNowDate
());
tTechnologyProcess
.
setCreateTime
(
DateUtils
.
getNowDate
());
tTechnologyProcess
.
setCreateBy
(
SecurityUtils
.
getLoginUser
().
getUser
().
getNickName
());
return
tTechnologyProcessMapper
.
insertTTechnologyProcess
(
tTechnologyProcess
);
}
/**
* 修改工业流程图
*
* @param tTechnologyProcess 工业流程图
* @return 结果
*/
@Override
public
int
updateTTechnologyProcess
(
TTechnologyProcess
tTechnologyProcess
)
{
tTechnologyProcess
.
setUpdateTime
(
DateUtils
.
getNowDate
());
tTechnologyProcess
.
setUpdateTime
(
DateUtils
.
getNowDate
());
tTechnologyProcess
.
setUpdateBy
(
SecurityUtils
.
getLoginUser
().
getUser
().
getNickName
());
return
tTechnologyProcessMapper
.
updateTTechnologyProcess
(
tTechnologyProcess
);
}
/**
* 批量删除工业流程图
*
* @param processIds 需要删除的工业流程图ID
* @return 结果
*/
@Override
public
int
deleteTTechnologyProcessByIds
(
Long
[]
processIds
)
{
return
tTechnologyProcessMapper
.
deleteTTechnologyProcessByIds
(
processIds
);
}
/**
* 删除工业流程图信息
*
* @param processId 工业流程图ID
* @return 结果
*/
@Override
public
int
deleteTTechnologyProcessById
(
Long
processId
)
{
return
tTechnologyProcessMapper
.
deleteTTechnologyProcessById
(
processId
);
}
}
huaxin-system/src/main/resources/mapper/system/TTechnologyProcessMapper.xml
0 → 100644
View file @
78a911fa
<?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.TTechnologyProcessMapper"
>
<resultMap
type=
"TTechnologyProcess"
id=
"TTechnologyProcessResult"
>
<result
property=
"processId"
column=
"process_id"
/>
<result
property=
"title"
column=
"title"
/>
<result
property=
"content"
column=
"content"
/>
<result
property=
"attachment"
column=
"attachment"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTTechnologyProcessVo"
>
select process_id, title, content, attachment, create_by, create_time, update_by, update_time, is_del, remarks from t_technology_process
</sql>
<select
id=
"selectTTechnologyProcessList"
parameterType=
"TTechnologyProcess"
resultMap=
"TTechnologyProcessResult"
>
<include
refid=
"selectTTechnologyProcessVo"
/>
<where>
<if
test=
"title != null and title != ''"
>
and title like concat('%', #{title}, '%')
</if>
<if
test=
"content != null and content != ''"
>
and content = #{content}
</if>
<if
test=
"attachment != null and attachment != ''"
>
and attachment = #{attachment}
</if>
<if
test=
"isDel != null and isDel != ''"
>
and is_del = #{isDel}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</select>
<select
id=
"selectTTechnologyProcessById"
parameterType=
"Long"
resultMap=
"TTechnologyProcessResult"
>
<include
refid=
"selectTTechnologyProcessVo"
/>
where process_id = #{processId}
</select>
<insert
id=
"insertTTechnologyProcess"
parameterType=
"TTechnologyProcess"
useGeneratedKeys=
"true"
keyProperty=
"processId"
>
insert into t_technology_process
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"title != null"
>
title,
</if>
<if
test=
"content != null"
>
content,
</if>
<if
test=
"attachment != null"
>
attachment,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"title != null"
>
#{title},
</if>
<if
test=
"content != null"
>
#{content},
</if>
<if
test=
"attachment != null"
>
#{attachment},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTTechnologyProcess"
parameterType=
"TTechnologyProcess"
>
update t_technology_process
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"title != null"
>
title = #{title},
</if>
<if
test=
"content != null"
>
content = #{content},
</if>
<if
test=
"attachment != null"
>
attachment = #{attachment},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where process_id = #{processId}
</update>
<delete
id=
"deleteTTechnologyProcessById"
parameterType=
"Long"
>
delete from t_technology_process where process_id = #{processId}
</delete>
<delete
id=
"deleteTTechnologyProcessByIds"
parameterType=
"String"
>
delete from t_technology_process where process_id in
<foreach
item=
"processId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{processId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
huaxin-web/src/api/safe/process.js
0 → 100644
View file @
78a911fa
import
request
from
'@/utils/request'
// 查询工业流程图列表
export
function
listProcess
(
query
)
{
return
request
({
url
:
'/safe/process/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询工业流程图详细
export
function
getProcess
(
processId
)
{
return
request
({
url
:
'/safe/process/'
+
processId
,
method
:
'get'
})
}
// 新增工业流程图
export
function
addProcess
(
data
)
{
return
request
({
url
:
'/safe/process'
,
method
:
'post'
,
data
:
data
})
}
// 修改工业流程图
export
function
updateProcess
(
data
)
{
return
request
({
url
:
'/safe/process'
,
method
:
'put'
,
data
:
data
})
}
// 删除工业流程图
export
function
delProcess
(
processId
)
{
return
request
({
url
:
'/safe/process/'
+
processId
,
method
:
'delete'
})
}
// 导出工业流程图
export
function
exportProcess
(
query
)
{
return
request
({
url
:
'/safe/process/export'
,
method
:
'get'
,
params
:
query
})
}
huaxin-web/src/views/safe/process/index.vue
0 → 100644
View file @
78a911fa
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