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 f410eedf
authored
Feb 06, 2026
by
叶立庆
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v5.6.1' into 'master'
上线合并 See merge request
!10
2 parents
08ca81b7
437f0a5a
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
182 additions
and
12 deletions
platform-merchants-api/pom.xml
platform-merchants-api/src/main/java/cn/com/glsx/merchants/model/request/StaffBatchRequest.java
platform-merchants-api/src/main/java/cn/com/glsx/merchants/model/request/wechatbinding/MerchantStaffListRequest.java
platform-merchants-api/src/main/java/cn/com/glsx/merchants/model/response/MerchantBrandDTO.java
platform-merchants-api/src/main/java/cn/com/glsx/merchants/model/response/MerchantNameDTO.java
platform-merchants-api/src/main/java/cn/com/glsx/merchants/remote/MerchantRemote.java
platform-merchants-container/pom.xml
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/service/MerchantService.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/MerchantStaffService.java
platform-merchants-container/src/main/resources/META-INF/orm/MerchantMapper.xml
platform-merchants-container/src/main/resources/META-INF/orm/MerchantStaffMapper.xml
platform-merchants-api/pom.xml
View file @
f410eed
...
@@ -7,10 +7,11 @@
...
@@ -7,10 +7,11 @@
</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>
5.5.1-SNAPSHOT
</version>
<version>
${project.version}
</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>
...
@@ -30,7 +31,7 @@
...
@@ -30,7 +31,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.5.1-SNAPSHOT
</version>
<version>
${project.version}
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
</plugin>
</plugin>
...
...
platform-merchants-api/src/main/java/cn/com/glsx/merchants/model/request/StaffBatchRequest.java
View file @
f410eed
package
cn
.
com
.
glsx
.
merchants
.
model
.
request
;
package
cn
.
com
.
glsx
.
merchants
.
model
.
request
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.ToString
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.List
;
import
java.util.List
;
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ToString
public
class
StaffBatchRequest
extends
DefaultRequest
implements
Serializable
{
public
class
StaffBatchRequest
extends
DefaultRequest
implements
Serializable
{
/**
/**
...
@@ -13,6 +17,8 @@ public class StaffBatchRequest extends DefaultRequest implements Serializable {
...
@@ -13,6 +17,8 @@ public class StaffBatchRequest extends DefaultRequest implements Serializable {
*/
*/
public
List
<
Integer
>
staffIds
;
public
List
<
Integer
>
staffIds
;
public
String
staffUuid
;
public
String
staffPhone
;
public
String
staffPhone
;
public
String
merchantId
;
public
String
merchantId
;
...
...
platform-merchants-api/src/main/java/cn/com/glsx/merchants/model/request/wechatbinding/MerchantStaffListRequest.java
View file @
f410eed
...
@@ -19,4 +19,9 @@ public class MerchantStaffListRequest extends DefaultRequest implements Serializ
...
@@ -19,4 +19,9 @@ public class MerchantStaffListRequest extends DefaultRequest implements Serializ
*/
*/
private
List
<
Integer
>
merchantIds
;
private
List
<
Integer
>
merchantIds
;
/**
* 状态列表 0正常 -1删除 2禁用 (默认只查询正常数据)
*/
private
List
<
Integer
>
statusList
;
}
}
\ No newline at end of file
\ No newline at end of file
platform-merchants-api/src/main/java/cn/com/glsx/merchants/model/response/MerchantBrandDTO.java
0 → 100644
View file @
f410eed
package
cn
.
com
.
glsx
.
merchants
.
model
.
response
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @author yangwei
* @version 1.0
* @since 2026/01/19 16:00
*/
@Data
public
class
MerchantBrandDTO
implements
Serializable
{
/**
* 商户号
*/
private
Integer
merchantId
;
/**
* 一级品牌id
*/
private
Integer
firstBrandId
;
/**
* 二级品牌id
*/
private
Integer
secBrandId
;
}
platform-merchants-api/src/main/java/cn/com/glsx/merchants/model/response/MerchantNameDTO.java
0 → 100644
View file @
f410eed
package
cn
.
com
.
glsx
.
merchants
.
model
.
response
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @author yangwei
* @version 1.0
* @since 2026/01/19 16:00
*/
@Data
public
class
MerchantNameDTO
implements
Serializable
{
/**
* 商户号
*/
private
Integer
merchantId
;
/**
* 商户名称
*/
private
String
merchantName
;
}
platform-merchants-api/src/main/java/cn/com/glsx/merchants/remote/MerchantRemote.java
View file @
f410eed
...
@@ -543,10 +543,20 @@ public interface MerchantRemote {
...
@@ -543,10 +543,20 @@ public interface MerchantRemote {
@ApiResponse
(
"品牌"
)
@ApiResponse
(
"品牌"
)
RpcResponse
<
List
<
MerchantBrandResponse
>>
getBrand
(
Integer
merchantId
);
RpcResponse
<
List
<
MerchantBrandResponse
>>
getBrand
(
Integer
merchantId
);
@ApiMethod
(
"查询品牌列表"
)
@ApiParams
({
@ApiParam
(
name
=
"merchantId"
,
notes
=
"查询品牌列表"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)})
@ApiResponse
(
"品牌"
)
RpcResponse
<
List
<
MerchantBrandDTO
>>
getBrandByMerchantIds
(
List
<
Integer
>
merchantId
);
@ApiMethod
(
"根据一级品牌,省份id查询商户号列表"
)
@ApiMethod
(
"根据一级品牌,省份id查询商户号列表"
)
@ApiParams
({
@ApiParam
(
name
=
"requestDTO"
,
notes
=
"查询商户列表"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)})
@ApiParams
({
@ApiParam
(
name
=
"requestDTO"
,
notes
=
"查询商户列表"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)})
@ApiResponse
(
"查询商户列表(对外简化)"
)
@ApiResponse
(
"查询商户列表(对外简化)"
)
RpcResponse
<
List
<
MerchantProvinceDTO
>>
findMerchantListByBrandIdsProvince
(
CarBrandProvinceRequestDTO
requestDTO
);
RpcResponse
<
List
<
MerchantProvinceDTO
>>
findMerchantListByBrandIdsProvince
(
CarBrandProvinceRequestDTO
requestDTO
);
RpcResponse
<
List
<
MerchantProvinceDTO
>>
findMerchantProvinceListByIds
(
List
<
Integer
>
merchantIds
);
RpcResponse
<
List
<
MerchantProvinceDTO
>>
findMerchantProvinceListByIds
(
List
<
Integer
>
merchantIds
);
@ApiMethod
(
"查询商户名称"
)
@ApiParams
({
@ApiParam
(
name
=
"merchantId"
,
notes
=
"查询商户名称"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)})
@ApiResponse
(
"查询商户名称"
)
RpcResponse
<
List
<
MerchantNameDTO
>>
getMerchantNameByMerchantIds
(
List
<
Integer
>
merchantIds
);
}
}
platform-merchants-container/pom.xml
View file @
f410eed
...
@@ -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.
5
.1-SNAPSHOT
</version>
<version>
5.
6
.1-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.glsx
</groupId>
<groupId>
com.glsx
</groupId>
...
...
platform-merchants-container/src/main/java/cn/com/glsx/merchants/mapper/MerchantMapper.java
View file @
f410eed
...
@@ -176,4 +176,6 @@ public interface MerchantMapper extends CommonBaseMapper<Merchant> {
...
@@ -176,4 +176,6 @@ public interface MerchantMapper extends CommonBaseMapper<Merchant> {
List
<
MerchantProvinceDTO
>
findMerchantListByBrandIdsProvince
(
CarBrandProvinceRequestDTO
requestDTO
);
List
<
MerchantProvinceDTO
>
findMerchantListByBrandIdsProvince
(
CarBrandProvinceRequestDTO
requestDTO
);
List
<
MerchantProvinceDTO
>
findMerchantProvinceListByIds
(
@Param
(
"merchantIds"
)
List
<
Integer
>
merchantIds
);
List
<
MerchantProvinceDTO
>
findMerchantProvinceListByIds
(
@Param
(
"merchantIds"
)
List
<
Integer
>
merchantIds
);
List
<
MerchantBrandDTO
>
getBrandByMerchantIds
(
@Param
(
"merchantIds"
)
List
<
Integer
>
merchantIds
);
}
}
\ No newline at end of file
\ No newline at end of file
platform-merchants-container/src/main/java/cn/com/glsx/merchants/remote/MerchantRemoteImpl.java
View file @
f410eed
...
@@ -904,6 +904,19 @@ public class MerchantRemoteImpl implements MerchantRemote {
...
@@ -904,6 +904,19 @@ public class MerchantRemoteImpl implements MerchantRemote {
}
}
@Override
@Override
public
RpcResponse
<
List
<
MerchantBrandDTO
>>
getBrandByMerchantIds
(
List
<
Integer
>
merchantId
)
{
try
{
return
RpcResponse
.
success
(
merchantService
.
getBrandByMerchantIds
(
merchantId
));
}
catch
(
RpcServiceException
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
return
RpcResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"根据商户号列表查询品牌失败:"
,
e
);
return
RpcResponse
.
error
(
e
);
}
}
@Override
public
RpcResponse
<
List
<
String
>>
qryPhoneInStaffList
(
List
<
String
>
phones
)
{
public
RpcResponse
<
List
<
String
>>
qryPhoneInStaffList
(
List
<
String
>
phones
)
{
try
{
try
{
return
RpcResponse
.
success
(
merchantService
.
qryPhoneInStaffList
(
phones
));
return
RpcResponse
.
success
(
merchantService
.
qryPhoneInStaffList
(
phones
));
...
@@ -935,4 +948,24 @@ public class MerchantRemoteImpl implements MerchantRemote {
...
@@ -935,4 +948,24 @@ public class MerchantRemoteImpl implements MerchantRemote {
return
RpcResponse
.
error
(
e
);
return
RpcResponse
.
error
(
e
);
}
}
}
}
/**
* 查询商户名称
* @author yangwei
* @since 2026/1/23 16:49
* @param merchantIds 商户id
* @return cn.com.glsx.framework.core.beans.rpc.RpcResponse<java.util.List<cn.com.glsx.merchants.model.response.MerchantNameDTO>>
*/
@Override
public
RpcResponse
<
List
<
MerchantNameDTO
>>
getMerchantNameByMerchantIds
(
List
<
Integer
>
merchantIds
)
{
try
{
return
RpcResponse
.
success
(
merchantService
.
getMerchantNameByMerchantIds
(
merchantIds
));
}
catch
(
RpcServiceException
e
)
{
log
.
error
(
"查询商户名称失败"
,
e
);
return
RpcResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"查询商户名称失败:"
,
e
);
return
RpcResponse
.
error
(
e
);
}
}
}
}
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/MerchantService.java
View file @
f410eed
...
@@ -61,6 +61,7 @@ import org.springframework.http.*;
...
@@ -61,6 +61,7 @@ import org.springframework.http.*;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
import
tk.mybatis.mapper.entity.Example
;
import
java.io.ByteArrayInputStream
;
import
java.io.ByteArrayInputStream
;
import
java.io.ByteArrayOutputStream
;
import
java.io.ByteArrayOutputStream
;
...
@@ -2793,4 +2794,24 @@ public class MerchantService {
...
@@ -2793,4 +2794,24 @@ public class MerchantService {
public
List
<
MerchantProvinceDTO
>
findMerchantProvinceListByIds
(
List
<
Integer
>
merchantIds
)
{
public
List
<
MerchantProvinceDTO
>
findMerchantProvinceListByIds
(
List
<
Integer
>
merchantIds
)
{
return
merchantMapper
.
findMerchantProvinceListByIds
(
merchantIds
);
return
merchantMapper
.
findMerchantProvinceListByIds
(
merchantIds
);
}
}
public
List
<
cn
.
com
.
glsx
.
merchants
.
model
.
response
.
MerchantBrandDTO
>
getBrandByMerchantIds
(
List
<
Integer
>
merchantId
)
{
return
merchantMapper
.
getBrandByMerchantIds
(
merchantId
);
}
public
List
<
MerchantNameDTO
>
getMerchantNameByMerchantIds
(
List
<
Integer
>
merchantIds
)
{
Example
example
=
new
Example
(
Merchant
.
class
);
example
.
createCriteria
()
.
andIn
(
"merchantNo"
,
merchantIds
);
return
Optional
.
ofNullable
(
merchantMapper
.
selectByExample
(
example
))
.
orElseGet
(
ArrayList:
:
new
)
.
stream
()
.
map
(
element
->
{
MerchantNameDTO
merchantNameDTO
=
new
MerchantNameDTO
();
merchantNameDTO
.
setMerchantId
(
element
.
getMerchantNo
());
merchantNameDTO
.
setMerchantName
(
element
.
getMerchantName
());
return
merchantNameDTO
;
}).
collect
(
Collectors
.
toList
());
}
}
}
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/MerchantStaffService.java
View file @
f410eed
...
@@ -721,29 +721,33 @@ public class MerchantStaffService {
...
@@ -721,29 +721,33 @@ public class MerchantStaffService {
* @return
* @return
*/
*/
public
String
saveOrUpdateStaff
(
MerchantStaffRequest
merchantRequest
)
{
public
String
saveOrUpdateStaff
(
MerchantStaffRequest
merchantRequest
)
{
RpcAssert
.
assertNotNull
(
merchantRequest
.
getMerchantNo
(),
DefaultErrorEnum
.
SERVICE_ERROR
,
"商户号不能为空"
);
String
loginAccount
=
StringUtils
.
isBlank
(
merchantRequest
.
getLoginAccount
())
?
merchantRequest
.
getStaffPhone
()
:
merchantRequest
.
getLoginAccount
();
String
loginAccount
=
StringUtils
.
isBlank
(
merchantRequest
.
getLoginAccount
())
?
merchantRequest
.
getStaffPhone
()
:
merchantRequest
.
getLoginAccount
();
MerchantUserResponse
byAccount
=
merchantUserService
.
findByAccount
(
new
MerchantLogin
(
loginAccount
,
merchantRequest
.
getMerchant
Id
(),
Constants
.
STAFF_USER
));
MerchantUserResponse
byAccount
=
merchantUserService
.
findByAccount
(
new
MerchantLogin
(
loginAccount
,
merchantRequest
.
getMerchant
No
(),
Constants
.
STAFF_USER
));
String
uuid
;
String
uuid
;
if
(
byAccount
!=
null
&&
byAccount
.
getBussinessId
()
!=
null
)
{
if
(
byAccount
!=
null
&&
byAccount
.
getBussinessId
()
!=
null
)
{
uuid
=
byAccount
.
getUuid
();
uuid
=
byAccount
.
getUuid
();
merchantRequest
.
setId
(
byAccount
.
getBussinessId
());
merchantRequest
.
setId
(
byAccount
.
getBussinessId
());
updateMerchantStaff
(
merchantRequest
);
thiz
.
updateMerchantStaff
(
merchantRequest
);
if
(
merchantRequest
.
getPassword
()
!=
null
)
{
if
(
merchantRequest
.
getPassword
()
!=
null
)
{
merchantUserService
.
updateOpenUser
(
new
MerchantLogin
(
Constants
.
STAFF_USER
,
merchantRequest
.
getPassword
(),
merchantRequest
.
getId
(),
merchantRequest
.
getMesVerifyFlag
()));
merchantUserService
.
updateOpenUser
(
new
MerchantLogin
(
Constants
.
STAFF_USER
,
merchantRequest
.
getPassword
(),
merchantRequest
.
getId
(),
merchantRequest
.
getMesVerifyFlag
()));
}
}
}
else
{
}
else
{
uuid
=
saveMerchantStaff
(
merchantRequest
);
uuid
=
thiz
.
saveMerchantStaff
(
merchantRequest
);
}
}
return
uuid
;
return
uuid
;
}
}
/**
* 其他系统传递的merchantId非主键id,这里进行转化
*/
public
void
parseMerchantNo
(
MerchantStaffRequest
merchantRequest
)
{
public
void
parseMerchantNo
(
MerchantStaffRequest
merchantRequest
)
{
if
(
merchantRequest
.
getMerchantId
()
!=
null
)
{
RpcAssert
.
assertNotNull
(
merchantRequest
.
getMerchantId
(),
DefaultErrorEnum
.
SERVICE_ERROR
,
"商户id不能为空"
);
List
<
MerchantResponse
>
byMerchantNo
=
merchantService
.
findByMerchantNo
(
merchantRequest
.
getMerchantId
()
+
""
);
List
<
MerchantResponse
>
byMerchantNo
=
merchantService
.
findByMerchantNo
(
merchantRequest
.
getMerchantId
()
+
""
);
RpcAssert
.
assertNotEmpty
(
byMerchantNo
,
DefaultErrorEnum
.
DATA_INVALID
,
merchantRequest
.
getMerchantId
()
+
"商户号不存在"
);
RpcAssert
.
assertNotEmpty
(
byMerchantNo
,
DefaultErrorEnum
.
DATA_INVALID
,
merchantRequest
.
getMerchantId
()
+
"商户号不存在"
);
merchantRequest
.
setMerchantId
(
byMerchantNo
.
get
(
0
).
getId
());
merchantRequest
.
setMerchantId
(
byMerchantNo
.
get
(
0
).
getId
());
merchantRequest
.
setVisibleInferiorMer
(
byMerchantNo
.
get
(
0
).
getId
()
+
""
);
merchantRequest
.
setVisibleInferiorMer
(
byMerchantNo
.
get
(
0
).
getId
()
+
""
);
}
merchantRequest
.
setMerchantNo
(
byMerchantNo
.
get
(
0
).
getMerchantNo
());
}
}
@BeiSenNotice
(
type
=
AccountEventSyncBeiSenEnum
.
UPDATE_ACCOUNT
,
description
=
"更新账户"
)
@BeiSenNotice
(
type
=
AccountEventSyncBeiSenEnum
.
UPDATE_ACCOUNT
,
description
=
"更新账户"
)
...
@@ -872,11 +876,20 @@ public class MerchantStaffService {
...
@@ -872,11 +876,20 @@ public class MerchantStaffService {
}
}
public
void
updateStaffStatusByPhone
(
StaffBatchRequest
staffBatchRequest
)
{
public
void
updateStaffStatusByPhone
(
StaffBatchRequest
staffBatchRequest
)
{
String
phone
=
staffBatchRequest
.
getStaffPhone
();
if
(
StringUtils
.
isBlank
(
staffBatchRequest
.
getStaffPhone
())
&&
StringUtils
.
isBlank
(
staffBatchRequest
.
getStaffUuid
()))
{
log
.
error
(
"参数错误, {}"
,
staffBatchRequest
);
throw
new
RpcServiceException
(
DefaultErrorEnum
.
SERVER_ERROR
,
"手机号或者编号为空"
);
}
Example
example
=
new
Example
(
MerchantStaff
.
class
);
Example
example
=
new
Example
(
MerchantStaff
.
class
);
Example
.
Criteria
criteria
=
example
.
createCriteria
();
Example
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andNotEqualTo
(
"delFlag"
,
-
1
).
andEqualTo
(
"staffPhone"
,
phone
);
criteria
.
andNotEqualTo
(
"delFlag"
,
-
1
);
if
(
StringUtils
.
isNotBlank
(
staffBatchRequest
.
getStaffPhone
())){
criteria
.
andEqualTo
(
"staffPhone"
,
staffBatchRequest
.
getStaffPhone
());
}
if
(
StringUtils
.
isNotBlank
(
staffBatchRequest
.
getStaffUuid
())){
criteria
.
andEqualTo
(
"staffUuid"
,
staffBatchRequest
.
getStaffUuid
());
}
if
(
StringUtils
.
isNotBlank
(
staffBatchRequest
.
getMerchantId
())){
if
(
StringUtils
.
isNotBlank
(
staffBatchRequest
.
getMerchantId
())){
Example
merchantExample
=
new
Example
(
Merchant
.
class
);
Example
merchantExample
=
new
Example
(
Merchant
.
class
);
merchantExample
.
createCriteria
().
andNotEqualTo
(
"delFlag"
,
-
1
).
andEqualTo
(
"merchantNo"
,
staffBatchRequest
.
getMerchantId
());
merchantExample
.
createCriteria
().
andNotEqualTo
(
"delFlag"
,
-
1
).
andEqualTo
(
"merchantNo"
,
staffBatchRequest
.
getMerchantId
());
...
@@ -888,7 +901,7 @@ public class MerchantStaffService {
...
@@ -888,7 +901,7 @@ public class MerchantStaffService {
List
<
MerchantStaff
>
staffList
=
merchantStaffMapper
.
selectByExample
(
example
);
List
<
MerchantStaff
>
staffList
=
merchantStaffMapper
.
selectByExample
(
example
);
RpcAssert
.
assertNotEmpty
(
staffList
,
DefaultErrorEnum
.
DATA_NULL
,
"手机号搜索不到员工"
);
RpcAssert
.
assertNotEmpty
(
staffList
,
DefaultErrorEnum
.
DATA_NULL
,
"手机号搜索不到员工"
);
staffBatchRequest
.
setStaffIds
(
staffList
.
stream
().
map
(
MerchantStaff:
:
getId
).
collect
(
Collectors
.
toList
()));
staffBatchRequest
.
setStaffIds
(
staffList
.
stream
().
map
(
MerchantStaff:
:
getId
).
collect
(
Collectors
.
toList
()));
log
.
info
(
"
[{}]查询到的员工信息:{}"
,
phone
,
staffBatchRequest
.
getStaffIds
()
);
log
.
info
(
"
查询到的员工信息:{}"
,
staffBatchRequest
);
thiz
.
updateStaffStatusBatch
(
staffBatchRequest
);
thiz
.
updateStaffStatusBatch
(
staffBatchRequest
);
}
}
...
...
platform-merchants-container/src/main/resources/META-INF/orm/MerchantMapper.xml
View file @
f410eed
...
@@ -1264,4 +1264,19 @@
...
@@ -1264,4 +1264,19 @@
</if>
</if>
</select>
</select>
<select
id=
"getBrandByMerchantIds"
resultType=
"cn.com.glsx.merchants.model.response.MerchantBrandDTO"
>
select
merchant_id as merchantId,
first_brand_id as firstBrandId,
sec_brand_id as secBrandId
from platform_merchant_brand
where del_flag = 0
<if
test=
"merchantIds != null and merchantIds.size() > 0"
>
AND merchant_id IN
<foreach
collection=
"merchantIds"
item=
"item"
separator=
","
index=
"index"
open=
"("
close=
")"
>
#{item}
</foreach>
</if>
</select>
</mapper>
</mapper>
\ No newline at end of file
\ No newline at end of file
platform-merchants-container/src/main/resources/META-INF/orm/MerchantStaffMapper.xml
View file @
f410eed
...
@@ -513,7 +513,16 @@
...
@@ -513,7 +513,16 @@
<foreach
collection=
"request.merchantIds"
open=
"("
close=
")"
separator=
","
item=
"merchantNo"
>
<foreach
collection=
"request.merchantIds"
open=
"("
close=
")"
separator=
","
item=
"merchantNo"
>
#{merchantNo}
#{merchantNo}
</foreach>
</foreach>
AND s.`del_flag` = 0 AND m.`del_flag`=0
AND m.`del_flag`=0
<if
test=
"request.statusList != null and request.statusList.size() > 0"
>
AND s.`del_flag` in
<foreach
collection=
"request.statusList"
open=
"("
close=
")"
separator=
","
item=
"status"
>
#{status}
</foreach>
</if>
<if
test=
"request.statusList == null or request.statusList.size() == 0"
>
AND s.`del_flag` = 0
</if>
</select>
</select>
<select
id=
"selectStaffListByMerchantIdAndStaffLabels"
resultMap=
"resultMap"
>
<select
id=
"selectStaffListByMerchantIdAndStaffLabels"
resultMap=
"resultMap"
>
SELECT s.* FROM `platform_merchant_staff` s LEFT JOIN `platform_merchant` m ON m.`id`=s.`merchant_id`
SELECT s.* FROM `platform_merchant_staff` s LEFT JOIN `platform_merchant` m ON m.`id`=s.`merchant_id`
...
...
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