提交 991ab3db authored 作者: yucaiwei's avatar yucaiwei

--no commit message

上级 7ff7b37f
......@@ -161,7 +161,7 @@ public class MemberController {
}
//@ApiOperation(value = "查询", notes = "根据ID查询-普通用户和专家用户 共用此接口")
//@GetMapping(value = MemberRequestPath.OID)
public CallBack<Member> getById(@PathVariable Integer oid) {
public CallBack<Member> getById(@PathVariable String oid) {
Member member = service.selectByPrimaryKey(oid);
if(member == null) {
throw new ParameterValidateException("用户id错误!");
......@@ -179,7 +179,7 @@ public class MemberController {
@ApiOperation(value = "批量设置会员状态", notes = "批量设置会员状态-批量删除-普通、专家和机构用户 共用此接口")
@PostMapping(value = MemberRequestPath.BATCH_UPDATE + MemberRequestPath.STATUS+ MemberRequestPath.VALUE)
public CallBack<Boolean> updateStatus(@ApiParam(value = "用户状态 0 禁用 1启用") @PathVariable("value") Integer value,
@ApiParam(value = "用户id集合") @RequestBody List<Integer> ids) {
@ApiParam(value = "用户id集合") @RequestBody List<String> ids) {
if (!StatusEnum.isExist(value)) {
throw new ParameterValidateException("会员状态参数不正确!");
}
......
......@@ -22,7 +22,7 @@ public interface MemberMapper extends BaseMapper<Member>{
+ " and m.level = #{level} "
+ "</if>"
+ "<if test = '"+NOTBLANK+"(account)' >"
+ " and m.account like concat(#{account},'%') "
+ " and m.account like concat('%', #{account},'%') "
+ "</if>"
+ "<if test = '"+NOTBLANK+"(phone)' >"
+ " and m.phone like concat(#{phone},'%') "
......
......@@ -26,7 +26,7 @@ public interface OrganMemberMapper extends BaseMapper<OrganMember>{
+ "on om.oid = o.id "
+ " where status != 2 and level = 2"
+ "<if test = '"+NOTBLANK+"(account)' >"
+ " and m.account like concat(#{account},'%') "
+ " and m.account like concat('%',#{account},'%') "
+ "</if>"
+ "<if test = '"+NOTBLANK+"(name)' >"
+ " and o.name like concat(#{name},'%') "
......
......@@ -121,7 +121,7 @@ public class OrganController {
Example example = service.createExample();
Criteria cr = example.createCriteria();
if (StringUtils.isNotBlank(form.getName())) {
cr.andLike("name", form.getName() + "%");
cr.andLike("name", '%' + form.getName() + "%");
}
if (StringUtils.isNotBlank(form.getCode())) {
cr.andLike("code", form.getCode() + "%");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论