Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
3024e346
Commit
3024e346
authored
Mar 31, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 销售线索 列表
parent
41d7a0a0
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
49 additions
and
251 deletions
+49
-251
PotentialCustomerDTO.java
...c/haoban/manage/api/dto/content/PotentialCustomerDTO.java
+13
-0
TabHaobanPotentialCustomerMapper.java
.../dao/mapper/content/TabHaobanPotentialCustomerMapper.java
+0
-9
TabHaobanPotentialCustomer.java
...ge/service/entity/content/TabHaobanPotentialCustomer.java
+8
-177
PotentialCustomerBO.java
...n/manage/service/pojo/bo/content/PotentialCustomerBO.java
+5
-0
PotentialCustomerServiceImpl.java
...ce/service/content/impl/PotentialCustomerServiceImpl.java
+0
-1
PotentialCustomerApiServiceImpl.java
...ice/out/impl/content/PotentialCustomerApiServiceImpl.java
+1
-0
TabHaobanPotentialCustomerMapper.xml
...urces/mapper/content/TabHaobanPotentialCustomerMapper.xml
+9
-64
MaterialClerkInfo.java
...m/gic/haoban/manage/web/vo/content/MaterialClerkInfo.java
+13
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/content/PotentialCustomerDTO.java
View file @
3024e346
...
...
@@ -22,6 +22,11 @@ public class PotentialCustomerDTO implements Serializable {
private
String
memberName
;
/**
* 会员昵称
*/
private
String
memberNickName
;
/**
* 会员头像
*/
private
String
memberImageUrl
;
...
...
@@ -222,4 +227,12 @@ public class PotentialCustomerDTO implements Serializable {
public
void
setBizType
(
Integer
bizType
)
{
this
.
bizType
=
bizType
;
}
public
String
getMemberNickName
()
{
return
memberNickName
;
}
public
void
setMemberNickName
(
String
memberNickName
)
{
this
.
memberNickName
=
memberNickName
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/content/TabHaobanPotentialCustomerMapper.java
View file @
3024e346
...
...
@@ -56,15 +56,6 @@ public interface TabHaobanPotentialCustomerMapper {
int
insertBatch
(
@Param
(
"entities"
)
List
<
TabHaobanPotentialCustomer
>
entities
);
/**
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanPotentialCustomer> 实例对象列表
* @return 影响行数
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
*/
int
insertOrUpdateBatch
(
@Param
(
"entities"
)
List
<
TabHaobanPotentialCustomer
>
entities
);
/**
* 修改数据
*
* @param tabHaobanPotentialCustomer 实例对象
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/content/TabHaobanPotentialCustomer.java
View file @
3024e346
package
com
.
gic
.
haoban
.
manage
.
service
.
entity
.
content
;
import
lombok.Data
;
import
java.util.Date
;
import
java.io.Serializable
;
...
...
@@ -9,6 +11,7 @@ import java.io.Serializable;
* @author makejava
* @since 2023-03-28 09:48:07
*/
@Data
public
class
TabHaobanPotentialCustomer
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
28370046858269747L
;
...
...
@@ -67,6 +70,11 @@ public class TabHaobanPotentialCustomer implements Serializable {
* 会员昵称
*/
private
String
memberNickName
;
/**
* 会员头像
*/
private
String
memberImageUrl
;
/**
* 会员手机号
*/
...
...
@@ -99,182 +107,5 @@ public class TabHaobanPotentialCustomer implements Serializable {
* 更新时间
*/
private
Date
updateTime
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
String
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
String
getMemberId
()
{
return
memberId
;
}
public
void
setMemberId
(
String
memberId
)
{
this
.
memberId
=
memberId
;
}
public
String
getUnionId
()
{
return
unionId
;
}
public
void
setUnionId
(
String
unionId
)
{
this
.
unionId
=
unionId
;
}
public
String
getClerkId
()
{
return
clerkId
;
}
public
void
setClerkId
(
String
clerkId
)
{
this
.
clerkId
=
clerkId
;
}
public
String
getBizId
()
{
return
bizId
;
}
public
void
setBizId
(
String
bizId
)
{
this
.
bizId
=
bizId
;
}
public
Integer
getBizType
()
{
return
bizType
;
}
public
void
setBizType
(
Integer
bizType
)
{
this
.
bizType
=
bizType
;
}
public
String
getStoreId
()
{
return
storeId
;
}
public
void
setStoreId
(
String
storeId
)
{
this
.
storeId
=
storeId
;
}
public
Integer
getChannelSource
()
{
return
channelSource
;
}
public
void
setChannelSource
(
Integer
channelSource
)
{
this
.
channelSource
=
channelSource
;
}
public
Integer
getEventType
()
{
return
eventType
;
}
public
void
setEventType
(
Integer
eventType
)
{
this
.
eventType
=
eventType
;
}
public
Integer
getDurationTime
()
{
return
durationTime
;
}
public
void
setDurationTime
(
Integer
durationTime
)
{
this
.
durationTime
=
durationTime
;
}
public
String
getMemberName
()
{
return
memberName
;
}
public
void
setMemberName
(
String
memberName
)
{
this
.
memberName
=
memberName
;
}
public
String
getMemberNickName
()
{
return
memberNickName
;
}
public
void
setMemberNickName
(
String
memberNickName
)
{
this
.
memberNickName
=
memberNickName
;
}
public
String
getMemberPhone
()
{
return
memberPhone
;
}
public
void
setMemberPhone
(
String
memberPhone
)
{
this
.
memberPhone
=
memberPhone
;
}
public
Integer
getDealRecordNum
()
{
return
dealRecordNum
;
}
public
void
setDealRecordNum
(
Integer
dealRecordNum
)
{
this
.
dealRecordNum
=
dealRecordNum
;
}
public
Integer
getStarFlag
()
{
return
starFlag
;
}
public
void
setStarFlag
(
Integer
starFlag
)
{
this
.
starFlag
=
starFlag
;
}
public
Integer
getSeeFlag
()
{
return
seeFlag
;
}
public
void
setSeeFlag
(
Integer
seeFlag
)
{
this
.
seeFlag
=
seeFlag
;
}
public
Date
getLastAccessTime
()
{
return
lastAccessTime
;
}
public
void
setLastAccessTime
(
Date
lastAccessTime
)
{
this
.
lastAccessTime
=
lastAccessTime
;
}
public
Integer
getDeleteFlag
()
{
return
deleteFlag
;
}
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
Integer
getTimes
()
{
return
times
;
}
public
void
setTimes
(
Integer
times
)
{
this
.
times
=
times
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/pojo/bo/content/PotentialCustomerBO.java
View file @
3024e346
...
...
@@ -68,6 +68,11 @@ public class PotentialCustomerBO {
* 会员昵称
*/
private
String
memberNickName
;
/**
* 会员头像
*/
private
String
memberImageUrl
;
/**
* 会员手机号
*/
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/impl/PotentialCustomerServiceImpl.java
View file @
3024e346
...
...
@@ -51,7 +51,6 @@ public class PotentialCustomerServiceImpl implements PotentialCustomerService {
@Autowired
private
ExternalClerkRelatedService
externalClerkRelatedService
;
/**
* 查询销售线索
*
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/content/PotentialCustomerApiServiceImpl.java
View file @
3024e346
...
...
@@ -53,6 +53,7 @@ public class PotentialCustomerApiServiceImpl implements PotentialCustomerApiServ
.
map
(
item
->
{
PotentialCustomerDTO
temp
=
new
PotentialCustomerDTO
();
BeanUtils
.
copyProperties
(
item
,
temp
);
temp
.
setPotentialCustomerId
(
item
.
getId
());
temp
.
setDesc
(
interactRecordBuilder
.
buildDesc
(
item
.
getChannelSource
(),
item
.
getEventType
()));
return
temp
;
})
...
...
haoban-manage3-service/src/main/resources/mapper/content/TabHaobanPotentialCustomerMapper.xml
View file @
3024e346
...
...
@@ -18,6 +18,7 @@
<result
property=
"times"
column=
"times"
jdbcType=
"INTEGER"
/>
<result
property=
"memberName"
column=
"member_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"memberNickName"
column=
"member_nick_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"memberImageUrl"
column=
"member_image_url"
jdbcType=
"VARCHAR"
/>
<result
property=
"memberPhone"
column=
"member_phone"
jdbcType=
"VARCHAR"
/>
<result
property=
"dealRecordNum"
column=
"deal_record_num"
jdbcType=
"INTEGER"
/>
<result
property=
"starFlag"
column=
"star_flag"
jdbcType=
"INTEGER"
/>
...
...
@@ -42,6 +43,7 @@
times,
member_name,
member_nick_name,
member_image_url,
member_phone,
deal_record_num,
star_flag,
...
...
@@ -54,28 +56,7 @@
<!--查询单个-->
<select
id=
"queryById"
resultMap=
"TabHaobanPotentialCustomerMap"
>
select id,
enterprise_id,
member_id,
union_id,
clerk_id,
biz_id,
biz_type,
store_id,
channel_source,
event_type,
duration_time,
times,
member_name,
member_nick_name,
member_phone,
deal_record_num,
star_flag,
see_flag,
last_access_time,
delete_flag,
create_time,
update_time
select
<include
refid=
"baseSql"
/>
from tab_haoban_potential_customer
where id = #{id} and clerk_id = #{clerkId} and delete_flag = 0
</select>
...
...
@@ -155,62 +136,26 @@
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into tab_haoban_potential_customer(id, enterprise_id, member_id, union_id, clerk_id, biz_id, biz_type,
store_id, channel_source, event_type, duration_time, times, member_name,
member_nick_name, member_phone, deal_record_num, star_flag, see_flag,
member_nick_name, member_
image_url, member_
phone, deal_record_num, star_flag, see_flag,
last_access_time, delete_flag, create_time, update_time)
values (#{id}, #{enterpriseId}, #{memberId}, #{unionId}, #{clerkId}, #{bizId}, #{bizType}, #{storeId},
#{channelSource}, #{eventType}, #{durationTime}, #{times},#{memberName}, #{memberNickName}, #{memberPhone},
#{channelSource}, #{eventType}, #{durationTime}, #{times},#{memberName}, #{memberNickName}, #{member
ImageUrl}, #{member
Phone},
#{dealRecordNum}, #{starFlag}, #{seeFlag}, #{lastAccessTime}, #{deleteFlag}, #{createTime},
#{updateTime})
</insert>
<insert
id=
"insertBatch"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into tab_haoban_potential_customer(enterprise_id, member_id, union_id, clerk_id, biz_id, biz_type,
store_id, channel_source, event_type, duration_time, times, member_name, member_nick_name, member_phone,
insert into tab_haoban_potential_customer(
id,
enterprise_id, member_id, union_id, clerk_id, biz_id, biz_type,
store_id, channel_source, event_type, duration_time, times, member_name, member_nick_name, member_
image_url, member_
phone,
deal_record_num, star_flag, see_flag, last_access_time, delete_flag, create_time, update_time)
values
<foreach
collection=
"entities"
item=
"entity"
separator=
","
>
(#{entity.enterpriseId}, #{entity.memberId}, #{entity.unionId}, #{entity.clerkId}, #{entity.bizId},
(#{entity.
id}, #{entity.
enterpriseId}, #{entity.memberId}, #{entity.unionId}, #{entity.clerkId}, #{entity.bizId},
#{entity.bizType}, #{entity.storeId}, #{entity.channelSource}, #{entity.eventType}, #{entity.durationTime},#{entity.times},
#{entity.memberName}, #{entity.memberNickName}, #{entity.memberPhone}, #{entity.dealRecordNum},
#{entity.starFlag}, #{entity.seeFlag}, #{entity.lastAccessTime}, #{entity.deleteFlag}, #{entity.createTime},
#{entity.updateTime})
</foreach>
</insert>
<insert
id=
"insertOrUpdateBatch"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into tab_haoban_potential_customer(enterprise_id, member_id, union_id, clerk_id, biz_id, biz_type,
store_id, channel_source, event_type, duration_time, times, member_name, member_nick_name, member_phone,
deal_record_num, star_flag, see_flag, last_access_time, delete_flag, create_time, update_time)
values
<foreach
collection=
"entities"
item=
"entity"
separator=
","
>
(#{entity.enterpriseId}, #{entity.memberId}, #{entity.unionId}, #{entity.clerkId}, #{entity.bizId},
#{entity.bizType}, #{entity.storeId}, #{entity.channelSource}, #{entity.eventType}, #{entity.durationTime}, #{times},
#{entity.memberName}, #{entity.memberNickName}, #{entity.memberPhone}, #{entity.dealRecordNum},
#{entity.memberName}, #{entity.memberNickName}, #{entity.memberImageUrl}, #{entity.memberPhone}, #{entity.dealRecordNum},
#{entity.starFlag}, #{entity.seeFlag}, #{entity.lastAccessTime}, #{entity.deleteFlag}, #{entity.createTime},
#{entity.updateTime})
</foreach>
on duplicate key update
enterprise_id = values(enterprise_id),
member_id = values(member_id),
union_id = values(union_id),
clerk_id = values(clerk_id),
biz_id = values(biz_id),
biz_type = values(biz_type),
store_id = values(store_id),
channel_source = values(channel_source),
event_type = values(event_type),
duration_time = values(duration_time),
times = #{times},
member_name = values(member_name),
member_nick_name = values(member_nick_name),
member_phone = values(member_phone),
deal_record_num = values(deal_record_num),
star_flag = values(star_flag),
see_flag = values(see_flag),
last_access_time = values(last_access_time),
delete_flag = values(delete_flag),
create_time = values(create_time),
update_time = values(update_time)
</insert>
<!--通过主键修改数据-->
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/vo/content/MaterialClerkInfo.java
View file @
3024e346
...
...
@@ -34,6 +34,11 @@ public class MaterialClerkInfo implements Serializable {
private
String
clerkCode
;
/**
* 导购头像图片
*/
private
String
clerkImgUrl
;
/**
* 与会员是否是好友关系
* 1 是; 0否
*/
...
...
@@ -91,4 +96,12 @@ public class MaterialClerkInfo implements Serializable {
public
void
setClerkHmUrl
(
String
clerkHmUrl
)
{
this
.
clerkHmUrl
=
clerkHmUrl
;
}
public
String
getClerkImgUrl
()
{
return
clerkImgUrl
;
}
public
void
setClerkImgUrl
(
String
clerkImgUrl
)
{
this
.
clerkImgUrl
=
clerkImgUrl
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment