| | |
| | | collect.add(-1); |
| | | } |
| | | if(collect.contains(ofSearch.getStoreId())){ |
| | | if(collect.size()>1){ |
| | | map.put("size",1); |
| | | }else { |
| | | map.put("size",0); |
| | | } |
| | | mapList.add(map); |
| | | } |
| | | } |
| | |
| | | coupon.setPublisherType(1); |
| | | coupon.setCityManagerId(dataVo.getCityManagerId()); |
| | | } |
| | | if(dataVo.getObjType()!=1){ |
| | | coupon.setAuditStatus(1); |
| | | } |
| | | |
| | | boolean save = couponService.save(coupon); |
| | | if (save){ |
| | | if (dataVo.getCompany() == 3){ |
| | |
| | | private String cityCode; |
| | | private Integer storeId; |
| | | |
| | | |
| | | private Integer objType; |
| | | } |
| | |
| | | @Param("state")Integer state, |
| | | @Param("page")Page<Map<String, Object>> page, |
| | | @Param("cityCode") String cityCode, |
| | | @Param("storeId")Integer storeId |
| | | |
| | | @Param("storeId")Integer storeId, |
| | | @Param("objType")Integer objType |
| | | ); |
| | | |
| | | List<Map<String, Object>> queryCouponListOfSearch1(@Param("name")String name, |
| | |
| | | * 门店列表 |
| | | */ |
| | | String storeIds; |
| | | |
| | | Integer objType; |
| | | } |
| | |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> queryCouponListOfSearch(CouponListOfSearch ofSearch) { |
| | | return this.baseMapper.queryCouponListOfSearch(ofSearch.getName(),ofSearch.getType(),ofSearch.getDistributionMethod(),ofSearch.getUserPopulation(),ofSearch.getStatus(),ofSearch.getState(),ofSearch.getPage(),ofSearch.getCityCode(),ofSearch.getStoreId()); |
| | | return this.baseMapper.queryCouponListOfSearch(ofSearch.getName(),ofSearch.getType(),ofSearch.getDistributionMethod(),ofSearch.getUserPopulation(),ofSearch.getStatus(),ofSearch.getState(),ofSearch.getPage(),ofSearch.getCityCode(),ofSearch.getStoreId(),ofSearch.getObjType()); |
| | | } |
| | | |
| | | @Override |
| | |
| | | pickUpQuantity, |
| | | `status`, |
| | | state, |
| | | illustrate |
| | | illustrate, |
| | | auditStatus |
| | | from t_coupon |
| | | where 1 = 1 |
| | | <if test="objType == 1"> |
| | | and auditStatus =2 |
| | | </if> |
| | | <if test="cityCode != null"> |
| | | and id in( |
| | | SELECT DISTINCT couponId FROM |
| | |
| | | `sort`, |
| | | shelves |
| | | from t_points_merchandise |
| | | where 1 = 1 |
| | | where status =1 |
| | | <if test="query.name != null"> |
| | | and `name` like concat('%', #{query.name}, '%') |
| | | </if> |
| | |
| | | private Page<Map<String, Object>> page; |
| | | private String cityCode; |
| | | private Integer storeId; |
| | | private Integer objType; |
| | | |
| | | } |
| | |
| | | /** |
| | | * 获取ztree的节点列表 |
| | | */ |
| | | List<ZTreeNode> tree(); |
| | | List<ZTreeNode> tree(@Param("type") Integer type, @Param("id") Integer id); |
| | | |
| | | List<Map<String, Object>> list(@Param("condition") String condition, @Param("objectType") Integer objectType, @Param("objectId") Integer objectId); |
| | | |
| | | /** |
| | | * 获取所有部门列表 |
| | | */ |
| | | List<Map<String, Object>> list(@Param("condition") String condition); |
| | | // List<Map<String, Object>> list(@Param("condition") String condition); |
| | | |
| | | } |
| | |
| | | * @return |
| | | * @date 2017年2月12日 下午9:14:34 |
| | | */ |
| | | List<Map<String, Object>> selectRoles(@Param("condition") String condition); |
| | | |
| | | // List<Map<String, Object>> selectRoles(@Param("condition") String condition); |
| | | List<Map<String, Object>> selectRoles(@Param("condition") String condition, @Param("objectType") Integer objectType, @Param("objectId") Integer objectId); |
| | | /** |
| | | * 删除某个角色的所有权限 |
| | | * |
| | |
| | | * @return |
| | | * @date 2017年2月18日 上午10:32:04 |
| | | */ |
| | | List<ZTreeNode> roleTreeList(); |
| | | List<ZTreeNode> roleTreeList(@Param("type") Integer type, @Param("id") Integer id); |
| | | |
| | | /** |
| | | * 获取角色列表树 |
| | |
| | | * @return |
| | | * @date 2017年2月18日 上午10:32:04 |
| | | */ |
| | | List<ZTreeNode> roleTreeListByRoleId(String[] roleId); |
| | | List<ZTreeNode> roleTreeListByRoleId(@Param("array") String[] roleId, @Param("type") Integer type, @Param("id") Integer id); |
| | | |
| | | |
| | | } |
| | |
| | | */ |
| | | Integer getMenuNumByRole(@Param("roleStr") String roleStr); |
| | | |
| | | |
| | | |
| | | List<Map<String,Object>> getUserListPage(@Param("page") Page<Map<String, Object>> page, |
| | | @Param("dataScope") DataScope dataScope, |
| | | @Param("name") String name, |
| | | @Param("beginTime") String beginTime, |
| | | @Param("endTime") String endTime, |
| | | @Param("deptid") Integer deptid); |
| | | @Param("deptid") Integer deptid, |
| | | @Param("objectType") Integer objectType, |
| | | @Param("objectId") Integer objectId); |
| | | } |
| | |
| | | ofSearch.setUserPopulation(userPopulation); |
| | | ofSearch.setStatus(status); |
| | | ofSearch.setState(state); |
| | | // if (UserExt.getUser().getObjectType()==3) { |
| | | // ofSearch.setStoreId(UserExt.getUser().getObjectId()); |
| | | // } |
| | | if (UserExt.getUser().getObjectType()==3) { |
| | | ofSearch.setStoreId(UserExt.getUser().getObjectId()); |
| | | ofSearch.setObjType(UserExt.getUser().getObjectType()); |
| | | } |
| | | |
| | | |
| | | return client.getCouponListOfSearch(ofSearch); |
| | |
| | | System.out.println(dataVo); |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | dataVo.setUserType(objectType); |
| | | if(UserExt.getUser().getObjectType()==3){ |
| | | dataVo.setStoreIds(UserExt.getUser().getObjectId().toString()); |
| | | dataVo.setCompany(3); |
| | | } |
| | | dataVo.setObjType(UserExt.getUser().getObjectType()); |
| | | client.insertIntoData(dataVo); |
| | | return new SuccessTip<>(); |
| | | } |
| | | |
| | | |
| | | @PostMapping(value = "/update") |
| | | @ResponseBody |
| | | public Object update( Integer id,Integer num,Integer num1,String text){ |
| | |
| | | coupon.setQuantityIssued(num); |
| | | coupon.setPickUpQuantity(num1); |
| | | coupon.setIllustrate(text); |
| | | if (UserExt.getUser().getObjectType()==3) { |
| | | coupon.setAuditStatus(1); |
| | | } |
| | | client.updateCouponData(coupon); |
| | | return new SuccessTip<>(); |
| | | } |
| | |
| | | |
| | | |
| | | }else { |
| | | // ? |
| | | pointsMerchandise.setShelves(storeId); |
| | | pointsMerchandise.setUseScope(3); |
| | | |
| | |
| | | model.addAttribute("city", list1); |
| | | String code1 = list1.get(0).get("code").toString(); |
| | | List<TStore> list2 = storeService.list(new QueryWrapper<TStore>().eq("cityCode", code1).eq("state", 1)); |
| | | if(UserExt.getUser().getObjectType()==3){ |
| | | list2=storeService.list(new QueryWrapper<TStore>().eq("id", UserExt.getUser().getObjectId()).eq("state", 1)); |
| | | } |
| | | model.addAttribute("store", list2); |
| | | TStore store = list2.get(0); |
| | | List<TSite> list3 = siteService.list(new QueryWrapper<TSite>().eq("storeId", store.getId()).eq("state", 1)); |
| | | model.addAttribute("site", list3); |
| | | model.addAttribute("objType", UserExt.getUser().getObjectType()); |
| | | |
| | | |
| | | return PREFIX+"yuyue_edit.html"; |
| | |
| | | List<Map<String, Object>> list1 = storeService.queryCity(code.toString(), cityCode); |
| | | model.addAttribute("city", list1); |
| | | String code1 = list1.get(0).get("code").toString(); |
| | | List<TStore> list2 = storeService.list(new QueryWrapper<TStore>().eq("cityCode", code1).eq("state", 1)); |
| | | List<TStore> list2 =new ArrayList<>(); |
| | | if(objectType==3){ |
| | | list2 = storeService.list(new QueryWrapper<TStore>().eq("id", objectId).eq("state", 1)); |
| | | }else { |
| | | list2 = storeService.list(new QueryWrapper<TStore>().eq("cityCode", code1).eq("state", 1)); |
| | | } |
| | | model.addAttribute("store", list2); |
| | | |
| | | TStore store = list2.get(0); |
| | | List<TSite> list3 = siteService.list(new QueryWrapper<TSite>().eq("storeId", store.getId()).eq("state", 1)); |
| | | model.addAttribute("site", list3); |
| | |
| | | @ResponseBody |
| | | public List<ZTreeNode> tree() { |
| | | List<ZTreeNode> tree = this.deptService.tree(); |
| | | |
| | | tree.add(ZTreeNode.createParent()); |
| | | return tree; |
| | | } |
| | |
| | | } |
| | | //完善pids,根据pid拿到pid的pids |
| | | deptSetPids(dept); |
| | | |
| | | dept.setObjectType(UserExt.getUser().getObjectType()); |
| | | dept.setObjectId(UserExt.getUser().getObjectId()); |
| | | |
| | | return this.deptService.save(dept); |
| | | } |
| | |
| | | throw new GunsException(BizExceptionEnum.REQUEST_NULL); |
| | | } |
| | | role.setId(null); |
| | | role.setObjType(UserExt.getUser().getObjectType()); |
| | | role.setObjId(UserExt.getUser().getObjectId()); |
| | | this.roleService.save(role); |
| | | |
| | | |
| | |
| | | @RequestMapping(value = "/roleTreeList") |
| | | @ResponseBody |
| | | public List<ZTreeNode> roleTreeList() { |
| | | List<ZTreeNode> roleTreeList = this.roleService.roleTreeList(); |
| | | List<ZTreeNode> roleTreeList = this.roleService.roleTreeList(UserExt.getUser().getObjectType(),UserExt.getUser().getObjectId()); |
| | | roleTreeList.add(ZTreeNode.createParent()); |
| | | return roleTreeList; |
| | | } |
| | |
| | | public List<ZTreeNode> roleTreeListByUserId(@PathVariable Integer userId) { |
| | | User theUser = this.userService.getById(userId); |
| | | String roleid = theUser.getRoleid(); |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | Integer objectId = UserExt.getUser().getObjectId(); |
| | | if (Objects.isNull(roleid)) { |
| | | List<ZTreeNode> roleTreeList = this.roleService.roleTreeList(); |
| | | List<ZTreeNode> roleTreeList = this.roleService.roleTreeList(objectType,objectId); |
| | | return roleTreeList; |
| | | } else { |
| | | String[] strArray = Convert.toStrArray(",", roleid); |
| | | List<ZTreeNode> roleTreeListByUserId = this.roleService.roleTreeListByRoleId(strArray); |
| | | List<ZTreeNode> roleTreeListByUserId = this.roleService.roleTreeListByRoleId(strArray,objectType,objectId); |
| | | return roleTreeListByUserId; |
| | | } |
| | | } |
| | |
| | | user.setCreatetime(new Date()); |
| | | |
| | | User objectUser = UserFactory.createUser(user); |
| | | objectUser.setObjectType(UserExt.getUser().getObjectType()); |
| | | objectUser.setObjectId(UserExt.getUser().getObjectId()); |
| | | //查找平台所属公司 |
| | | //Search for the company that owns the platform. |
| | | this.userService.save(objectUser); |
| | |
| | | * 门店列表 |
| | | */ |
| | | String storeIds; |
| | | |
| | | Integer objType; |
| | | } |
| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | |
| | | */ |
| | | private Integer version; |
| | | |
| | | @TableField("objectType") |
| | | private Integer objectType; |
| | | @TableField("objectId") |
| | | private Integer objectId; |
| | | |
| | | public Integer getObjectType() { |
| | | return objectType; |
| | | } |
| | | |
| | | public void setObjectType(Integer objectType) { |
| | | this.objectType = objectType; |
| | | } |
| | | |
| | | public Integer getObjectId() { |
| | | return objectId; |
| | | } |
| | | |
| | | public void setObjectId(Integer objectId) { |
| | | this.objectId = objectId; |
| | | } |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | |
| | | package com.dsh.guns.modular.system.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | |
| | | */ |
| | | private Integer version; |
| | | |
| | | @TableField("objType") |
| | | private Integer objType; |
| | | @TableField("objId") |
| | | private Integer objId; |
| | | |
| | | public Integer getObjType() { |
| | | return objType; |
| | | } |
| | | |
| | | public void setObjType(Integer objType) { |
| | | this.objType = objType; |
| | | } |
| | | |
| | | public Integer getObjId() { |
| | | return objId; |
| | | } |
| | | |
| | | public void setObjId(Integer objId) { |
| | | this.objId = objId; |
| | | } |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | |
| | | * @return |
| | | * @date 2017年2月18日 上午10:32:04 |
| | | */ |
| | | List<ZTreeNode> roleTreeList(); |
| | | List<ZTreeNode> roleTreeList(Integer type,Integer id); |
| | | |
| | | /** |
| | | * 获取角色列表树 |
| | |
| | | * @return |
| | | * @date 2017年2月18日 上午10:32:04 |
| | | */ |
| | | List<ZTreeNode> roleTreeListByRoleId(String[] roleId); |
| | | List<ZTreeNode> roleTreeListByRoleId(String[] roleId,Integer type,Integer id); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dsh.course.mapper.DeptMapper; |
| | | import com.dsh.course.model.node.ZTreeNode; |
| | | import com.dsh.guns.config.UserExt; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | |
| | | @Override |
| | | public List<ZTreeNode> tree() { |
| | | return this.baseMapper.tree(); |
| | | |
| | | return this.baseMapper.tree(UserExt.getUser().getObjectType(),UserExt.getUser().getObjectId()); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> list(String condition) { |
| | | return this.baseMapper.list(condition); |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | Integer objectId = UserExt.getUser().getObjectId(); |
| | | return this.baseMapper.list(condition,objectType,objectId); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dsh.course.mapper.MenuMapper; |
| | | import com.dsh.course.model.node.MenuNode; |
| | | import com.dsh.course.model.node.ZTreeNode; |
| | | import com.dsh.guns.config.UserExt; |
| | | import com.dsh.guns.modular.system.model.Relation; |
| | | import com.dsh.guns.modular.system.service.IRelationService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.dsh.guns.modular.system.model.Menu; |
| | |
| | | return this.baseMapper.getMenuIdsByRoleId(roleId); |
| | | } |
| | | |
| | | |
| | | @Autowired |
| | | private IRelationService relationService; |
| | | @Override |
| | | public List<ZTreeNode> menuTreeList() { |
| | | return this.baseMapper.menuTreeList(); |
| | | List<ZTreeNode> zTreeNodes = this.baseMapper.menuTreeList(); |
| | | if(UserExt.getUser().getObjectType()==3){ |
| | | List<Relation> list = relationService.list(new LambdaQueryWrapper<Relation>().eq(Relation::getRoleid, 3)); |
| | | List<Long> collect = list.stream().map(Relation::getMenuid).collect(Collectors.toList()); |
| | | zTreeNodes= zTreeNodes.stream().filter(e -> collect.contains(e.getId())).collect(Collectors.toList()); |
| | | } |
| | | return zTreeNodes; |
| | | } |
| | | |
| | | @Override |
| | |
| | | import com.dsh.course.mapper.RelationMapper; |
| | | import com.dsh.course.mapper.RoleMapper; |
| | | import com.dsh.course.model.node.ZTreeNode; |
| | | import com.dsh.guns.config.UserExt; |
| | | import com.dsh.guns.modular.system.controller.util.Convert; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> selectRoles(String condition) { |
| | | return this.baseMapper.selectRoles(condition); |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | Integer objectId = UserExt.getUser().getObjectId(); |
| | | return this.baseMapper.selectRoles(condition,objectType,objectId); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ZTreeNode> roleTreeList() { |
| | | return this.baseMapper.roleTreeList(); |
| | | public List<ZTreeNode> roleTreeList(Integer type,Integer id) { |
| | | return this.baseMapper.roleTreeList(type,id); |
| | | } |
| | | |
| | | @Override |
| | | public List<ZTreeNode> roleTreeListByRoleId(String[] roleId) { |
| | | return this.baseMapper.roleTreeListByRoleId(roleId); |
| | | public List<ZTreeNode> roleTreeListByRoleId(String[] roleId,Integer type,Integer id) { |
| | | return this.baseMapper.roleTreeListByRoleId(roleId,type,id); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dsh.course.mapper.UserMapper; |
| | | import com.dsh.guns.config.UserExt; |
| | | import com.dsh.guns.core.dataScope.DataScope; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> getUserListPage(Page<Map<String, Object>> page, DataScope dataScope, String name, String beginTime, String endTime, Integer deptid) { |
| | | List<Map<String, Object>> userListPage = this.baseMapper.getUserListPage(page, dataScope, name, beginTime, endTime, deptid); |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | Integer objectId = UserExt.getUser().getObjectId(); |
| | | |
| | | List<Map<String, Object>> userListPage = this.baseMapper.getUserListPage(page, dataScope, name, beginTime, endTime, deptid,objectType,objectId); |
| | | return userListPage; |
| | | } |
| | | } |
| | |
| | | ELSE |
| | | 'false' |
| | | END |
| | | ) as isOpen from sys_dept |
| | | ) as isOpen from sys_dept where 1=1 |
| | | <if test="type ==3 "> |
| | | and objectType =3 and objectId =#{id} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="list" resultType="map"> |
| | | select * from sys_dept |
| | | select * from sys_dept where 1=1 |
| | | <if test="condition != null and condition != ''"> |
| | | where simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%') |
| | | and simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%') |
| | | </if> |
| | | <if test="objectType == 3"> |
| | | and objectType = 3 and objectId =#{objectId} |
| | | </if> |
| | | order by num ASC |
| | | </select> |
| | |
| | | |
| | | <select id="selectRoles" resultType="map"> |
| | | select rr.*,(SELECT COUNT(id) from sys_user where FIND_IN_SET(rr.id,roleid)) as userCount |
| | | from sys_role as rr |
| | | from sys_role as rr where 1=1 |
| | | <if test="condition != null"> |
| | | where rr.name like CONCAT('%',#{condition},'%') |
| | | and rr.name like CONCAT('%',#{condition},'%') |
| | | </if> |
| | | <if test="objectType == 3"> |
| | | and rr.objType =3 and rr.objId =#{objectId} |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | <select id="roleTreeList" resultType="com.dsh.course.model.node.ZTreeNode"> |
| | | select id "id",pId |
| | | "pId",name as "name",(case when (pId=0 or pId is null) then 'true' |
| | | else 'false' end) "open" from sys_role |
| | | else 'false' end) "open" from sys_role where 1=1 |
| | | <if test="type==3"> |
| | | and objType =3 and objId =#{id} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="roleTreeListByRoleId" resultType="com.dsh.course.model.node.ZTreeNode"> |
| | |
| | | sys_role |
| | | WHERE |
| | | ID IN |
| | | |
| | | <foreach collection="array" index="index" item="i" open="(" separator="," close=")"> |
| | | #{i} |
| | | </foreach> |
| | | |
| | | <if test="type==3"> |
| | | and objType =3 and objId =#{id} |
| | | </if> |
| | | ) r1 ON r.ID = r1.ID |
| | | ORDER BY |
| | | pId, |
| | |
| | | <if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''"> |
| | | and (o.createTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59')) |
| | | </if> |
| | | <if test="objectType ==3"> |
| | | and (o.objectType =3 and o.objectId =#{objectId}) |
| | | </if> |
| | | </where> |
| | | order by o.id desc |
| | | </select> |
| | |
| | | <input type="hidden" id="id" value="${item.id}"> |
| | | <div class="form-horizontal"> |
| | | <div class="row"> |
| | | @if(objType !=3){ |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">*所在省:</label> |
| | | <div class="col-sm-4"> |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | @} |
| | | |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">*所属门店:</label> |
| | | <div class="col-sm-4"> |
| | |
| | | @if(shiro.hasPermission("/mgr/unfreeze")){ |
| | | <#button name="解冻" icon="fa-check-circle" clickFun="MgrUser.unfreeze()" space="true"/> |
| | | @} |
| | | @if(shiro.hasPermission("/mgr/setRole")){ |
| | | @if(shiro.hasPermission("/mgr/setRoles")){ |
| | | <#button name="角色分配" icon="fa-user-secret" clickFun="MgrUser.roleAssign()" space="true"/> |
| | | @} |
| | | @if(shiro.hasPermission("/mgr/kanbanPermissions")){ |
| | |
| | | formatter: function (value, row, index) { |
| | | return {1: "上架", 2: "下架"}[value] |
| | | }}, |
| | | {title: '审核状态', field: 'auditStatus', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row, index) { |
| | | return {1: "待审核", 2: "已通过",3: "已拒绝"}[value] |
| | | }}, |
| | | ]; |
| | | }; |
| | | |
| | |
| | | */ |
| | | TCoupon.openChange = function () { |
| | | if (this.check()){ |
| | | let size = TCoupon.seItem.size |
| | | if(size>0){ |
| | | Feng.info("没有该权限"); |
| | | return; |
| | | } |
| | | let id = TCoupon.seItem.id |
| | | let name = TCoupon.seItem.name |
| | | let quantityIssued = TCoupon.seItem.quantityIssued |
| | |
| | | }; |
| | | TCoupon.onShelf = function (e) { |
| | | if (this.check()) { |
| | | let size = TCoupon.seItem.size |
| | | if(size>0){ |
| | | Feng.info("没有该权限"); |
| | | return; |
| | | } |
| | | var ajax = new $ax(Feng.ctxPath + "/tCouponManage/onShelf", function(data){ |
| | | if(data.code==200){ |
| | | Feng.success("操作成功!") |
| | |
| | | $('#storeSelect').show(); |
| | | } |
| | | if (userType === '3'){ |
| | | // 兑换方式 |
| | | $('#exchangeType').show(); |
| | | $('#needAmount').show(); |
| | | $('#needIntegral').show(); |
| | | // 图片 |
| | | $('#app').show(); |
| | | $('#app1').show(); |
| | | // 适用范围 |
| | | } |
| | | }); |
| | |
| | | layerIndex: -1, |
| | | deptid:0 |
| | | }; |
| | | var language =$("#language").val() |
| | | var language =1 |
| | | /** |
| | | * 初始化表格的列 |
| | | */ |
| | |
| | | if(row.statusName != '' && row.statusName != null) { |
| | | if(language==1){ |
| | | if (row.statusName == "2"){ |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color: red;" title="' + `冻结` + '" onfocus="AppUserInfo.tooltip()">' + 冻结 + '</p>'] |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color: red;" title="' + `冻结` + '" onfocus="AppUserInfo.tooltip()">' + `冻结` + '</p>'] |
| | | }else{ |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + `启用` + '" onfocus="AppUserInfo.tooltip()">' + 启用 + '</p>'] |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + `启用` + '" onfocus="AppUserInfo.tooltip()">' + `启用` + '</p>'] |
| | | } |
| | | }else if(language==2){ |
| | | if (row.statusName == "2"){ |
| | |
| | | StoreInfo info = new StoreInfo(); |
| | | info.setStoreId(store.getId()); |
| | | info.setStoreName(store.getName()); |
| | | info.setStoreImg(store.getRealPicture()); |
| | | info.setStoreImg(store.getCoverDrawing()); |
| | | info.setDistance(l); |
| | | info.setStoreAddr(store.getAddress()); |
| | | info.setLatitude(storeLat); |