update 企业管理员条件分页
This commit is contained in:
+3
-2
@@ -63,8 +63,9 @@ public class PayManagerManagementController extends JeroController<PayManagerMan
|
|||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||||
HttpServletRequest req) {
|
HttpServletRequest req) {
|
||||||
Page<PayManagerManagement> pageList = new Page<>(pageNo, pageSize);
|
QueryWrapper<PayManagerManagement> queryWrapper = QueryGenerator.initQueryWrapper(payManagerManagement, req.getParameterMap());
|
||||||
pageList = payManagerManagementService.queryWithCondition(pageList,payManagerManagement);
|
Page<PayManagerManagement> page = new Page<>(pageNo, pageSize);
|
||||||
|
IPage<PayManagerManagement> pageList = payManagerManagementService.page(page, queryWrapper);
|
||||||
return Result.OK(pageList);
|
return Result.OK(pageList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
-2
@@ -14,6 +14,4 @@ import java.util.List;
|
|||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
public interface PayManagerManagementMapper extends BaseMapper<PayManagerManagement> {
|
public interface PayManagerManagementMapper extends BaseMapper<PayManagerManagement> {
|
||||||
|
|
||||||
List<PayManagerManagement> queryWtihCondition(Page<PayManagerManagement> page, @Param("manager")PayManagerManagement payManagerManagement);
|
|
||||||
}
|
}
|
||||||
|
|||||||
-50
@@ -28,54 +28,4 @@
|
|||||||
<result column="member_id" property="memberId" />
|
<result column="member_id" property="memberId" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="queryWtihCondition" resultType="com.jero.company.entity.PayManagerManagement">
|
|
||||||
select * from pay_manager_management
|
|
||||||
<where>
|
|
||||||
<if test="manager.id != null and manager.id != ''">
|
|
||||||
and id =#{manager.id}
|
|
||||||
</if>
|
|
||||||
<if test="manager.companyId != null and manager.companyId != ''">
|
|
||||||
and company_id =#{manager.companyId}
|
|
||||||
</if>
|
|
||||||
<if test="manager.companyName != null and manager.companyName != ''">
|
|
||||||
and company_name =#{manager.companyName}
|
|
||||||
</if>
|
|
||||||
<if test="manager.name != null and manager.name != ''">
|
|
||||||
and name =#{manager.name}
|
|
||||||
</if>
|
|
||||||
<if test="manager.gender != null and manager.gender != ''">
|
|
||||||
and gender =#{manager.gender}
|
|
||||||
</if>
|
|
||||||
<if test="manager.post != null and manager.post != ''">
|
|
||||||
and post =#{manager.post}
|
|
||||||
</if>
|
|
||||||
<if test="manager.phone != null and manager.phone != ''">
|
|
||||||
and phone =#{manager.phone}
|
|
||||||
</if>
|
|
||||||
<if test="manager.email != null and manager.email != ''">
|
|
||||||
and email =#{manager.email}
|
|
||||||
</if>
|
|
||||||
<if test="manager.contactAddress != null and manager.contactAddress != ''">
|
|
||||||
and contact_address=#{manager.contactAddress}
|
|
||||||
</if>
|
|
||||||
<if test="manager.postalCode != null and manager.postalCode != ''">
|
|
||||||
and postal_code =#{manager.postalCode}
|
|
||||||
</if>
|
|
||||||
<if test="manager.createBy != null and manager.createBy != ''">
|
|
||||||
and create_by =#{manager.createBy}
|
|
||||||
</if>
|
|
||||||
<if test="manager.username != null and manager.username != ''">
|
|
||||||
and username =#{manager.username}
|
|
||||||
</if>
|
|
||||||
<if test="manager.roleCode != null and manager.roleCode != ''">
|
|
||||||
and role_code =#{manager.roleCode}
|
|
||||||
</if>
|
|
||||||
<if test="manager.memberNature != null and manager.memberNature != ''">
|
|
||||||
and member_nature=#{manager.memberNature}
|
|
||||||
</if>
|
|
||||||
<if test="manager.memberId != null and manager.memberId != ''">
|
|
||||||
and member_id =#{manager.memberId}
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
-2
@@ -50,6 +50,4 @@ public interface IPayManagerManagementService extends IService<PayManagerManagem
|
|||||||
void changePassword(CompanyManagerLoginVO companyManagerLoginVO);
|
void changePassword(CompanyManagerLoginVO companyManagerLoginVO);
|
||||||
|
|
||||||
void changePasswordWithToken(CompanyManagerLoginVO companyManagerLoginVO);
|
void changePasswordWithToken(CompanyManagerLoginVO companyManagerLoginVO);
|
||||||
|
|
||||||
Page<PayManagerManagement> queryWithCondition(Page<PayManagerManagement> page, PayManagerManagement payManagerManagement);
|
|
||||||
}
|
}
|
||||||
|
|||||||
-11
@@ -1,7 +1,6 @@
|
|||||||
package com.jero.company.service.impl;
|
package com.jero.company.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.jero.common.exception.JeroBootException;
|
import com.jero.common.exception.JeroBootException;
|
||||||
import com.jero.common.system.api.ISysBaseAPI;
|
import com.jero.common.system.api.ISysBaseAPI;
|
||||||
import com.jero.common.system.util.JwtUtil;
|
import com.jero.common.system.util.JwtUtil;
|
||||||
@@ -35,8 +34,6 @@ public class PayManagerManagementServiceImpl extends ServiceImpl<PayManagerManag
|
|||||||
private RedisUtil redisUtil;
|
private RedisUtil redisUtil;
|
||||||
@Resource
|
@Resource
|
||||||
private ISysBaseAPI sysBaseAPI;
|
private ISysBaseAPI sysBaseAPI;
|
||||||
@Resource
|
|
||||||
private PayManagerManagementMapper payManagerManagementMapper;
|
|
||||||
/**
|
/**
|
||||||
* 保存
|
* 保存
|
||||||
*
|
*
|
||||||
@@ -211,12 +208,4 @@ public class PayManagerManagementServiceImpl extends ServiceImpl<PayManagerManag
|
|||||||
|
|
||||||
updatePassword(newPassword,verifyPassword,phone);
|
updatePassword(newPassword,verifyPassword,phone);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Page<PayManagerManagement> queryWithCondition(Page<PayManagerManagement> page, PayManagerManagement payManagerManagement) {
|
|
||||||
//TODO 手机号加密
|
|
||||||
List<PayManagerManagement> list= payManagerManagementMapper.queryWtihCondition(page,payManagerManagement);
|
|
||||||
page.setRecords(list);
|
|
||||||
return page;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user