Commit 4e209c71 by 周海宝

Merge branch 'v5.6.0' into 'master'

上线合并

See merge request !12
2 parents f410eedf 2e35178a
Showing 18 changed files with 840 additions and 35 deletions
...@@ -7,11 +7,10 @@ ...@@ -7,11 +7,10 @@
</parent> </parent>
<groupId>cn.com.glsx.merchants</groupId> <groupId>cn.com.glsx.merchants</groupId>
<artifactId>platform-merchants-api</artifactId> <artifactId>platform-merchants-api</artifactId>
<version>${project.version}</version> <version>5.6.0-SNAPSHOT</version>
<name>platform-merchants-api</name> <name>platform-merchants-api</name>
<properties> <properties>
<deploy.scanPackage>cn.com.glsx.merchants.remote</deploy.scanPackage> <deploy.scanPackage>cn.com.glsx.merchants.remote</deploy.scanPackage>
<project.version>5.6.1-SNAPSHOT</project.version>
</properties> </properties>
<dependencies> <dependencies>
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
<dependency> <dependency>
<groupId>cn.com.glsx.merchants</groupId> <groupId>cn.com.glsx.merchants</groupId>
<artifactId>platform-merchants-api</artifactId> <artifactId>platform-merchants-api</artifactId>
<version>${project.version}</version> <version>5.6.0-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
......
package cn.com.glsx.merchants.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class MerchantBrandModelDTO implements java.io.Serializable{
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "主品牌id")
private Integer brandId;
@ApiModelProperty(notes = "子品牌id")
private Integer childId;
}
package cn.com.glsx.merchants.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import java.util.List;
import java.util.Set;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class MerchantPageWithBrandDTO implements java.io.Serializable{
private static final long serialVersionUID = 1L;
private Set<Integer> brandIdList;
private List<Integer> merchantIds;
@ApiModelProperty(notes = "门店ID")
private Integer merchantId;
@ApiModelProperty(notes = "门店名称")
private String merchantName;
@ApiModelProperty(name = "merchantBrandList", notes = "品牌列表")
private List<MerchantBrandModelDTO> merchantBrandList;
}
package cn.com.glsx.merchants.dto.beisen;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import lombok.Data;
@Data
public class BeisenEmployeeInfoDTO implements Serializable {
/**
* 员工UserID
*/
@ApiModelProperty("员工UserID")
private Integer userID;
/**
* 姓名
*/
@ApiModelProperty("姓名")
private String name;
/**
* 姓名(拼音)
*/
@ApiModelProperty("姓名(拼音)")
private String _Name;
/**
* 姓拼音
*/
@ApiModelProperty("姓拼音")
private String phoneticOfXing;
/**
* 名拼音
*/
@ApiModelProperty("名拼音")
private String phoneticOfMing;
/**
* 性别:0男、1女
*/
@ApiModelProperty("性别:0男、1女")
private Integer gender;
/**
* 电子邮件
*/
@ApiModelProperty("电子邮件")
private String email;
/**
* 证件类型(查看可用选项)
*/
@ApiModelProperty("证件类型(查看可用选项)")
private String iDType;
/**
* 证件号码
*/
@ApiModelProperty("证件号码")
private String iDNumber;
/**
* 时区,示例:Asia/Shanghai
*/
@ApiModelProperty("时区,示例:Asia/Shanghai")
private String timeZone;
/**
* 是否长期证件
*/
private Boolean isLongTermCertificate;
/**
* 证件开始日期
*/
private Date certificateStartDate;
/**
* 证件截止日期
*/
private Date certificateValidityTerm;
/**
* 出生日期
*/
private Date birthday;
/**
* 参加工作日期
*/
private Date workDate;
/**
* 手机号码
*/
private String mobilePhone;
/**
* 微信
*/
private String weiXin;
/**
* 照片路径(DFS附件路径)
*/
private String idPhoto;
/**
* 照片缩略图路径
*/
private String smallIdPhoto;
/**
* 身份证人像面路径
*/
private String idPortraitSide;
/**
* 身份证国徽面路径
*/
private String idCountryEmblemSide;
/**
* 允许登录系统
*/
private Boolean allowToLoginIn;
/**
* 个人主页
*/
private String personalHomepage;
/**
* 专业
*/
private String major;
/**
* 邮政编码
*/
private String postalCode;
/**
* 护照号码
*/
private String passportNumber;
/**
* 星座
*/
private String constellation;
/**
* 血型
*/
private String bloodType;
/**
* 入党/团日期
*/
private Date joinPartyDate;
/**
* 户口类别(查看可用选项)
*/
private Integer domicileType;
/**
* 紧急联系人
*/
private String emergencyContact;
/**
* 紧急联系人与本人关系
*/
private String emergencyContactRelationship;
/**
* 紧急联系电话
*/
private String emergencyContactPhone;
/**
* QQ
*/
private String qq;
/**
* 家庭电话
*/
private String homePhone;
/**
* 毕业时间
*/
private Date graduateDate;
/**
* 婚姻状况(查看可用选项)
*/
private String marryCategory;
/**
* 政治面貌(查看可用选项)
*/
private String politicalStatus;
/**
* 国家(地区)(查看可用选项)
*/
private Integer nationality;
/**
* 民族(查看可用选项)
*/
private String nation;
/**
* 户籍所在地
*/
private String birthplace;
/**
* 籍贯(查看可用选项)
*/
private String registAddress;
/**
* 最高学历:1本科,2硕士研究生,3高中,4中技,5大专,6MBA,7博士研究生,8初中,9小学,10保密,120EMBA,130MPA
*/
private String educationLevel;
/**
* 毕业学校
*/
private String lastSchool;
/**
* 其他语言姓名
*/
private String engName;
/**
* 其他语言姓名_名
*/
private String firstname;
/**
* 其他语言姓名_姓
*/
private String lastname;
/**
* 办公电话
*/
private String officeTel;
/**
* 个人邮箱
*/
private String backupMail;
/**
* 应聘者id(招聘系统使用)
*/
private Integer applicantId;
/**
* 招聘申请id
*/
private String applyIdV6;
/**
* 应聘者id(只查询)
*/
private String applicantIdV6;
/**
* 年龄
*/
private Integer age;
/**
* 业务修改人
*/
private Integer businessModifiedBy;
/**
* 业务修改时间
*/
private Date businessModifiedTime;
/**
* 类型(查看可用选项)
*/
private Integer sourceType;
/**
* 首次进入公司日期
*/
private Date firstEntryDate;
/**
* 最新进入公司日期
*/
private Date latestEntryDate;
/**
* 导师UserID
*/
private Integer tutorNew;
/**
* 证件正面路径
*/
private String idFront;
/**
* 证件反面路径
*/
private String idBehind;
/**
* 预计退休日期
*/
private Date preRetireDate;
/**
* 实际退休日期
*/
private Date actualRetireDate;
/**
* 预计退休日期已核准
*/
private Boolean isConfirmRetireDate;
/**
* 账号激活状态:0未激活、1已激活
*/
private Byte activationState;
/**
* 签发机关
*/
private String issuingAuthority;
/**
* 是否残疾人
*/
private Boolean isDisabled;
/**
* 残疾证号
*/
private String disabledNumber;
/**
* 排序编码
*/
private Integer orderCode;
/**
* 业务对象实体主键GUID
*/
private String objectId;
/**
* 创建人员工UserID
*/
private Integer createdBy;
/**
* 创建时间
*/
private Date createdTime;
/**
* 修改人员工UserID
*/
private Integer modifiedBy;
/**
* 修改时间
*/
private Date modifiedTime;
/**
* 是否删除:0否,1是
*/
private Integer stdIsDeleted;
/**
* 在职状态:0.是,1.否
*/
private Integer zzStatus;
/**
* 离职时间
*/
private Date lastWorkDate;
/**
* 入职时间
*/
private Date entryDate;
private String homeAddress;
private String speciality;
private String residenceAddress;
private String aboutMe;
private String businessAddress;
private String oIdJobPost;
private String changeReason;
private String oIdJobPostId;
private Integer oIdDepartmentId;
/**
* 试用期底薪
*/
private BigDecimal trialBasicSalary;
/**
* 转正后底薪
*/
private BigDecimal formalBasicSalary;
/**
* 转正日期 (yyyy-MM-dd)
*/
private Date officialDate;
/**
* 职级
*/
private String jobLevel;
/**
* 入职门店名称
*/
private String merchantName;
/**
* 上级领导 userId
*/
private String directLeaderUserId;
@Transient
private String directLeaderName;
@Transient
private String directLeaderMobilePhone;
}
\ No newline at end of file \ No newline at end of file
...@@ -3,20 +3,17 @@ package cn.com.glsx.merchants.remote; ...@@ -3,20 +3,17 @@ package cn.com.glsx.merchants.remote;
import cn.com.glsx.framework.core.annotation.*; import cn.com.glsx.framework.core.annotation.*;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination; import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse; import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.merchants.dto.merchant.CarBrandProvinceRequestDTO; import cn.com.glsx.merchants.dto.MerchantPageWithBrandDTO;
import cn.com.glsx.merchants.dto.merchant.CarBrandRequestDTO; import cn.com.glsx.merchants.dto.merchant.*;
import cn.com.glsx.merchants.dto.merchant.CarbrandResponse;
import cn.com.glsx.merchants.dto.merchant.StaffPhoneRequestDTO;
import cn.com.glsx.merchants.model.request.*; import cn.com.glsx.merchants.model.request.*;
import cn.com.glsx.merchants.model.request.merchant.*; import cn.com.glsx.merchants.model.request.merchant.*;
import cn.com.glsx.merchants.model.request.serviceCenter.*; import cn.com.glsx.merchants.model.request.serviceCenter.*;
import cn.com.glsx.merchants.model.response.*; import cn.com.glsx.merchants.model.response.*;
import cn.com.glsx.merchants.model.response.merchant.MerchantBasicInfoListResponse; import cn.com.glsx.merchants.model.response.merchant.*;
import cn.com.glsx.merchants.model.response.merchant.MerchantBrandAndProvinceResponse;
import cn.com.glsx.merchants.model.response.merchant.MerchantNameResponse;
import cn.com.glsx.merchants.model.response.serviceCenter.MerchantDetailResponse; import cn.com.glsx.merchants.model.response.serviceCenter.MerchantDetailResponse;
import cn.com.glsx.merchants.model.response.serviceCenter.SearchMerchantRpcResponse; import cn.com.glsx.merchants.model.response.serviceCenter.SearchMerchantRpcResponse;
import javax.validation.constraints.NotNull;
import java.util.List; import java.util.List;
/** /**
...@@ -559,4 +556,10 @@ public interface MerchantRemote { ...@@ -559,4 +556,10 @@ public interface MerchantRemote {
@ApiParams({@ApiParam(name = "merchantId", notes = "查询商户名称", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)}) @ApiParams({@ApiParam(name = "merchantId", notes = "查询商户名称", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("查询商户名称") @ApiResponse("查询商户名称")
RpcResponse<List<MerchantNameDTO>> getMerchantNameByMerchantIds(List<Integer> merchantIds); RpcResponse<List<MerchantNameDTO>> getMerchantNameByMerchantIds(List<Integer> merchantIds);
@ApiMethod("分页查询dj门店/品牌/子品牌列表")
@ApiParam(name = "pagination", notes = "查询条件", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("门店/品牌/子品牌列表")
RpcResponse<RpcPagination<MerchantPageWithBrandDTO>> pageListMerchantWithBrand(@NotNull RpcPagination<MerchantPageWithBrandDTO> pagination);
} }
...@@ -2,6 +2,7 @@ package cn.com.glsx.merchants.remote; ...@@ -2,6 +2,7 @@ package cn.com.glsx.merchants.remote;
import cn.com.glsx.framework.core.annotation.*; import cn.com.glsx.framework.core.annotation.*;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse; import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.merchants.dto.beisen.BeisenEmployeeInfoDTO;
import cn.com.glsx.merchants.dto.merchantuser.request.LoginAccountNameRequestDTO; import cn.com.glsx.merchants.dto.merchantuser.request.LoginAccountNameRequestDTO;
import cn.com.glsx.merchants.dto.merchantuser.response.LoginAccountNameResponseDTO; import cn.com.glsx.merchants.dto.merchantuser.response.LoginAccountNameResponseDTO;
import cn.com.glsx.merchants.model.request.*; import cn.com.glsx.merchants.model.request.*;
...@@ -184,12 +185,22 @@ public interface MerchantUserRemote { ...@@ -184,12 +185,22 @@ public interface MerchantUserRemote {
/** /**
* 根据uuid获取账户信息 * 根据uuid获取账户信息
* @param uuid * @param uuids
* @return MerchantUserResponse * @return MerchantUserResponse
*/ */
@ApiMethod("根据uuid获取账户信息") @ApiMethod("根据uuid获取账户信息")
@ApiParam(name = "uuid", notes = "uuid", dataType = ApiParam.DataTypeEnum.OBJECT, required = true) @ApiParam(name = "uuids", notes = "uuids", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("根据uuid获取账户信息") @ApiResponse("根据uuid获取账户信息")
RpcResponse<List<MerchantUserResponse>> getAccountInfoByUuids(@NotNull List<String> uuids); RpcResponse<List<MerchantUserResponse>> getAccountInfoByUuids(@NotNull List<String> uuids);
/**
* 根据手机号获取北森员工信息
* @param phoneNumbers
* @return BeisenEmployeeInfoDTO
*/
@ApiMethod("根据手机号获取北森员工信息")
@ApiParam(name = "phoneNumbers", notes = "phoneNumbers", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("根据手机号获取北森员工信息")
RpcResponse<List<BeisenEmployeeInfoDTO>> selectByPhones(@NotNull List<String> phoneNumbers);
} }
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<dependency> <dependency>
<groupId>cn.com.glsx.merchants</groupId> <groupId>cn.com.glsx.merchants</groupId>
<artifactId>platform-merchants-api</artifactId> <artifactId>platform-merchants-api</artifactId>
<version>5.6.1-SNAPSHOT</version> <version>5.6.0-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.glsx</groupId> <groupId>com.glsx</groupId>
......
package cn.com.glsx.merchants.config; package cn.com.glsx.merchants.config;
import java.math.BigDecimal;
import javax.persistence.Column;
import lombok.Data; import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
...@@ -39,4 +41,19 @@ public class BeiSenProperty { ...@@ -39,4 +41,19 @@ public class BeiSenProperty {
*/ */
private String LUEmpInfoText; private String LUEmpInfoText;
/**
* 试用期
*/
private String trialBasicSalary;
/**
* 转正后底薪
*/
private String formalBasicSalary;
/**
* 入职门店名称
*/
private String merchantName;
} }
package cn.com.glsx.merchants.entity; package cn.com.glsx.merchants.entity;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import javax.persistence.*; import javax.persistence.*;
import lombok.Data; import lombok.Data;
...@@ -492,4 +493,47 @@ public class BeisenEmployeeInfo implements Serializable { ...@@ -492,4 +493,47 @@ public class BeisenEmployeeInfo implements Serializable {
@Column(name = "oId_department_id") @Column(name = "oId_department_id")
private Integer oIdDepartmentId; private Integer oIdDepartmentId;
/**
* 试用期底薪
*/
@Column(name = "trial_basic_salary")
private BigDecimal trialBasicSalary;
/**
* 转正后底薪
*/
@Column(name = "formal_basic_salary")
private BigDecimal formalBasicSalary;
/**
* 转正日期 (yyyy-MM-dd)
*/
@Column(name = "official_date")
private Date officialDate;
/**
* 职级
*/
@Column(name = "job_level")
private String jobLevel;
/**
* 入职门店名称
*/
@Column(name = "merchant_name")
private String merchantName;
/**
* 上级领导 userId
*/
@Column(name = "direct_leader_userId")
private String directLeaderUserId;
@Transient
private String directLeaderName;
@Transient
private String directLeaderMobilePhone;
} }
\ No newline at end of file \ No newline at end of file
...@@ -15,4 +15,6 @@ public interface BeisenEmployeeInfoMapper extends CommonBaseMapper<BeisenEmploye ...@@ -15,4 +15,6 @@ public interface BeisenEmployeeInfoMapper extends CommonBaseMapper<BeisenEmploye
BeisenEmployeeInfo findByUserId(@Param("userId") Integer userID); BeisenEmployeeInfo findByUserId(@Param("userId") Integer userID);
List<BeiSenEmployeeListResonseDTO> selectByConditions(@Param("req") BeiSenEmployeeListRequestDTO req); List<BeiSenEmployeeListResonseDTO> selectByConditions(@Param("req") BeiSenEmployeeListRequestDTO req);
List<BeisenEmployeeInfo> selectByPhones(@Param("phoneNumbers") List<String> phoneNumbers);
} }
package cn.com.glsx.merchants.mapper; package cn.com.glsx.merchants.mapper;
import cn.com.glsx.merchants.dto.merchant.CarBrandProvinceRequestDTO; import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.merchants.dto.merchant.CarBrandRequestDTO; import cn.com.glsx.merchants.dto.MerchantPageWithBrandDTO;
import cn.com.glsx.merchants.dto.merchant.MerchantBasicInfo; import cn.com.glsx.merchants.dto.merchant.*;
import cn.com.glsx.merchants.dto.merchant.StaffPhoneRequestDTO;
import cn.com.glsx.merchants.entity.Merchant; import cn.com.glsx.merchants.entity.Merchant;
import cn.com.glsx.merchants.model.request.*; import cn.com.glsx.merchants.model.request.*;
import cn.com.glsx.merchants.model.request.merchant.FindBySupMerchantNoRpcRequest; import cn.com.glsx.merchants.model.request.merchant.*;
import cn.com.glsx.merchants.model.request.merchant.MerchantBasicInfoRequest;
import cn.com.glsx.merchants.model.request.merchant.MerchantListByConditionRpcRequest;
import cn.com.glsx.merchants.model.request.merchant.MerchantNoRpcRequest;
import cn.com.glsx.merchants.model.request.serviceCenter.SearchMerchantRpcRequest; import cn.com.glsx.merchants.model.request.serviceCenter.SearchMerchantRpcRequest;
import cn.com.glsx.merchants.model.request.serviceCenter.UpdateMerchantRpcRequest; import cn.com.glsx.merchants.model.request.serviceCenter.UpdateMerchantRpcRequest;
import cn.com.glsx.merchants.model.response.*; import cn.com.glsx.merchants.model.response.*;
...@@ -178,4 +174,8 @@ public interface MerchantMapper extends CommonBaseMapper<Merchant> { ...@@ -178,4 +174,8 @@ public interface MerchantMapper extends CommonBaseMapper<Merchant> {
List<MerchantProvinceDTO> findMerchantProvinceListByIds(@Param("merchantIds") List<Integer> merchantIds); List<MerchantProvinceDTO> findMerchantProvinceListByIds(@Param("merchantIds") List<Integer> merchantIds);
List<MerchantBrandDTO> getBrandByMerchantIds(@Param("merchantIds") List<Integer> merchantIds); List<MerchantBrandDTO> getBrandByMerchantIds(@Param("merchantIds") List<Integer> merchantIds);
List<Integer> pageListMerchantIds(RpcPagination<MerchantPageWithBrandDTO> pagination);
List<MerchantPageWithBrandDTO> listMerchantWithBrandByMerchantIds(@Param("merchantIds") List<Integer> merchantIds);
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,6 +5,7 @@ import cn.com.glsx.framework.core.beans.rpc.RpcResponse; ...@@ -5,6 +5,7 @@ import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.enums.DefaultErrorEnum; import cn.com.glsx.framework.core.enums.DefaultErrorEnum;
import cn.com.glsx.framework.core.exception.RpcServiceException; import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.framework.core.util.RpcAssert; import cn.com.glsx.framework.core.util.RpcAssert;
import cn.com.glsx.merchants.dto.MerchantPageWithBrandDTO;
import cn.com.glsx.merchants.dto.merchant.CarBrandProvinceRequestDTO; import cn.com.glsx.merchants.dto.merchant.CarBrandProvinceRequestDTO;
import cn.com.glsx.merchants.dto.merchant.CarBrandRequestDTO; import cn.com.glsx.merchants.dto.merchant.CarBrandRequestDTO;
import cn.com.glsx.merchants.dto.merchant.CarbrandResponse; import cn.com.glsx.merchants.dto.merchant.CarbrandResponse;
...@@ -949,6 +950,17 @@ public class MerchantRemoteImpl implements MerchantRemote { ...@@ -949,6 +950,17 @@ public class MerchantRemoteImpl implements MerchantRemote {
} }
} }
@Override
public RpcResponse<RpcPagination<MerchantPageWithBrandDTO>> pageListMerchantWithBrand(RpcPagination<MerchantPageWithBrandDTO> pagination) {
try {
return RpcResponse.success(RpcPagination.copyPage(merchantService.pageListMerchantWithBrand(pagination)));
} catch (RpcServiceException e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
}
}
/** /**
* 查询商户名称 * 查询商户名称
* @author yangwei * @author yangwei
......
...@@ -2,6 +2,7 @@ package cn.com.glsx.merchants.remote; ...@@ -2,6 +2,7 @@ package cn.com.glsx.merchants.remote;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse; import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.exception.RpcServiceException; import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.merchants.dto.beisen.BeisenEmployeeInfoDTO;
import cn.com.glsx.merchants.dto.merchantuser.request.LoginAccountNameRequestDTO; import cn.com.glsx.merchants.dto.merchantuser.request.LoginAccountNameRequestDTO;
import cn.com.glsx.merchants.dto.merchantuser.response.LoginAccountNameResponseDTO; import cn.com.glsx.merchants.dto.merchantuser.response.LoginAccountNameResponseDTO;
import cn.com.glsx.merchants.entity.MerchantLogin; import cn.com.glsx.merchants.entity.MerchantLogin;
...@@ -12,6 +13,7 @@ import cn.com.glsx.merchants.model.request.UpdatePasswordRequest; ...@@ -12,6 +13,7 @@ import cn.com.glsx.merchants.model.request.UpdatePasswordRequest;
import cn.com.glsx.merchants.model.request.merchantLogin.LoginAccountRequest; import cn.com.glsx.merchants.model.request.merchantLogin.LoginAccountRequest;
import cn.com.glsx.merchants.model.response.AccountTypeTreeResponse; import cn.com.glsx.merchants.model.response.AccountTypeTreeResponse;
import cn.com.glsx.merchants.model.response.MerchantUserResponse; import cn.com.glsx.merchants.model.response.MerchantUserResponse;
import cn.com.glsx.merchants.service.BeiSenService;
import cn.com.glsx.merchants.service.MerchantUserService; import cn.com.glsx.merchants.service.MerchantUserService;
import com.alibaba.dubbo.config.annotation.Service; import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
...@@ -33,6 +35,9 @@ public class MerchantUserRemoteImpl implements MerchantUserRemote { ...@@ -33,6 +35,9 @@ public class MerchantUserRemoteImpl implements MerchantUserRemote {
@Autowired @Autowired
private MerchantUserService merchantUserService; private MerchantUserService merchantUserService;
@Autowired
private BeiSenService beiSenService;
/** /**
* 校验用户名密码 * 校验用户名密码
* *
...@@ -249,4 +254,13 @@ public class MerchantUserRemoteImpl implements MerchantUserRemote { ...@@ -249,4 +254,13 @@ public class MerchantUserRemoteImpl implements MerchantUserRemote {
return RpcResponse.error(e); return RpcResponse.error(e);
} }
} }
@Override
public RpcResponse<List<BeisenEmployeeInfoDTO>> selectByPhones(List<String> phoneNumbers) {
try {
return RpcResponse.success(beiSenService.selectByPhones(phoneNumbers));
}catch (Exception e){
return RpcResponse.error(e);
}
}
} }
...@@ -21,6 +21,7 @@ import cn.com.glsx.dj.beisen.remote.BeiSenStaffRemote; ...@@ -21,6 +21,7 @@ import cn.com.glsx.dj.beisen.remote.BeiSenStaffRemote;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse; import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.exception.RpcServiceException; import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.merchants.config.BeiSenProperty; import cn.com.glsx.merchants.config.BeiSenProperty;
import cn.com.glsx.merchants.dto.beisen.BeisenEmployeeInfoDTO;
import cn.com.glsx.merchants.entity.BeisenEmployeeInfo; import cn.com.glsx.merchants.entity.BeisenEmployeeInfo;
import cn.com.glsx.merchants.entity.BeisenEmployeeMapping; import cn.com.glsx.merchants.entity.BeisenEmployeeMapping;
import cn.com.glsx.merchants.kafka.model.BeiSenNoticeModel; import cn.com.glsx.merchants.kafka.model.BeiSenNoticeModel;
...@@ -37,6 +38,7 @@ import com.alibaba.fastjson.JSON; ...@@ -37,6 +38,7 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.alibaba.nacos.common.utils.StringUtils; import com.alibaba.nacos.common.utils.StringUtils;
import java.math.BigDecimal;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.time.LocalDate; import java.time.LocalDate;
import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatter;
...@@ -690,6 +692,19 @@ public class BeiSenService { ...@@ -690,6 +692,19 @@ public class BeiSenService {
return; return;
} }
DataSourceRequestDTO request1 = new DataSourceRequestDTO();
request1.setApp("TenantBase");
request1.setMetaObjectName("TenantBase.JobLevel");
ListFilterItem listFilterItem1 = new ListFilterItem();
listFilterItem1.setDsName("TenantBase.JobLevelLookupDataSource");
request1.setListFilter(Arrays.asList(listFilterItem1));
RpcResponse<DataSourceResponseDTO> dataSource1 = beiSenCommonRemote.getDataSource(request1);
if (!dataSource1.isSuccess()){
log.error("获取职级字典数据失败:{}", dataSource.getMessage());
return;
}
for (EmployeeDataItem employeeDataItem : data) { for (EmployeeDataItem employeeDataItem : data) {
EmployeeInfo employeeInfo = employeeDataItem.getEmployeeInfo(); EmployeeInfo employeeInfo = employeeDataItem.getEmployeeInfo();
EmploymentRecord recordInfo = employeeDataItem.getRecordInfo(); EmploymentRecord recordInfo = employeeDataItem.getRecordInfo();
...@@ -697,13 +712,13 @@ public class BeiSenService { ...@@ -697,13 +712,13 @@ public class BeiSenService {
log.info("北森员工信息为空"); log.info("北森员工信息为空");
continue; continue;
} }
insertOrUpdateInfo(employeeInfo, recordInfo,dataSource.getResult()); insertOrUpdateInfo(employeeInfo, recordInfo,dataSource.getResult(),dataSource1.getResult());
} }
} }
@Transactional @Transactional
private void insertOrUpdateInfo(EmployeeInfo employeeInfo, EmploymentRecord recordInfo, private void insertOrUpdateInfo(EmployeeInfo employeeInfo, EmploymentRecord recordInfo,
DataSourceResponseDTO dataSource) { DataSourceResponseDTO dataSource, DataSourceResponseDTO dataSource1) {
BeisenEmployeeInfo beisenEmployeeInfo = beisenEmployeeInfoMapper.findByUserId( BeisenEmployeeInfo beisenEmployeeInfo = beisenEmployeeInfoMapper.findByUserId(
employeeInfo.getUserID()); employeeInfo.getUserID());
BeisenEmployeeInfo beisenEmployeeInfonew = new BeisenEmployeeInfo(); BeisenEmployeeInfo beisenEmployeeInfonew = new BeisenEmployeeInfo();
...@@ -713,6 +728,8 @@ public class BeiSenService { ...@@ -713,6 +728,8 @@ public class BeiSenService {
Date entryDate = recordInfo.getEntryDate(); Date entryDate = recordInfo.getEntryDate();
beisenEmployeeInfonew.setEntryDate(entryDate); beisenEmployeeInfonew.setEntryDate(entryDate);
Map<String, String> translateProperties = recordInfo.getTranslateProperties(); Map<String, String> translateProperties = recordInfo.getTranslateProperties();
Map<String, String> customProperties = recordInfo.getCustomProperties();
if (translateProperties.isEmpty()) { if (translateProperties.isEmpty()) {
log.info("北森员工{},translateProperties信息空", employeeInfo.get_Name()); log.info("北森员工{},translateProperties信息空", employeeInfo.get_Name());
} }
...@@ -722,6 +739,30 @@ public class BeiSenService { ...@@ -722,6 +739,30 @@ public class BeiSenService {
}else { }else {
beisenEmployeeInfonew.setOIdJobPost(oIdJobPostText); beisenEmployeeInfonew.setOIdJobPost(oIdJobPostText);
} }
if (customProperties!= null) {
String s1 = customProperties.get(beiSenProperty.getTrialBasicSalary());
if (StringUtils.isEmpty(s1)) {
log.info("北森员工{},trialBasicSalary空", employeeInfo.getName());
} else {
beisenEmployeeInfonew.setTrialBasicSalary(new BigDecimal(s1));
}
String s2 = customProperties.get(beiSenProperty.getFormalBasicSalary());
if (StringUtils.isEmpty(s2)) {
log.info("北森员工{},formalBasicSalary空", employeeInfo.getName());
} else {
beisenEmployeeInfonew.setFormalBasicSalary(new BigDecimal(s2));
}
String s3 = customProperties.get(beiSenProperty.getMerchantName());
if (StringUtils.isEmpty(s3)) {
log.info("北森员工{},商户名称空", employeeInfo.getName());
} else {
beisenEmployeeInfonew.setMerchantName(s3);
}
}
beisenEmployeeInfonew.setOfficialDate(recordInfo.getRegularizationDate());
if (recordInfo.getPOIdEmpAdmin()!=null) {
beisenEmployeeInfonew.setDirectLeaderUserId(recordInfo.getPOIdEmpAdmin() + "");
}
String employeeStatus = recordInfo.getEmployeeStatus(); String employeeStatus = recordInfo.getEmployeeStatus();
if ("8".equals(employeeStatus)) { if ("8".equals(employeeStatus)) {
Date lastWorkDate = recordInfo.getLastWorkDate(); Date lastWorkDate = recordInfo.getLastWorkDate();
...@@ -744,6 +785,19 @@ public class BeiSenService { ...@@ -744,6 +785,19 @@ public class BeiSenService {
} else { } else {
beisenEmployeeInfonew.setZzStatus(0); beisenEmployeeInfonew.setZzStatus(0);
} }
List<DataSourceResultResponseDTO> data = dataSource1.getData();
if (CollectionUtils.isNotEmpty(data)) {
List<DataSourceItemResponseDTO> dataSourceResults = data.get(0).getDataSourceResults();
if (recordInfo.getOIdJobLevel()!=null){
List<DataSourceItemResponseDTO> collect = dataSourceResults.stream()
.filter(s -> s.getValue().equals(recordInfo.getOIdJobLevel())).collect(
Collectors.toList());
if (CollectionUtils.isNotEmpty(collect)){
beisenEmployeeInfonew.setJobLevel(collect.get(0).getText());
}
}
}
beisenEmployeeInfonew.setOIdDepartmentId(recordInfo.getOIdDepartment()); beisenEmployeeInfonew.setOIdDepartmentId(recordInfo.getOIdDepartment());
beisenEmployeeInfonew.setOIdJobPostId(recordInfo.getOIdJobPost()); beisenEmployeeInfonew.setOIdJobPostId(recordInfo.getOIdJobPost());
if (beisenEmployeeInfo == null) { if (beisenEmployeeInfo == null) {
...@@ -752,4 +806,16 @@ public class BeiSenService { ...@@ -752,4 +806,16 @@ public class BeiSenService {
beisenEmployeeInfoMapper.updateByPrimaryKey(beisenEmployeeInfonew); beisenEmployeeInfoMapper.updateByPrimaryKey(beisenEmployeeInfonew);
} }
} }
public List<BeisenEmployeeInfoDTO> selectByPhones(List<String> phoneNumbers) {
List<BeisenEmployeeInfo> list = beisenEmployeeInfoMapper.selectByPhones(phoneNumbers);
if (CollectionUtils.isEmpty(list)){
return Collections.emptyList();
}
return list.stream().map(s -> {
BeisenEmployeeInfoDTO beisenEmployeeInfoDTO = new BeisenEmployeeInfoDTO();
BeanUtils.copyProperties(s, beisenEmployeeInfoDTO);
return beisenEmployeeInfoDTO;
}).collect(Collectors.toList());
}
} }
...@@ -14,6 +14,7 @@ import cn.com.glsx.merchants.config.SystemProperty; ...@@ -14,6 +14,7 @@ import cn.com.glsx.merchants.config.SystemProperty;
import cn.com.glsx.merchants.contants.Constants; import cn.com.glsx.merchants.contants.Constants;
import cn.com.glsx.merchants.dto.MerchantBrandDTO; import cn.com.glsx.merchants.dto.MerchantBrandDTO;
import cn.com.glsx.merchants.dto.MerchantFirstBrandDTO; import cn.com.glsx.merchants.dto.MerchantFirstBrandDTO;
import cn.com.glsx.merchants.dto.MerchantPageWithBrandDTO;
import cn.com.glsx.merchants.dto.merchant.*; import cn.com.glsx.merchants.dto.merchant.*;
import cn.com.glsx.merchants.entity.*; import cn.com.glsx.merchants.entity.*;
import cn.com.glsx.merchants.enums.*; import cn.com.glsx.merchants.enums.*;
...@@ -2549,8 +2550,8 @@ public class MerchantService { ...@@ -2549,8 +2550,8 @@ public class MerchantService {
&& StringUtils.isEmpty(request.getMerchantName()) && StringUtils.isEmpty(request.getMerchantName())
&& CollectionUtils.isEmpty(request.getBrandRequestList()) && CollectionUtils.isEmpty(request.getBrandRequestList())
&& CollectionUtils.isEmpty(request.getProvinceNameList()) && CollectionUtils.isEmpty(request.getProvinceNameList())
&& CollectionUtils.isEmpty(request.getCityNameList())){ && CollectionUtils.isEmpty(request.getCityNameList())) {
throw new RpcServiceException(DefaultErrorEnum.PARAMETER_NULL,"商户号、商户名称、品牌信息、区域不能同时为空"); throw new RpcServiceException(DefaultErrorEnum.PARAMETER_NULL, "商户号、商户名称、品牌信息、区域不能同时为空");
} }
Page<MerchantBasicInfoListResponse> merchantList = new Page<>(); Page<MerchantBasicInfoListResponse> merchantList = new Page<>();
...@@ -2739,26 +2740,26 @@ public class MerchantService { ...@@ -2739,26 +2740,26 @@ public class MerchantService {
} }
public List<MerchantSimpleResponse> findMerchantListByBrandIds(CarBrandRequestDTO requestDTO) { public List<MerchantSimpleResponse> findMerchantListByBrandIds(CarBrandRequestDTO requestDTO) {
if (CollectionUtils.isEmpty(requestDTO.getFirstBrandIdList())&& CollectionUtils.isEmpty(requestDTO.getSecBrandIdList())){ if (CollectionUtils.isEmpty(requestDTO.getFirstBrandIdList()) && CollectionUtils.isEmpty(requestDTO.getSecBrandIdList())) {
throw new RpcServiceException(DefaultErrorEnum.PARAMETER_NULL,"参数不能为空!"); throw new RpcServiceException(DefaultErrorEnum.PARAMETER_NULL, "参数不能为空!");
} }
try { try {
return merchantMapper.findMerchantListByBrandIds(requestDTO); return merchantMapper.findMerchantListByBrandIds(requestDTO);
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(),e); log.error(e.getMessage(), e);
throw new RpcServiceException(DefaultErrorEnum.DATABASE_ERROR,"查询商户失败!"); throw new RpcServiceException(DefaultErrorEnum.DATABASE_ERROR, "查询商户失败!");
} }
} }
public List<MerchantSimpleResponse> findMerchantListByBrandIds2(CarBrandRequestDTO requestDTO) { public List<MerchantSimpleResponse> findMerchantListByBrandIds2(CarBrandRequestDTO requestDTO) {
if (CollectionUtils.isEmpty(requestDTO.getFirstBrandIdList())&& CollectionUtils.isEmpty(requestDTO.getSecBrandIdList())){ if (CollectionUtils.isEmpty(requestDTO.getFirstBrandIdList()) && CollectionUtils.isEmpty(requestDTO.getSecBrandIdList())) {
throw new RpcServiceException(DefaultErrorEnum.PARAMETER_NULL,"一级二级品牌参数不能都为空!"); throw new RpcServiceException(DefaultErrorEnum.PARAMETER_NULL, "一级二级品牌参数不能都为空!");
} }
try { try {
return merchantMapper.findMerchantListByBrandIds2(requestDTO); return merchantMapper.findMerchantListByBrandIds2(requestDTO);
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(),e); log.error(e.getMessage(), e);
throw new RpcServiceException(DefaultErrorEnum.DATABASE_ERROR,"查询商户失败!"); throw new RpcServiceException(DefaultErrorEnum.DATABASE_ERROR, "查询商户失败!");
} }
} }
...@@ -2775,10 +2776,11 @@ public class MerchantService { ...@@ -2775,10 +2776,11 @@ public class MerchantService {
/** /**
* 查询系统中存在的手机号 * 查询系统中存在的手机号
* @author yangwei *
* @since 2025/10/24 10:51
* @param phones 被校验的手机号列表 * @param phones 被校验的手机号列表
* @return java.util.List<java.lang.String> 存在于系统的手机号列表 * @return java.util.List<java.lang.String> 存在于系统的手机号列表
* @author yangwei
* @since 2025/10/24 10:51
*/ */
public List<String> qryPhoneInStaffList(List<String> phones) { public List<String> qryPhoneInStaffList(List<String> phones) {
if (CollectionUtils.isEmpty(phones)) { if (CollectionUtils.isEmpty(phones)) {
...@@ -2814,4 +2816,36 @@ public class MerchantService { ...@@ -2814,4 +2816,36 @@ public class MerchantService {
return merchantNameDTO; return merchantNameDTO;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
} }
public Page<MerchantPageWithBrandDTO> pageListMerchantWithBrand(RpcPagination<MerchantPageWithBrandDTO> pagination) {
RpcAssert.assertNotNull(pagination, DefaultErrorEnum.DATA_NULL, "RpcPagination not be null");
try {
// 1:分页查询商户ID
Page<Integer> idPage = PageHelper.startPage(pagination.getPageNum(), pagination.getPageSize(), pagination.isNeedCount())
.doSelectPage(() -> merchantMapper.pageListMerchantIds(pagination));
// 2:空结果处理
if (CollectionUtils.isEmpty(idPage)) {
Page<MerchantPageWithBrandDTO> emptyPage = new Page<>(pagination.getPageNum(), pagination.getPageSize(), pagination.isNeedCount());
emptyPage.setTotal(0);
return emptyPage;
}
// 3:根据ID查询商户详情
List<MerchantPageWithBrandDTO> merchantList = merchantMapper.listMerchantWithBrandByMerchantIds(idPage);
// 4:组装最终分页结果
Page<MerchantPageWithBrandDTO> resultPage = new Page<>(idPage.getPageNum(), idPage.getPageSize(), idPage.isCount());
resultPage.setTotal(idPage.getTotal());
resultPage.addAll(merchantList);
resultPage.setStartRow(idPage.getStartRow());
resultPage.setEndRow(idPage.getEndRow());
return resultPage;
} catch (Exception e) {
log.error("分页查询商户带品牌数据异常", e);
throw new RpcServiceException(DefaultErrorEnum.DATABASE_ERROR, e.getMessage());
}
}
} }
...@@ -90,6 +90,17 @@ ...@@ -90,6 +90,17 @@
<result column="business_address" jdbcType="LONGVARCHAR" property="businessAddress" /> <result column="business_address" jdbcType="LONGVARCHAR" property="businessAddress" />
<result column="oId_department_id" jdbcType="INTEGER" property="oIdDepartmentId" /> <result column="oId_department_id" jdbcType="INTEGER" property="oIdDepartmentId" />
<result column="oId_job_post_id" jdbcType="VARCHAR" property="oIdJobPostId" /> <result column="oId_job_post_id" jdbcType="VARCHAR" property="oIdJobPostId" />
<result column="oId_job_post" jdbcType="VARCHAR" property="oIdJobPost" />
<result column="trial_basic_salary" jdbcType="DECIMAL" property="trialBasicSalary"/>
<result column="formal_basic_salary" jdbcType="DECIMAL" property="formalBasicSalary"/>
<result column="official_date" jdbcType="TIMESTAMP" property="officialDate"/>
<result column="job_level" jdbcType="VARCHAR" property="jobLevel"/>
<result column="merchant_name" jdbcType="VARCHAR" property="merchantName"/>
<result column="direct_leader_userId" jdbcType="VARCHAR" property="directLeaderUserId"/>
<result column="directLeaderName" jdbcType="VARCHAR" property="directLeaderName"/>
<result column="directLeaderPhone" jdbcType="VARCHAR" property="directLeaderPhone"/>
</resultMap> </resultMap>
<resultMap id="DTOResultMap" extends="BaseResultMap" type="cn.com.glsx.merchants.dto.beisen.BeiSenEmployeeListResonseDTO"> <resultMap id="DTOResultMap" extends="BaseResultMap" type="cn.com.glsx.merchants.dto.beisen.BeiSenEmployeeListResonseDTO">
</resultMap> </resultMap>
...@@ -173,4 +184,14 @@ ...@@ -173,4 +184,14 @@
order by ${req.sortField} ${req.sortOrder} order by ${req.sortField} ${req.sortOrder}
</if> </if>
</select> </select>
<select id="selectByPhones" resultMap="BaseResultMap">
select
t1.*,t2.name as directLeaderName,t2.mobile_phone as directLeaderMobilePhone
from beisen_employee_info t1
left join beisen_employee_info t2 on t1.direct_leader_userId = t2.user_id
where t1.mobile_phone in
<foreach collection="phoneNumbers" item="phone" open="(" separator="," close=")">
#{phone}
</foreach>
</select>
</mapper> </mapper>
...@@ -115,6 +115,21 @@ ...@@ -115,6 +115,21 @@
<result column="created_source" jdbcType="VARCHAR" property="createdSource"/> <result column="created_source" jdbcType="VARCHAR" property="createdSource"/>
<result column="created_account" jdbcType="VARCHAR" property="createdAccount"/> <result column="created_account" jdbcType="VARCHAR" property="createdAccount"/>
</resultMap> </resultMap>
<resultMap id="MerchantBrandDTOMap" type="cn.com.glsx.merchants.dto.MerchantBrandModelDTO">
<result column="brand_id" property="brandId" jdbcType="INTEGER" />
<result column="child_id" property="childId" jdbcType="INTEGER" />
</resultMap>
<resultMap id="MerchantPageWithBrandDTOMap" type="cn.com.glsx.merchants.dto.MerchantPageWithBrandDTO">
<id column="merchant_id" property="merchantId" jdbcType="INTEGER" />
<result column="merchant_name" property="merchantName" jdbcType="VARCHAR" />
<collection
property="merchantBrandList"
ofType="cn.com.glsx.merchants.dto.MerchantBrandModelDTO"
resultMap="MerchantBrandDTOMap"
fetchType="eager"
/>
</resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
...@@ -1279,4 +1294,46 @@ ...@@ -1279,4 +1294,46 @@
</if> </if>
</select> </select>
<!-- 1. 分页查询商户ID(仅查merchant_id,用于分页) -->
<select id="pageListMerchantIds" parameterType="cn.com.glsx.merchants.dto.MerchantPageWithBrandDTO"
resultType="java.lang.Integer">
SELECT DISTINCT s.merchantNo as merchantId
FROM platform_merchant s
INNER JOIN platform_merchant_brand m ON s.merchantNo = m.merchant_id
WHERE s.del_flag = 0
AND m.del_flag = 0
<if test="condition.brandIdList != null and condition.brandIdList.size() > 0">
AND m.first_brand_id IN
<foreach collection="condition.brandIdList" item="brandId" open="(" separator="," close=")">
#{brandId}
</foreach>
</if>
<if test="condition.merchantIds != null and condition.merchantIds.size() > 0">
AND s.merchantNo IN
<foreach collection="condition.merchantIds" item="merchantId" open="(" separator="," close=")">
#{merchantId}
</foreach>
</if>
ORDER BY s.merchantNo DESC
</select>
<!-- 2. 根据商户ID列表查询带品牌的详情 -->
<select id="listMerchantWithBrandByMerchantIds" parameterType="map" resultMap="MerchantPageWithBrandDTOMap">
SELECT DISTINCT s.merchantNo as merchant_id,
s.merchant_name,
IFNULL(m.first_brand_id, 0) AS brand_id,
IFNULL(m.sec_brand_id, 0) AS child_id
FROM platform_merchant s
INNER JOIN platform_merchant_brand m ON s.merchantNo = m.merchant_id
WHERE s.del_flag = 0
AND m.del_flag = 0
AND s.merchantNo IN
<foreach collection="merchantIds" item="merchantId" open="(" separator="," close=")">
#{merchantId}
</foreach>
ORDER BY s.merchantNo DESC
</select>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
...@@ -5,6 +5,8 @@ import cn.com.glsx.dj.beisen.dto.staff.response.EmploymentRecord; ...@@ -5,6 +5,8 @@ import cn.com.glsx.dj.beisen.dto.staff.response.EmploymentRecord;
import cn.com.glsx.merchants.Main; import cn.com.glsx.merchants.Main;
import cn.com.glsx.merchants.aop.beisen.UpdateMerchantHandler; import cn.com.glsx.merchants.aop.beisen.UpdateMerchantHandler;
import cn.com.glsx.merchants.aop.beisen.UpdateStaffHandler; import cn.com.glsx.merchants.aop.beisen.UpdateStaffHandler;
import cn.com.glsx.merchants.dto.beisen.BeisenEmployeeInfoDTO;
import cn.com.glsx.merchants.entity.BeisenEmployeeInfo;
import cn.com.glsx.merchants.entity.BeisenParkstoreMapping; import cn.com.glsx.merchants.entity.BeisenParkstoreMapping;
import cn.com.glsx.merchants.kafka.model.BeiSenNoticeModel; import cn.com.glsx.merchants.kafka.model.BeiSenNoticeModel;
import cn.com.glsx.merchants.model.request.*; import cn.com.glsx.merchants.model.request.*;
...@@ -162,4 +164,11 @@ public class BeiSenServiceTest { ...@@ -162,4 +164,11 @@ public class BeiSenServiceTest {
public void syncBeiSenStaffInfo(){ public void syncBeiSenStaffInfo(){
beiSenService.syncBeiSenStaffInfo(); beiSenService.syncBeiSenStaffInfo();
} }
@Test
public void SyncZWBeiSenStaff(){
List<BeisenEmployeeInfoDTO> beisenEmployeeInfos = beiSenService.selectByPhones(
Arrays.asList("15944445555","13714139064"));
System.out.println(JSONObject.toJSONString(beisenEmployeeInfos));
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!