Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
仟微科技
Link Wechat
提交
7448edc9
Link Wechat
项目概览
仟微科技
/
Link Wechat
通知
48
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Link Wechat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7448edc9
编写于
2月 03, 2021
作者:
L
leejoker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加裂变任务类型
上级
d4ec8231
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
8 deletion
+19
-8
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeTaskFission.java
.../main/java/com/linkwechat/wecom/domain/WeTaskFission.java
+5
-0
linkwe-wecom/src/main/resources/mapper/wecom/WeTaskFissionMapper.xml
...m/src/main/resources/mapper/wecom/WeTaskFissionMapper.xml
+12
-7
sql/link-wechat.sql
sql/link-wechat.sql
+2
-1
未找到文件。
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeTaskFission.java
浏览文件 @
7448edc9
...
...
@@ -25,6 +25,11 @@ public class WeTaskFission extends BaseEntity {
*/
private
Long
id
;
/**
* 任务类型:1 任务宝 2 群裂变
*/
private
Integer
fissionType
;
/**
* 任务活动名称
*/
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeTaskFissionMapper.xml
浏览文件 @
7448edc9
...
...
@@ -3,9 +3,10 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.linkwechat.wecom.mapper.WeTaskFissionMapper"
>
<resultMap
type=
"WeTaskFission"
id=
"WeTaskFissionResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"fissionType"
column=
"fission_type"
/>
<result
property=
"taskName"
column=
"task_name"
/>
<result
property=
"fissInfo"
column=
"fiss_info"
/>
<result
property=
"fissNum"
column=
"fiss_num"
/>
...
...
@@ -30,12 +31,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql
id=
"selectWeTaskFissionVo"
>
select id, task_name, fiss_info, fiss_num, start_time, over_time, customer_tag_id, customer_tag, posters_id, posters_url, fiss_staff_id, fiss_staff, fiss_staff_qrcode, reward_url, reward_image_url, reward_rule, fiss_status, welcome_msg, create_by, create_time, update_by, update_time from we_task_fission
select id,
fission_type,
task_name, fiss_info, fiss_num, start_time, over_time, customer_tag_id, customer_tag, posters_id, posters_url, fiss_staff_id, fiss_staff, fiss_staff_qrcode, reward_url, reward_image_url, reward_rule, fiss_status, welcome_msg, create_by, create_time, update_by, update_time from we_task_fission
</sql>
<select
id=
"selectWeTaskFissionList"
parameterType=
"WeTaskFission"
resultMap=
"WeTaskFissionResult"
>
<include
refid=
"selectWeTaskFissionVo"
/>
<where>
<where>
<if
test=
"fissionType != null "
>
and fission_type = #{fissionType}
</if>
<if
test=
"taskName != null and taskName != ''"
>
and task_name like concat('%', #{taskName}, '%')
</if>
<if
test=
"fissInfo != null and fissInfo != ''"
>
and fiss_info = #{fissInfo}
</if>
<if
test=
"fissNum != null "
>
and fiss_num = #{fissNum}
</if>
...
...
@@ -55,15 +57,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"welcomeMsg != null and welcomeMsg != ''"
>
and welcome_msg = #{welcomeMsg}
</if>
</where>
</select>
<select
id=
"selectWeTaskFissionById"
parameterType=
"Long"
resultMap=
"WeTaskFissionResult"
>
<include
refid=
"selectWeTaskFissionVo"
/>
where id = #{id}
</select>
<insert
id=
"insertWeTaskFission"
parameterType=
"WeTaskFission"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into we_task_fission
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fissionType != null"
>
fission_type,
</if>
<if
test=
"taskName != null and taskName != ''"
>
task_name,
</if>
<if
test=
"fissInfo != null"
>
fiss_info,
</if>
<if
test=
"fissNum != null"
>
fiss_num,
</if>
...
...
@@ -87,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"updateTime != null"
>
update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fissionType != null"
>
#{fissionType},
</if>
<if
test=
"taskName != null and taskName != ''"
>
#{taskName},
</if>
<if
test=
"fissInfo != null"
>
#{fissInfo},
</if>
<if
test=
"fissNum != null"
>
#{fissNum},
</if>
...
...
@@ -114,6 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update
id=
"updateWeTaskFission"
parameterType=
"WeTaskFission"
>
update we_task_fission
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fissionType != null"
>
fission_type = #{fissionType},
</if>
<if
test=
"taskName != null and taskName != ''"
>
task_name = #{taskName},
</if>
<if
test=
"fissInfo != null"
>
fiss_info = #{fissInfo},
</if>
<if
test=
"fissNum != null"
>
fiss_num = #{fissNum},
</if>
...
...
@@ -144,10 +149,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<delete
id=
"deleteWeTaskFissionByIds"
parameterType=
"String"
>
delete from we_task_fission where id in
delete from we_task_fission where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
sql/link-wechat.sql
浏览文件 @
7448edc9
...
...
@@ -6410,6 +6410,7 @@ DROP TABLE IF EXISTS `we_task_fission`;
CREATE TABLE `we_task_fission` (
`id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键',
`fission_type` INTEGER NOT NULL DEFAULT 1 COMMENT '活动类型,1 任务宝 2 群裂变',
`task_name` VARCHAR(100) NOT NULL DEFAULT 'NULL' COMMENT '任务活动名称',
`fiss_info` VARCHAR(255) NULL DEFAULT NULL COMMENT '裂变引导语',
`fiss_num` INTEGER NOT NULL DEFAULT 1 COMMENT '裂变客户数量',
...
...
@@ -6432,7 +6433,7 @@ CREATE TABLE `we_task_fission` (
`update_by` VARCHAR(100) NULL DEFAULT NULL COMMENT '更新人',
`update_time` DATETIME NULL COMMENT '更新时间',
CONSTRAINT we_task_fission_pk PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT '任务宝
主
表';
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT '任务宝表';
-- ---
-- Table 'we_task_fission_record'
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录