Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
platform-merchants
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4e209c71
authored
Feb 11, 2026
by
周海宝
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v5.6.0' into 'master'
上线合并 See merge request
!12
2 parents
f410eedf
2e35178a
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
841 additions
and
36 deletions
platform-merchants-api/pom.xml
platform-merchants-api/src/main/java/cn/com/glsx/merchants/dto/MerchantBrandModelDTO.java
platform-merchants-api/src/main/java/cn/com/glsx/merchants/dto/MerchantPageWithBrandDTO.java
platform-merchants-api/src/main/java/cn/com/glsx/merchants/dto/beisen/BeisenEmployeeInfoDTO.java
platform-merchants-api/src/main/java/cn/com/glsx/merchants/remote/MerchantRemote.java
platform-merchants-api/src/main/java/cn/com/glsx/merchants/remote/MerchantUserRemote.java
platform-merchants-container/pom.xml
platform-merchants-container/src/main/java/cn/com/glsx/merchants/config/BeiSenProperty.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/entity/BeisenEmployeeInfo.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/mapper/BeisenEmployeeInfoMapper.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/mapper/MerchantMapper.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/remote/MerchantRemoteImpl.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/remote/MerchantUserRemoteImpl.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/BeiSenService.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/MerchantService.java
platform-merchants-container/src/main/resources/META-INF/orm/BeisenEmployeeInfoMapper.xml
platform-merchants-container/src/main/resources/META-INF/orm/MerchantMapper.xml
platform-merchants-container/src/test/java/cn/com/glsx/merchants/service/BeiSenServiceTest.java
platform-merchants-api/pom.xml
View file @
4e209c7
...
...
@@ -7,11 +7,10 @@
</parent>
<groupId>
cn.com.glsx.merchants
</groupId>
<artifactId>
platform-merchants-api
</artifactId>
<version>
${project.version}
</version>
<version>
5.6.0-SNAPSHOT
</version>
<name>
platform-merchants-api
</name>
<properties>
<deploy.scanPackage>
cn.com.glsx.merchants.remote
</deploy.scanPackage>
<project.version>
5.6.1-SNAPSHOT
</project.version>
</properties>
<dependencies>
...
...
@@ -31,7 +30,7 @@
<dependency>
<groupId>
cn.com.glsx.merchants
</groupId>
<artifactId>
platform-merchants-api
</artifactId>
<version>
${project.version}
</version>
<version>
5.6.0-SNAPSHOT
</version>
</dependency>
</dependencies>
</plugin>
...
...
platform-merchants-api/src/main/java/cn/com/glsx/merchants/dto/MerchantBrandModelDTO.java
0 → 100644
View file @
4e209c7
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
;
}
platform-merchants-api/src/main/java/cn/com/glsx/merchants/dto/MerchantPageWithBrandDTO.java
0 → 100644
View file @
4e209c7
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
;
}
platform-merchants-api/src/main/java/cn/com/glsx/merchants/dto/beisen/BeisenEmployeeInfoDTO.java
0 → 100644
View file @
4e209c7
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
platform-merchants-api/src/main/java/cn/com/glsx/merchants/remote/MerchantRemote.java
View file @
4e209c7
...
...
@@ -3,20 +3,17 @@ package cn.com.glsx.merchants.remote;
import
cn.com.glsx.framework.core.annotation.*
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.merchants.dto.merchant.CarBrandProvinceRequestDTO
;
import
cn.com.glsx.merchants.dto.merchant.CarBrandRequestDTO
;
import
cn.com.glsx.merchants.dto.merchant.CarbrandResponse
;
import
cn.com.glsx.merchants.dto.merchant.StaffPhoneRequestDTO
;
import
cn.com.glsx.merchants.dto.MerchantPageWithBrandDTO
;
import
cn.com.glsx.merchants.dto.merchant.*
;
import
cn.com.glsx.merchants.model.request.*
;
import
cn.com.glsx.merchants.model.request.merchant.*
;
import
cn.com.glsx.merchants.model.request.serviceCenter.*
;
import
cn.com.glsx.merchants.model.response.*
;
import
cn.com.glsx.merchants.model.response.merchant.MerchantBasicInfoListResponse
;
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.merchant.*
;
import
cn.com.glsx.merchants.model.response.serviceCenter.MerchantDetailResponse
;
import
cn.com.glsx.merchants.model.response.serviceCenter.SearchMerchantRpcResponse
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
/**
...
...
@@ -559,4 +556,10 @@ public interface MerchantRemote {
@ApiParams
({
@ApiParam
(
name
=
"merchantId"
,
notes
=
"查询商户名称"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)})
@ApiResponse
(
"查询商户名称"
)
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
);
}
platform-merchants-api/src/main/java/cn/com/glsx/merchants/remote/MerchantUserRemote.java
View file @
4e209c7
...
...
@@ -2,6 +2,7 @@ package cn.com.glsx.merchants.remote;
import
cn.com.glsx.framework.core.annotation.*
;
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.response.LoginAccountNameResponseDTO
;
import
cn.com.glsx.merchants.model.request.*
;
...
...
@@ -184,12 +185,22 @@ public interface MerchantUserRemote {
/**
* 根据uuid获取账户信息
* @param uuid
* @param uuid
s
* @return MerchantUserResponse
*/
@ApiMethod
(
"根据uuid获取账户信息"
)
@ApiParam
(
name
=
"uuid
"
,
notes
=
"uuid
"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiParam
(
name
=
"uuid
s"
,
notes
=
"uuids
"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiResponse
(
"根据uuid获取账户信息"
)
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
);
}
platform-merchants-container/pom.xml
View file @
4e209c7
...
...
@@ -14,7 +14,7 @@
<dependency>
<groupId>
cn.com.glsx.merchants
</groupId>
<artifactId>
platform-merchants-api
</artifactId>
<version>
5.6.
1
-SNAPSHOT
</version>
<version>
5.6.
0
-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
com.glsx
</groupId>
...
...
platform-merchants-container/src/main/java/cn/com/glsx/merchants/config/BeiSenProperty.java
View file @
4e209c7
package
cn
.
com
.
glsx
.
merchants
.
config
;
import
java.math.BigDecimal
;
import
javax.persistence.Column
;
import
lombok.Data
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.context.annotation.Configuration
;
...
...
@@ -39,4 +41,19 @@ public class BeiSenProperty {
*/
private
String
LUEmpInfoText
;
/**
* 试用期
*/
private
String
trialBasicSalary
;
/**
* 转正后底薪
*/
private
String
formalBasicSalary
;
/**
* 入职门店名称
*/
private
String
merchantName
;
}
platform-merchants-container/src/main/java/cn/com/glsx/merchants/entity/BeisenEmployeeInfo.java
View file @
4e209c7
package
cn
.
com
.
glsx
.
merchants
.
entity
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
javax.persistence.*
;
import
lombok.Data
;
...
...
@@ -492,4 +493,47 @@ public class BeisenEmployeeInfo implements Serializable {
@Column
(
name
=
"oId_department_id"
)
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
platform-merchants-container/src/main/java/cn/com/glsx/merchants/mapper/BeisenEmployeeInfoMapper.java
View file @
4e209c7
...
...
@@ -15,4 +15,6 @@ public interface BeisenEmployeeInfoMapper extends CommonBaseMapper<BeisenEmploye
BeisenEmployeeInfo
findByUserId
(
@Param
(
"userId"
)
Integer
userID
);
List
<
BeiSenEmployeeListResonseDTO
>
selectByConditions
(
@Param
(
"req"
)
BeiSenEmployeeListRequestDTO
req
);
List
<
BeisenEmployeeInfo
>
selectByPhones
(
@Param
(
"phoneNumbers"
)
List
<
String
>
phoneNumbers
);
}
platform-merchants-container/src/main/java/cn/com/glsx/merchants/mapper/MerchantMapper.java
View file @
4e209c7
package
cn
.
com
.
glsx
.
merchants
.
mapper
;
import
cn.com.glsx.merchants.dto.merchant.CarBrandProvinceRequestDTO
;
import
cn.com.glsx.merchants.dto.merchant.CarBrandRequestDTO
;
import
cn.com.glsx.merchants.dto.merchant.MerchantBasicInfo
;
import
cn.com.glsx.merchants.dto.merchant.StaffPhoneRequestDTO
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.merchants.dto.MerchantPageWithBrandDTO
;
import
cn.com.glsx.merchants.dto.merchant.*
;
import
cn.com.glsx.merchants.entity.Merchant
;
import
cn.com.glsx.merchants.model.request.*
;
import
cn.com.glsx.merchants.model.request.merchant.FindBySupMerchantNoRpcRequest
;
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.merchant.*
;
import
cn.com.glsx.merchants.model.request.serviceCenter.SearchMerchantRpcRequest
;
import
cn.com.glsx.merchants.model.request.serviceCenter.UpdateMerchantRpcRequest
;
import
cn.com.glsx.merchants.model.response.*
;
...
...
@@ -178,4 +174,8 @@ public interface MerchantMapper extends CommonBaseMapper<Merchant> {
List
<
MerchantProvinceDTO
>
findMerchantProvinceListByIds
(
@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
platform-merchants-container/src/main/java/cn/com/glsx/merchants/remote/MerchantRemoteImpl.java
View file @
4e209c7
...
...
@@ -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.exception.RpcServiceException
;
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.CarBrandRequestDTO
;
import
cn.com.glsx.merchants.dto.merchant.CarbrandResponse
;
...
...
@@ -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
...
...
platform-merchants-container/src/main/java/cn/com/glsx/merchants/remote/MerchantUserRemoteImpl.java
View file @
4e209c7
...
...
@@ -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.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.response.LoginAccountNameResponseDTO
;
import
cn.com.glsx.merchants.entity.MerchantLogin
;
...
...
@@ -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.response.AccountTypeTreeResponse
;
import
cn.com.glsx.merchants.model.response.MerchantUserResponse
;
import
cn.com.glsx.merchants.service.BeiSenService
;
import
cn.com.glsx.merchants.service.MerchantUserService
;
import
com.alibaba.dubbo.config.annotation.Service
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -33,6 +35,9 @@ public class MerchantUserRemoteImpl implements MerchantUserRemote {
@Autowired
private
MerchantUserService
merchantUserService
;
@Autowired
private
BeiSenService
beiSenService
;
/**
* 校验用户名密码
*
...
...
@@ -249,4 +254,13 @@ public class MerchantUserRemoteImpl implements MerchantUserRemote {
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
);
}
}
}
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/BeiSenService.java
View file @
4e209c7
...
...
@@ -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.exception.RpcServiceException
;
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.BeisenEmployeeMapping
;
import
cn.com.glsx.merchants.kafka.model.BeiSenNoticeModel
;
...
...
@@ -37,6 +38,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.nacos.common.utils.StringUtils
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDate
;
import
java.time.format.DateTimeFormatter
;
...
...
@@ -690,6 +692,19 @@ public class BeiSenService {
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
)
{
EmployeeInfo
employeeInfo
=
employeeDataItem
.
getEmployeeInfo
();
EmploymentRecord
recordInfo
=
employeeDataItem
.
getRecordInfo
();
...
...
@@ -697,13 +712,13 @@ public class BeiSenService {
log
.
info
(
"北森员工信息为空"
);
continue
;
}
insertOrUpdateInfo
(
employeeInfo
,
recordInfo
,
dataSource
.
getResult
());
insertOrUpdateInfo
(
employeeInfo
,
recordInfo
,
dataSource
.
getResult
()
,
dataSource1
.
getResult
()
);
}
}
@Transactional
private
void
insertOrUpdateInfo
(
EmployeeInfo
employeeInfo
,
EmploymentRecord
recordInfo
,
DataSourceResponseDTO
dataSource
)
{
DataSourceResponseDTO
dataSource
,
DataSourceResponseDTO
dataSource1
)
{
BeisenEmployeeInfo
beisenEmployeeInfo
=
beisenEmployeeInfoMapper
.
findByUserId
(
employeeInfo
.
getUserID
());
BeisenEmployeeInfo
beisenEmployeeInfonew
=
new
BeisenEmployeeInfo
();
...
...
@@ -713,6 +728,8 @@ public class BeiSenService {
Date
entryDate
=
recordInfo
.
getEntryDate
();
beisenEmployeeInfonew
.
setEntryDate
(
entryDate
);
Map
<
String
,
String
>
translateProperties
=
recordInfo
.
getTranslateProperties
();
Map
<
String
,
String
>
customProperties
=
recordInfo
.
getCustomProperties
();
if
(
translateProperties
.
isEmpty
())
{
log
.
info
(
"北森员工{},translateProperties信息空"
,
employeeInfo
.
get_Name
());
}
...
...
@@ -722,6 +739,30 @@ public class BeiSenService {
}
else
{
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
();
if
(
"8"
.
equals
(
employeeStatus
))
{
Date
lastWorkDate
=
recordInfo
.
getLastWorkDate
();
...
...
@@ -744,6 +785,19 @@ public class BeiSenService {
}
else
{
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
.
setOIdJobPostId
(
recordInfo
.
getOIdJobPost
());
if
(
beisenEmployeeInfo
==
null
)
{
...
...
@@ -752,4 +806,16 @@ public class BeiSenService {
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
());
}
}
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/MerchantService.java
View file @
4e209c7
...
...
@@ -14,6 +14,7 @@ import cn.com.glsx.merchants.config.SystemProperty;
import
cn.com.glsx.merchants.contants.Constants
;
import
cn.com.glsx.merchants.dto.MerchantBrandDTO
;
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.entity.*
;
import
cn.com.glsx.merchants.enums.*
;
...
...
@@ -497,7 +498,7 @@ public class MerchantService {
*
* @param merchantRequest
*/
@BeiSenNotice
(
type
=
AccountEventSyncBeiSenEnum
.
UPDATE_ACCOUNT_YQ_MERCHANT
,
description
=
"更新商户"
)
@BeiSenNotice
(
type
=
AccountEventSyncBeiSenEnum
.
UPDATE_ACCOUNT_YQ_MERCHANT
,
description
=
"更新商户"
)
@Transactional
(
rollbackFor
=
RpcServiceException
.
class
)
public
String
updateMerchant
(
MerchantRequest
merchantRequest
)
{
Merchant
merchant
=
new
Merchant
();
...
...
@@ -2549,8 +2550,8 @@ public class MerchantService {
&&
StringUtils
.
isEmpty
(
request
.
getMerchantName
())
&&
CollectionUtils
.
isEmpty
(
request
.
getBrandRequestList
())
&&
CollectionUtils
.
isEmpty
(
request
.
getProvinceNameList
())
&&
CollectionUtils
.
isEmpty
(
request
.
getCityNameList
())){
throw
new
RpcServiceException
(
DefaultErrorEnum
.
PARAMETER_NULL
,
"商户号、商户名称、品牌信息、区域不能同时为空"
);
&&
CollectionUtils
.
isEmpty
(
request
.
getCityNameList
()))
{
throw
new
RpcServiceException
(
DefaultErrorEnum
.
PARAMETER_NULL
,
"商户号、商户名称、品牌信息、区域不能同时为空"
);
}
Page
<
MerchantBasicInfoListResponse
>
merchantList
=
new
Page
<>();
...
...
@@ -2739,26 +2740,26 @@ public class MerchantService {
}
public
List
<
MerchantSimpleResponse
>
findMerchantListByBrandIds
(
CarBrandRequestDTO
requestDTO
)
{
if
(
CollectionUtils
.
isEmpty
(
requestDTO
.
getFirstBrandIdList
())
&&
CollectionUtils
.
isEmpty
(
requestDTO
.
getSecBrandIdList
()))
{
throw
new
RpcServiceException
(
DefaultErrorEnum
.
PARAMETER_NULL
,
"参数不能为空!"
);
if
(
CollectionUtils
.
isEmpty
(
requestDTO
.
getFirstBrandIdList
())
&&
CollectionUtils
.
isEmpty
(
requestDTO
.
getSecBrandIdList
()))
{
throw
new
RpcServiceException
(
DefaultErrorEnum
.
PARAMETER_NULL
,
"参数不能为空!"
);
}
try
{
return
merchantMapper
.
findMerchantListByBrandIds
(
requestDTO
);
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
throw
new
RpcServiceException
(
DefaultErrorEnum
.
DATABASE_ERROR
,
"查询商户失败!"
);
log
.
error
(
e
.
getMessage
(),
e
);
throw
new
RpcServiceException
(
DefaultErrorEnum
.
DATABASE_ERROR
,
"查询商户失败!"
);
}
}
public
List
<
MerchantSimpleResponse
>
findMerchantListByBrandIds2
(
CarBrandRequestDTO
requestDTO
)
{
if
(
CollectionUtils
.
isEmpty
(
requestDTO
.
getFirstBrandIdList
())
&&
CollectionUtils
.
isEmpty
(
requestDTO
.
getSecBrandIdList
()))
{
throw
new
RpcServiceException
(
DefaultErrorEnum
.
PARAMETER_NULL
,
"一级二级品牌参数不能都为空!"
);
if
(
CollectionUtils
.
isEmpty
(
requestDTO
.
getFirstBrandIdList
())
&&
CollectionUtils
.
isEmpty
(
requestDTO
.
getSecBrandIdList
()))
{
throw
new
RpcServiceException
(
DefaultErrorEnum
.
PARAMETER_NULL
,
"一级二级品牌参数不能都为空!"
);
}
try
{
return
merchantMapper
.
findMerchantListByBrandIds2
(
requestDTO
);
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
throw
new
RpcServiceException
(
DefaultErrorEnum
.
DATABASE_ERROR
,
"查询商户失败!"
);
log
.
error
(
e
.
getMessage
(),
e
);
throw
new
RpcServiceException
(
DefaultErrorEnum
.
DATABASE_ERROR
,
"查询商户失败!"
);
}
}
...
...
@@ -2775,10 +2776,11 @@ public class MerchantService {
/**
* 查询系统中存在的手机号
* @author yangwei
* @since 2025/10/24 10:51
*
* @param phones 被校验的手机号列表
* @return java.util.List<java.lang.String> 存在于系统的手机号列表
* @author yangwei
* @since 2025/10/24 10:51
*/
public
List
<
String
>
qryPhoneInStaffList
(
List
<
String
>
phones
)
{
if
(
CollectionUtils
.
isEmpty
(
phones
))
{
...
...
@@ -2814,4 +2816,36 @@ public class MerchantService {
return
merchantNameDTO
;
}).
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
());
}
}
}
platform-merchants-container/src/main/resources/META-INF/orm/BeisenEmployeeInfoMapper.xml
View file @
4e209c7
...
...
@@ -90,6 +90,17 @@
<result
column=
"business_address"
jdbcType=
"LONGVARCHAR"
property=
"businessAddress"
/>
<result
column=
"oId_department_id"
jdbcType=
"INTEGER"
property=
"oIdDepartmentId"
/>
<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
id=
"DTOResultMap"
extends=
"BaseResultMap"
type=
"cn.com.glsx.merchants.dto.beisen.BeiSenEmployeeListResonseDTO"
>
</resultMap>
...
...
@@ -173,4 +184,14 @@
order by ${req.sortField} ${req.sortOrder}
</if>
</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>
platform-merchants-container/src/main/resources/META-INF/orm/MerchantMapper.xml
View file @
4e209c7
...
...
@@ -115,6 +115,21 @@
<result
column=
"created_source"
jdbcType=
"VARCHAR"
property=
"createdSource"
/>
<result
column=
"created_account"
jdbcType=
"VARCHAR"
property=
"createdAccount"
/>
</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"
>
<!--
WARNING - @mbg.generated
...
...
@@ -1279,4 +1294,46 @@
</if>
</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>
\ No newline at end of file
platform-merchants-container/src/test/java/cn/com/glsx/merchants/service/BeiSenServiceTest.java
View file @
4e209c7
...
...
@@ -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.aop.beisen.UpdateMerchantHandler
;
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.kafka.model.BeiSenNoticeModel
;
import
cn.com.glsx.merchants.model.request.*
;
...
...
@@ -162,4 +164,11 @@ public class BeiSenServiceTest {
public
void
syncBeiSenStaffInfo
(){
beiSenService
.
syncBeiSenStaffInfo
();
}
@Test
public
void
SyncZWBeiSenStaff
(){
List
<
BeisenEmployeeInfoDTO
>
beisenEmployeeInfos
=
beiSenService
.
selectByPhones
(
Arrays
.
asList
(
"15944445555"
,
"13714139064"
));
System
.
out
.
println
(
JSONObject
.
toJSONString
(
beisenEmployeeInfos
));
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment