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
a40e906b
Commit
a40e906b
authored
Sep 12, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 液化石油气监管-充装记录导入-功能开发, 涉及到实体类解析报错问题处理,及大数据量查询 气瓶档案 数据优化
2 大屏端 场站 和 调压箱 部分点位展示 不准确问题修复。
parent
65ae33b4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
322 additions
and
220 deletions
+322
-220
TLpgAirChargeFilesController.java
...ontroller/lpgRegulation/TLpgAirChargeFilesController.java
+3
-2
TimeTasksController.java
...a/com/zehong/web/controller/task/TimeTasksController.java
+13
-13
TLpgAirChargeFiles.java
...ain/java/com/zehong/system/domain/TLpgAirChargeFiles.java
+86
-86
TLpgAirChargeFilesMapper.java
...va/com/zehong/system/mapper/TLpgAirChargeFilesMapper.java
+12
-4
TLpgGasBottleFilesMapper.java
...va/com/zehong/system/mapper/TLpgGasBottleFilesMapper.java
+8
-0
TLpgAirChargeFilesServiceImpl.java
...ng/system/service/impl/TLpgAirChargeFilesServiceImpl.java
+56
-5
TLpgAirChargeFilesMapper.xml
...main/resources/mapper/system/TLpgAirChargeFilesMapper.xml
+77
-60
TLpgGasBottleFilesMapper.xml
...main/resources/mapper/system/TLpgGasBottleFilesMapper.xml
+7
-0
map.js
zh-baseversion-web/src/utils/mapClass/map.js
+10
-10
indexInfo.vue
...ews/lpgRegulation/airchargefiles/components/indexInfo.vue
+13
-13
index.vue
...sion-web/src/views/lpgRegulation/airchargefiles/index.vue
+37
-27
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/lpgRegulation/TLpgAirChargeFilesController.java
View file @
a40e906b
package
com
.
zehong
.
web
.
controller
.
lpgRegulation
;
import
java.util.List
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
...
@@ -123,8 +124,8 @@ public class TLpgAirChargeFilesController extends BaseController
ExcelUtil
<
TLpgAirChargeFiles
>
util
=
new
ExcelUtil
<>(
TLpgAirChargeFiles
.
class
);
List
<
TLpgAirChargeFiles
>
XmbhList
=
util
.
importExcel
(
file
.
getInputStream
());
tLpgAirChargeFilesService
.
importLpgAirChargeFileInfo
(
XmbhList
,
updateSupport
,
response
);
return
AjaxResult
.
success
();
Map
<
String
,
Object
>
map
=
tLpgAirChargeFilesService
.
importLpgAirChargeFileInfo
(
XmbhList
,
updateSupport
,
response
);
return
AjaxResult
.
success
(
map
);
}
}
zh-baseversion-admin/src/main/java/com/zehong/web/controller/task/TimeTasksController.java
View file @
a40e906b
...
...
@@ -232,19 +232,19 @@ public class TimeTasksController {
for
(
int
i
=
startNum
;
i
<
data
.
size
();
i
++){
JSONObject
jsonObject
=
data
.
getJSONObject
(
i
);
TLpgAirChargeFiles
tLpgAirChargeFile
=
new
TLpgAirChargeFiles
();
tLpgAirChargeFile
.
set
f
GzId
(
jsonObject
.
getLong
(
"gzId"
));
tLpgAirChargeFile
.
set
f
StationName
(
jsonObject
.
getString
(
"stationName"
));
tLpgAirChargeFile
.
set
f
BarCode
(
jsonObject
.
getString
(
"barCode"
));
tLpgAirChargeFile
.
set
f
VaseCode
(
jsonObject
.
getString
(
"vaseCode"
));
tLpgAirChargeFile
.
set
f
ScaleNum
(
jsonObject
.
getString
(
"scaleNum"
));
tLpgAirChargeFile
.
set
f
FillStatrTime
(
jsonObject
.
getString
(
"fillStatrTime"
));
tLpgAirChargeFile
.
set
f
FillEndTime
(
jsonObject
.
getString
(
"fillEndTime"
));
tLpgAirChargeFile
.
set
f
SetWeight
(
jsonObject
.
getString
(
"setWeight"
));
tLpgAirChargeFile
.
set
f
WtNet
(
jsonObject
.
getString
(
"wtNet"
));
tLpgAirChargeFile
.
set
f
SetBottleWeight
(
jsonObject
.
getString
(
"setBottleWeight"
));
tLpgAirChargeFile
.
set
f
BottleWeight
(
jsonObject
.
getString
(
"bottleWeight"
));
tLpgAirChargeFile
.
set
f
WtGross
(
jsonObject
.
getString
(
"wtGross"
));
tLpgAirChargeFile
.
set
f
OprateName
(
jsonObject
.
getString
(
"oprateName"
));
tLpgAirChargeFile
.
setGzId
(
jsonObject
.
getLong
(
"gzId"
));
tLpgAirChargeFile
.
setStationName
(
jsonObject
.
getString
(
"stationName"
));
tLpgAirChargeFile
.
setBarCode
(
jsonObject
.
getString
(
"barCode"
));
tLpgAirChargeFile
.
setVaseCode
(
jsonObject
.
getString
(
"vaseCode"
));
tLpgAirChargeFile
.
setScaleNum
(
jsonObject
.
getString
(
"scaleNum"
));
tLpgAirChargeFile
.
setFillStatrTime
(
jsonObject
.
getString
(
"fillStatrTime"
));
tLpgAirChargeFile
.
setFillEndTime
(
jsonObject
.
getString
(
"fillEndTime"
));
tLpgAirChargeFile
.
setSetWeight
(
jsonObject
.
getString
(
"setWeight"
));
tLpgAirChargeFile
.
setWtNet
(
jsonObject
.
getString
(
"wtNet"
));
tLpgAirChargeFile
.
setSetBottleWeight
(
jsonObject
.
getString
(
"setBottleWeight"
));
tLpgAirChargeFile
.
setBottleWeight
(
jsonObject
.
getString
(
"bottleWeight"
));
tLpgAirChargeFile
.
setWtGross
(
jsonObject
.
getString
(
"wtGross"
));
tLpgAirChargeFile
.
setOprateName
(
jsonObject
.
getString
(
"oprateName"
));
tLpgAirChargeFilesService
.
insertTLpgAirChargeFiles
(
tLpgAirChargeFile
);
}
if
(
data
.
size
()==
100
){
...
...
zh-baseversion-system/src/main/java/com/zehong/system/domain/TLpgAirChargeFiles.java
View file @
a40e906b
...
...
@@ -16,189 +16,189 @@ public class TLpgAirChargeFiles extends BaseEntity
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
fG
asAirChargeId
;
private
Long
g
asAirChargeId
;
/** 充装记录编号 */
@Excel
(
name
=
"充装记录编号"
)
private
Long
fG
zId
;
private
Long
g
zId
;
/** 充装单位 */
@Excel
(
name
=
"充装单位"
)
private
String
fS
tationName
;
private
String
s
tationName
;
/** 气瓶条码 */
@Excel
(
name
=
"气瓶条码"
)
private
String
fB
arCode
;
private
String
b
arCode
;
/** 钢印号 */
@Excel
(
name
=
"钢印号"
)
private
String
fV
aseCode
;
private
String
v
aseCode
;
/** 秤号 */
@Excel
(
name
=
"秤号"
)
private
String
fS
caleNum
;
private
String
s
caleNum
;
/** 充装开始时间 */
@Excel
(
name
=
"充装开始时间"
)
private
String
f
F
illStatrTime
;
private
String
fillStatrTime
;
/** 充装结束时间 */
@Excel
(
name
=
"充装结束时间"
)
private
String
f
F
illEndTime
;
private
String
fillEndTime
;
/** 设定净重 */
@Excel
(
name
=
"设定净重"
)
private
String
fS
etWeight
;
private
String
s
etWeight
;
/** 实际净重 */
@Excel
(
name
=
"实际净重"
)
private
String
fW
tNet
;
private
String
w
tNet
;
/** 设定瓶重 */
@Excel
(
name
=
"设定瓶重"
)
private
String
fS
etBottleWeight
;
private
String
s
etBottleWeight
;
/** 实际瓶重 */
@Excel
(
name
=
"实际瓶重"
)
private
String
fB
ottleWeight
;
private
String
b
ottleWeight
;
/** 实际总重 */
@Excel
(
name
=
"实际总重"
)
private
String
fW
tGross
;
private
String
w
tGross
;
/** 充装工 */
@Excel
(
name
=
"充装工"
)
private
String
fO
prateName
;
private
String
o
prateName
;
public
Long
get
f
GasAirChargeId
()
{
return
fG
asAirChargeId
;
public
Long
getGasAirChargeId
()
{
return
g
asAirChargeId
;
}
public
void
set
fGasAirChargeId
(
Long
fG
asAirChargeId
)
{
this
.
fGasAirChargeId
=
fG
asAirChargeId
;
public
void
set
GasAirChargeId
(
Long
g
asAirChargeId
)
{
this
.
gasAirChargeId
=
g
asAirChargeId
;
}
public
Long
get
f
GzId
()
{
return
fG
zId
;
public
Long
getGzId
()
{
return
g
zId
;
}
public
void
set
fGzId
(
Long
fG
zId
)
{
this
.
fGzId
=
fG
zId
;
public
void
set
GzId
(
Long
g
zId
)
{
this
.
gzId
=
g
zId
;
}
public
String
get
f
StationName
()
{
return
fS
tationName
;
public
String
getStationName
()
{
return
s
tationName
;
}
public
void
set
fStationName
(
String
fS
tationName
)
{
this
.
fStationName
=
fS
tationName
;
public
void
set
StationName
(
String
s
tationName
)
{
this
.
stationName
=
s
tationName
;
}
public
String
get
f
BarCode
()
{
return
fB
arCode
;
public
String
getBarCode
()
{
return
b
arCode
;
}
public
void
set
fBarCode
(
String
fB
arCode
)
{
this
.
fBarCode
=
fB
arCode
;
public
void
set
BarCode
(
String
b
arCode
)
{
this
.
barCode
=
b
arCode
;
}
public
String
get
f
VaseCode
()
{
return
fV
aseCode
;
public
String
getVaseCode
()
{
return
v
aseCode
;
}
public
void
set
fVaseCode
(
String
fV
aseCode
)
{
this
.
fVaseCode
=
fV
aseCode
;
public
void
set
VaseCode
(
String
v
aseCode
)
{
this
.
vaseCode
=
v
aseCode
;
}
public
String
get
f
ScaleNum
()
{
return
fS
caleNum
;
public
String
getScaleNum
()
{
return
s
caleNum
;
}
public
void
set
fScaleNum
(
String
fS
caleNum
)
{
this
.
fScaleNum
=
fS
caleNum
;
public
void
set
ScaleNum
(
String
s
caleNum
)
{
this
.
scaleNum
=
s
caleNum
;
}
public
String
get
f
FillStatrTime
()
{
return
f
F
illStatrTime
;
public
String
getFillStatrTime
()
{
return
fillStatrTime
;
}
public
void
set
fFillStatrTime
(
String
fF
illStatrTime
)
{
this
.
f
FillStatrTime
=
fF
illStatrTime
;
public
void
set
FillStatrTime
(
String
f
illStatrTime
)
{
this
.
f
illStatrTime
=
f
illStatrTime
;
}
public
String
get
f
FillEndTime
()
{
return
f
F
illEndTime
;
public
String
getFillEndTime
()
{
return
fillEndTime
;
}
public
void
set
fFillEndTime
(
String
fF
illEndTime
)
{
this
.
f
FillEndTime
=
fF
illEndTime
;
public
void
set
FillEndTime
(
String
f
illEndTime
)
{
this
.
f
illEndTime
=
f
illEndTime
;
}
public
String
get
f
SetWeight
()
{
return
fS
etWeight
;
public
String
getSetWeight
()
{
return
s
etWeight
;
}
public
void
set
fSetWeight
(
String
fS
etWeight
)
{
this
.
fSetWeight
=
fS
etWeight
;
public
void
set
SetWeight
(
String
s
etWeight
)
{
this
.
setWeight
=
s
etWeight
;
}
public
String
get
f
WtNet
()
{
return
fW
tNet
;
public
String
getWtNet
()
{
return
w
tNet
;
}
public
void
set
fWtNet
(
String
fW
tNet
)
{
this
.
fWtNet
=
fW
tNet
;
public
void
set
WtNet
(
String
w
tNet
)
{
this
.
wtNet
=
w
tNet
;
}
public
String
get
f
SetBottleWeight
()
{
return
fS
etBottleWeight
;
public
String
getSetBottleWeight
()
{
return
s
etBottleWeight
;
}
public
void
set
fSetBottleWeight
(
String
fS
etBottleWeight
)
{
this
.
fSetBottleWeight
=
fS
etBottleWeight
;
public
void
set
SetBottleWeight
(
String
s
etBottleWeight
)
{
this
.
setBottleWeight
=
s
etBottleWeight
;
}
public
String
get
f
BottleWeight
()
{
return
fB
ottleWeight
;
public
String
getBottleWeight
()
{
return
b
ottleWeight
;
}
public
void
set
fBottleWeight
(
String
fB
ottleWeight
)
{
this
.
fBottleWeight
=
fB
ottleWeight
;
public
void
set
BottleWeight
(
String
b
ottleWeight
)
{
this
.
bottleWeight
=
b
ottleWeight
;
}
public
String
get
f
WtGross
()
{
return
fW
tGross
;
public
String
getWtGross
()
{
return
w
tGross
;
}
public
void
set
fWtGross
(
String
fW
tGross
)
{
this
.
fWtGross
=
fW
tGross
;
public
void
set
WtGross
(
String
w
tGross
)
{
this
.
wtGross
=
w
tGross
;
}
public
String
get
f
OprateName
()
{
return
fO
prateName
;
public
String
getOprateName
()
{
return
o
prateName
;
}
public
void
set
fOprateName
(
String
fO
prateName
)
{
this
.
fOprateName
=
fO
prateName
;
public
void
set
OprateName
(
String
o
prateName
)
{
this
.
oprateName
=
o
prateName
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fGasAirChargeId"
,
getfGasAirChargeId
())
.
append
(
"fGzId"
,
getfGzId
())
.
append
(
"fStationName"
,
getfStationName
())
.
append
(
"fBarCode"
,
getfBarCode
())
.
append
(
"fVaseCode"
,
getfVaseCode
())
.
append
(
"fScaleNum"
,
getfScaleNum
())
.
append
(
"fFillStatrTime"
,
getfFillStatrTime
())
.
append
(
"fFillEndTime"
,
getfFillEndTime
())
.
append
(
"fSetWeight"
,
getfSetWeight
())
.
append
(
"fWtNet"
,
getfWtNet
())
.
append
(
"fSetBottleWeight"
,
getfSetBottleWeight
())
.
append
(
"fBottleWeight"
,
getfBottleWeight
())
.
append
(
"fWtGross"
,
getfWtGross
())
.
append
(
"fOprateName"
,
getfOprateName
())
.
toString
()
;
return
"TLpgAirChargeFiles{"
+
"gasAirChargeId="
+
gasAirChargeId
+
", gzId="
+
gzId
+
", stationName='"
+
stationName
+
'\''
+
", barCode='"
+
barCode
+
'\''
+
", vaseCode='"
+
vaseCode
+
'\''
+
", scaleNum='"
+
scaleNum
+
'\''
+
", fillStatrTime='"
+
fillStatrTime
+
'\''
+
", fillEndTime='"
+
fillEndTime
+
'\''
+
", setWeight='"
+
setWeight
+
'\''
+
", wtNet='"
+
wtNet
+
'\''
+
", setBottleWeight='"
+
setBottleWeight
+
'\''
+
", bottleWeight='"
+
bottleWeight
+
'\''
+
", wtGross='"
+
wtGross
+
'\''
+
", oprateName='"
+
oprateName
+
'\''
+
'}'
;
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TLpgAirChargeFilesMapper.java
View file @
a40e906b
...
...
@@ -2,6 +2,7 @@ package com.zehong.system.mapper;
import
java.util.List
;
import
com.zehong.system.domain.TLpgAirChargeFiles
;
import
org.apache.ibatis.annotations.Param
;
/**
* 液化石油气-充装记录Mapper接口
...
...
@@ -14,10 +15,10 @@ public interface TLpgAirChargeFilesMapper
/**
* 查询液化石油气-充装记录
*
* @param
fG
asAirChargeId 液化石油气-充装记录ID
* @param
g
asAirChargeId 液化石油气-充装记录ID
* @return 液化石油气-充装记录
*/
public
TLpgAirChargeFiles
selectTLpgAirChargeFilesById
(
Long
fG
asAirChargeId
);
public
TLpgAirChargeFiles
selectTLpgAirChargeFilesById
(
Long
g
asAirChargeId
);
public
Integer
selectTLpgAirChargeFilesTotal
();
...
...
@@ -44,6 +45,13 @@ public interface TLpgAirChargeFilesMapper
*/
public
int
insertTLpgAirChargeFiles
(
TLpgAirChargeFiles
tLpgAirChargeFiles
);
/**
* 批量插入
* @param list l
* @return r
*/
public
int
insertBatch
(
@Param
(
"list"
)
List
<
TLpgAirChargeFiles
>
list
);
/**
* 修改液化石油气-充装记录
*
...
...
@@ -55,10 +63,10 @@ public interface TLpgAirChargeFilesMapper
/**
* 删除液化石油气-充装记录
*
* @param
fG
asAirChargeId 液化石油气-充装记录ID
* @param
g
asAirChargeId 液化石油气-充装记录ID
* @return 结果
*/
public
int
deleteTLpgAirChargeFilesById
(
Long
fG
asAirChargeId
);
public
int
deleteTLpgAirChargeFilesById
(
Long
g
asAirChargeId
);
/**
* 批量删除液化石油气-充装记录
...
...
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TLpgGasBottleFilesMapper.java
View file @
a40e906b
...
...
@@ -2,6 +2,7 @@ package com.zehong.system.mapper;
import
java.util.List
;
import
com.zehong.system.domain.TLpgGasBottleFiles
;
import
org.apache.ibatis.annotations.Param
;
/**
* 液化石油气-气瓶档案Mapper接口
...
...
@@ -27,6 +28,13 @@ public interface TLpgGasBottleFilesMapper
*/
public
List
<
TLpgGasBottleFiles
>
selectTLpgGasBottleFilesList
(
TLpgGasBottleFiles
tLpgGasBottleFiles
);
/**
* 根据 气瓶条码 集合查询数据
* @param codeList codelist
* @return r
*/
public
List
<
TLpgGasBottleFiles
>
queryAllByFQRcodeList
(
@Param
(
"codeList"
)
List
<
String
>
codeList
);
/**
* 新增液化石油气-气瓶档案
*
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TLpgAirChargeFilesServiceImpl.java
View file @
a40e906b
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
com.zehong.common.utils.StringUtils
;
import
com.zehong.system.domain.TLpgGasBottleFiles
;
import
com.zehong.system.mapper.TLpgGasBottleFilesMapper
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TLpgAirChargeFilesMapper
;
import
com.zehong.system.domain.TLpgAirChargeFiles
;
import
com.zehong.system.service.ITLpgAirChargeFilesService
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletResponse
;
/**
...
...
@@ -21,9 +26,12 @@ import javax.servlet.http.HttpServletResponse;
@Service
public
class
TLpgAirChargeFilesServiceImpl
implements
ITLpgAirChargeFilesService
{
@
Autowired
@
Resource
private
TLpgAirChargeFilesMapper
tLpgAirChargeFilesMapper
;
@Resource
private
TLpgGasBottleFilesMapper
tLpgGasBottleFilesMapper
;
/**
* 查询液化石油气-充装记录
*
...
...
@@ -124,10 +132,53 @@ public class TLpgAirChargeFilesServiceImpl implements ITLpgAirChargeFilesService
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
for
(
TLpgAirChargeFiles
tLpgAirChargeFiles
:
xmbhList
)
{
System
.
out
.
println
(
tLpgAirChargeFiles
.
getfBarCode
());
int
errorNum
=
0
;
int
successNum
=
0
;
List
<
TLpgAirChargeFiles
>
successList
=
new
ArrayList
<>();
if
(
xmbhList
!=
null
&&
xmbhList
.
size
()
>
0
)
{
if
(
xmbhList
.
size
()
>
500
)
{
map
.
put
(
"errorMsg"
,
"导入数据不允许超过500条"
);
return
map
;
}
List
<
TLpgAirChargeFiles
>
noBarCodeList
=
xmbhList
.
stream
().
filter
(
item
->
StringUtils
.
isBlank
(
item
.
getBarCode
())).
collect
(
Collectors
.
toList
());
List
<
TLpgAirChargeFiles
>
havaBarCodeList
=
xmbhList
.
stream
().
filter
(
item
->
StringUtils
.
isNotBlank
(
item
.
getBarCode
())).
collect
(
Collectors
.
toList
());
// 气瓶条码集合
List
<
String
>
collect
=
havaBarCodeList
.
stream
().
map
(
item
->
item
.
getBarCode
()).
collect
(
Collectors
.
toList
());
// 这是 上面气瓶条码 有的气瓶数据
List
<
TLpgGasBottleFiles
>
tLpgGasBottleFiles2
=
tLpgGasBottleFilesMapper
.
queryAllByFQRcodeList
(
collect
);
// 按照 气瓶条码 分组
Map
<
String
,
List
<
TLpgGasBottleFiles
>>
collect1
=
tLpgGasBottleFiles2
.
stream
().
collect
(
Collectors
.
groupingBy
(
TLpgGasBottleFiles:
:
getfQRcode
));
errorNum
+=
noBarCodeList
.
size
();
for
(
TLpgAirChargeFiles
tLpgAirChargeFiles
:
havaBarCodeList
)
{
List
<
TLpgGasBottleFiles
>
tLpgGasBottleFiles
=
collect1
.
get
(
tLpgAirChargeFiles
.
getBarCode
());
if
(
tLpgGasBottleFiles
==
null
||
tLpgGasBottleFiles
.
size
()
==
0
)
{
errorNum
++;
continue
;
}
successList
.
add
(
tLpgAirChargeFiles
);
successNum
++;
}
if
(
successList
.
size
()
>
0
)
{
tLpgAirChargeFilesMapper
.
insertBatch
(
successList
);
}
map
.
put
(
"errorNum"
,
errorNum
);
map
.
put
(
"successNum"
,
successNum
);
}
else
{
map
.
put
(
"errorNum"
,
errorNum
);
map
.
put
(
"successNum"
,
successNum
);
}
return
map
;
}
...
...
zh-baseversion-system/src/main/resources/mapper/system/TLpgAirChargeFilesMapper.xml
View file @
a40e906b
This diff is collapsed.
Click to expand it.
zh-baseversion-system/src/main/resources/mapper/system/TLpgGasBottleFilesMapper.xml
View file @
a40e906b
...
...
@@ -78,6 +78,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fState != null "
>
and f_state = #{fState}
</if>
</where>
</select>
<select
id=
"queryAllByFQRcodeList"
resultMap=
"TLpgGasBottleFilesResult"
>
<include
refid=
"selectTLpgGasBottleFilesVo"
/>
where f_q_rcode in
<foreach
collection=
"codeList"
close=
")"
index=
"i"
item=
"item"
open=
"("
separator=
","
>
#{item}
</foreach>
</select>
<select
id=
"selectTLpgGasBottleFilesById"
parameterType=
"Long"
resultMap=
"TLpgGasBottleFilesResult"
>
<include
refid=
"selectTLpgGasBottleFilesVo"
/>
...
...
zh-baseversion-web/src/utils/mapClass/map.js
View file @
a40e906b
...
...
@@ -798,15 +798,15 @@ export class EditorMap {
mapData
.
forEach
((
item
)
=>
{
let
longitude
=
item
.
longitude
;
let
latitude
=
item
.
latitude
;
var
userId
=
item
.
user
Id
;
icon
.
userId
=
user
Id
;
var
siteStationId
=
item
.
siteStation
Id
;
icon
.
siteStationId
=
siteStation
Id
;
var
curData
=
{
position
:
[
longitude
,
latitude
],
icon
:
icon
,
rank
:
1
,
//避让优先级
};
hashMap
.
set
(
JSON
.
stringify
(
user
Id
),
item
);
hashMap
.
set
(
JSON
.
stringify
(
siteStation
Id
),
item
);
//创建 LabelMarker
const
labelMarker
=
new
AMap
.
LabelMarker
(
curData
);
// var marker = new AMap.Marker(curData);
...
...
@@ -815,8 +815,8 @@ export class EditorMap {
labelMarker
.
on
(
"click"
,
(
e
)
=>
{
var
opts
=
JSON
.
stringify
(
e
.
data
.
opts
);
var
optsObj
=
JSON
.
parse
(
opts
);
var
userId
=
JSON
.
stringify
(
optsObj
.
icon
.
user
Id
);
var
extData
=
hashMap
.
get
(
user
Id
);
var
siteStationId
=
JSON
.
stringify
(
optsObj
.
icon
.
siteStation
Id
);
var
extData
=
hashMap
.
get
(
siteStation
Id
);
// 如果control==0就是默认值,没有使用123功能,就显示infowindow
this
.
massMarksMarkerClick
(
extData
,
compontent
);
});
...
...
@@ -937,15 +937,15 @@ export class EditorMap {
mapData
.
forEach
((
item
)
=>
{
let
longitude
=
item
.
longitude
;
let
latitude
=
item
.
latitude
;
var
userId
=
item
.
user
Id
;
icon
.
userId
=
user
Id
;
var
deviceId
=
item
.
device
Id
;
icon
.
deviceId
=
device
Id
;
var
curData
=
{
position
:
[
longitude
,
latitude
],
icon
:
icon
,
rank
:
1
,
//避让优先级
};
hashMap
.
set
(
JSON
.
stringify
(
user
Id
),
item
);
hashMap
.
set
(
JSON
.
stringify
(
device
Id
),
item
);
//创建 LabelMarker
const
labelMarker
=
new
AMap
.
LabelMarker
(
curData
);
// var marker = new AMap.Marker(curData);
...
...
@@ -954,8 +954,8 @@ export class EditorMap {
labelMarker
.
on
(
"click"
,
(
e
)
=>
{
var
opts
=
JSON
.
stringify
(
e
.
data
.
opts
);
var
optsObj
=
JSON
.
parse
(
opts
);
var
userId
=
JSON
.
stringify
(
optsObj
.
icon
.
user
Id
);
var
extData
=
hashMap
.
get
(
user
Id
);
var
deviceId
=
JSON
.
stringify
(
optsObj
.
icon
.
device
Id
);
var
extData
=
hashMap
.
get
(
device
Id
);
// 如果control==0就是默认值,没有使用123功能,就显示infowindow
this
.
massMarksMarkerClick
(
extData
,
compontent
);
});
...
...
zh-baseversion-web/src/views/lpgRegulation/airchargefiles/components/indexInfo.vue
View file @
a40e906b
...
...
@@ -6,86 +6,86 @@
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装记录编号"
>
<span
v-if=
"detailInfo.
fGzId"
>
{{
detailInfo
.
fG
zId
}}
</span>
<span
v-if=
"detailInfo.
gzId"
>
{{
detailInfo
.
g
zId
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装单位"
>
<span
v-if=
"detailInfo.
fStationName"
>
{{
detailInfo
.
fS
tationName
}}
</span>
<span
v-if=
"detailInfo.
stationName"
>
{{
detailInfo
.
s
tationName
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"气瓶条码"
>
<span
v-if=
"detailInfo.
fBarCode"
>
{{
detailInfo
.
fB
arCode
}}
</span>
<span
v-if=
"detailInfo.
barCode"
>
{{
detailInfo
.
b
arCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"钢印号"
>
<span
v-if=
"detailInfo.
fVaseCode"
>
{{
detailInfo
.
fV
aseCode
}}
</span>
<span
v-if=
"detailInfo.
vaseCode"
>
{{
detailInfo
.
v
aseCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"秤号"
>
<span
v-if=
"detailInfo.
fScaleNum"
>
{{
detailInfo
.
fS
caleNum
}}
</span>
<span
v-if=
"detailInfo.
scaleNum"
>
{{
detailInfo
.
s
caleNum
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装开始时间"
>
<span
v-if=
"detailInfo.f
FillStatrTime"
>
{{
detailInfo
.
fF
illStatrTime
}}
</span>
<span
v-if=
"detailInfo.f
illStatrTime"
>
{{
detailInfo
.
f
illStatrTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装结束时间"
>
<span
v-if=
"detailInfo.f
FillEndTime"
>
{{
detailInfo
.
fF
illEndTime
}}
</span>
<span
v-if=
"detailInfo.f
illEndTime"
>
{{
detailInfo
.
f
illEndTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"设定净重"
>
<span
v-if=
"detailInfo.
fSetWeight"
>
{{
detailInfo
.
fS
etWeight
}}
</span>
<span
v-if=
"detailInfo.
setWeight"
>
{{
detailInfo
.
s
etWeight
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"实际净重"
>
<span
v-if=
"detailInfo.
fWtNet"
>
{{
detailInfo
.
fW
tNet
}}
</span>
<span
v-if=
"detailInfo.
wtNet"
>
{{
detailInfo
.
w
tNet
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"设定瓶重"
>
<span
v-if=
"detailInfo.
fSetBottleWeight"
>
{{
detailInfo
.
fS
etBottleWeight
}}
</span>
<span
v-if=
"detailInfo.
setBottleWeight"
>
{{
detailInfo
.
s
etBottleWeight
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"实际瓶重"
>
<span
v-if=
"detailInfo.
fBottleWeight"
>
{{
detailInfo
.
fB
ottleWeight
}}
</span>
<span
v-if=
"detailInfo.
bottleWeight"
>
{{
detailInfo
.
b
ottleWeight
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"实际总重"
>
<span
v-if=
"detailInfo.
fWtGross"
>
{{
detailInfo
.
fW
tGross
}}
</span>
<span
v-if=
"detailInfo.
wtGross"
>
{{
detailInfo
.
w
tGross
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装工"
>
<span
v-if=
"detailInfo.
fOprateName"
>
{{
detailInfo
.
fO
prateName
}}
</span>
<span
v-if=
"detailInfo.
oprateName"
>
{{
detailInfo
.
o
prateName
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
...
...
zh-baseversion-web/src/views/lpgRegulation/airchargefiles/index.vue
View file @
a40e906b
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"钢印号"
prop=
"
fV
aseCode"
>
<el-form-item
label=
"钢印号"
prop=
"
v
aseCode"
>
<el-input
v-model=
"queryParams.
fV
aseCode"
v-model=
"queryParams.
v
aseCode"
placeholder=
"请输入钢印号"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"气瓶条码"
prop=
"
fB
arCode"
>
<el-form-item
label=
"气瓶条码"
prop=
"
b
arCode"
>
<el-input
v-model=
"queryParams.
fB
arCode"
v-model=
"queryParams.
b
arCode"
placeholder=
"请输入气瓶条码"
clearable
size=
"small"
...
...
@@ -50,11 +50,11 @@
<el-table
v-loading=
"loading"
:data=
"filesList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"充装记录编号"
align=
"center"
prop=
"
fG
zId"
/>
<el-table-column
label=
"充装单位"
align=
"center"
prop=
"
fS
tationName"
/>
<el-table-column
label=
"气瓶条码"
align=
"center"
prop=
"
fB
arCode"
/>
<el-table-column
label=
"钢印号"
align=
"center"
prop=
"
fV
aseCode"
/>
<el-table-column
label=
"秤号"
align=
"center"
prop=
"
fS
caleNum"
/>
<el-table-column
label=
"充装记录编号"
align=
"center"
prop=
"
g
zId"
/>
<el-table-column
label=
"充装单位"
align=
"center"
prop=
"
s
tationName"
/>
<el-table-column
label=
"气瓶条码"
align=
"center"
prop=
"
b
arCode"
/>
<el-table-column
label=
"钢印号"
align=
"center"
prop=
"
v
aseCode"
/>
<el-table-column
label=
"秤号"
align=
"center"
prop=
"
s
caleNum"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<el-button
...
...
@@ -163,7 +163,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
fV
aseCode
:
null
,
v
aseCode
:
null
,
},
// 表单参数
form
:
{},
...
...
@@ -192,6 +192,7 @@ export default {
// 文件上传处理中
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
this
.
$showLoading
.
show
();
},
// 文件上传成功处理
...
...
@@ -199,8 +200,17 @@ export default {
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
if
(
response
.
data
!=
null
)
{
if
(
response
.
data
.
errorMsg
!=
null
&&
response
.
data
.
errorMsg
!==
""
)
{
this
.
$alert
(
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>"
+
response
.
data
.
errorMsg
+
"</div>"
,
"导入结果"
,
{
dangerouslyUseHTMLString
:
true
});
}
else
{
this
.
$alert
(
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>"
+
"成功:"
+
response
.
data
.
successNum
+
"条,失败:"
+
response
.
data
.
errorNum
+
"条"
+
"</div>"
,
"导入结果"
,
{
dangerouslyUseHTMLString
:
true
});
}
}
else
{
this
.
$alert
(
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>"
+
response
.
msg
+
"</div>"
,
"导入结果"
,
{
dangerouslyUseHTMLString
:
true
});
}
this
.
getList
();
this
.
$showLoading
.
hide
();
},
// 提交上传文件
...
...
@@ -225,20 +235,20 @@ export default {
// 表单重置
reset
()
{
this
.
form
=
{
fG
asAirChargeId
:
null
,
fG
zId
:
null
,
fS
tationName
:
null
,
fB
arCode
:
null
,
fV
aseCode
:
null
,
fS
caleNum
:
null
,
f
F
illStatrTime
:
null
,
f
F
illEndTime
:
null
,
fS
etWeight
:
null
,
fW
tNet
:
null
,
fS
etBottleWeight
:
null
,
fB
ottleWeight
:
null
,
fW
tGross
:
null
,
fO
prateName
:
null
g
asAirChargeId
:
null
,
g
zId
:
null
,
s
tationName
:
null
,
b
arCode
:
null
,
v
aseCode
:
null
,
s
caleNum
:
null
,
fillStatrTime
:
null
,
fillEndTime
:
null
,
s
etWeight
:
null
,
w
tNet
:
null
,
s
etBottleWeight
:
null
,
b
ottleWeight
:
null
,
w
tGross
:
null
,
o
prateName
:
null
};
this
.
resetForm
(
"form"
);
},
...
...
@@ -255,11 +265,11 @@ export default {
//详情
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fG
asAirChargeId
);
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
g
asAirChargeId
);
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
fG
asAirChargeId
)
this
.
ids
=
selection
.
map
(
item
=>
item
.
g
asAirChargeId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
...
...
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