楼栋编号改为非数字 --renpc

This commit is contained in:
Renpc-kilig 2023-11-22 16:31:23 +08:00
parent e0821a8715
commit 7a63eeb385
4 changed files with 3 additions and 6 deletions

View File

@ -190,7 +190,7 @@ public class ResidentialController extends AbstractController {
@ApiOperation(value = "新增小区管理", notes = "新增小区管理接口")
@GetMapping("excel")
public SuccessResult excel() {
String fileName = "C:\\Users\\29492\\Desktop\\稀土路街道小区楼宇批量导入模板.xlsx";
String fileName = "C:\\Users\\29492\\Desktop\\民族东路社区(1).xlsx";
List<Object> list = EasyExcel.read(fileName, ReadExcelResidentialModel.class,
new AnalysisEventListener<ReadExcelResidentialModel>() {

View File

@ -26,13 +26,10 @@ public class BuildingVO {
@ApiModelProperty(name = "name", value = "楼排名称")
private String name;
@ApiModelProperty(name = "buildNum", value = "楼/排号")
@CheckNumberAnnotation(name = "楼/排号")
private String buildNum;
@ApiModelProperty(name = "floorsNum", value = "楼层数")
@CheckNumberAnnotation(name = "楼层数")
private String floorsNum;
@ApiModelProperty(name = "unitNum", value = "单元/排数")
@CheckNumberAnnotation(name = "单元/排数")
private String unitNum;
@ApiModelProperty(name = "address", value = "详细地址")
private String address;

View File

@ -70,7 +70,7 @@
<div class="layui-form-item">
<label class="layui-form-label">楼/排号</label>
<div class="layui-input-block">
<input type="number" id="buildNum" name="buildNum" class="layui-input" value="" placeholder="请输入楼/排号" lay-verify="required">
<input type="text" id="buildNum" name="buildNum" class="layui-input" value="" placeholder="请输入楼/排号" lay-verify="required">
</div>
</div>
<div class="layui-form-item">

View File

@ -70,7 +70,7 @@
<div class="layui-form-item">
<label class="layui-form-label">楼/排号</label>
<div class="layui-input-block">
<input type="number" id="buildNum" name="buildNum" class="layui-input" value="" placeholder="请输入楼/排号" lay-verify="required">
<input type="text" id="buildNum" name="buildNum" class="layui-input" value="" placeholder="请输入楼/排号" lay-verify="required">
</div>
</div>
<div class="layui-form-item">