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
fc620f45
Commit
fc620f45
authored
Jun 27, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
第三方施工项目档案
parent
95f052e1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
2723 additions
and
0 deletions
+2723
-0
TConGasProInforController.java
.../web/controller/thirdbuild/TConGasProInforController.java
+112
-0
TConGasProInfor.java
...c/main/java/com/zehong/system/domain/TConGasProInfor.java
+592
-0
TConGasProInforVo.java
...n/java/com/zehong/system/domain/vo/TConGasProInforVo.java
+433
-0
TConGasProInforMapper.java
.../java/com/zehong/system/mapper/TConGasProInforMapper.java
+61
-0
ITConGasProInforService.java
...va/com/zehong/system/service/ITConGasProInforService.java
+68
-0
TConGasProInforServiceImpl.java
...ehong/system/service/impl/TConGasProInforServiceImpl.java
+144
-0
TConGasProInforMapper.xml
...rc/main/resources/mapper/system/TConGasProInforMapper.xml
+211
-0
project.js
zh-baseversion-web/src/api/thirdbuild/project.js
+61
-0
DetailInfo.vue
...eb/src/views/thirdbuild/project/components/DetailInfo.vue
+292
-0
index.vue
zh-baseversion-web/src/views/thirdbuild/project/index.vue
+749
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/thirdbuild/TConGasProInforController.java
0 → 100644
View file @
fc620f45
package
com
.
zehong
.
web
.
controller
.
thirdbuild
;
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.TConGasProInfor
;
import
com.zehong.system.service.ITConGasProInforService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 第三方施工-涉气第三方施工项目档案Controller
*
* @author zehong
* @date 2024-06-26
*/
@RestController
@RequestMapping
(
"/third/project"
)
public
class
TConGasProInforController
extends
BaseController
{
@Autowired
private
ITConGasProInforService
tConGasProInforService
;
/**
* 查询第三方施工-涉气第三方施工项目档案列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TConGasProInfor
tConGasProInfor
)
{
startPage
();
List
<
TConGasProInfor
>
list
=
tConGasProInforService
.
selectTConGasProInforList
(
tConGasProInfor
);
return
getDataTable
(
list
);
}
/**
* 导出第三方施工-涉气第三方施工项目档案列表
*/
@Log
(
title
=
"第三方施工-涉气第三方施工项目档案"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TConGasProInfor
tConGasProInfor
)
{
List
<
TConGasProInfor
>
list
=
tConGasProInforService
.
selectTConGasProInforList
(
tConGasProInfor
);
ExcelUtil
<
TConGasProInfor
>
util
=
new
ExcelUtil
<
TConGasProInfor
>(
TConGasProInfor
.
class
);
return
util
.
exportExcel
(
list
,
"第三方施工-涉气第三方施工项目档案数据"
);
}
/**
* 获取第三方施工-涉气第三方施工项目档案详细信息
*/
@GetMapping
(
value
=
"/{fConGasProInforId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fConGasProInforId"
)
Long
fConGasProInforId
)
{
return
AjaxResult
.
success
(
tConGasProInforService
.
selectTConGasProInforById
(
fConGasProInforId
));
}
/**
* 新增第三方施工-涉气第三方施工项目档案
*/
@Log
(
title
=
"第三方施工-涉气第三方施工项目档案"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TConGasProInfor
tConGasProInfor
)
{
return
toAjax
(
tConGasProInforService
.
insertTConGasProInfor
(
tConGasProInfor
));
}
/**
* 修改第三方施工-涉气第三方施工项目档案
*/
@Log
(
title
=
"第三方施工-涉气第三方施工项目档案"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TConGasProInfor
tConGasProInfor
)
{
return
toAjax
(
tConGasProInforService
.
updateTConGasProInfor
(
tConGasProInfor
));
}
/**
* 删除第三方施工-涉气第三方施工项目档案
*/
@Log
(
title
=
"第三方施工-涉气第三方施工项目档案"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fConGasProInforIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fConGasProInforIds
)
{
return
toAjax
(
tConGasProInforService
.
deleteTConGasProInforByIds
(
fConGasProInforIds
));
}
/**
* 上传第三方施工
* @param fConGasProInforId 第三方施工id
* @return
*/
@GetMapping
(
"/reportConGasProInfo"
)
public
AjaxResult
reportConGasProInfo
(
Long
fConGasProInforId
){
try
{
return
toAjax
(
tConGasProInforService
.
reportConGasProInfo
(
fConGasProInforId
));
}
catch
(
Exception
e
){
logger
.
error
(
"上传第三方施工接口异常====="
,
e
);
return
AjaxResult
.
error
(
"上传第三方施工接口异常"
);
}
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TConGasProInfor.java
0 → 100644
View file @
fc620f45
This diff is collapsed.
Click to expand it.
zh-baseversion-system/src/main/java/com/zehong/system/domain/vo/TConGasProInforVo.java
0 → 100644
View file @
fc620f45
This diff is collapsed.
Click to expand it.
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TConGasProInforMapper.java
0 → 100644
View file @
fc620f45
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TConGasProInfor
;
/**
* 第三方施工-涉气第三方施工项目档案Mapper接口
*
* @author zehong
* @date 2024-06-26
*/
public
interface
TConGasProInforMapper
{
/**
* 查询第三方施工-涉气第三方施工项目档案
*
* @param fConGasProInforId 第三方施工-涉气第三方施工项目档案ID
* @return 第三方施工-涉气第三方施工项目档案
*/
public
TConGasProInfor
selectTConGasProInforById
(
Long
fConGasProInforId
);
/**
* 查询第三方施工-涉气第三方施工项目档案列表
*
* @param tConGasProInfor 第三方施工-涉气第三方施工项目档案
* @return 第三方施工-涉气第三方施工项目档案集合
*/
public
List
<
TConGasProInfor
>
selectTConGasProInforList
(
TConGasProInfor
tConGasProInfor
);
/**
* 新增第三方施工-涉气第三方施工项目档案
*
* @param tConGasProInfor 第三方施工-涉气第三方施工项目档案
* @return 结果
*/
public
int
insertTConGasProInfor
(
TConGasProInfor
tConGasProInfor
);
/**
* 修改第三方施工-涉气第三方施工项目档案
*
* @param tConGasProInfor 第三方施工-涉气第三方施工项目档案
* @return 结果
*/
public
int
updateTConGasProInfor
(
TConGasProInfor
tConGasProInfor
);
/**
* 删除第三方施工-涉气第三方施工项目档案
*
* @param fConGasProInforId 第三方施工-涉气第三方施工项目档案ID
* @return 结果
*/
public
int
deleteTConGasProInforById
(
Long
fConGasProInforId
);
/**
* 批量删除第三方施工-涉气第三方施工项目档案
*
* @param fConGasProInforIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTConGasProInforByIds
(
Long
[]
fConGasProInforIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITConGasProInforService.java
0 → 100644
View file @
fc620f45
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TConGasProInfor
;
/**
* 第三方施工-涉气第三方施工项目档案Service接口
*
* @author zehong
* @date 2024-06-26
*/
public
interface
ITConGasProInforService
{
/**
* 查询第三方施工-涉气第三方施工项目档案
*
* @param fConGasProInforId 第三方施工-涉气第三方施工项目档案ID
* @return 第三方施工-涉气第三方施工项目档案
*/
public
TConGasProInfor
selectTConGasProInforById
(
Long
fConGasProInforId
);
/**
* 查询第三方施工-涉气第三方施工项目档案列表
*
* @param tConGasProInfor 第三方施工-涉气第三方施工项目档案
* @return 第三方施工-涉气第三方施工项目档案集合
*/
public
List
<
TConGasProInfor
>
selectTConGasProInforList
(
TConGasProInfor
tConGasProInfor
);
/**
* 新增第三方施工-涉气第三方施工项目档案
*
* @param tConGasProInfor 第三方施工-涉气第三方施工项目档案
* @return 结果
*/
public
int
insertTConGasProInfor
(
TConGasProInfor
tConGasProInfor
);
/**
* 修改第三方施工-涉气第三方施工项目档案
*
* @param tConGasProInfor 第三方施工-涉气第三方施工项目档案
* @return 结果
*/
public
int
updateTConGasProInfor
(
TConGasProInfor
tConGasProInfor
);
/**
* 批量删除第三方施工-涉气第三方施工项目档案
*
* @param fConGasProInforIds 需要删除的第三方施工-涉气第三方施工项目档案ID
* @return 结果
*/
public
int
deleteTConGasProInforByIds
(
Long
[]
fConGasProInforIds
);
/**
* 删除第三方施工-涉气第三方施工项目档案信息
*
* @param fConGasProInforId 第三方施工-涉气第三方施工项目档案ID
* @return 结果
*/
public
int
deleteTConGasProInforById
(
Long
fConGasProInforId
);
/**
* 上传第三方施工
* @param fConGasProInforId 第三方施工id
* @return
*/
int
reportConGasProInfo
(
Long
fConGasProInforId
)
throws
Exception
;
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TConGasProInforServiceImpl.java
0 → 100644
View file @
fc620f45
package
com
.
zehong
.
system
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.zehong.common.exception.CustomException
;
import
com.zehong.common.utils.GovernmentDataCopyUtil
;
import
com.zehong.common.utils.GovernmentDataUtil
;
import
com.zehong.common.utils.StringUtils
;
import
com.zehong.system.domain.SysSetting
;
import
com.zehong.system.domain.TConGasProInfor
;
import
com.zehong.system.domain.vo.TConGasProInforVo
;
import
com.zehong.system.mapper.TConGasProInforMapper
;
import
com.zehong.system.service.ISysSettingService
;
import
com.zehong.system.service.ITConGasProInforService
;
import
com.zehong.system.service.ITSerialNumberInfoService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.time.Year
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
/**
* 第三方施工-涉气第三方施工项目档案Service业务层处理
*
* @author zehong
* @date 2024-06-26
*/
@Service
public
class
TConGasProInforServiceImpl
implements
ITConGasProInforService
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
TConGasProInforServiceImpl
.
class
);
@Autowired
private
TConGasProInforMapper
tConGasProInforMapper
;
@Resource
private
ISysSettingService
sysSettingService
;
@Resource
private
ITSerialNumberInfoService
itSerialNumberInfoService
;
@Resource
private
GovernmentDataUtil
governmentDataUtil
;
/**
* 查询第三方施工-涉气第三方施工项目档案
*
* @param fConGasProInforId 第三方施工-涉气第三方施工项目档案ID
* @return 第三方施工-涉气第三方施工项目档案
*/
@Override
public
TConGasProInfor
selectTConGasProInforById
(
Long
fConGasProInforId
)
{
return
tConGasProInforMapper
.
selectTConGasProInforById
(
fConGasProInforId
);
}
/**
* 查询第三方施工-涉气第三方施工项目档案列表
*
* @param tConGasProInfor 第三方施工-涉气第三方施工项目档案
* @return 第三方施工-涉气第三方施工项目档案
*/
@Override
public
List
<
TConGasProInfor
>
selectTConGasProInforList
(
TConGasProInfor
tConGasProInfor
)
{
return
tConGasProInforMapper
.
selectTConGasProInforList
(
tConGasProInfor
);
}
/**
* 新增第三方施工-涉气第三方施工项目档案
*
* @param tConGasProInfor 第三方施工-涉气第三方施工项目档案
* @return 结果
*/
@Override
public
int
insertTConGasProInfor
(
TConGasProInfor
tConGasProInfor
)
{
SysSetting
code
=
sysSettingService
.
getSystemValueByKey
(
"city_id"
);
if
(
null
==
code
||
StringUtils
.
isEmpty
(
code
.
getSystemValue
()))
throw
new
CustomException
(
"行政编码未配置!"
);
Map
<
String
,
String
>
num
=
itSerialNumberInfoService
.
getSerialNumberByTableType
(
"t_con_gas_pro_infor"
);
if
(
null
==
num
||
StringUtils
.
isEmpty
(
num
.
get
(
"f_project_code"
)))
throw
new
CustomException
(
"项目档案项目编码未配置!"
);
tConGasProInfor
.
setfProjectCode
(
code
.
getSystemValue
()+
Year
.
now
().
getValue
()
+
num
.
get
(
"f_project_code"
));
return
tConGasProInforMapper
.
insertTConGasProInfor
(
tConGasProInfor
);
}
/**
* 修改第三方施工-涉气第三方施工项目档案
*
* @param tConGasProInfor 第三方施工-涉气第三方施工项目档案
* @return 结果
*/
@Override
public
int
updateTConGasProInfor
(
TConGasProInfor
tConGasProInfor
)
{
return
tConGasProInforMapper
.
updateTConGasProInfor
(
tConGasProInfor
);
}
/**
* 批量删除第三方施工-涉气第三方施工项目档案
*
* @param fConGasProInforIds 需要删除的第三方施工-涉气第三方施工项目档案ID
* @return 结果
*/
@Override
public
int
deleteTConGasProInforByIds
(
Long
[]
fConGasProInforIds
)
{
return
tConGasProInforMapper
.
deleteTConGasProInforByIds
(
fConGasProInforIds
);
}
/**
* 删除第三方施工-涉气第三方施工项目档案信息
*
* @param fConGasProInforId 第三方施工-涉气第三方施工项目档案ID
* @return 结果
*/
@Override
public
int
deleteTConGasProInforById
(
Long
fConGasProInforId
)
{
return
tConGasProInforMapper
.
deleteTConGasProInforById
(
fConGasProInforId
);
}
/**
* 上传第三方施工
* @param fConGasProInforId 第三方施工id
* @return
*/
@Override
public
int
reportConGasProInfo
(
Long
fConGasProInforId
)
throws
Exception
{
TConGasProInfor
conGasProInfor
=
tConGasProInforMapper
.
selectTConGasProInforById
(
fConGasProInforId
);
TConGasProInforVo
conGasProInforVo
=
new
TConGasProInforVo
();
GovernmentDataCopyUtil
.
copyToGovernData
(
conGasProInfor
,
conGasProInforVo
);
conGasProInforVo
.
setConstructionPoint
(
conGasProInfor
.
getfConstructionLatitude
()
+
"、"
+
conGasProInfor
.
getfConstructionLongitude
());
List
<
TConGasProInforVo
>
data
=
new
ArrayList
<>();
data
.
add
(
conGasProInforVo
);
JSONObject
reportResult
=
governmentDataUtil
.
setInfo
(
"construction/gas/project/information"
,
"WRITE"
,
data
);
log
.
info
(
"上传第三方施工结果==================="
+
reportResult
.
toJSONString
());
if
(!
"0"
.
equals
(
reportResult
.
getString
(
"resultCode"
)))
throw
new
CustomException
(
"上传第三方施工接口失败"
);
return
1
;
}
}
zh-baseversion-system/src/main/resources/mapper/system/TConGasProInforMapper.xml
0 → 100644
View file @
fc620f45
This diff is collapsed.
Click to expand it.
zh-baseversion-web/src/api/thirdbuild/project.js
0 → 100644
View file @
fc620f45
import
request
from
'@/utils/request'
// 查询第三方施工-涉气第三方施工项目档案列表
export
function
listInfor
(
query
)
{
return
request
({
url
:
'/third/project/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询第三方施工-涉气第三方施工项目档案详细
export
function
getInfor
(
fConGasProInforId
)
{
return
request
({
url
:
'/third/project/'
+
fConGasProInforId
,
method
:
'get'
})
}
// 新增第三方施工-涉气第三方施工项目档案
export
function
addInfor
(
data
)
{
return
request
({
url
:
'/third/project'
,
method
:
'post'
,
data
:
data
})
}
// 修改第三方施工-涉气第三方施工项目档案
export
function
updateInfor
(
data
)
{
return
request
({
url
:
'/third/project'
,
method
:
'put'
,
data
:
data
})
}
// 删除第三方施工-涉气第三方施工项目档案
export
function
delInfor
(
fConGasProInforId
)
{
return
request
({
url
:
'/third/project/'
+
fConGasProInforId
,
method
:
'delete'
})
}
// 导出第三方施工-涉气第三方施工项目档案
export
function
exportInfor
(
query
)
{
return
request
({
url
:
'/third/project/export'
,
method
:
'get'
,
params
:
query
})
}
export
function
reportConGasProInfo
(
query
)
{
return
request
({
url
:
'/third/project/reportConGasProInfo'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/views/thirdbuild/project/components/DetailInfo.vue
0 → 100644
View file @
fc620f45
This diff is collapsed.
Click to expand it.
zh-baseversion-web/src/views/thirdbuild/project/index.vue
0 → 100644
View file @
fc620f45
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