mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 21:52:07 +08:00
bug#393 组织分页查询新增入参exactName,根据name精准查询
This commit is contained in:
+4
@@ -20,6 +20,10 @@ public class OrganPageReqVO extends PageParam {
|
|||||||
@Size(max = 30, message = "组织名长度不能超过30个字符")
|
@Size(max = 30, message = "组织名长度不能超过30个字符")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "组织名", example = "晨丰")
|
||||||
|
@Size(max = 30, message = "组织名长度不能超过30个字符")
|
||||||
|
private String exactName;
|
||||||
|
|
||||||
@Schema(description = "联系人", example = "晨丰")
|
@Schema(description = "联系人", example = "晨丰")
|
||||||
@Size(max = 30, message = "联系人长度不能超过30个字符")
|
@Size(max = 30, message = "联系人长度不能超过30个字符")
|
||||||
private String contactName;
|
private String contactName;
|
||||||
|
|||||||
+1
-5
@@ -30,16 +30,12 @@ public interface OrganMapper extends BaseMapperX<OrganizationDO> {
|
|||||||
.likeIfPresent(OrganizationDO::getContactName, reqVO.getContactName())
|
.likeIfPresent(OrganizationDO::getContactName, reqVO.getContactName())
|
||||||
.likeIfPresent(OrganizationDO::getContactMobile, reqVO.getContactMobile())
|
.likeIfPresent(OrganizationDO::getContactMobile, reqVO.getContactMobile())
|
||||||
.eqIfPresent(OrganizationDO::getStatus, reqVO.getStatus())
|
.eqIfPresent(OrganizationDO::getStatus, reqVO.getStatus())
|
||||||
|
.eqIfPresent(OrganizationDO::getName, reqVO.getExactName())
|
||||||
.and(CharSequenceUtil.isNotBlank(reqVO.getName()), wrapper ->{
|
.and(CharSequenceUtil.isNotBlank(reqVO.getName()), wrapper ->{
|
||||||
wrapper.or(Boolean.TRUE).like(OrganizationDO::getName, reqVO.getName());
|
wrapper.or(Boolean.TRUE).like(OrganizationDO::getName, reqVO.getName());
|
||||||
wrapper.or(CharSequenceUtil.isNotBlank(reqVO.getPyAll())).like(OrganizationDO::getPinyinFull, reqVO.getPyAll());
|
wrapper.or(CharSequenceUtil.isNotBlank(reqVO.getPyAll())).like(OrganizationDO::getPinyinFull, reqVO.getPyAll());
|
||||||
wrapper.or(CharSequenceUtil.isNotBlank(reqVO.getPyFirstChar())).like(OrganizationDO::getPinyinInitial, reqVO.getPyFirstChar());
|
wrapper.or(CharSequenceUtil.isNotBlank(reqVO.getPyFirstChar())).like(OrganizationDO::getPinyinInitial, reqVO.getPyFirstChar());
|
||||||
})
|
})
|
||||||
/*.likeIfPresent(OrganizationDO::getName, reqVO.getName())
|
|
||||||
.or(StrUtil.isNotBlank(reqVO.getName()))
|
|
||||||
.likeIfPresent(OrganizationDO::getPinyinFull, reqVO.getPyAll())
|
|
||||||
.or(StrUtil.isNotBlank(reqVO.getName()))
|
|
||||||
.likeIfPresent(OrganizationDO::getPinyinInitial, reqVO.getPyFirstChar())*/
|
|
||||||
.orderByDesc(OrganizationDO::getId));
|
.orderByDesc(OrganizationDO::getId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user