Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-strategy
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 9a36a333
authored
May 27, 2026
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
区域运营小程序:门店列表接口、驻店列表接口、归属督导查询接口、发起带教申请接口
1 parent
9e25007b
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1111 additions
and
0 deletions
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/dto/ShopMerchantReqDTO.java
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/dto/ShopMerchantRespDTO.java
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/dto/ShopMerchantStaffReqDTO.java
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/dto/ShopMerchantStaffRespDTO.java
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/dto/ShopMerchantSupervisorReqDTO.java
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/dto/ShopMerchantSupervisorRespDTO.java
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/enums/UserPositionEnum.java
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/model/ServiceMerchant.java
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/model/ShopMerchantDirectorConfig.java
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/model/StaffAccountAssignRecord.java
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/remote/StrategyInfoRemote.java
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/mapper/ServiceMerchantMapper.java
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/mapper/ShopMerchantDirectorConfigMapper.java
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/mapper/StaffAccountAssignRecordMapper.java
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/remote/StrategyInfoRemoteImpl.java
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/ShopMerchantService.java
rpc-dj-strategy/src/main/resources/META-INF/orm/ServiceMerchantMapper.xml
rpc-dj-strategy/src/main/resources/META-INF/orm/ShopMerchantDirectorConfigMapper.xml
rpc-dj-strategy/src/main/resources/META-INF/orm/StaffAccountAssignRecordMapper.xml
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/dto/ShopMerchantReqDTO.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
dto
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
/**
* 查询区域运营关联门店请求
*/
@Data
public
class
ShopMerchantReqDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 区域运营手机号
*/
@NotBlank
(
message
=
"手机号不能为空"
)
private
String
phone
;
/**
* 门店名称(模糊查询)
*/
private
String
merchantName
;
}
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/dto/ShopMerchantRespDTO.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* 门店信息响应
*/
@Data
@ApiModel
(
"门店信息"
)
public
class
ShopMerchantRespDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 商户号
*/
@ApiModelProperty
(
notes
=
"商户号"
)
private
Integer
merchantId
;
/**
* 商户名称
*/
@ApiModelProperty
(
notes
=
"商户名称"
)
private
String
merchantName
;
}
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/dto/ShopMerchantStaffReqDTO.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
dto
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* 查询门店驻店员工请求
*/
@Data
public
class
ShopMerchantStaffReqDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 门店商户号
*/
@NotNull
(
message
=
"门店商户号不能为空"
)
private
Integer
merchantId
;
}
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/dto/ShopMerchantStaffRespDTO.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 门店驻店员工信息响应
*/
@Data
@ApiModel
(
"门店驻店员工信息"
)
public
class
ShopMerchantStaffRespDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 员工uuid
*/
@ApiModelProperty
(
notes
=
"员工uuid"
)
private
String
staffUuid
;
/**
* 驻店员工姓名
*/
@ApiModelProperty
(
notes
=
"驻店员工姓名"
)
private
String
staffName
;
/**
* 驻店员工手机号
*/
@ApiModelProperty
(
notes
=
"驻店员工手机号"
)
private
String
staffPhone
;
/**
* 职级类型(0:实习生(理论),1:实习生(实践),2:初级驻店,3:中级驻店,4:高级驻店,5:小店长,6:大店长,7:初级区域督导,8:中级区域督导,9:高级区域督导)
*/
@ApiModelProperty
(
notes
=
"职级类型"
)
private
Integer
jobType
;
/**
* 员工业务标签(多个用逗号分隔,0:权益+延保,1:轻改)
*/
@ApiModelProperty
(
notes
=
"员工业务标签"
)
private
String
staffSceneLabel
;
/**
* 初始归属门店商户号
*/
@ApiModelProperty
(
notes
=
"初始归属门店商户号"
)
private
Integer
merchantId
;
/**
* 初始归属门店商户名称
*/
@ApiModelProperty
(
notes
=
"初始归属门店商户名称"
)
private
String
merchantName
;
/**
* 归属园区店商户号
*/
@ApiModelProperty
(
notes
=
"归属园区店商户号"
)
private
Integer
yqMerchantId
;
/**
* 归属园区店商户名称
*/
@ApiModelProperty
(
notes
=
"归属园区店商户名称"
)
private
String
yqMerchantName
;
/**
* 驻店类型(1:门店常驻, 2:临时调动支援)
*/
@ApiModelProperty
(
notes
=
"驻店类型(1:门店常驻, 2:临时调动支援)"
)
private
Integer
stationType
;
/**
* 创建时间
*/
@ApiModelProperty
(
notes
=
"创建时间"
)
private
Date
createdDate
;
}
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/dto/ShopMerchantSupervisorReqDTO.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
dto
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* 查询门店区域督导(飞行督导)请求
*/
@Data
public
class
ShopMerchantSupervisorReqDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 门店商户号
*/
@NotNull
(
message
=
"门店商户号不能为空"
)
private
Integer
merchantId
;
/**
* 业务类型:1-延保,2-轻改,3-权益
*/
@NotNull
(
message
=
"业务类型不能为空"
)
private
Integer
businessType
;
}
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/dto/ShopMerchantSupervisorRespDTO.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* 门店区域督导(飞行督导)信息响应
*/
@Data
@ApiModel
(
"门店区域督导(飞行督导)信息"
)
public
class
ShopMerchantSupervisorRespDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 门店商户号
*/
@ApiModelProperty
(
notes
=
"门店商户号"
)
private
Integer
merchantId
;
/**
* 负责人类型(6:1.1飞行督导,13:2.1飞行督导)
*/
@ApiModelProperty
(
notes
=
"负责人类型(6:1.1飞行督导,13:2.1飞行督导)"
)
private
Integer
directorType
;
/**
* 负责人id
*/
@ApiModelProperty
(
notes
=
"负责人id"
)
private
String
directorUserId
;
/**
* 负责人姓名
*/
@ApiModelProperty
(
notes
=
"负责人姓名"
)
private
String
directorName
;
/**
* 负责人手机号
*/
@ApiModelProperty
(
notes
=
"负责人手机号"
)
private
String
directorPhone
;
}
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/enums/UserPositionEnum.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
enums
;
/**
* 岗位类型:0-驻店、6-飞行督导、8-1.1区域运营、9-2.1区域运营
*/
public
enum
UserPositionEnum
{
/**
* 驻店
*/
RESIDENT
(
0
,
"驻店"
),
/**
* 飞行督导
*/
FLIGHT_SUPERVISION
(
6
,
"飞行督导"
),
/**
* 1.1区域运营
*/
REGIONAL_OPERATION_1_1
(
8
,
"1.1区域运营"
),
/**
* 2.1区域运营
*/
REGIONAL_OPERATION_2_1
(
9
,
"2.1区域运营"
),
;
private
Integer
value
;
private
String
displayName
;
UserPositionEnum
(
Integer
value
,
String
displayName
)
{
this
.
value
=
value
;
this
.
displayName
=
displayName
;
}
public
Integer
getValue
()
{
return
value
;
}
public
String
getDisplayName
()
{
return
displayName
;
}
/**
* 根据 value 获取枚举
*/
public
static
UserPositionEnum
getByValue
(
Integer
value
)
{
if
(
value
==
null
)
{
return
null
;
}
for
(
UserPositionEnum
e
:
values
())
{
if
(
e
.
value
.
equals
(
value
))
{
return
e
;
}
}
return
null
;
}
}
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/model/ServiceMerchant.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
model
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
import
javax.persistence.*
;
/**
* 服务商户
*/
@Data
@Table
(
name
=
"dj_car_life_service_merchant"
)
public
class
ServiceMerchant
implements
Serializable
{
/**
* 主键ID
*/
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
/**
* 商户号
*/
@Column
(
name
=
"merchant_id"
)
private
Integer
merchantId
;
/**
* 商户名称
*/
@Column
(
name
=
"merchant_name"
)
private
String
merchantName
;
/**
* 商户简称
*/
@Column
(
name
=
"short_name"
)
private
String
shortName
;
/**
* 商户账号类型
*/
@Column
(
name
=
"user_type"
)
private
Integer
userType
;
/**
* 商户类型
*/
@Column
(
name
=
"merchant_type"
)
private
String
merchantType
;
/**
* 登录账号
*/
@Column
(
name
=
"account_name"
)
private
String
accountName
;
/**
* 联系人
*/
@Column
(
name
=
"contact_name"
)
private
String
contactName
;
/**
* 电话
*/
@Column
(
name
=
"phone"
)
private
String
phone
;
/**
* 详细地址
*/
@Column
(
name
=
"address"
)
private
String
address
;
/**
* 省份ID
*/
@Column
(
name
=
"province_id"
)
private
Integer
provinceId
;
/**
* 省份名称
*/
@Column
(
name
=
"province_name"
)
private
String
provinceName
;
/**
* 城市ID
*/
@Column
(
name
=
"city_id"
)
private
Integer
cityId
;
/**
* 城市名称
*/
@Column
(
name
=
"city_name"
)
private
String
cityName
;
/**
* 区县ID
*/
@Column
(
name
=
"area_id"
)
private
Integer
areaId
;
/**
* 区县名称
*/
@Column
(
name
=
"area_name"
)
private
String
areaName
;
/**
* 渠道 1-嘀加渠道 2-广汇渠道 8-直营渠道
*/
@Column
(
name
=
"channel_type"
)
private
Integer
channelType
;
/**
* 虚拟账户状态(1未申请,2审核中,3已生效,4失败)
*/
@Column
(
name
=
"account_status"
)
private
Integer
accountStatus
;
/**
* 创建人
*/
@Column
(
name
=
"created_by"
)
private
String
createdBy
;
/**
* 创建时间
*/
@Column
(
name
=
"created_date"
)
private
Date
createdDate
;
/**
* 修改人
*/
@Column
(
name
=
"updated_by"
)
private
String
updatedBy
;
/**
* 修改时间
*/
@Column
(
name
=
"updated_date"
)
private
Date
updatedDate
;
/**
* 删除标识(D:已删除;N:未删除)
*/
@Column
(
name
=
"deleted_flag"
)
private
String
deletedFlag
;
}
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/model/ShopMerchantDirectorConfig.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
model
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
import
javax.persistence.*
;
/**
* 4s店负责人配置表(不区分场景)
*/
@Data
@Table
(
name
=
"dj_car_life_shop_merchant_director_config"
)
public
class
ShopMerchantDirectorConfig
implements
Serializable
{
/**
* 主键ID
*/
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
/**
* 商户号
*/
@Column
(
name
=
"merchant_id"
)
private
Integer
merchantId
;
/**
* 负责人类型(1:精品升级业务负责人,2:精品升级业务服务商负责人,
* 3:会员权益业务负责人,4:会员权益业务服务商负责人,
* 5:1.1线上运营(原盯防负责人),6:1.1飞行督导,
* 7:2.1线上运营,8:1.1区域运营,9:2.1区域运营,
* 10:1.1业务归属,11:2.1业务归属,12:技师督导,13:2.1飞行督导)
*/
@Column
(
name
=
"director_type"
)
private
Integer
directorType
;
/**
* 负责人id
*/
@Column
(
name
=
"director_user_id"
)
private
String
directorUserId
;
/**
* 负责人姓名
*/
@Column
(
name
=
"director_name"
)
private
String
directorName
;
/**
* 负责人手机号
*/
@Column
(
name
=
"director_phone"
)
private
String
directorPhone
;
/**
* 创建人
*/
@Column
(
name
=
"created_by"
)
private
String
createdBy
;
/**
* 创建时间
*/
@Column
(
name
=
"created_date"
)
private
Date
createdDate
;
/**
* 修改人
*/
@Column
(
name
=
"updated_by"
)
private
String
updatedBy
;
/**
* 修改时间
*/
@Column
(
name
=
"updated_date"
)
private
Date
updatedDate
;
/**
* 删除标识(D:已删除;N:未删除)
*/
@Column
(
name
=
"deleted_flag"
)
private
String
deletedFlag
;
}
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/model/StaffAccountAssignRecord.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
model
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
import
javax.persistence.*
;
/**
* 员工账号信息记录(V2)
*/
@Data
@Table
(
name
=
"dj_car_life_staff_account_assign_record"
)
public
class
StaffAccountAssignRecord
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键ID
*/
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
/**
* 员工uuid
*/
@Column
(
name
=
"staff_uuid"
)
private
String
staffUuid
;
/**
* 驻店员工手机号
*/
@Column
(
name
=
"staff_phone"
)
private
String
staffPhone
;
/**
* 驻店员工姓名(关联查询字段,非本表字段)
*/
@Transient
private
String
staffName
;
/**
* 职级类型(0:实习生(理论),1:实习生(实践),2:初级驻店,3:中级驻店,4:高级驻店,5:小店长,6:大店长,7:初级区域督导,8:中级区域督导,9:高级区域督导)
*/
@Column
(
name
=
"job_type"
)
private
Integer
jobType
;
/**
* 员工业务标签(多个用逗号分隔,0:权益+延保,1:轻改)
*/
@Column
(
name
=
"staff_scene_label"
)
private
String
staffSceneLabel
;
/**
* 初始归属门店商户号
*/
@Column
(
name
=
"merchant_id"
)
private
Integer
merchantId
;
/**
* 初始归属门店商户名称
*/
@Column
(
name
=
"merchant_name"
)
private
String
merchantName
;
/**
* 归属园区店商户号
*/
@Column
(
name
=
"yq_merchant_id"
)
private
Integer
yqMerchantId
;
/**
* 归属园区店商户名称
*/
@Column
(
name
=
"yq_merchant_name"
)
private
String
yqMerchantName
;
/**
* 创建来源(1:账户中心,2:SCRM,3:生意助手,4:门店助手,5:D+,6:生意助手员工版小程序)
*/
@Column
(
name
=
"created_source"
)
private
Integer
createdSource
;
/**
* 创建人
*/
@Column
(
name
=
"created_by"
)
private
String
createdBy
;
/**
* 创建时间
*/
@Column
(
name
=
"created_date"
)
private
Date
createdDate
;
/**
* 修改人
*/
@Column
(
name
=
"updated_by"
)
private
String
updatedBy
;
/**
* 修改时间
*/
@Column
(
name
=
"updated_date"
)
private
Date
updatedDate
;
/**
* 驻店类型(1:门店常驻, 2:临时调动支援)
*/
@Column
(
name
=
"station_type"
)
private
Integer
stationType
;
/**
* 删除标识(D:已删除;N:未删除;I:禁用)
*/
@Column
(
name
=
"deleted_flag"
)
private
String
deletedFlag
;
}
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/remote/StrategyInfoRemote.java
View file @
9a36a33
...
@@ -60,4 +60,19 @@ public interface StrategyInfoRemote {
...
@@ -60,4 +60,19 @@ public interface StrategyInfoRemote {
@ApiParam
(
name
=
"merchantId"
,
notes
=
"查询条件"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiParam
(
name
=
"merchantId"
,
notes
=
"查询条件"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiResponse
(
"策略中心-门店分析-历史人员记录"
)
@ApiResponse
(
"策略中心-门店分析-历史人员记录"
)
RpcResponse
<
List
<
StaffHistoryRecordDTO
>>
listMerchantAnalysisEmployeeHistory
(
Integer
merchantId
,
Integer
bizs
);
RpcResponse
<
List
<
StaffHistoryRecordDTO
>>
listMerchantAnalysisEmployeeHistory
(
Integer
merchantId
,
Integer
bizs
);
@ApiMethod
(
"查询区域运营关联的门店列表"
)
@ApiParam
(
name
=
"pagination"
,
notes
=
"分页查询条件"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiResponse
(
"门店分页列表"
)
RpcResponse
<
RpcPagination
<
ShopMerchantRespDTO
>>
listShopMerchantByPhone
(
RpcPagination
<
ShopMerchantReqDTO
>
pagination
);
@ApiMethod
(
"分页查询门店驻店员工列表"
)
@ApiParam
(
name
=
"pagination"
,
notes
=
"分页查询条件"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiResponse
(
"驻店员工分页列表"
)
RpcResponse
<
RpcPagination
<
ShopMerchantStaffRespDTO
>>
listShopMerchantStaff
(
RpcPagination
<
ShopMerchantStaffReqDTO
>
pagination
);
@ApiMethod
(
"查询门店区域督导(飞行督导)信息"
)
@ApiParam
(
name
=
"request"
,
notes
=
"查询条件"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiResponse
(
"区域督导(飞行督导)信息"
)
RpcResponse
<
ShopMerchantSupervisorRespDTO
>
getShopMerchantSupervisor
(
ShopMerchantSupervisorReqDTO
request
);
}
}
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/mapper/ServiceMerchantMapper.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
mapper
;
import
cn.com.glsx.dj.strategy.model.ServiceMerchant
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.oreframework.datasource.mybatis.mapper.OreMapper
;
import
java.util.List
;
@Mapper
public
interface
ServiceMerchantMapper
extends
OreMapper
<
ServiceMerchant
>
{
/**
* 根据商户号列表和商户名称查询门店信息
*
* @param merchantIds 商户号列表
* @param merchantName 商户名称(模糊查询,可选)
* @return 门店信息列表
*/
List
<
ServiceMerchant
>
selectByMerchantIdsAndName
(
@Param
(
"merchantIds"
)
List
<
Integer
>
merchantIds
,
@Param
(
"merchantName"
)
String
merchantName
);
/**
* 根据区域运营手机号和门店名称关联查询门店列表
*
* @param phone 区域运营手机号
* @param directorTypes 负责人类型列表
* @param merchantName 门店名称(模糊查询,可选)
* @return 门店信息列表
*/
List
<
ServiceMerchant
>
selectByPhoneAndName
(
@Param
(
"phone"
)
String
phone
,
@Param
(
"directorTypes"
)
List
<
Integer
>
directorTypes
,
@Param
(
"merchantName"
)
String
merchantName
);
}
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/mapper/ShopMerchantDirectorConfigMapper.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
mapper
;
import
cn.com.glsx.dj.strategy.model.ShopMerchantDirectorConfig
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.oreframework.datasource.mybatis.mapper.OreMapper
;
import
java.util.List
;
@Mapper
public
interface
ShopMerchantDirectorConfigMapper
extends
OreMapper
<
ShopMerchantDirectorConfig
>
{
/**
* 根据手机号和负责人类型查询关联的商户号列表
*
* @param phone 手机号
* @param directorTypes 负责人类型列表
* @return 商户号列表
*/
List
<
Integer
>
selectMerchantIdsByPhone
(
@Param
(
"phone"
)
String
phone
,
@Param
(
"directorTypes"
)
List
<
Integer
>
directorTypes
);
/**
* 根据门店商户号和负责人类型查询负责人配置
*
* @param merchantId 门店商户号
* @param directorType 负责人类型
* @return 负责人配置列表
*/
List
<
ShopMerchantDirectorConfig
>
selectByMerchantIdAndType
(
@Param
(
"merchantId"
)
Integer
merchantId
,
@Param
(
"directorType"
)
Integer
directorType
);
}
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/mapper/StaffAccountAssignRecordMapper.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
mapper
;
import
cn.com.glsx.dj.strategy.model.StaffAccountAssignRecord
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.oreframework.datasource.mybatis.mapper.OreMapper
;
import
java.util.List
;
@Mapper
public
interface
StaffAccountAssignRecordMapper
extends
OreMapper
<
StaffAccountAssignRecord
>
{
/**
* 根据门店商户号分页查询驻店员工列表(排除禁用和删除的记录)
*
* @param merchantId 门店商户号
* @return 驻店员工列表
*/
List
<
StaffAccountAssignRecord
>
selectByMerchantId
(
@Param
(
"merchantId"
)
Integer
merchantId
);
}
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/remote/StrategyInfoRemoteImpl.java
View file @
9a36a33
...
@@ -4,6 +4,7 @@ import cn.com.glsx.dj.strategy.dto.*;
...
@@ -4,6 +4,7 @@ import cn.com.glsx.dj.strategy.dto.*;
import
cn.com.glsx.dj.strategy.model.LearningRecord
;
import
cn.com.glsx.dj.strategy.model.LearningRecord
;
import
cn.com.glsx.dj.strategy.model.StrategyInfo
;
import
cn.com.glsx.dj.strategy.model.StrategyInfo
;
import
cn.com.glsx.dj.strategy.service.LearningRecordService
;
import
cn.com.glsx.dj.strategy.service.LearningRecordService
;
import
cn.com.glsx.dj.strategy.service.ShopMerchantService
;
import
cn.com.glsx.dj.strategy.service.StrategyInfoService
;
import
cn.com.glsx.dj.strategy.service.StrategyInfoService
;
import
cn.com.glsx.dj.strategy.service.StrategyMerchantTimelineService
;
import
cn.com.glsx.dj.strategy.service.StrategyMerchantTimelineService
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
...
@@ -29,6 +30,9 @@ public class StrategyInfoRemoteImpl implements StrategyInfoRemote {
...
@@ -29,6 +30,9 @@ public class StrategyInfoRemoteImpl implements StrategyInfoRemote {
@Autowired
@Autowired
public
LearningRecordService
learningRecordService
;
public
LearningRecordService
learningRecordService
;
@Autowired
private
ShopMerchantService
shopMerchantService
;
@Override
@Override
...
@@ -163,4 +167,46 @@ public class StrategyInfoRemoteImpl implements StrategyInfoRemote {
...
@@ -163,4 +167,46 @@ public class StrategyInfoRemoteImpl implements StrategyInfoRemote {
return
RpcResponse
.
error
(
DefaultErrorEnum
.
SERVICE_ERROR
,
e
.
getMessage
());
return
RpcResponse
.
error
(
DefaultErrorEnum
.
SERVICE_ERROR
,
e
.
getMessage
());
}
}
}
}
@Override
public
RpcResponse
<
RpcPagination
<
ShopMerchantRespDTO
>>
listShopMerchantByPhone
(
RpcPagination
<
ShopMerchantReqDTO
>
pagination
)
{
try
{
Page
<
ShopMerchantRespDTO
>
page
=
shopMerchantService
.
listShopMerchantByPhone
(
pagination
);
return
RpcResponse
.
success
(
RpcPagination
.
copyPage
(
page
));
}
catch
(
RpcServiceException
e
)
{
log
.
error
(
"查询区域运营关联门店列表 occur RpcServiceException"
,
e
);
return
RpcResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"查询区域运营关联门店列表 occur Exception"
,
e
);
return
RpcResponse
.
error
(
e
);
}
}
@Override
public
RpcResponse
<
RpcPagination
<
ShopMerchantStaffRespDTO
>>
listShopMerchantStaff
(
RpcPagination
<
ShopMerchantStaffReqDTO
>
pagination
)
{
try
{
Page
<
ShopMerchantStaffRespDTO
>
page
=
shopMerchantService
.
listShopMerchantStaff
(
pagination
);
return
RpcResponse
.
success
(
RpcPagination
.
copyPage
(
page
));
}
catch
(
RpcServiceException
e
)
{
log
.
error
(
"分页查询门店驻店员工列表 occur RpcServiceException"
,
e
);
return
RpcResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"分页查询门店驻店员工列表 occur Exception"
,
e
);
return
RpcResponse
.
error
(
e
);
}
}
@Override
public
RpcResponse
<
ShopMerchantSupervisorRespDTO
>
getShopMerchantSupervisor
(
ShopMerchantSupervisorReqDTO
request
)
{
try
{
ShopMerchantSupervisorRespDTO
result
=
shopMerchantService
.
getShopMerchantSupervisor
(
request
);
return
RpcResponse
.
success
(
result
);
}
catch
(
RpcServiceException
e
)
{
log
.
error
(
"查询门店区域督导(飞行督导)信息 occur RpcServiceException"
,
e
);
return
RpcResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"查询门店区域督导(飞行督导)信息 occur Exception"
,
e
);
return
RpcResponse
.
error
(
e
);
}
}
}
}
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/ShopMerchantService.java
0 → 100644
View file @
9a36a33
package
cn
.
com
.
glsx
.
dj
.
strategy
.
service
;
import
cn.com.glsx.dj.strategy.dto.ShopMerchantReqDTO
;
import
cn.com.glsx.dj.strategy.dto.ShopMerchantRespDTO
;
import
cn.com.glsx.dj.strategy.dto.ShopMerchantStaffReqDTO
;
import
cn.com.glsx.dj.strategy.dto.ShopMerchantStaffRespDTO
;
import
cn.com.glsx.dj.strategy.dto.ShopMerchantSupervisorReqDTO
;
import
cn.com.glsx.dj.strategy.dto.ShopMerchantSupervisorRespDTO
;
import
cn.com.glsx.dj.strategy.mapper.ServiceMerchantMapper
;
import
cn.com.glsx.dj.strategy.mapper.ShopMerchantDirectorConfigMapper
;
import
cn.com.glsx.dj.strategy.mapper.StaffAccountAssignRecordMapper
;
import
cn.com.glsx.dj.strategy.model.ServiceMerchant
;
import
cn.com.glsx.dj.strategy.model.ShopMerchantDirectorConfig
;
import
cn.com.glsx.dj.strategy.model.StaffAccountAssignRecord
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Arrays
;
import
java.util.List
;
/**
* 门店查询服务
*/
@Slf4j
@Service
public
class
ShopMerchantService
{
/** 1.1区域运营 */
private
static
final
int
DIRECTOR_TYPE_1_1_REGION
=
8
;
/** 2.1区域运营 */
private
static
final
int
DIRECTOR_TYPE_2_1_REGION
=
9
;
/** 1.1飞行督导 */
private
static
final
int
DIRECTOR_TYPE_1_1_FLIGHT_SUPERVISION
=
6
;
/** 2.1飞行督导 */
private
static
final
int
DIRECTOR_TYPE_2_1_FLIGHT_SUPERVISION
=
13
;
/** 业务类型:1-延保 */
private
static
final
int
BUSINESS_TYPE_EXTENDED_WARRANTY
=
1
;
/** 业务类型:2-轻改 */
private
static
final
int
BUSINESS_TYPE_LIGHT_MODIFY
=
2
;
/** 业务类型:3-权益 */
private
static
final
int
BUSINESS_TYPE_RIGHTS
=
3
;
@Autowired
private
ServiceMerchantMapper
serviceMerchantMapper
;
@Autowired
private
StaffAccountAssignRecordMapper
staffAccountAssignRecordMapper
;
@Autowired
private
ShopMerchantDirectorConfigMapper
shopMerchantDirectorConfigMapper
;
/**
* 根据区域运营手机号分页查询关联的门店列表
*
* @param pagination 分页查询参数(手机号、门店名称)
* @return 分页门店列表
*/
public
Page
<
ShopMerchantRespDTO
>
listShopMerchantByPhone
(
RpcPagination
<
ShopMerchantReqDTO
>
pagination
)
{
ShopMerchantReqDTO
condition
=
pagination
.
getCondition
();
List
<
Integer
>
directorTypes
=
Arrays
.
asList
(
DIRECTOR_TYPE_1_1_REGION
,
DIRECTOR_TYPE_2_1_REGION
);
Page
<
ServiceMerchant
>
page
=
PageHelper
.
startPage
(
pagination
.
getPageNum
(),
pagination
.
getPageSize
());
serviceMerchantMapper
.
selectByPhoneAndName
(
condition
.
getPhone
(),
directorTypes
,
condition
.
getMerchantName
());
Page
<
ShopMerchantRespDTO
>
result
=
new
Page
<>(
page
.
getPageNum
(),
page
.
getPageSize
());
result
.
setTotal
(
page
.
getTotal
());
for
(
ServiceMerchant
merchant
:
page
.
getResult
())
{
ShopMerchantRespDTO
dto
=
new
ShopMerchantRespDTO
();
dto
.
setMerchantId
(
merchant
.
getMerchantId
());
dto
.
setMerchantName
(
merchant
.
getMerchantName
());
result
.
add
(
dto
);
}
return
result
;
}
/**
* 根据门店商户号分页查询驻店员工列表(不包含禁用、删除的员工)
*
* @param pagination 分页查询参数(门店商户号)
* @return 分页驻店员工列表
*/
public
Page
<
ShopMerchantStaffRespDTO
>
listShopMerchantStaff
(
RpcPagination
<
ShopMerchantStaffReqDTO
>
pagination
)
{
ShopMerchantStaffReqDTO
condition
=
pagination
.
getCondition
();
Page
<
StaffAccountAssignRecord
>
page
=
PageHelper
.
startPage
(
pagination
.
getPageNum
(),
pagination
.
getPageSize
());
staffAccountAssignRecordMapper
.
selectByMerchantId
(
condition
.
getMerchantId
());
Page
<
ShopMerchantStaffRespDTO
>
result
=
new
Page
<>(
page
.
getPageNum
(),
page
.
getPageSize
());
result
.
setTotal
(
page
.
getTotal
());
for
(
StaffAccountAssignRecord
record
:
page
.
getResult
())
{
ShopMerchantStaffRespDTO
dto
=
new
ShopMerchantStaffRespDTO
();
dto
.
setStaffUuid
(
record
.
getStaffUuid
());
dto
.
setStaffName
(
record
.
getStaffName
());
dto
.
setStaffPhone
(
record
.
getStaffPhone
());
dto
.
setJobType
(
record
.
getJobType
());
dto
.
setStaffSceneLabel
(
record
.
getStaffSceneLabel
());
dto
.
setMerchantId
(
record
.
getMerchantId
());
dto
.
setMerchantName
(
record
.
getMerchantName
());
dto
.
setYqMerchantId
(
record
.
getYqMerchantId
());
dto
.
setYqMerchantName
(
record
.
getYqMerchantName
());
dto
.
setStationType
(
record
.
getStationType
());
dto
.
setCreatedDate
(
record
.
getCreatedDate
());
result
.
add
(
dto
);
}
return
result
;
}
/**
* 根据门店商户号和业务类型查询区域督导(飞行督导)信息
* 业务类型映射规则:
* 1-延保 → 2.1飞行督导(directorType=13)
* 2-轻改 → 1.1飞行督导(directorType=6)
* 3-权益 → 2.1飞行督导(directorType=13)
*
* @param condition 查询条件(门店商户号、业务类型)
* @return 区域督导(飞行督导)信息,最多一条
*/
public
ShopMerchantSupervisorRespDTO
getShopMerchantSupervisor
(
ShopMerchantSupervisorReqDTO
condition
)
{
Integer
directorType
=
convertBusinessTypeToDirectorType
(
condition
.
getBusinessType
());
List
<
ShopMerchantDirectorConfig
>
list
=
shopMerchantDirectorConfigMapper
.
selectByMerchantIdAndType
(
condition
.
getMerchantId
(),
directorType
);
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
null
;
}
ShopMerchantDirectorConfig
config
=
list
.
get
(
0
);
ShopMerchantSupervisorRespDTO
dto
=
new
ShopMerchantSupervisorRespDTO
();
dto
.
setMerchantId
(
config
.
getMerchantId
());
dto
.
setDirectorType
(
config
.
getDirectorType
());
dto
.
setDirectorUserId
(
config
.
getDirectorUserId
());
dto
.
setDirectorName
(
config
.
getDirectorName
());
dto
.
setDirectorPhone
(
config
.
getDirectorPhone
());
return
dto
;
}
/**
* 业务类型 → 飞行督导 director_type 映射
*/
private
Integer
convertBusinessTypeToDirectorType
(
Integer
businessType
)
{
if
(
businessType
==
null
)
{
throw
new
RpcServiceException
(
"业务类型不能为空"
);
}
switch
(
businessType
)
{
case
BUSINESS_TYPE_LIGHT_MODIFY:
return
DIRECTOR_TYPE_1_1_FLIGHT_SUPERVISION
;
case
BUSINESS_TYPE_EXTENDED_WARRANTY:
case
BUSINESS_TYPE_RIGHTS:
return
DIRECTOR_TYPE_2_1_FLIGHT_SUPERVISION
;
default
:
throw
new
RpcServiceException
(
"非法的业务类型: "
+
businessType
);
}
}
}
rpc-dj-strategy/src/main/resources/META-INF/orm/ServiceMerchantMapper.xml
0 → 100644
View file @
9a36a33
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"cn.com.glsx.dj.strategy.mapper.ServiceMerchantMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.dj.strategy.model.ServiceMerchant"
>
<id
column=
"id"
property=
"id"
jdbcType=
"INTEGER"
/>
<result
column=
"merchant_id"
property=
"merchantId"
jdbcType=
"INTEGER"
/>
<result
column=
"merchant_name"
property=
"merchantName"
jdbcType=
"VARCHAR"
/>
<result
column=
"short_name"
property=
"shortName"
jdbcType=
"VARCHAR"
/>
<result
column=
"user_type"
property=
"userType"
jdbcType=
"INTEGER"
/>
<result
column=
"merchant_type"
property=
"merchantType"
jdbcType=
"VARCHAR"
/>
<result
column=
"account_name"
property=
"accountName"
jdbcType=
"VARCHAR"
/>
<result
column=
"contact_name"
property=
"contactName"
jdbcType=
"VARCHAR"
/>
<result
column=
"phone"
property=
"phone"
jdbcType=
"VARCHAR"
/>
<result
column=
"address"
property=
"address"
jdbcType=
"VARCHAR"
/>
<result
column=
"province_id"
property=
"provinceId"
jdbcType=
"INTEGER"
/>
<result
column=
"province_name"
property=
"provinceName"
jdbcType=
"VARCHAR"
/>
<result
column=
"city_id"
property=
"cityId"
jdbcType=
"INTEGER"
/>
<result
column=
"city_name"
property=
"cityName"
jdbcType=
"VARCHAR"
/>
<result
column=
"area_id"
property=
"areaId"
jdbcType=
"INTEGER"
/>
<result
column=
"area_name"
property=
"areaName"
jdbcType=
"VARCHAR"
/>
<result
column=
"channel_type"
property=
"channelType"
jdbcType=
"INTEGER"
/>
<result
column=
"account_status"
property=
"accountStatus"
jdbcType=
"TINYINT"
/>
<result
column=
"created_by"
property=
"createdBy"
jdbcType=
"VARCHAR"
/>
<result
column=
"created_date"
property=
"createdDate"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"updated_by"
property=
"updatedBy"
jdbcType=
"VARCHAR"
/>
<result
column=
"updated_date"
property=
"updatedDate"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"deleted_flag"
property=
"deletedFlag"
jdbcType=
"CHAR"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, merchant_id, merchant_name, short_name, user_type, merchant_type, account_name,
contact_name, phone, address, province_id, province_name, city_id, city_name,
area_id, area_name, channel_type, account_status,
created_by, created_date, updated_by, updated_date, deleted_flag
</sql>
<select
id=
"selectByMerchantIdsAndName"
resultMap=
"BaseResultMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM dj_car_life_service_merchant
WHERE deleted_flag = 'N'
AND merchant_id IN
<foreach
item=
"merchantId"
index=
"index"
collection=
"merchantIds"
open=
"("
separator=
","
close=
")"
>
#{merchantId}
</foreach>
<if
test=
"merchantName != null and merchantName != ''"
>
AND merchant_name LIKE CONCAT('%', #{merchantName}, '%')
</if>
ORDER BY merchant_id
</select>
<select
id=
"selectByPhoneAndName"
resultMap=
"BaseResultMap"
>
SELECT DISTINCT sm.id, sm.merchant_id, sm.merchant_name, sm.short_name, sm.user_type,
sm.merchant_type, sm.account_name, sm.contact_name, sm.phone, sm.address,
sm.province_id, sm.province_name, sm.city_id, sm.city_name, sm.area_id, sm.area_name,
sm.channel_type, sm.account_status, sm.created_by, sm.created_date,
sm.updated_by, sm.updated_date, sm.deleted_flag
FROM dj_car_life_service_merchant sm
INNER JOIN dj_car_life_shop_merchant_director_config sdc
ON sm.merchant_id = sdc.merchant_id
WHERE sm.deleted_flag = 'N'
AND sdc.deleted_flag = 'N'
AND sdc.director_phone = #{phone}
AND sdc.director_type IN
<foreach
item=
"type"
index=
"index"
collection=
"directorTypes"
open=
"("
separator=
","
close=
")"
>
#{type}
</foreach>
<if
test=
"merchantName != null and merchantName != ''"
>
AND sm.merchant_name LIKE CONCAT('%', #{merchantName}, '%')
</if>
ORDER BY sm.merchant_id
</select>
</mapper>
rpc-dj-strategy/src/main/resources/META-INF/orm/ShopMerchantDirectorConfigMapper.xml
0 → 100644
View file @
9a36a33
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"cn.com.glsx.dj.strategy.mapper.ShopMerchantDirectorConfigMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.dj.strategy.model.ShopMerchantDirectorConfig"
>
<id
column=
"id"
property=
"id"
jdbcType=
"INTEGER"
/>
<result
column=
"merchant_id"
property=
"merchantId"
jdbcType=
"INTEGER"
/>
<result
column=
"director_type"
property=
"directorType"
jdbcType=
"TINYINT"
/>
<result
column=
"director_user_id"
property=
"directorUserId"
jdbcType=
"VARCHAR"
/>
<result
column=
"director_name"
property=
"directorName"
jdbcType=
"VARCHAR"
/>
<result
column=
"director_phone"
property=
"directorPhone"
jdbcType=
"VARCHAR"
/>
<result
column=
"created_by"
property=
"createdBy"
jdbcType=
"VARCHAR"
/>
<result
column=
"created_date"
property=
"createdDate"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"updated_by"
property=
"updatedBy"
jdbcType=
"VARCHAR"
/>
<result
column=
"updated_date"
property=
"updatedDate"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"deleted_flag"
property=
"deletedFlag"
jdbcType=
"CHAR"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, merchant_id, director_type, director_user_id, director_name, director_phone,
created_by, created_date, updated_by, updated_date, deleted_flag
</sql>
<select
id=
"selectMerchantIdsByPhone"
resultType=
"java.lang.Integer"
>
SELECT DISTINCT merchant_id
FROM dj_car_life_shop_merchant_director_config
WHERE deleted_flag = 'N'
AND director_phone = #{phone}
AND director_type IN
<foreach
item=
"type"
index=
"index"
collection=
"directorTypes"
open=
"("
separator=
","
close=
")"
>
#{type}
</foreach>
</select>
<select
id=
"selectByMerchantIdAndType"
resultMap=
"BaseResultMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM dj_car_life_shop_merchant_director_config
WHERE deleted_flag = 'N'
AND merchant_id = #{merchantId}
AND director_type = #{directorType}
ORDER BY id DESC
</select>
</mapper>
rpc-dj-strategy/src/main/resources/META-INF/orm/StaffAccountAssignRecordMapper.xml
0 → 100644
View file @
9a36a33
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"cn.com.glsx.dj.strategy.mapper.StaffAccountAssignRecordMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.dj.strategy.model.StaffAccountAssignRecord"
>
<id
column=
"id"
property=
"id"
jdbcType=
"INTEGER"
/>
<result
column=
"staff_uuid"
property=
"staffUuid"
jdbcType=
"VARCHAR"
/>
<result
column=
"staff_phone"
property=
"staffPhone"
jdbcType=
"VARCHAR"
/>
<result
column=
"staff_name"
property=
"staffName"
jdbcType=
"VARCHAR"
/>
<result
column=
"job_type"
property=
"jobType"
jdbcType=
"TINYINT"
/>
<result
column=
"staff_scene_label"
property=
"staffSceneLabel"
jdbcType=
"VARCHAR"
/>
<result
column=
"merchant_id"
property=
"merchantId"
jdbcType=
"INTEGER"
/>
<result
column=
"merchant_name"
property=
"merchantName"
jdbcType=
"VARCHAR"
/>
<result
column=
"yq_merchant_id"
property=
"yqMerchantId"
jdbcType=
"INTEGER"
/>
<result
column=
"yq_merchant_name"
property=
"yqMerchantName"
jdbcType=
"VARCHAR"
/>
<result
column=
"created_source"
property=
"createdSource"
jdbcType=
"TINYINT"
/>
<result
column=
"created_by"
property=
"createdBy"
jdbcType=
"VARCHAR"
/>
<result
column=
"created_date"
property=
"createdDate"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"updated_by"
property=
"updatedBy"
jdbcType=
"VARCHAR"
/>
<result
column=
"updated_date"
property=
"updatedDate"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"station_type"
property=
"stationType"
jdbcType=
"TINYINT"
/>
<result
column=
"deleted_flag"
property=
"deletedFlag"
jdbcType=
"CHAR"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, staff_uuid, staff_phone, job_type, staff_scene_label,
merchant_id, merchant_name, yq_merchant_id, yq_merchant_name,
created_source, created_by, created_date, updated_by, updated_date,
station_type, deleted_flag
</sql>
<select
id=
"selectByMerchantId"
resultMap=
"BaseResultMap"
>
SELECT
ar.id, ar.staff_uuid, ar.staff_phone, ar.job_type, ar.staff_scene_label,
ar.merchant_id, ar.merchant_name, ar.yq_merchant_id, ar.yq_merchant_name,
ar.created_source, ar.created_by, ar.created_date, ar.updated_by, ar.updated_date,
ar.station_type, ar.deleted_flag,
bi.staff_name
FROM dj_car_life_staff_account_assign_record ar
LEFT JOIN dj_car_life_staff_base_info bi ON ar.staff_phone = bi.staff_phone AND bi.deleted_flag = 'N'
WHERE ar.deleted_flag = 'N'
AND ar.merchant_id = #{merchantId}
ORDER BY ar.created_date DESC
</select>
</mapper>
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