Commit 4ef5f0a5 authored by lixinglin's avatar lixinglin

Merge remote-tracking branch 'origin/master'

parents 8f1008a8 07831321
...@@ -64,9 +64,9 @@ spring: ...@@ -64,9 +64,9 @@ spring:
servlet: servlet:
multipart: multipart:
# 单个文件大小 # 单个文件大小
max-file-size: 10MB max-file-size: 100MB
# 设置总上传的文件大小 # 设置总上传的文件大小
max-request-size: 20MB max-request-size: 200MB
# 服务模块 # 服务模块
devtools: devtools:
restart: restart:
......
...@@ -44,13 +44,24 @@ public class CarrierInfoController extends BaseController ...@@ -44,13 +44,24 @@ public class CarrierInfoController extends BaseController
/** /**
* 查询载体信息列表 * 查询载体信息列表
*/ */
// @RequiresPermissions("carrier:info:list")
// @PostMapping("/list")
// @ResponseBody
// public TableDataInfo list(CarrierInfo carrierInfo)
// {
// startPage();
// List<CarrierInfo> list = carrierInfoService.selectCarrierInfoList(carrierInfo);
// return getDataTable(list);
// }
@RequiresPermissions("carrier:info:list") @RequiresPermissions("carrier:info:list")
@PostMapping("/list") @PostMapping("/list")
@ResponseBody @ResponseBody
public TableDataInfo list(CarrierInfo carrierInfo) public TableDataInfo list(CarrierInfo carrierInfo)
{ {
startPage(); startPage();
List<CarrierInfo> list = carrierInfoService.selectCarrierInfoList(carrierInfo); List<CarrierInfo> list = carrierInfoService.selectCarrierInfoVoList(carrierInfo);
return getDataTable(list); return getDataTable(list);
} }
......
...@@ -27,6 +27,9 @@ public interface CarrierInfoMapper ...@@ -27,6 +27,9 @@ public interface CarrierInfoMapper
*/ */
public List<CarrierInfo> selectCarrierInfoList(CarrierInfo carrierInfo); public List<CarrierInfo> selectCarrierInfoList(CarrierInfo carrierInfo);
public List<CarrierInfo> selectCarrierInfoVoList(CarrierInfo carrierInfo);
/** /**
* 新增载体信息 * 新增载体信息
* *
......
...@@ -27,6 +27,11 @@ public interface ICarrierInfoService ...@@ -27,6 +27,11 @@ public interface ICarrierInfoService
*/ */
public List<CarrierInfo> selectCarrierInfoList(CarrierInfo carrierInfo); public List<CarrierInfo> selectCarrierInfoList(CarrierInfo carrierInfo);
public List<CarrierInfo> selectCarrierInfoVoList(CarrierInfo carrierInfo);
/** /**
* 新增载体信息 * 新增载体信息
* *
......
...@@ -45,6 +45,13 @@ public class CarrierInfoServiceImpl implements ICarrierInfoService ...@@ -45,6 +45,13 @@ public class CarrierInfoServiceImpl implements ICarrierInfoService
return carrierInfoMapper.selectCarrierInfoList(carrierInfo); return carrierInfoMapper.selectCarrierInfoList(carrierInfo);
} }
@Override
public List<CarrierInfo> selectCarrierInfoVoList(CarrierInfo carrierInfo)
{
return carrierInfoMapper.selectCarrierInfoVoList(carrierInfo);
}
/** /**
* 新增载体信息 * 新增载体信息
* *
......
...@@ -72,6 +72,49 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -72,6 +72,49 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where> </where>
</select> </select>
<sql id="selectCarrierInfoVo1">
select ci.id, ci.create_time, ci.update_time, ci.group_id, ci.group_name,
ci.zone_id, ci.zone_name, ci.park_id, pi.name park_name, ci.building_number,
ci.structure, ci.type, ci.area, ci.fire_protection_level, ci.has_crown_block,
ci.crown_block_high, ci.water, ci.electricity, ci.gas, ci.heating,
ci.wenjuanxingid, ci.floor_number, ci.floor_high,
ci.single_area, ci.distance, ci.elevator_type, ci.fire_resistant, ci.img_url,
ci.weight from carrier_info ci
LEFT JOIN park_info pi ON ci.park_id = pi.id
</sql>
<select id="selectCarrierInfoVoList" parameterType="CarrierInfo" resultMap="CarrierInfoResult">
<include refid="selectCarrierInfoVo1"/>
<where>
<if test="groupId != null "> and ci.group_id = #{groupId}</if>
<if test="groupName != null and groupName != ''"> and ci.group_name like concat('%', #{groupName}, '%')</if>
<if test="zoneId != null "> and ci.zone_id = #{zoneId}</if>
<if test="zoneName != null and zoneName != ''"> and ci.zone_name like concat('%', #{zoneName}, '%')</if>
<if test="parkId != null "> and ci.park_id = #{parkId}</if>
<if test="parkName != null and parkName != ''"> and pi.name like concat('%', #{parkName}, '%')</if>
<if test="buildingNumber != null and buildingNumber != ''"> and ci.building_number = #{buildingNumber}</if>
<if test="structure != null and structure != ''"> and ci.structure = #{structure}</if>
<if test="type != null and type != ''"> and ci.type = #{type}</if>
<if test="area != null "> and ci.area = #{area}</if>
<if test="fireProtectionLevel != null and fireProtectionLevel != ''"> and ci.fire_protection_level = #{fireProtectionLevel}</if>
<if test="hasCrownBlock != null "> and ci.has_crown_block = #{hasCrownBlock}</if>
<if test="crownBlockHigh != null "> and ci.crown_block_high = #{crownBlockHigh}</if>
<if test="water != null and water != ''"> and ci.water = #{water}</if>
<if test="electricity != null and electricity != ''"> and ci.electricity = #{electricity}</if>
<if test="gas != null "> and ci.gas = #{gas}</if>
<if test="heating != null "> and ci.heating = #{heating}</if>
<if test="wenjuanxingid != null "> and ci.wenjuanxingid = #{wenjuanxingid}</if>
<if test="floorNumber != null "> and ci.floor_number = #{floorNumber}</if>
<if test="floorHigh != null "> and ci.floor_high = #{floorHigh}</if>
<if test="singleArea != null "> and ci.single_area = #{singleArea}</if>
<if test="distance != null "> and ci.distance = #{distance}</if>
<if test="elevatorType != null and elevatorType != ''"> and ci.elevator_type = #{elevatorType}</if>
<if test="fireResistant != null and fireResistant != ''"> and ci.fire_resistant = #{fireResistant}</if>
<if test="imgUrl != null and imgUrl != ''"> and ci.img_url = #{imgUrl}</if>
<if test="weight != null "> and ci.weight = #{weight}</if>
</where>
</select>
<select id="selectCarrierInfoById" parameterType="Long" resultMap="CarrierInfoResult"> <select id="selectCarrierInfoById" parameterType="Long" resultMap="CarrierInfoResult">
<include refid="selectCarrierInfoVo"/> <include refid="selectCarrierInfoVo"/>
where id = #{id} where id = #{id}
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<ul> <ul>
<li style="display: none"> <li style="display: none">
<label>所属园区id:</label> <label>所属园区id:</label>
<input type="text" name="parkId"/> <input type="text" id="parkId" name="parkId"/>
</li> </li>
<!-- <li>--> <!-- <li>-->
<!-- <label>所属园区名称:</label>--> <!-- <label>所属园区名称:</label>-->
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<!-- </li>--> <!-- </li>-->
<li> <li>
<label>所属园区:</label> <label>所属园区:</label>
<input type="text" id="parkName" name="parkName" onclick="selectType()"> <input type="text" id="parkNameForShow" name="parkNameForShow" onclick="selectType()">
</li> </li>
<li> <li>
<label>楼号:</label> <label>楼号:</label>
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
$.modal.alertWarning("请至少选择一条记录"); $.modal.alertWarning("请至少选择一条记录");
return; return;
} }
$('#parkName').val(rows.name); $('#parkNameForShow').val(rows.name);
$('#parkId').val(rows.id); $('#parkId').val(rows.id);
$.modal.close(index); $.modal.close(index);
} }
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
}, },
{ {
field: 'address', field: 'address',
title: '地址' title: '选址区域'
}, },
{ {
field: 'dataSource', field: 'dataSource',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment