提交 347c8327 编写于 作者: doc_wei's avatar doc_wei

小程序组件与标签属性绑定完成

上级 8ec04687
......@@ -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;
}
......@@ -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;
}
......@@ -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());
}
}
}
......@@ -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);
}
}
......@@ -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
......@@ -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="分页参数,第几页"/>
......
......@@ -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});
}
}});
}
});
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册