注册信息增加返回负责人
parent
86ca24675f
commit
f8ca58b378
@ -1,16 +1,16 @@
|
||||
package com.glxp.api.dao.auth;
|
||||
|
||||
import com.glxp.api.dao.BaseMapperPlus;
|
||||
import com.glxp.api.entity.auth.DeptEntity;
|
||||
import com.glxp.api.entity.auth.UserPersonEntity;
|
||||
import com.glxp.api.req.auth.FilterInvWarehouseRequest;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import com.glxp.api.dao.BaseMapperPlus;
|
||||
import com.glxp.api.entity.auth.UserPersonEntity;
|
||||
import com.glxp.api.entity.auth.UserRegisterEntity;
|
||||
import com.glxp.api.req.auth.UserPersonFilterRequest;
|
||||
|
||||
public interface UserPersonDao extends BaseMapperPlus<UserPersonDao, UserPersonEntity, UserPersonEntity> {
|
||||
|
||||
|
||||
|
||||
List<UserRegisterEntity> filterUserPersons(UserPersonFilterRequest userPersonFilterRequest);
|
||||
List<UserPersonEntity> selectByRegisterId(@Param("registerId") String registerId);
|
||||
}
|
||||
|
@ -0,0 +1,18 @@
|
||||
package com.glxp.api.req.auth;
|
||||
|
||||
import com.glxp.api.util.page.ListPageRequest;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UserPersonFilterRequest extends ListPageRequest {
|
||||
|
||||
private String companyId;
|
||||
private String companyName;
|
||||
private String creditNum;
|
||||
private String mobile;
|
||||
private String bussinessStatus;
|
||||
private String checkStatus;
|
||||
private String registerTime;
|
||||
private String checkTime;
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.glxp.api.service.auth;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.glxp.api.entity.auth.UserPersonEntity;
|
||||
import com.glxp.api.entity.auth.UserRegisterEntity;
|
||||
import com.glxp.api.req.auth.UserPersonFilterRequest;
|
||||
|
||||
public interface UserPersonService {
|
||||
|
||||
List<UserRegisterEntity> filterUserPersons(UserPersonFilterRequest userPersonFilterRequest);
|
||||
List<UserPersonEntity> selectByRegisterId(String registerId);
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.glxp.api.service.auth.impl;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.glxp.api.dao.auth.UserPersonDao;
|
||||
import com.glxp.api.entity.auth.UserPersonEntity;
|
||||
import com.glxp.api.entity.auth.UserRegisterEntity;
|
||||
import com.glxp.api.req.auth.UserPersonFilterRequest;
|
||||
import com.glxp.api.service.auth.UserPersonService;
|
||||
|
||||
@Service
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public class UserPersonServiceImpl implements UserPersonService {
|
||||
@Resource
|
||||
UserPersonDao userPersonDao;
|
||||
@Override
|
||||
public List<UserRegisterEntity> filterUserPersons(UserPersonFilterRequest userPersonFilterRequest) {
|
||||
if (userPersonFilterRequest == null) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
int offset = (userPersonFilterRequest.getPage() - 1) * userPersonFilterRequest.getLimit();
|
||||
PageHelper.offsetPage(offset, userPersonFilterRequest.getLimit());
|
||||
return userPersonDao.filterUserPersons(userPersonFilterRequest);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UserPersonEntity> selectByRegisterId(String registerId) {
|
||||
return userPersonDao.selectByRegisterId(registerId);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue