Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
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
耿迪迪
gassafety
Commits
7b6b3281
Commit
7b6b3281
authored
Jun 30, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业基本信息
parent
9d27444d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1459 additions
and
0 deletions
+1459
-0
TEnterpriseInfoController.java
.../web/controller/enterprise/TEnterpriseInfoController.java
+103
-0
TEnterpriseInfo.java
...c/main/java/com/zehong/system/domain/TEnterpriseInfo.java
+446
-0
TEnterpriseInfoMapper.java
.../java/com/zehong/system/mapper/TEnterpriseInfoMapper.java
+61
-0
ITEnterpriseInfoService.java
...va/com/zehong/system/service/ITEnterpriseInfoService.java
+61
-0
TEnterpriseInfoServiceImpl.java
...ehong/system/service/impl/TEnterpriseInfoServiceImpl.java
+96
-0
info.js
gassafety-web/src/api/enterprise/info.js
+53
-0
index.vue
gassafety-web/src/views/enterprise/info/index.vue
+639
-0
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/enterprise/TEnterpriseInfoController.java
0 → 100644
View file @
7b6b3281
package
com
.
zehong
.
web
.
controller
.
enterprise
;
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.TEnterpriseInfo
;
import
com.zehong.system.service.ITEnterpriseInfoService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 企业基本信息
*
* @author zehong
* @date 2021-06-30
*/
@RestController
@RequestMapping
(
"/enterprise/info"
)
public
class
TEnterpriseInfoController
extends
BaseController
{
@Autowired
private
ITEnterpriseInfoService
tEnterpriseInfoService
;
/**
* 查询企业基本信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('enterprise:info:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TEnterpriseInfo
tEnterpriseInfo
)
{
startPage
();
List
<
TEnterpriseInfo
>
list
=
tEnterpriseInfoService
.
selectTEnterpriseInfoList
(
tEnterpriseInfo
);
return
getDataTable
(
list
);
}
/**
* 导出企业基本信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('enterprise:info:export')"
)
@Log
(
title
=
"企业基本信息"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TEnterpriseInfo
tEnterpriseInfo
)
{
List
<
TEnterpriseInfo
>
list
=
tEnterpriseInfoService
.
selectTEnterpriseInfoList
(
tEnterpriseInfo
);
ExcelUtil
<
TEnterpriseInfo
>
util
=
new
ExcelUtil
<
TEnterpriseInfo
>(
TEnterpriseInfo
.
class
);
return
util
.
exportExcel
(
list
,
"企业基本信息数据"
);
}
/**
* 获取企业基本信息详情
*/
@PreAuthorize
(
"@ss.hasPermi('enterprise:info:query')"
)
@GetMapping
(
value
=
"/{infoId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"infoId"
)
Long
infoId
)
{
return
AjaxResult
.
success
(
tEnterpriseInfoService
.
selectTEnterpriseInfoById
(
infoId
));
}
/**
* 新增企业基本信息
*/
@PreAuthorize
(
"@ss.hasPermi('enterprise:info:add')"
)
@Log
(
title
=
"企业基本信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TEnterpriseInfo
tEnterpriseInfo
)
{
return
toAjax
(
tEnterpriseInfoService
.
insertTEnterpriseInfo
(
tEnterpriseInfo
));
}
/**
* 修改企业基本信息
*/
@PreAuthorize
(
"@ss.hasPermi('enterprise:info:edit')"
)
@Log
(
title
=
"企业基本信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TEnterpriseInfo
tEnterpriseInfo
)
{
return
toAjax
(
tEnterpriseInfoService
.
updateTEnterpriseInfo
(
tEnterpriseInfo
));
}
/**
* 删除企业基本信息
*/
@PreAuthorize
(
"@ss.hasPermi('enterprise:info:remove')"
)
@Log
(
title
=
"企业基本信息"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{infoIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
infoIds
)
{
return
toAjax
(
tEnterpriseInfoService
.
deleteTEnterpriseInfoByIds
(
infoIds
));
}
}
gassafety-system/src/main/java/com/zehong/system/domain/TEnterpriseInfo.java
0 → 100644
View file @
7b6b3281
This diff is collapsed.
Click to expand it.
gassafety-system/src/main/java/com/zehong/system/mapper/TEnterpriseInfoMapper.java
0 → 100644
View file @
7b6b3281
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TEnterpriseInfo
;
/**
* 企业基本信息Mapper接口
*
* @author zehong
* @date 2021-06-30
*/
public
interface
TEnterpriseInfoMapper
{
/**
* 查询企业基本信息
*
* @param infoId 企业基本信息ID
* @return 企业基本信息
*/
public
TEnterpriseInfo
selectTEnterpriseInfoById
(
Long
infoId
);
/**
* 查询企业基本信息列表
*
* @param tEnterpriseInfo 企业基本信息
* @return 企业基本信息集合
*/
public
List
<
TEnterpriseInfo
>
selectTEnterpriseInfoList
(
TEnterpriseInfo
tEnterpriseInfo
);
/**
* 新增企业基本信息
*
* @param tEnterpriseInfo 企业基本信息
* @return 结果
*/
public
int
insertTEnterpriseInfo
(
TEnterpriseInfo
tEnterpriseInfo
);
/**
* 修改企业基本信息
*
* @param tEnterpriseInfo 企业基本信息
* @return 结果
*/
public
int
updateTEnterpriseInfo
(
TEnterpriseInfo
tEnterpriseInfo
);
/**
* 删除企业基本信息
*
* @param infoId 企业基本信息ID
* @return 结果
*/
public
int
deleteTEnterpriseInfoById
(
Long
infoId
);
/**
* 批量删除企业基本信息
*
* @param infoIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTEnterpriseInfoByIds
(
Long
[]
infoIds
);
}
gassafety-system/src/main/java/com/zehong/system/service/ITEnterpriseInfoService.java
0 → 100644
View file @
7b6b3281
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TEnterpriseInfo
;
/**
* 企业基本信息Service接口
*
* @author zehong
* @date 2021-06-30
*/
public
interface
ITEnterpriseInfoService
{
/**
* 查询企业基本信息
*
* @param infoId 企业基本信息ID
* @return 企业基本信息
*/
public
TEnterpriseInfo
selectTEnterpriseInfoById
(
Long
infoId
);
/**
* 查询企业基本信息列表
*
* @param tEnterpriseInfo 企业基本信息
* @return 企业基本信息集合
*/
public
List
<
TEnterpriseInfo
>
selectTEnterpriseInfoList
(
TEnterpriseInfo
tEnterpriseInfo
);
/**
* 新增企业基本信息
*
* @param tEnterpriseInfo 企业基本信息
* @return 结果
*/
public
int
insertTEnterpriseInfo
(
TEnterpriseInfo
tEnterpriseInfo
);
/**
* 修改企业基本信息
*
* @param tEnterpriseInfo 企业基本信息
* @return 结果
*/
public
int
updateTEnterpriseInfo
(
TEnterpriseInfo
tEnterpriseInfo
);
/**
* 批量删除企业基本信息
*
* @param infoIds 需要删除的企业基本信息ID
* @return 结果
*/
public
int
deleteTEnterpriseInfoByIds
(
Long
[]
infoIds
);
/**
* 删除企业基本信息信息
*
* @param infoId 企业基本信息ID
* @return 结果
*/
public
int
deleteTEnterpriseInfoById
(
Long
infoId
);
}
gassafety-system/src/main/java/com/zehong/system/service/impl/TEnterpriseInfoServiceImpl.java
0 → 100644
View file @
7b6b3281
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TEnterpriseInfoMapper
;
import
com.zehong.system.domain.TEnterpriseInfo
;
import
com.zehong.system.service.ITEnterpriseInfoService
;
/**
* 企业基本信息Service业务层处理
*
* @author zehong
* @date 2021-06-30
*/
@Service
public
class
TEnterpriseInfoServiceImpl
implements
ITEnterpriseInfoService
{
@Autowired
private
TEnterpriseInfoMapper
tEnterpriseInfoMapper
;
/**
* 查询企业基本信息
*
* @param infoId 企业基本信息ID
* @return 企业基本信息
*/
@Override
public
TEnterpriseInfo
selectTEnterpriseInfoById
(
Long
infoId
)
{
return
tEnterpriseInfoMapper
.
selectTEnterpriseInfoById
(
infoId
);
}
/**
* 查询企业基本信息列表
*
* @param tEnterpriseInfo 企业基本信息
* @return 企业基本信息
*/
@Override
public
List
<
TEnterpriseInfo
>
selectTEnterpriseInfoList
(
TEnterpriseInfo
tEnterpriseInfo
)
{
return
tEnterpriseInfoMapper
.
selectTEnterpriseInfoList
(
tEnterpriseInfo
);
}
/**
* 新增企业基本信息
*
* @param tEnterpriseInfo 企业基本信息
* @return 结果
*/
@Override
public
int
insertTEnterpriseInfo
(
TEnterpriseInfo
tEnterpriseInfo
)
{
tEnterpriseInfo
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tEnterpriseInfoMapper
.
insertTEnterpriseInfo
(
tEnterpriseInfo
);
}
/**
* 修改企业基本信息
*
* @param tEnterpriseInfo 企业基本信息
* @return 结果
*/
@Override
public
int
updateTEnterpriseInfo
(
TEnterpriseInfo
tEnterpriseInfo
)
{
tEnterpriseInfo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
tEnterpriseInfoMapper
.
updateTEnterpriseInfo
(
tEnterpriseInfo
);
}
/**
* 批量删除企业基本信息
*
* @param infoIds 需要删除的企业基本信息ID
* @return 结果
*/
@Override
public
int
deleteTEnterpriseInfoByIds
(
Long
[]
infoIds
)
{
return
tEnterpriseInfoMapper
.
deleteTEnterpriseInfoByIds
(
infoIds
);
}
/**
* 删除企业基本信息信息
*
* @param infoId 企业基本信息ID
* @return 结果
*/
@Override
public
int
deleteTEnterpriseInfoById
(
Long
infoId
)
{
return
tEnterpriseInfoMapper
.
deleteTEnterpriseInfoById
(
infoId
);
}
}
gassafety-web/src/api/enterprise/info.js
0 → 100644
View file @
7b6b3281
import
request
from
'@/utils/request'
// 查询企业基本信息列表
export
function
listInfo
(
query
)
{
return
request
({
url
:
'/enterprise/info/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询企业基本信息详细
export
function
getInfo
(
infoId
)
{
return
request
({
url
:
'/enterprise/info/'
+
infoId
,
method
:
'get'
})
}
// 新增企业基本信息
export
function
addInfo
(
data
)
{
return
request
({
url
:
'/enterprise/info'
,
method
:
'post'
,
data
:
data
})
}
// 修改企业基本信息
export
function
updateInfo
(
data
)
{
return
request
({
url
:
'/enterprise/info'
,
method
:
'put'
,
data
:
data
})
}
// 删除企业基本信息
export
function
delInfo
(
infoId
)
{
return
request
({
url
:
'/enterprise/info/'
+
infoId
,
method
:
'delete'
})
}
// 导出企业基本信息
export
function
exportInfo
(
query
)
{
return
request
({
url
:
'/enterprise/info/export'
,
method
:
'get'
,
params
:
query
})
}
gassafety-web/src/views/enterprise/info/index.vue
0 → 100644
View file @
7b6b3281
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