Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 e40cbc97
authored
Jan 28, 2021
by
leejoker
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改sql,增加config_id保存二维码配置id
1 parent
13b95d88
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
1 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeTaskFissionRecord.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/dto/WeTaskFissionPosterDTO.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeTaskFissionServiceImpl.java
linkwe-wecom/src/main/resources/mapper/wecom/WeTaskFissionRecordMapper.xml
sql/link-wechat.sql
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeTaskFissionRecord.java
View file @
e40cbc9
...
@@ -50,6 +50,8 @@ public class WeTaskFissionRecord extends BaseEntity {
...
@@ -50,6 +50,8 @@ public class WeTaskFissionRecord extends BaseEntity {
@Excel
(
name
=
"裂变客户数量"
)
@Excel
(
name
=
"裂变客户数量"
)
private
Long
fissNum
;
private
Long
fissNum
;
private
String
configId
;
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
@@ -58,6 +60,7 @@ public class WeTaskFissionRecord extends BaseEntity {
...
@@ -58,6 +60,7 @@ public class WeTaskFissionRecord extends BaseEntity {
.
append
(
"customerId"
,
getCustomerId
())
.
append
(
"customerId"
,
getCustomerId
())
.
append
(
"customerName"
,
getCustomerName
())
.
append
(
"customerName"
,
getCustomerName
())
.
append
(
"fissNum"
,
getFissNum
())
.
append
(
"fissNum"
,
getFissNum
())
.
append
(
"configId"
,
getConfigId
())
.
toString
();
.
toString
();
}
}
}
}
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/dto/WeTaskFissionPosterDTO.java
View file @
e40cbc9
...
@@ -12,4 +12,5 @@ public class WeTaskFissionPosterDTO {
...
@@ -12,4 +12,5 @@ public class WeTaskFissionPosterDTO {
private
String
userId
;
private
String
userId
;
private
Long
taskFissionId
;
private
Long
taskFissionId
;
private
String
fissStaffId
;
private
String
fissStaffId
;
private
Long
posterId
;
}
}
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeTaskFissionServiceImpl.java
View file @
e40cbc9
...
@@ -191,6 +191,7 @@ public class WeTaskFissionServiceImpl implements IWeTaskFissionService {
...
@@ -191,6 +191,7 @@ public class WeTaskFissionServiceImpl implements IWeTaskFissionService {
int
insertRows
=
weTaskFissionRecordService
.
insertWeTaskFissionRecord
(
record
);
int
insertRows
=
weTaskFissionRecordService
.
insertWeTaskFissionRecord
(
record
);
if
(
insertRows
>
0
)
{
if
(
insertRows
>
0
)
{
recordId
=
record
.
getId
();
recordId
=
record
.
getId
();
}
else
{
}
else
{
throw
new
RuntimeException
(
"生成海报异常:插入裂变记录失败"
);
throw
new
RuntimeException
(
"生成海报异常:插入裂变记录失败"
);
}
}
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeTaskFissionRecordMapper.xml
View file @
e40cbc9
...
@@ -10,10 +10,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -10,10 +10,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"customerId"
column=
"customer_id"
/>
<result
property=
"customerId"
column=
"customer_id"
/>
<result
property=
"customerName"
column=
"customer_name"
/>
<result
property=
"customerName"
column=
"customer_name"
/>
<result
property=
"fissNum"
column=
"fiss_num"
/>
<result
property=
"fissNum"
column=
"fiss_num"
/>
<result
property=
"configId"
column=
"config_id"
/>
</resultMap>
</resultMap>
<sql
id=
"selectWeTaskFissionRecordVo"
>
<sql
id=
"selectWeTaskFissionRecordVo"
>
select id, task_fission_id, customer_id, customer_name, fiss_num from we_task_fission_record
select id, task_fission_id, customer_id, customer_name, fiss_num
, config_id
from we_task_fission_record
</sql>
</sql>
<select
id=
"selectWeTaskFissionRecordList"
parameterType=
"WeTaskFissionRecord"
resultMap=
"WeTaskFissionRecordResult"
>
<select
id=
"selectWeTaskFissionRecordList"
parameterType=
"WeTaskFissionRecord"
resultMap=
"WeTaskFissionRecordResult"
>
...
@@ -38,12 +39,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -38,12 +39,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"customerId != null and customerId != ''"
>
customer_id,
</if>
<if
test=
"customerId != null and customerId != ''"
>
customer_id,
</if>
<if
test=
"customerName != null"
>
customer_name,
</if>
<if
test=
"customerName != null"
>
customer_name,
</if>
<if
test=
"fissNum != null"
>
fiss_num,
</if>
<if
test=
"fissNum != null"
>
fiss_num,
</if>
<if
test=
"configId != null and configId != ''"
>
config_id,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"taskFissionId != null"
>
#{taskFissionId},
</if>
<if
test=
"taskFissionId != null"
>
#{taskFissionId},
</if>
<if
test=
"customerId != null and customerId != ''"
>
#{customerId},
</if>
<if
test=
"customerId != null and customerId != ''"
>
#{customerId},
</if>
<if
test=
"customerName != null"
>
#{customerName},
</if>
<if
test=
"customerName != null"
>
#{customerName},
</if>
<if
test=
"fissNum != null"
>
#{fissNum},
</if>
<if
test=
"fissNum != null"
>
#{fissNum},
</if>
<if
test=
"configId != null and configId != ''"
>
#{configId},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -54,6 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -54,6 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"customerId != null and customerId != ''"
>
customer_id = #{customerId},
</if>
<if
test=
"customerId != null and customerId != ''"
>
customer_id = #{customerId},
</if>
<if
test=
"customerName != null"
>
customer_name = #{customerName},
</if>
<if
test=
"customerName != null"
>
customer_name = #{customerName},
</if>
<if
test=
"fissNum != null"
>
fiss_num = #{fissNum},
</if>
<if
test=
"fissNum != null"
>
fiss_num = #{fissNum},
</if>
<if
test=
"configId != null"
>
config_id = #{configId},
</if>
</trim>
</trim>
where id = #{id}
where id = #{id}
</update>
</update>
...
...
sql/link-wechat.sql
View file @
e40cbc9
...
@@ -6448,6 +6448,7 @@ CREATE TABLE `we_task_fission_record` (
...
@@ -6448,6 +6448,7 @@ CREATE TABLE `we_task_fission_record` (
`customer_id`
VARCHAR
(
64
)
NOT
NULL
DEFAULT
'NULL'
COMMENT
'裂变任务客户id'
,
`customer_id`
VARCHAR
(
64
)
NOT
NULL
DEFAULT
'NULL'
COMMENT
'裂变任务客户id'
,
`customer_name`
VARCHAR
(
100
)
NULL
DEFAULT
NULL
COMMENT
'裂变任务客户姓名'
,
`customer_name`
VARCHAR
(
100
)
NULL
DEFAULT
NULL
COMMENT
'裂变任务客户姓名'
,
`fiss_num`
INTEGER
NOT
NULL
DEFAULT
0
COMMENT
'裂变客户数量'
,
`fiss_num`
INTEGER
NOT
NULL
DEFAULT
0
COMMENT
'裂变客户数量'
,
`config_id`
VARCHAR
(
64
)
NOT
NULL
DEFAULT
'NULL'
COMMENT
'生成二维码配置id'
,
CONSTRAINT
we_task_fission_record_pk
PRIMARY
KEY
(
`id`
)
CONSTRAINT
we_task_fission_record_pk
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
ROW_FORMAT
=
DYNAMIC
COMMENT
'裂变任务记录'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
ROW_FORMAT
=
DYNAMIC
COMMENT
'裂变任务记录'
;
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