Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
347c8327
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1173
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
347c8327
编写于
11月 14, 2018
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小程序组件与标签属性绑定完成
上级
8ec04687
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
70 addition
and
0 deletion
+70
-0
skyeye-dao/src/main/java/com/skyeye/smprogram/dao/RmGroupMemberDao.java
.../main/java/com/skyeye/smprogram/dao/RmGroupMemberDao.java
+2
-0
skyeye-service/src/main/java/com/skyeye/smprogram/service/RmGroupMemberService.java
...va/com/skyeye/smprogram/service/RmGroupMemberService.java
+2
-0
skyeye-service/src/main/java/com/skyeye/smprogram/service/impl/RmGroupMemberServiceImpl.java
...yeye/smprogram/service/impl/RmGroupMemberServiceImpl.java
+20
-0
skyeye-web/src/main/java/com/skyeye/smprogram/controller/RmGroupMemberController.java
.../skyeye/smprogram/controller/RmGroupMemberController.java
+16
-0
skyeye-web/src/main/resources/dbmapper/RmGroupMemberMapper.xml
...e-web/src/main/resources/dbmapper/RmGroupMemberMapper.xml
+10
-0
skyeye-web/src/main/resources/mapping/reqmapping.xml
skyeye-web/src/main/resources/mapping/reqmapping.xml
+4
-0
skyeye-web/src/main/webapp/js/rmgroupmember/bindproperty.js
skyeye-web/src/main/webapp/js/rmgroupmember/bindproperty.js
+15
-0
skyeye-web/src/main/webapp/js/rmgroupmember/rmgroupmemberlist.js
...web/src/main/webapp/js/rmgroupmember/rmgroupmemberlist.js
+1
-0
未找到文件。
skyeye-dao/src/main/java/com/skyeye/smprogram/dao/RmGroupMemberDao.java
浏览文件 @
347c8327
...
...
@@ -33,4 +33,6 @@ public interface RmGroupMemberDao {
public
int
insertRmGroupMemberAndPropertyMationById
(
List
<
Map
<
String
,
Object
>>
beans
)
throws
Exception
;
public
List
<
Map
<
String
,
Object
>>
queryRmGroupMemberAndPropertyMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
}
skyeye-service/src/main/java/com/skyeye/smprogram/service/RmGroupMemberService.java
浏览文件 @
347c8327
...
...
@@ -21,4 +21,6 @@ public interface RmGroupMemberService {
public
void
editRmGroupMemberAndPropertyMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
queryRmGroupMemberAndPropertyMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
}
skyeye-service/src/main/java/com/skyeye/smprogram/service/impl/RmGroupMemberServiceImpl.java
浏览文件 @
347c8327
...
...
@@ -232,4 +232,24 @@ public class RmGroupMemberServiceImpl implements RmGroupMemberService{
}
}
/**
*
* @Title: queryRmGroupMemberAndPropertyMationById
* @Description: 获取小程序组件和标签属性的绑定信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
queryRmGroupMemberAndPropertyMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
List
<
Map
<
String
,
Object
>>
beans
=
rmGroupMemberDao
.
queryRmGroupMemberAndPropertyMationById
(
map
);
if
(
beans
!=
null
&&
!
beans
.
isEmpty
()){
outputObject
.
setBeans
(
beans
);
outputObject
.
settotal
(
beans
.
size
());
}
}
}
skyeye-web/src/main/java/com/skyeye/smprogram/controller/RmGroupMemberController.java
浏览文件 @
347c8327
...
...
@@ -143,4 +143,20 @@ public class RmGroupMemberController {
rmGroupMemberService
.
editRmGroupMemberAndPropertyMationById
(
inputObject
,
outputObject
);
}
/**
*
* @Title: queryRmGroupMemberAndPropertyMationById
* @Description: 获取小程序组件和标签属性的绑定信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/RmGroupMemberController/queryRmGroupMemberAndPropertyMationById"
)
@ResponseBody
public
void
queryRmGroupMemberAndPropertyMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
rmGroupMemberService
.
queryRmGroupMemberAndPropertyMationById
(
inputObject
,
outputObject
);
}
}
skyeye-web/src/main/resources/dbmapper/RmGroupMemberMapper.xml
浏览文件 @
347c8327
...
...
@@ -7,6 +7,7 @@
a.id,
CONCAT(#{basePath}, a.prints_pic_url) printsPicUrl,
(SELECT COUNT(*) FROM sm_project_page_mode b WHERE b.rm_group_member_id = a.id) memberUseNum,
(SELECT COUNT(*) FROM rm_group_member_property c WHERE c.member_id = a.id) propertyNum,
CONVERT(a.create_time, char) createTime,
(SELECT c.name FROM rm_type c WHERE c.id = a.sm_type_id) typeName,
(SELECT d.name FROM rm_group d WHERE d.id = a.sm_group_id) groupName,
...
...
@@ -173,4 +174,13 @@
</foreach>
</insert>
<select
id=
"queryRmGroupMemberAndPropertyMationById"
parameterType=
"java.util.Map"
resultType=
"java.util.Map"
>
SELECT
a.property_id propertyId
FROM
rm_group_member_property a
WHERE
a.member_id = #{id}
</select>
</mapper>
\ No newline at end of file
skyeye-web/src/main/resources/mapping/reqmapping.xml
浏览文件 @
347c8327
...
...
@@ -330,6 +330,10 @@
<property
id=
"propertyIds"
name=
"propertyIds"
ref=
"required"
var=
"小程序标签属性id"
/>
<property
id=
"rowId"
name=
"memberId"
ref=
"required"
var=
"小程序组件成员id"
/>
</url>
<url
id=
"rmxcx039"
path=
"/post/RmGroupMemberController/queryRmGroupMemberAndPropertyMationById"
val=
"获取小程序组件和标签属性的绑定信息"
allUse=
"1"
>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"小程序组件成员id"
/>
</url>
<url
id=
"rmproperty001"
path=
"/post/RmPropertyController/queryRmPropertyList"
val=
"获取小程序样式属性列表"
allUse=
"1"
>
<property
id=
"limit"
name=
"limit"
ref=
"required,num"
var=
"分页参数,每页多少条数据"
/>
<property
id=
"page"
name=
"page"
ref=
"required,num"
var=
"分页参数,第几页"
/>
...
...
skyeye-web/src/main/webapp/js/rmgroupmember/bindproperty.js
浏览文件 @
347c8327
...
...
@@ -20,6 +20,21 @@ layui.config({
},
ajaxSendAfter
:
function
(
json
){
form
.
render
(
'
checkbox
'
);
var
params
=
{
rowId
:
parent
.
rowId
,
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
rmxcx039
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
if
(
json
.
total
!=
0
){
for
(
var
i
in
json
.
rows
){
$
(
'
input:checkbox[rowId="
'
+
json
.
rows
[
i
].
propertyId
+
'
"]
'
).
attr
(
"
checked
"
,
true
);
}
}
form
.
render
(
'
checkbox
'
);
}
else
{
top
.
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
}
});
...
...
skyeye-web/src/main/webapp/js/rmgroupmember/rmgroupmemberlist.js
浏览文件 @
347c8327
...
...
@@ -115,6 +115,7 @@ layui.config({
{
field
:
'
typeName
'
,
title
:
'
所属分类
'
,
width
:
120
},
{
field
:
'
groupName
'
,
title
:
'
所属分组
'
,
width
:
120
},
{
field
:
'
memberUseNum
'
,
title
:
'
使用次数
'
,
width
:
120
},
{
field
:
'
propertyNum
'
,
title
:
'
标签属性数量
'
,
width
:
120
},
{
field
:
'
createTime
'
,
title
:
'
创建时间
'
,
width
:
180
},
{
title
:
'
操作
'
,
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
300
,
toolbar
:
'
#tableBar
'
}
]]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录