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
53052611
Commit
53052611
authored
Sep 12, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 液化石油气监管-气瓶档案导入-功能开发, 涉及到实体类解析报错问题处理.
parent
a40e906b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
879 additions
and
745 deletions
+879
-745
TLpgGasBottleFilesController.java
...ontroller/lpgRegulation/TLpgGasBottleFilesController.java
+35
-1
TimeTasksController.java
...a/com/zehong/web/controller/task/TimeTasksController.java
+53
-53
TLpgGasBottleFiles.java
...ain/java/com/zehong/system/domain/TLpgGasBottleFiles.java
+316
-363
ITLpgGasBottleFilesService.java
...com/zehong/system/service/ITLpgGasBottleFilesService.java
+14
-0
TLpgAirChargeFilesServiceImpl.java
...ng/system/service/impl/TLpgAirChargeFilesServiceImpl.java
+1
-1
TLpgDeliveryRecordServiceImpl.java
...ng/system/service/impl/TLpgDeliveryRecordServiceImpl.java
+2
-2
TLpgGasBottleFilesServiceImpl.java
...ng/system/service/impl/TLpgGasBottleFilesServiceImpl.java
+23
-1
TLpgGasBottleFilesMapper.xml
...main/resources/mapper/system/TLpgGasBottleFilesMapper.xml
+192
-192
files.js
zh-baseversion-web/src/api/lpgRegulation/files.js
+9
-0
index.vue
...sion-web/src/views/lpgRegulation/gasbottlefiles/index.vue
+234
-132
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/lpgRegulation/TLpgGasBottleFilesController.java
View file @
53052611
package
com
.
zehong
.
web
.
controller
.
lpgRegulation
;
package
com
.
zehong
.
web
.
controller
.
lpgRegulation
;
import
java.util.List
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
java.util.Map
;
import
com.zehong.system.domain.TLpgAirChargeFiles
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
@@ -19,6 +21,9 @@ import com.zehong.system.domain.TLpgGasBottleFiles;
...
@@ -19,6 +21,9 @@ import com.zehong.system.domain.TLpgGasBottleFiles;
import
com.zehong.system.service.ITLpgGasBottleFilesService
;
import
com.zehong.system.service.ITLpgGasBottleFilesService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.core.page.TableDataInfo
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.servlet.http.HttpServletResponse
;
/**
/**
* 液化石油气-气瓶档案Controller
* 液化石油气-气瓶档案Controller
...
@@ -94,4 +99,33 @@ public class TLpgGasBottleFilesController extends BaseController
...
@@ -94,4 +99,33 @@ public class TLpgGasBottleFilesController extends BaseController
{
{
return
toAjax
(
tLpgGasBottleFilesService
.
deleteTLpgGasBottleFilesByIds
(
fGasBottleFilesIds
));
return
toAjax
(
tLpgGasBottleFilesService
.
deleteTLpgGasBottleFilesByIds
(
fGasBottleFilesIds
));
}
}
/**
* 模版下载
* @return r
*/
@GetMapping
(
"/importTemplate"
)
public
AjaxResult
importTemplate
(){
ExcelUtil
<
TLpgGasBottleFiles
>
util
=
new
ExcelUtil
<>(
TLpgGasBottleFiles
.
class
);
return
util
.
importTemplateExcel
(
"气瓶档案数据"
);
}
/**
* 文件导入
* @param file f
* @param updateSupport u
* @return r
* @throws Exception r
*/
@PostMapping
(
"/importData"
)
public
AjaxResult
importData
(
MultipartFile
file
,
boolean
updateSupport
,
HttpServletResponse
response
)
throws
Exception
{
ExcelUtil
<
TLpgGasBottleFiles
>
util
=
new
ExcelUtil
<>(
TLpgGasBottleFiles
.
class
);
List
<
TLpgGasBottleFiles
>
XmbhList
=
util
.
importExcel
(
file
.
getInputStream
());
Map
<
String
,
Object
>
map
=
tLpgGasBottleFilesService
.
importLpgGasBottleFilesInfo
(
XmbhList
,
updateSupport
,
response
);
return
AjaxResult
.
success
(
map
);
}
}
}
zh-baseversion-admin/src/main/java/com/zehong/web/controller/task/TimeTasksController.java
View file @
53052611
This diff is collapsed.
Click to expand it.
zh-baseversion-system/src/main/java/com/zehong/system/domain/TLpgGasBottleFiles.java
View file @
53052611
This diff is collapsed.
Click to expand it.
zh-baseversion-system/src/main/java/com/zehong/system/service/ITLpgGasBottleFilesService.java
View file @
53052611
package
com
.
zehong
.
system
.
service
;
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
com.zehong.system.domain.TLpgGasBottleFiles
;
import
com.zehong.system.domain.TLpgGasBottleFiles
;
import
javax.servlet.http.HttpServletResponse
;
/**
/**
* 液化石油气-气瓶档案Service接口
* 液化石油气-气瓶档案Service接口
*
*
...
@@ -58,4 +62,14 @@ public interface ITLpgGasBottleFilesService
...
@@ -58,4 +62,14 @@ public interface ITLpgGasBottleFilesService
* @return 结果
* @return 结果
*/
*/
public
int
deleteTLpgGasBottleFilesById
(
Long
fGasBottleFilesId
);
public
int
deleteTLpgGasBottleFilesById
(
Long
fGasBottleFilesId
);
/**
* 导入
* @param xmbhList data
* @param updateSupport 是否更新
* @param response res
* @return r
*/
public
Map
<
String
,
Object
>
importLpgGasBottleFilesInfo
(
List
<
TLpgGasBottleFiles
>
xmbhList
,
boolean
updateSupport
,
HttpServletResponse
response
);
}
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TLpgAirChargeFilesServiceImpl.java
View file @
53052611
...
@@ -152,7 +152,7 @@ public class TLpgAirChargeFilesServiceImpl implements ITLpgAirChargeFilesService
...
@@ -152,7 +152,7 @@ public class TLpgAirChargeFilesServiceImpl implements ITLpgAirChargeFilesService
// 这是 上面气瓶条码 有的气瓶数据
// 这是 上面气瓶条码 有的气瓶数据
List
<
TLpgGasBottleFiles
>
tLpgGasBottleFiles2
=
tLpgGasBottleFilesMapper
.
queryAllByFQRcodeList
(
collect
);
List
<
TLpgGasBottleFiles
>
tLpgGasBottleFiles2
=
tLpgGasBottleFilesMapper
.
queryAllByFQRcodeList
(
collect
);
// 按照 气瓶条码 分组
// 按照 气瓶条码 分组
Map
<
String
,
List
<
TLpgGasBottleFiles
>>
collect1
=
tLpgGasBottleFiles2
.
stream
().
collect
(
Collectors
.
groupingBy
(
TLpgGasBottleFiles:
:
get
fQ
Rcode
));
Map
<
String
,
List
<
TLpgGasBottleFiles
>>
collect1
=
tLpgGasBottleFiles2
.
stream
().
collect
(
Collectors
.
groupingBy
(
TLpgGasBottleFiles:
:
get
q
Rcode
));
errorNum
+=
noBarCodeList
.
size
();
errorNum
+=
noBarCodeList
.
size
();
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TLpgDeliveryRecordServiceImpl.java
View file @
53052611
...
@@ -98,13 +98,13 @@ public class TLpgDeliveryRecordServiceImpl implements ITLpgDeliveryRecordService
...
@@ -98,13 +98,13 @@ public class TLpgDeliveryRecordServiceImpl implements ITLpgDeliveryRecordService
// 气瓶条码处理
// 气瓶条码处理
TLpgGasBottleFiles
tLpgGasBottleFiles
=
new
TLpgGasBottleFiles
();
TLpgGasBottleFiles
tLpgGasBottleFiles
=
new
TLpgGasBottleFiles
();
tLpgGasBottleFiles
.
set
fQ
Rcode
(
tLpgDeliveryRecordImportVo
.
getBottleCode
());
tLpgGasBottleFiles
.
set
q
Rcode
(
tLpgDeliveryRecordImportVo
.
getBottleCode
());
List
<
TLpgGasBottleFiles
>
tLpgGasBottleFiles1
=
tLpgGasBottleFilesMapper
.
selectTLpgGasBottleFilesList
(
tLpgGasBottleFiles
);
List
<
TLpgGasBottleFiles
>
tLpgGasBottleFiles1
=
tLpgGasBottleFilesMapper
.
selectTLpgGasBottleFilesList
(
tLpgGasBottleFiles
);
if
(
tLpgGasBottleFiles1
==
null
||
tLpgGasBottleFiles1
.
size
()
==
0
)
{
if
(
tLpgGasBottleFiles1
==
null
||
tLpgGasBottleFiles1
.
size
()
==
0
)
{
errorNum
++;
errorNum
++;
continue
;
continue
;
}
}
lpgDeliveryRecord
.
setBottleCode
(
tLpgGasBottleFiles1
.
get
(
0
).
get
fQ
Rcode
());
lpgDeliveryRecord
.
setBottleCode
(
tLpgGasBottleFiles1
.
get
(
0
).
get
q
Rcode
());
// 燃气用户处理
// 燃气用户处理
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TLpgGasBottleFilesServiceImpl.java
View file @
53052611
package
com
.
zehong
.
system
.
service
.
impl
;
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TLpgGasBottleFilesMapper
;
import
com.zehong.system.mapper.TLpgGasBottleFilesMapper
;
import
com.zehong.system.domain.TLpgGasBottleFiles
;
import
com.zehong.system.domain.TLpgGasBottleFiles
;
import
com.zehong.system.service.ITLpgGasBottleFilesService
;
import
com.zehong.system.service.ITLpgGasBottleFilesService
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletResponse
;
/**
/**
* 液化石油气-气瓶档案Service业务层处理
* 液化石油气-气瓶档案Service业务层处理
*
*
...
@@ -16,7 +21,7 @@ import com.zehong.system.service.ITLpgGasBottleFilesService;
...
@@ -16,7 +21,7 @@ import com.zehong.system.service.ITLpgGasBottleFilesService;
@Service
@Service
public
class
TLpgGasBottleFilesServiceImpl
implements
ITLpgGasBottleFilesService
public
class
TLpgGasBottleFilesServiceImpl
implements
ITLpgGasBottleFilesService
{
{
@
Autowired
@
Resource
private
TLpgGasBottleFilesMapper
tLpgGasBottleFilesMapper
;
private
TLpgGasBottleFilesMapper
tLpgGasBottleFilesMapper
;
/**
/**
...
@@ -90,4 +95,21 @@ public class TLpgGasBottleFilesServiceImpl implements ITLpgGasBottleFilesService
...
@@ -90,4 +95,21 @@ public class TLpgGasBottleFilesServiceImpl implements ITLpgGasBottleFilesService
{
{
return
tLpgGasBottleFilesMapper
.
deleteTLpgGasBottleFilesById
(
fGasBottleFilesId
);
return
tLpgGasBottleFilesMapper
.
deleteTLpgGasBottleFilesById
(
fGasBottleFilesId
);
}
}
/**
* 气瓶档案导入
* @param xmbhList data
* @param updateSupport 是否更新
* @param response res
* @return r
*/
@Override
public
Map
<
String
,
Object
>
importLpgGasBottleFilesInfo
(
List
<
TLpgGasBottleFiles
>
xmbhList
,
boolean
updateSupport
,
HttpServletResponse
response
)
{
for
(
TLpgGasBottleFiles
tLpgGasBottleFiles
:
xmbhList
)
{
System
.
out
.
println
(
tLpgGasBottleFiles
.
getqRcode
());
}
return
null
;
}
}
}
zh-baseversion-system/src/main/resources/mapper/system/TLpgGasBottleFilesMapper.xml
View file @
53052611
This diff is collapsed.
Click to expand it.
zh-baseversion-web/src/api/lpgRegulation/files.js
View file @
53052611
...
@@ -51,3 +51,12 @@ export function exportFiles(query) {
...
@@ -51,3 +51,12 @@ export function exportFiles(query) {
params
:
query
params
:
query
})
})
}
}
// 下载用户导入模板
export
function
importTemplate
()
{
return
request
({
url
:
'/lpg/gasbottlefiles/importTemplate'
,
method
:
'get'
})
}
\ No newline at end of file
zh-baseversion-web/src/views/lpgRegulation/gasbottlefiles/index.vue
View file @
53052611
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