| | |
| | | private String userName; |
| | | @ApiModelProperty("手机号") |
| | | private String phoneNumber; |
| | | |
| | | private List<Long> operationsUserIds; |
| | | } |
| | |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | List<XpCruiseCheckInRuleListPage> getXpCruiseCheckInRuleListPage(Page<XpCruiseCheckInRuleListPage> pageInfo, XpCruiseCheckInRuleListPageDto dto); |
| | | List<XpCruiseCheckInRuleListPage> getXpCruiseCheckInRuleListPage(Page<XpCruiseCheckInRuleListPage> pageInfo, |
| | | @Param("name") String name, @Param("operationsUserIds") List<Long> operationsUserIds); |
| | | |
| | | } |
| | |
| | | List<XpOperationsUser> data = xpOperationsUserClient.getByPhoneNumber(dto.getPhoneNumber()).getData(); |
| | | ids.addAll(data.stream().map(XpOperationsUser::getId).collect(Collectors.toList())); |
| | | } |
| | | dto.setOperationsUserIds(ids); |
| | | List<XpCruiseCheckInRuleListPage> xpCruiseCheckInRuleListPage = this.baseMapper.getXpCruiseCheckInRuleListPage(pageInfo, dto); |
| | | List<XpCruiseCheckInRuleListPage> xpCruiseCheckInRuleListPage = this.baseMapper.getXpCruiseCheckInRuleListPage(pageInfo, dto.getName(), ids); |
| | | for (XpCruiseCheckInRuleListPage cruiseCheckInRuleListPage : xpCruiseCheckInRuleListPage) { |
| | | long count = xpCruiseCheckInRuleLocationService.count(new LambdaQueryWrapper<XpCruiseCheckInRuleLocation>() |
| | | .eq(XpCruiseCheckInRuleLocation::getCruiseCheckInRuleId, cruiseCheckInRuleListPage.getId())); |
| | |
| | | |
| | | <select id="getXpCruiseCheckInRuleListPage" resultType="com.xiaopeng.maintenance.vo.XpCruiseCheckInRuleListPage"> |
| | | select id,`name`, operations_user_id AS operationsUserId from xp_cruise_check_in_rule where is_deleted = 0 |
| | | <if test="null != dto.name and dto.name != ''"> |
| | | <if test="null != name and name != ''"> |
| | | and `name` like concat('%', #{dto.name}, '%') |
| | | </if> |
| | | <if test="null != dto.operationsUserIds and dto.operationsUserIds() > 0"> |
| | | <if test="null != operationsUserIds and operationsUserIds.size() > 0"> |
| | | and operations_user_id in |
| | | <foreach collection="dto.operationsUserIds" item="id" open="and id in (" separator="," close=")"> |
| | | <foreach collection="operationsUserIds" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |