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
c70af3c0
Commit
c70af3c0
authored
Jul 22, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆信息
parent
f225b791
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1303 additions
and
0 deletions
+1303
-0
TLpgVehicleInfoController.java
...b/controller/lpgRegulation/TLpgVehicleInfoController.java
+90
-0
TLpgVehicleInfo.java
...c/main/java/com/zehong/system/domain/TLpgVehicleInfo.java
+275
-0
TLpgVehicleInfoMapper.java
.../java/com/zehong/system/mapper/TLpgVehicleInfoMapper.java
+61
-0
ITLpgVehicleInfoService.java
...va/com/zehong/system/service/ITLpgVehicleInfoService.java
+61
-0
TLpgVehicleInfoServiceImpl.java
...ehong/system/service/impl/TLpgVehicleInfoServiceImpl.java
+93
-0
TLpgVehicleInfoMapper.xml
...rc/main/resources/mapper/system/TLpgVehicleInfoMapper.xml
+136
-0
vehicleinfo.js
zh-baseversion-web/src/api/lpgRegulation/vehicleinfo.js
+53
-0
DetailInfo.vue
...views/lpgRegulation/vehicleinfo/components/DetailInfo.vue
+150
-0
index.vue
...version-web/src/views/lpgRegulation/vehicleinfo/index.vue
+384
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/lpgRegulation/TLpgVehicleInfoController.java
0 → 100644
View file @
c70af3c0
package
com
.
zehong
.
web
.
controller
.
lpgRegulation
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.system.domain.TLpgVehicleInfo
;
import
com.zehong.system.service.ITLpgVehicleInfoService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* 液化石油车辆信息Controller
*
* @author zehong
* @date 2024-07-19
*/
@RestController
@RequestMapping
(
"/lpg/vehicleInfo"
)
public
class
TLpgVehicleInfoController
extends
BaseController
{
@Autowired
private
ITLpgVehicleInfoService
tLpgVehicleInfoService
;
/**
* 查询液化石油车辆信息列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TLpgVehicleInfo
tLpgVehicleInfo
)
{
startPage
();
List
<
TLpgVehicleInfo
>
list
=
tLpgVehicleInfoService
.
selectTLpgVehicleInfoList
(
tLpgVehicleInfo
);
return
getDataTable
(
list
);
}
/**
* 导出液化石油车辆信息列表
*/
@Log
(
title
=
"液化石油车辆信息"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TLpgVehicleInfo
tLpgVehicleInfo
)
{
List
<
TLpgVehicleInfo
>
list
=
tLpgVehicleInfoService
.
selectTLpgVehicleInfoList
(
tLpgVehicleInfo
);
ExcelUtil
<
TLpgVehicleInfo
>
util
=
new
ExcelUtil
<
TLpgVehicleInfo
>(
TLpgVehicleInfo
.
class
);
return
util
.
exportExcel
(
list
,
"液化石油车辆信息数据"
);
}
/**
* 获取液化石油车辆信息详细信息
*/
@GetMapping
(
value
=
"/{vehicleId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"vehicleId"
)
Long
vehicleId
)
{
return
AjaxResult
.
success
(
tLpgVehicleInfoService
.
selectTLpgVehicleInfoById
(
vehicleId
));
}
/**
* 新增液化石油车辆信息
*/
@Log
(
title
=
"液化石油车辆信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TLpgVehicleInfo
tLpgVehicleInfo
)
{
return
toAjax
(
tLpgVehicleInfoService
.
insertTLpgVehicleInfo
(
tLpgVehicleInfo
));
}
/**
* 修改液化石油车辆信息
*/
@Log
(
title
=
"液化石油车辆信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TLpgVehicleInfo
tLpgVehicleInfo
)
{
return
toAjax
(
tLpgVehicleInfoService
.
updateTLpgVehicleInfo
(
tLpgVehicleInfo
));
}
/**
* 删除液化石油车辆信息
*/
@Log
(
title
=
"液化石油车辆信息"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{vehicleIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
vehicleIds
)
{
return
toAjax
(
tLpgVehicleInfoService
.
deleteTLpgVehicleInfoByIds
(
vehicleIds
));
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TLpgVehicleInfo.java
0 → 100644
View file @
c70af3c0
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_lpg_vehicle_info
*
* @author zehong
* @date 2024-07-19
*/
public
class
TLpgVehicleInfo
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 车辆主键 */
private
Long
vehicleId
;
/** 储配站 */
@Excel
(
name
=
"储配站"
)
private
String
stationName
;
/** 车辆编号 */
@Excel
(
name
=
"车辆编号"
)
private
String
carNumber
;
/** 企业ID */
//@Excel(name = "企业ID")
private
Long
beyondEnterpriseId
;
/** 代码 */
@Excel
(
name
=
"代码"
)
private
String
vehicleCode
;
/** 车牌 */
@Excel
(
name
=
"车牌"
)
private
String
carNum
;
/** 品牌型号 */
@Excel
(
name
=
"品牌型号"
)
private
String
brandModel
;
/** 车辆类型: 1.罐车 2.卡车 */
@Excel
(
name
=
"车辆类型"
,
readConverterExp
=
"1=罐车,2=卡车"
)
private
String
vehicleType
;
/** 车辆载重 */
@Excel
(
name
=
"车辆载重"
)
private
String
vehicleLoad
;
/** 车辆大小 */
@Excel
(
name
=
"车辆大小"
)
private
String
vehicleSize
;
/** 车辆限乘 */
@Excel
(
name
=
"车辆限乘"
)
private
String
vehicleLimt
;
/** 车辆检查信息 */
@Excel
(
name
=
"车辆检查信息"
)
private
String
vehicleInspect
;
/** 责任人 */
@Excel
(
name
=
"责任人"
)
private
String
personLiable
;
/** 使用状态 0未使用 1使用中 */
@Excel
(
name
=
"使用状态"
,
readConverterExp
=
"0=未使用,1=使用中"
)
private
String
onState
;
/** 使用人 */
@Excel
(
name
=
"使用人"
)
private
Long
vehicleUser
;
/** 联系电话 */
@Excel
(
name
=
"联系电话"
)
private
String
phone
;
/** 是否删除(0正常,1删除) */
//@Excel(name = "是否删除(0正常,1删除)")
private
String
isDel
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setVehicleId
(
Long
vehicleId
)
{
this
.
vehicleId
=
vehicleId
;
}
public
Long
getVehicleId
()
{
return
vehicleId
;
}
public
void
setStationName
(
String
stationName
)
{
this
.
stationName
=
stationName
;
}
public
String
getStationName
()
{
return
stationName
;
}
public
void
setCarNumber
(
String
carNumber
)
{
this
.
carNumber
=
carNumber
;
}
public
String
getCarNumber
()
{
return
carNumber
;
}
public
void
setBeyondEnterpriseId
(
Long
beyondEnterpriseId
)
{
this
.
beyondEnterpriseId
=
beyondEnterpriseId
;
}
public
Long
getBeyondEnterpriseId
()
{
return
beyondEnterpriseId
;
}
public
void
setVehicleCode
(
String
vehicleCode
)
{
this
.
vehicleCode
=
vehicleCode
;
}
public
String
getVehicleCode
()
{
return
vehicleCode
;
}
public
void
setCarNum
(
String
carNum
)
{
this
.
carNum
=
carNum
;
}
public
String
getCarNum
()
{
return
carNum
;
}
public
void
setBrandModel
(
String
brandModel
)
{
this
.
brandModel
=
brandModel
;
}
public
String
getBrandModel
()
{
return
brandModel
;
}
public
void
setVehicleType
(
String
vehicleType
)
{
this
.
vehicleType
=
vehicleType
;
}
public
String
getVehicleType
()
{
return
vehicleType
;
}
public
void
setVehicleLoad
(
String
vehicleLoad
)
{
this
.
vehicleLoad
=
vehicleLoad
;
}
public
String
getVehicleLoad
()
{
return
vehicleLoad
;
}
public
void
setVehicleSize
(
String
vehicleSize
)
{
this
.
vehicleSize
=
vehicleSize
;
}
public
String
getVehicleSize
()
{
return
vehicleSize
;
}
public
void
setVehicleLimt
(
String
vehicleLimt
)
{
this
.
vehicleLimt
=
vehicleLimt
;
}
public
String
getVehicleLimt
()
{
return
vehicleLimt
;
}
public
void
setVehicleInspect
(
String
vehicleInspect
)
{
this
.
vehicleInspect
=
vehicleInspect
;
}
public
String
getVehicleInspect
()
{
return
vehicleInspect
;
}
public
void
setPersonLiable
(
String
personLiable
)
{
this
.
personLiable
=
personLiable
;
}
public
String
getPersonLiable
()
{
return
personLiable
;
}
public
void
setOnState
(
String
onState
)
{
this
.
onState
=
onState
;
}
public
String
getOnState
()
{
return
onState
;
}
public
void
setVehicleUser
(
Long
vehicleUser
)
{
this
.
vehicleUser
=
vehicleUser
;
}
public
Long
getVehicleUser
()
{
return
vehicleUser
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
public
String
getPhone
()
{
return
phone
;
}
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
(
"vehicleId"
,
getVehicleId
())
.
append
(
"stationName"
,
getStationName
())
.
append
(
"carNumber"
,
getCarNumber
())
.
append
(
"beyondEnterpriseId"
,
getBeyondEnterpriseId
())
.
append
(
"vehicleCode"
,
getVehicleCode
())
.
append
(
"carNum"
,
getCarNum
())
.
append
(
"brandModel"
,
getBrandModel
())
.
append
(
"vehicleType"
,
getVehicleType
())
.
append
(
"vehicleLoad"
,
getVehicleLoad
())
.
append
(
"vehicleSize"
,
getVehicleSize
())
.
append
(
"vehicleLimt"
,
getVehicleLimt
())
.
append
(
"vehicleInspect"
,
getVehicleInspect
())
.
append
(
"personLiable"
,
getPersonLiable
())
.
append
(
"onState"
,
getOnState
())
.
append
(
"vehicleUser"
,
getVehicleUser
())
.
append
(
"phone"
,
getPhone
())
.
append
(
"isDel"
,
getIsDel
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TLpgVehicleInfoMapper.java
0 → 100644
View file @
c70af3c0
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TLpgVehicleInfo
;
/**
* 液化石油车辆信息Mapper接口
*
* @author zehong
* @date 2024-07-19
*/
public
interface
TLpgVehicleInfoMapper
{
/**
* 查询液化石油车辆信息
*
* @param vehicleId 液化石油车辆信息ID
* @return 液化石油车辆信息
*/
public
TLpgVehicleInfo
selectTLpgVehicleInfoById
(
Long
vehicleId
);
/**
* 查询液化石油车辆信息列表
*
* @param tLpgVehicleInfo 液化石油车辆信息
* @return 液化石油车辆信息集合
*/
public
List
<
TLpgVehicleInfo
>
selectTLpgVehicleInfoList
(
TLpgVehicleInfo
tLpgVehicleInfo
);
/**
* 新增液化石油车辆信息
*
* @param tLpgVehicleInfo 液化石油车辆信息
* @return 结果
*/
public
int
insertTLpgVehicleInfo
(
TLpgVehicleInfo
tLpgVehicleInfo
);
/**
* 修改液化石油车辆信息
*
* @param tLpgVehicleInfo 液化石油车辆信息
* @return 结果
*/
public
int
updateTLpgVehicleInfo
(
TLpgVehicleInfo
tLpgVehicleInfo
);
/**
* 删除液化石油车辆信息
*
* @param vehicleId 液化石油车辆信息ID
* @return 结果
*/
public
int
deleteTLpgVehicleInfoById
(
Long
vehicleId
);
/**
* 批量删除液化石油车辆信息
*
* @param vehicleIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTLpgVehicleInfoByIds
(
Long
[]
vehicleIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITLpgVehicleInfoService.java
0 → 100644
View file @
c70af3c0
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TLpgVehicleInfo
;
/**
* 液化石油车辆信息Service接口
*
* @author zehong
* @date 2024-07-19
*/
public
interface
ITLpgVehicleInfoService
{
/**
* 查询液化石油车辆信息
*
* @param vehicleId 液化石油车辆信息ID
* @return 液化石油车辆信息
*/
public
TLpgVehicleInfo
selectTLpgVehicleInfoById
(
Long
vehicleId
);
/**
* 查询液化石油车辆信息列表
*
* @param tLpgVehicleInfo 液化石油车辆信息
* @return 液化石油车辆信息集合
*/
public
List
<
TLpgVehicleInfo
>
selectTLpgVehicleInfoList
(
TLpgVehicleInfo
tLpgVehicleInfo
);
/**
* 新增液化石油车辆信息
*
* @param tLpgVehicleInfo 液化石油车辆信息
* @return 结果
*/
public
int
insertTLpgVehicleInfo
(
TLpgVehicleInfo
tLpgVehicleInfo
);
/**
* 修改液化石油车辆信息
*
* @param tLpgVehicleInfo 液化石油车辆信息
* @return 结果
*/
public
int
updateTLpgVehicleInfo
(
TLpgVehicleInfo
tLpgVehicleInfo
);
/**
* 批量删除液化石油车辆信息
*
* @param vehicleIds 需要删除的液化石油车辆信息ID
* @return 结果
*/
public
int
deleteTLpgVehicleInfoByIds
(
Long
[]
vehicleIds
);
/**
* 删除液化石油车辆信息信息
*
* @param vehicleId 液化石油车辆信息ID
* @return 结果
*/
public
int
deleteTLpgVehicleInfoById
(
Long
vehicleId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TLpgVehicleInfoServiceImpl.java
0 → 100644
View file @
c70af3c0
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TLpgVehicleInfoMapper
;
import
com.zehong.system.domain.TLpgVehicleInfo
;
import
com.zehong.system.service.ITLpgVehicleInfoService
;
/**
* 液化石油车辆信息Service业务层处理
*
* @author zehong
* @date 2024-07-19
*/
@Service
public
class
TLpgVehicleInfoServiceImpl
implements
ITLpgVehicleInfoService
{
@Autowired
private
TLpgVehicleInfoMapper
tLpgVehicleInfoMapper
;
/**
* 查询液化石油车辆信息
*
* @param vehicleId 液化石油车辆信息ID
* @return 液化石油车辆信息
*/
@Override
public
TLpgVehicleInfo
selectTLpgVehicleInfoById
(
Long
vehicleId
)
{
return
tLpgVehicleInfoMapper
.
selectTLpgVehicleInfoById
(
vehicleId
);
}
/**
* 查询液化石油车辆信息列表
*
* @param tLpgVehicleInfo 液化石油车辆信息
* @return 液化石油车辆信息
*/
@Override
public
List
<
TLpgVehicleInfo
>
selectTLpgVehicleInfoList
(
TLpgVehicleInfo
tLpgVehicleInfo
)
{
return
tLpgVehicleInfoMapper
.
selectTLpgVehicleInfoList
(
tLpgVehicleInfo
);
}
/**
* 新增液化石油车辆信息
*
* @param tLpgVehicleInfo 液化石油车辆信息
* @return 结果
*/
@Override
public
int
insertTLpgVehicleInfo
(
TLpgVehicleInfo
tLpgVehicleInfo
)
{
return
tLpgVehicleInfoMapper
.
insertTLpgVehicleInfo
(
tLpgVehicleInfo
);
}
/**
* 修改液化石油车辆信息
*
* @param tLpgVehicleInfo 液化石油车辆信息
* @return 结果
*/
@Override
public
int
updateTLpgVehicleInfo
(
TLpgVehicleInfo
tLpgVehicleInfo
)
{
return
tLpgVehicleInfoMapper
.
updateTLpgVehicleInfo
(
tLpgVehicleInfo
);
}
/**
* 批量删除液化石油车辆信息
*
* @param vehicleIds 需要删除的液化石油车辆信息ID
* @return 结果
*/
@Override
public
int
deleteTLpgVehicleInfoByIds
(
Long
[]
vehicleIds
)
{
return
tLpgVehicleInfoMapper
.
deleteTLpgVehicleInfoByIds
(
vehicleIds
);
}
/**
* 删除液化石油车辆信息信息
*
* @param vehicleId 液化石油车辆信息ID
* @return 结果
*/
@Override
public
int
deleteTLpgVehicleInfoById
(
Long
vehicleId
)
{
return
tLpgVehicleInfoMapper
.
deleteTLpgVehicleInfoById
(
vehicleId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/TLpgVehicleInfoMapper.xml
0 → 100644
View file @
c70af3c0
<?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.TLpgVehicleInfoMapper"
>
<resultMap
type=
"TLpgVehicleInfo"
id=
"TLpgVehicleInfoResult"
>
<result
property=
"vehicleId"
column=
"vehicle_id"
/>
<result
property=
"stationName"
column=
"station_name"
/>
<result
property=
"carNumber"
column=
"car_number"
/>
<result
property=
"beyondEnterpriseId"
column=
"beyond_enterprise_id"
/>
<result
property=
"vehicleCode"
column=
"vehicle_code"
/>
<result
property=
"carNum"
column=
"car_num"
/>
<result
property=
"brandModel"
column=
"brand_model"
/>
<result
property=
"vehicleType"
column=
"vehicle_type"
/>
<result
property=
"vehicleLoad"
column=
"vehicle_load"
/>
<result
property=
"vehicleSize"
column=
"vehicle_size"
/>
<result
property=
"vehicleLimt"
column=
"vehicle_limt"
/>
<result
property=
"vehicleInspect"
column=
"vehicle_inspect"
/>
<result
property=
"personLiable"
column=
"person_liable"
/>
<result
property=
"onState"
column=
"on_state"
/>
<result
property=
"vehicleUser"
column=
"vehicle_user"
/>
<result
property=
"phone"
column=
"phone"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTLpgVehicleInfoVo"
>
select vehicle_id, station_name, car_number, beyond_enterprise_id, vehicle_code, car_num, brand_model, vehicle_type, vehicle_load, vehicle_size, vehicle_limt, vehicle_inspect, person_liable, on_state, vehicle_user, phone, is_del, remarks from t_lpg_vehicle_info
</sql>
<select
id=
"selectTLpgVehicleInfoList"
parameterType=
"TLpgVehicleInfo"
resultMap=
"TLpgVehicleInfoResult"
>
<include
refid=
"selectTLpgVehicleInfoVo"
/>
<where>
<if
test=
"stationName != null and stationName != ''"
>
and station_name like concat('%', #{stationName}, '%')
</if>
<if
test=
"carNumber != null and carNumber != ''"
>
and car_number = #{carNumber}
</if>
<if
test=
"beyondEnterpriseId != null "
>
and beyond_enterprise_id = #{beyondEnterpriseId}
</if>
<if
test=
"vehicleCode != null and vehicleCode != ''"
>
and vehicle_code = #{vehicleCode}
</if>
<if
test=
"carNum != null and carNum != ''"
>
and car_num like concat('%', #{carNum}, '%')
</if>
<if
test=
"brandModel != null and brandModel != ''"
>
and brand_model = #{brandModel}
</if>
<if
test=
"vehicleType != null and vehicleType != ''"
>
and vehicle_type = #{vehicleType}
</if>
<if
test=
"vehicleLoad != null and vehicleLoad != ''"
>
and vehicle_load = #{vehicleLoad}
</if>
<if
test=
"vehicleSize != null and vehicleSize != ''"
>
and vehicle_size = #{vehicleSize}
</if>
<if
test=
"vehicleLimt != null and vehicleLimt != ''"
>
and vehicle_limt = #{vehicleLimt}
</if>
<if
test=
"vehicleInspect != null and vehicleInspect != ''"
>
and vehicle_inspect = #{vehicleInspect}
</if>
<if
test=
"personLiable != null and personLiable != ''"
>
and person_liable like concat('%', #{personLiable}, '%')
</if>
<if
test=
"onState != null and onState != ''"
>
and on_state = #{onState}
</if>
<if
test=
"vehicleUser != null "
>
and vehicle_user = #{vehicleUser}
</if>
<if
test=
"phone != null and phone != ''"
>
and phone = #{phone}
</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=
"selectTLpgVehicleInfoById"
parameterType=
"Long"
resultMap=
"TLpgVehicleInfoResult"
>
<include
refid=
"selectTLpgVehicleInfoVo"
/>
where vehicle_id = #{vehicleId}
</select>
<insert
id=
"insertTLpgVehicleInfo"
parameterType=
"TLpgVehicleInfo"
useGeneratedKeys=
"true"
keyProperty=
"vehicleId"
>
insert into t_lpg_vehicle_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"stationName != null"
>
station_name,
</if>
<if
test=
"carNumber != null"
>
car_number,
</if>
<if
test=
"beyondEnterpriseId != null"
>
beyond_enterprise_id,
</if>
<if
test=
"vehicleCode != null"
>
vehicle_code,
</if>
<if
test=
"carNum != null"
>
car_num,
</if>
<if
test=
"brandModel != null"
>
brand_model,
</if>
<if
test=
"vehicleType != null"
>
vehicle_type,
</if>
<if
test=
"vehicleLoad != null"
>
vehicle_load,
</if>
<if
test=
"vehicleSize != null"
>
vehicle_size,
</if>
<if
test=
"vehicleLimt != null"
>
vehicle_limt,
</if>
<if
test=
"vehicleInspect != null"
>
vehicle_inspect,
</if>
<if
test=
"personLiable != null"
>
person_liable,
</if>
<if
test=
"onState != null"
>
on_state,
</if>
<if
test=
"vehicleUser != null"
>
vehicle_user,
</if>
<if
test=
"phone != null"
>
phone,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"stationName != null"
>
#{stationName},
</if>
<if
test=
"carNumber != null"
>
#{carNumber},
</if>
<if
test=
"beyondEnterpriseId != null"
>
#{beyondEnterpriseId},
</if>
<if
test=
"vehicleCode != null"
>
#{vehicleCode},
</if>
<if
test=
"carNum != null"
>
#{carNum},
</if>
<if
test=
"brandModel != null"
>
#{brandModel},
</if>
<if
test=
"vehicleType != null"
>
#{vehicleType},
</if>
<if
test=
"vehicleLoad != null"
>
#{vehicleLoad},
</if>
<if
test=
"vehicleSize != null"
>
#{vehicleSize},
</if>
<if
test=
"vehicleLimt != null"
>
#{vehicleLimt},
</if>
<if
test=
"vehicleInspect != null"
>
#{vehicleInspect},
</if>
<if
test=
"personLiable != null"
>
#{personLiable},
</if>
<if
test=
"onState != null"
>
#{onState},
</if>
<if
test=
"vehicleUser != null"
>
#{vehicleUser},
</if>
<if
test=
"phone != null"
>
#{phone},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTLpgVehicleInfo"
parameterType=
"TLpgVehicleInfo"
>
update t_lpg_vehicle_info
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"stationName != null"
>
station_name = #{stationName},
</if>
<if
test=
"carNumber != null"
>
car_number = #{carNumber},
</if>
<if
test=
"beyondEnterpriseId != null"
>
beyond_enterprise_id = #{beyondEnterpriseId},
</if>
<if
test=
"vehicleCode != null"
>
vehicle_code = #{vehicleCode},
</if>
<if
test=
"carNum != null"
>
car_num = #{carNum},
</if>
<if
test=
"brandModel != null"
>
brand_model = #{brandModel},
</if>
<if
test=
"vehicleType != null"
>
vehicle_type = #{vehicleType},
</if>
<if
test=
"vehicleLoad != null"
>
vehicle_load = #{vehicleLoad},
</if>
<if
test=
"vehicleSize != null"
>
vehicle_size = #{vehicleSize},
</if>
<if
test=
"vehicleLimt != null"
>
vehicle_limt = #{vehicleLimt},
</if>
<if
test=
"vehicleInspect != null"
>
vehicle_inspect = #{vehicleInspect},
</if>
<if
test=
"personLiable != null"
>
person_liable = #{personLiable},
</if>
<if
test=
"onState != null"
>
on_state = #{onState},
</if>
<if
test=
"vehicleUser != null"
>
vehicle_user = #{vehicleUser},
</if>
<if
test=
"phone != null"
>
phone = #{phone},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where vehicle_id = #{vehicleId}
</update>
<delete
id=
"deleteTLpgVehicleInfoById"
parameterType=
"Long"
>
delete from t_lpg_vehicle_info where vehicle_id = #{vehicleId}
</delete>
<delete
id=
"deleteTLpgVehicleInfoByIds"
parameterType=
"String"
>
delete from t_lpg_vehicle_info where vehicle_id in
<foreach
item=
"vehicleId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{vehicleId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-web/src/api/lpgRegulation/vehicleinfo.js
0 → 100644
View file @
c70af3c0
import
request
from
'@/utils/request'
// 查询液化石油车辆信息列表
export
function
listInfo
(
query
)
{
return
request
({
url
:
'/lpg/vehicleInfo/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询液化石油车辆信息详细
export
function
getInfo
(
vehicleId
)
{
return
request
({
url
:
'/lpg/vehicleInfo/'
+
vehicleId
,
method
:
'get'
})
}
// 新增液化石油车辆信息
export
function
addInfo
(
data
)
{
return
request
({
url
:
'/lpg/vehicleInfo'
,
method
:
'post'
,
data
:
data
})
}
// 修改液化石油车辆信息
export
function
updateInfo
(
data
)
{
return
request
({
url
:
'/lpg/vehicleInfo'
,
method
:
'put'
,
data
:
data
})
}
// 删除液化石油车辆信息
export
function
delInfo
(
vehicleId
)
{
return
request
({
url
:
'/lpg/vehicleInfo/'
+
vehicleId
,
method
:
'delete'
})
}
// 导出液化石油车辆信息
export
function
exportInfo
(
query
)
{
return
request
({
url
:
'/lpg/vehicleInfo/export'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/views/lpgRegulation/vehicleinfo/components/DetailInfo.vue
0 → 100644
View file @
c70af3c0
<
template
>
<el-dialog
title=
"详情"
:visible
.
sync=
"detailOpen"
width=
"900px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-form
label-width=
"120px"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"车辆编号"
>
<span
v-if=
"detailInfo.carNumber"
>
{{
detailInfo
.
carNumber
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"代码"
>
<span
v-if=
"detailInfo.vehicleCode"
>
{{
detailInfo
.
vehicleCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"车牌"
>
<span
v-if=
"detailInfo.carNum"
>
{{
detailInfo
.
carNum
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"品牌型号"
>
<span
v-if=
"detailInfo.brandModel"
>
{{
detailInfo
.
brandModel
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"车辆类型"
>
<span
v-if=
"detailInfo.vehicleType == '1'"
>
罐车
</span>
<span
v-else-if=
"detailInfo.vehicleType == '2'"
>
卡车
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"车辆载重"
>
<span
v-if=
"detailInfo.vehicleLoad"
>
{{
detailInfo
.
vehicleLoad
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"车辆大小"
>
<span
v-if=
"detailInfo.vehicleSize"
>
{{
detailInfo
.
vehicleSize
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"车辆限乘"
>
<span
v-if=
"detailInfo.vehicleLimt"
>
{{
detailInfo
.
vehicleLimt
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"车辆检查信息"
>
<span
v-if=
"detailInfo.vehicleInspect"
>
{{
detailInfo
.
vehicleInspect
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"责任人"
>
<span
v-if=
"detailInfo.personLiable"
>
{{
detailInfo
.
personLiable
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"使用状态"
>
<span
v-if=
"detailInfo.onState == '0'"
>
未使用
</span>
<span
v-else-if=
"detailInfo.onState == '1'"
>
使用中
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"使用人"
>
<span
v-if=
"detailInfo.vehicleUser"
>
{{
detailInfo
.
vehicleUser
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系电话"
>
<span
v-if=
"detailInfo.phone"
>
{{
detailInfo
.
phone
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"是否删除"
>
<span
v-if=
"detailInfo.onState == '0'"
>
正常
</span>
<span
v-else-if=
"detailInfo.onState == '1'"
>
删除
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<span
v-if=
"detailInfo.remarks"
>
{{
detailInfo
.
remarks
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</
template
>
<
script
>
import
{
getInfo
}
from
"@/api/lpgRegulation/vehicleinfo"
;
export
default
{
name
:
"detail-info"
,
data
(){
return
{
detailInfo
:
{
fDeleteFlag
:
0
},
detailOpen
:
false
}
},
methods
:{
getDetailInfo
(
id
){
getInfo
(
id
).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
detailInfo
=
res
.
data
;
this
.
detailOpen
=
true
;
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
zh-baseversion-web/src/views/lpgRegulation/vehicleinfo/index.vue
0 → 100644
View file @
c70af3c0
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