Merge branch 'master' of http://118.178.224.202:3000/ewide/ewide_core
This commit is contained in:
@@ -70,7 +70,7 @@ LEFT JOIN bs_house_projectinfo Proj ON Proj.Id=HC.ProjectId
|
|||||||
LEFT JOIN sys_area_code CA ON CA.Code = Proj.AreaCode
|
LEFT JOIN sys_area_code CA ON CA.Code = Proj.AreaCode
|
||||||
LEFT JOIN sys_area_code RA ON RA.AdCode = SUBSTR(CA.AdCode,1,9)
|
LEFT JOIN sys_area_code RA ON RA.AdCode = SUBSTR(CA.AdCode,1,9)
|
||||||
LEFT JOIN sys_area_code AA ON AA.AdCode = SUBSTR(CA.AdCode,1,6) ";
|
LEFT JOIN sys_area_code AA ON AA.AdCode = SUBSTR(CA.AdCode,1,6) ";
|
||||||
return await _dapperRepository.QueryPageDataDynamic(sql, input, filterFields: new string[] {"Type", "Address", "HouseCode" });
|
return await _dapperRepository.QueryPageDataDynamic(sql, input, filterFields: new string[] {"Type", "Address", "HouseCode","AreaCode"});
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("/houseCode/detail")]
|
[HttpGet("/houseCode/detail")]
|
||||||
|
|||||||
@@ -53,6 +53,18 @@ namespace Ewide.Core
|
|||||||
/// 不为空
|
/// 不为空
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("不为空")]
|
[Description("不为空")]
|
||||||
IsNotNull = 7
|
IsNotNull = 7,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 开始于 LIKE Param%
|
||||||
|
/// </summary>
|
||||||
|
[Description("LIKE Param%")]
|
||||||
|
StartWith =8,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 结合于 LIKE %Param
|
||||||
|
/// </summary>
|
||||||
|
[Description("LIKE %Param")]
|
||||||
|
EndWith = 9
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2522,6 +2522,16 @@
|
|||||||
不为空
|
不为空
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="F:Ewide.Core.QueryTypeEnum.StartWith">
|
||||||
|
<summary>
|
||||||
|
开始于 LIKE Param%
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:Ewide.Core.QueryTypeEnum.EndWith">
|
||||||
|
<summary>
|
||||||
|
结合于 LIKE %Param
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="T:Ewide.Core.YesOrNot">
|
<member name="T:Ewide.Core.YesOrNot">
|
||||||
<summary>
|
<summary>
|
||||||
菜单激活类型
|
菜单激活类型
|
||||||
|
|||||||
@@ -29,13 +29,15 @@ namespace Ewide.Core
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return Type switch
|
return Type.ToLower() switch
|
||||||
{
|
{
|
||||||
"=" or "equal" => QueryTypeEnum.Equal,
|
"=" or "equal" => QueryTypeEnum.Equal,
|
||||||
"<" or "lessthan" => QueryTypeEnum.LessThan,
|
"<" or "lessthan" => QueryTypeEnum.LessThan,
|
||||||
"<=" or "lessthanorequal" => QueryTypeEnum.LessThanOrEqual,
|
"<=" or "lessthanorequal" => QueryTypeEnum.LessThanOrEqual,
|
||||||
">" or "greaterthan" => QueryTypeEnum.GreaterThan,
|
">" or "greaterthan" => QueryTypeEnum.GreaterThan,
|
||||||
">=" or "greaterthanorequal" => QueryTypeEnum.GreaterThanOrEqual,
|
">=" or "greaterthanorequal" => QueryTypeEnum.GreaterThanOrEqual,
|
||||||
|
"start" => QueryTypeEnum.StartWith,
|
||||||
|
"end" => QueryTypeEnum.EndWith,
|
||||||
_ => QueryTypeEnum.Like,
|
_ => QueryTypeEnum.Like,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ namespace Ewide.Core.Extension.DataFilter.WebPage
|
|||||||
|
|
||||||
var parameterName = "@" + searchInfo.Field + Guid.NewGuid().ToString("N");
|
var parameterName = "@" + searchInfo.Field + Guid.NewGuid().ToString("N");
|
||||||
//AddParameter(parameterName, elem);
|
//AddParameter(parameterName, elem);
|
||||||
sqlParameters.Add(parameterName, QueryTypeEnum.Like == searchInfo.QueryType ? "%" + elem + "%" : elem);
|
sqlParameters.Add(parameterName, QueryTypeEnum.Like == searchInfo.QueryType ? "%" + elem + "%" : QueryTypeEnum.StartWith == searchInfo.QueryType ? elem + "%" : QueryTypeEnum.EndWith == searchInfo.QueryType ? "%" + elem : elem);
|
||||||
whereList.Add(String.Format(sqlT, searchInfo.Field, GetSearchOperatorStr(searchInfo.QueryType), parameterName));
|
whereList.Add(String.Format(sqlT, searchInfo.Field, GetSearchOperatorStr(searchInfo.QueryType), parameterName));
|
||||||
}
|
}
|
||||||
if (whereList.Count == 0) return String.Empty;
|
if (whereList.Count == 0) return String.Empty;
|
||||||
@@ -85,10 +85,10 @@ namespace Ewide.Core.Extension.DataFilter.WebPage
|
|||||||
return "<";
|
return "<";
|
||||||
case QueryTypeEnum.LessThanOrEqual:
|
case QueryTypeEnum.LessThanOrEqual:
|
||||||
return "<=";
|
return "<=";
|
||||||
case QueryTypeEnum.Like:
|
case QueryTypeEnum.Equal:
|
||||||
return " LIKE ";
|
|
||||||
default:
|
|
||||||
return "=";
|
return "=";
|
||||||
|
default:
|
||||||
|
return "LIKE";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
Cascader,
|
Cascader,
|
||||||
Form,
|
Form,
|
||||||
Input,
|
Input,
|
||||||
InputNumber,
|
Tag,
|
||||||
Popconfirm,
|
Popconfirm,
|
||||||
message as Message,
|
message as Message,
|
||||||
Radio,
|
Radio,
|
||||||
@@ -51,10 +51,15 @@ export default class index extends Component {
|
|||||||
dataIndex: 'houseCode',
|
dataIndex: 'houseCode',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
width: 300,
|
width: 300,
|
||||||
render: (text, record) =>
|
render: (text, record) => (
|
||||||
`${record.areaName}-${record.roadName}-${record.commName}-${record.note}-${record.no
|
<>
|
||||||
.toString()
|
{`${record.areaName}-${record.roadName}-${record.commName}-${
|
||||||
.padStart(3, '0')}`,
|
record.note
|
||||||
|
}-${record.no.toString().padStart(3, '0')}`}
|
||||||
|
<br />
|
||||||
|
<Tag color="purple">{text}</Tag>
|
||||||
|
</>
|
||||||
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '房屋性质及行业',
|
title: '房屋性质及行业',
|
||||||
@@ -288,7 +293,10 @@ export default class index extends Component {
|
|||||||
placeholder="请选择所在区域"
|
placeholder="请选择所在区域"
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="编号" name="no">
|
<Form.Item label="房屋唯一编码" name="houseCode">
|
||||||
|
<Input autoComplete="off" placeholder="请输入房屋唯一编码" />
|
||||||
|
</Form.Item>
|
||||||
|
{/* <Form.Item label="编号" name="no">
|
||||||
<InputNumber
|
<InputNumber
|
||||||
formatter={value => value && value.padStart(3, '0')}
|
formatter={value => value && value.padStart(3, '0')}
|
||||||
max={999}
|
max={999}
|
||||||
@@ -297,7 +305,7 @@ export default class index extends Component {
|
|||||||
step={1}
|
step={1}
|
||||||
placeholder="请输入房屋序号"
|
placeholder="请输入房屋序号"
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item> */}
|
||||||
<Form.Item label="房屋性质" name="type">
|
<Form.Item label="房屋性质" name="type">
|
||||||
<Radio.Group buttonStyle="solid">
|
<Radio.Group buttonStyle="solid">
|
||||||
<Radio.Button value="">全部</Radio.Button>
|
<Radio.Button value="">全部</Radio.Button>
|
||||||
@@ -326,9 +334,6 @@ export default class index extends Component {
|
|||||||
<Form.Item label="地址" name="address">
|
<Form.Item label="地址" name="address">
|
||||||
<Input autoComplete="off" placeholder="请输入地址" />
|
<Input autoComplete="off" placeholder="请输入地址" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="房屋唯一编码" name="houseCode">
|
|
||||||
<Input autoComplete="off" placeholder="请输入房屋唯一编码" />
|
|
||||||
</Form.Item>
|
|
||||||
</Auth>
|
</Auth>
|
||||||
}
|
}
|
||||||
operator={
|
operator={
|
||||||
|
|||||||
@@ -103,5 +103,7 @@ export const QueryType = {
|
|||||||
LessThan: '<',
|
LessThan: '<',
|
||||||
LessThanOrEqual: '<=',
|
LessThanOrEqual: '<=',
|
||||||
Like: 'LIKE',
|
Like: 'LIKE',
|
||||||
Equal: '='
|
Equal: '=',
|
||||||
|
StartWith: 'STRAT',
|
||||||
|
EndWith: 'END'
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user