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 0941138d
authored
Dec 15, 2025
by
张富康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
省份枚举
1 parent
292a41c5
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
16 deletions
platform-merchants-api/src/main/java/cn/com/glsx/merchants/model/response/MerchantProvinceDTO.java
platform-merchants-api/src/main/java/cn/com/glsx/merchants/model/response/MerchantSimpleResponse.java
platform-merchants-api/src/main/java/cn/com/glsx/merchants/remote/MerchantRemote.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/service/MerchantService.java
platform-merchants-container/src/main/resources/META-INF/orm/MerchantMapper.xml
platform-merchants-api/src/main/java/cn/com/glsx/merchants/model/response/MerchantProvinceDTO.java
View file @
0941138
...
@@ -15,10 +15,13 @@ public class MerchantProvinceDTO implements Serializable {
...
@@ -15,10 +15,13 @@ public class MerchantProvinceDTO implements Serializable {
private
String
provinceName
;
private
String
provinceName
;
@ApiModelProperty
(
notes
=
"省份code"
)
@ApiModelProperty
(
notes
=
"省份code"
)
private
String
provinceCode
;
private
Integer
provinceCode
;
@ApiModelProperty
(
notes
=
"商户id"
)
@ApiModelProperty
(
notes
=
"商户id"
)
private
Integer
merchantId
;
private
Integer
merchantId
;
@ApiModelProperty
(
notes
=
"商户名称"
)
private
String
merchantName
;
}
}
\ No newline at end of file
\ No newline at end of file
platform-merchants-api/src/main/java/cn/com/glsx/merchants/model/response/MerchantSimpleResponse.java
View file @
0941138
package
cn
.
com
.
glsx
.
merchants
.
model
.
response
;
package
cn
.
com
.
glsx
.
merchants
.
model
.
response
;
import
cn.com.glsx.merchants.dto.MerchantBrandDTO
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
@Data
@Data
public
class
MerchantSimpleResponse
implements
Serializable
{
public
class
MerchantSimpleResponse
implements
Serializable
{
...
@@ -18,10 +14,14 @@ public class MerchantSimpleResponse implements Serializable {
...
@@ -18,10 +14,14 @@ public class MerchantSimpleResponse implements Serializable {
*/
*/
private
String
merchantName
;
private
String
merchantName
;
/**
/**
* 商户号
* 商户号
*/
*/
private
Integer
merchantNo
;
private
Integer
merchantNo
;
/**
* 省份id
*/
private
Integer
provinceId
;
}
}
\ No newline at end of file
\ No newline at end of file
platform-merchants-api/src/main/java/cn/com/glsx/merchants/remote/MerchantRemote.java
View file @
0941138
...
@@ -546,7 +546,7 @@ public interface MerchantRemote {
...
@@ -546,7 +546,7 @@ public interface MerchantRemote {
@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
<
Merchant
SimpleResponse
>>
findMerchantListByBrandIdsProvince
(
CarBrandProvinceRequestDTO
requestDTO
);
RpcResponse
<
List
<
Merchant
ProvinceDTO
>>
findMerchantListByBrandIdsProvince
(
CarBrandProvinceRequestDTO
requestDTO
);
RpcResponse
<
List
<
MerchantProvinceDTO
>>
findMerchantProvinceListByIds
(
List
<
Integer
>
merchantIds
);
RpcResponse
<
List
<
MerchantProvinceDTO
>>
findMerchantProvinceListByIds
(
List
<
Integer
>
merchantIds
);
}
}
platform-merchants-container/src/main/java/cn/com/glsx/merchants/mapper/MerchantMapper.java
View file @
0941138
...
@@ -173,7 +173,7 @@ public interface MerchantMapper extends CommonBaseMapper<Merchant> {
...
@@ -173,7 +173,7 @@ public interface MerchantMapper extends CommonBaseMapper<Merchant> {
List
<
MerchantBrandResponse
>
getBrand
(
Integer
merchantId
);
List
<
MerchantBrandResponse
>
getBrand
(
Integer
merchantId
);
List
<
Merchant
SimpleResponse
>
findMerchantListByBrandIdsProvince
(
CarBrandProvinceRequestDTO
requestDTO
);
List
<
Merchant
ProvinceDTO
>
findMerchantListByBrandIdsProvince
(
CarBrandProvinceRequestDTO
requestDTO
);
List
<
MerchantProvinceDTO
>
findMerchantProvinceListByIds
(
@Param
(
"merchantIds"
)
List
<
Integer
>
merchantIds
);
List
<
MerchantProvinceDTO
>
findMerchantProvinceListByIds
(
@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 @
0941138
...
@@ -917,7 +917,7 @@ public class MerchantRemoteImpl implements MerchantRemote {
...
@@ -917,7 +917,7 @@ public class MerchantRemoteImpl implements MerchantRemote {
}
}
@Override
@Override
public
RpcResponse
<
List
<
Merchant
SimpleResponse
>>
findMerchantListByBrandIdsProvince
(
CarBrandProvinceRequestDTO
requestDTO
){
public
RpcResponse
<
List
<
Merchant
ProvinceDTO
>>
findMerchantListByBrandIdsProvince
(
CarBrandProvinceRequestDTO
requestDTO
){
try
{
try
{
return
RpcResponse
.
success
(
merchantService
.
findMerchantListByBrandIdsProvince
(
requestDTO
));
return
RpcResponse
.
success
(
merchantService
.
findMerchantListByBrandIdsProvince
(
requestDTO
));
}
catch
(
RpcServiceException
e
)
{
}
catch
(
RpcServiceException
e
)
{
...
...
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/MerchantService.java
View file @
0941138
...
@@ -2786,7 +2786,7 @@ public class MerchantService {
...
@@ -2786,7 +2786,7 @@ public class MerchantService {
return
merchantStaffMapper
.
qryPhoneInStaffList
(
phones
);
return
merchantStaffMapper
.
qryPhoneInStaffList
(
phones
);
}
}
public
List
<
Merchant
SimpleResponse
>
findMerchantListByBrandIdsProvince
(
CarBrandProvinceRequestDTO
requestDTO
)
{
public
List
<
Merchant
ProvinceDTO
>
findMerchantListByBrandIdsProvince
(
CarBrandProvinceRequestDTO
requestDTO
)
{
return
merchantMapper
.
findMerchantListByBrandIdsProvince
(
requestDTO
);
return
merchantMapper
.
findMerchantListByBrandIdsProvince
(
requestDTO
);
}
}
...
...
platform-merchants-container/src/main/resources/META-INF/orm/MerchantMapper.xml
View file @
0941138
...
@@ -1217,8 +1217,10 @@
...
@@ -1217,8 +1217,10 @@
</select>
</select>
<select
id=
"findMerchantListByBrandIdsProvince"
<select
id=
"findMerchantListByBrandIdsProvince"
resultType=
"cn.com.glsx.merchants.model.response.MerchantSimpleResponse"
>
resultType=
"cn.com.glsx.merchants.model.response.MerchantProvinceDTO"
>
SELECT DISTINCT pm.merchantNo as merchantNo, pm.merchant_name as merchantName
SELECT DISTINCT pm.merchantNo as merchantId,
pm.merchant_name as merchantName,
pm.province_code as provinceCode,
FROM platform_merchant pm
FROM platform_merchant pm
INNER JOIN platform_merchant_brand pmb
INNER JOIN platform_merchant_brand pmb
ON pm.merchantNo = pmb.merchant_id
ON pm.merchantNo = pmb.merchant_id
...
@@ -1241,7 +1243,8 @@
...
@@ -1241,7 +1243,8 @@
<select
id=
"findMerchantProvinceListByIds"
<select
id=
"findMerchantProvinceListByIds"
resultType=
"cn.com.glsx.merchants.model.response.MerchantProvinceDTO"
>
resultType=
"cn.com.glsx.merchants.model.response.MerchantProvinceDTO"
>
SELECT province_code provinceCode,province_name provinceName,merchantNo merchantId
SELECT province_code provinceCode,
merchantNo merchantId
FROM platform_merchant
FROM platform_merchant
WHERE del_flag = 0
WHERE del_flag = 0
<if
test=
"merchantIds != null and merchantIds.size() > 0"
>
<if
test=
"merchantIds != null and merchantIds.size() > 0"
>
...
...
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