运营商增加用户。问题修复
This commit is contained in:
@ -88,8 +88,10 @@ public class ZcBaseUserServiceImpl implements IZcBaseUserService
|
|||||||
}
|
}
|
||||||
return rows;
|
return rows;
|
||||||
}else{
|
}else{
|
||||||
|
if(StringUtils.isNotEmpty(zcBaseUser.getPassword())) {
|
||||||
String md5Hexpwd = DigestUtils.md5Hex(zcBaseUser.getPassword());
|
String md5Hexpwd = DigestUtils.md5Hex(zcBaseUser.getPassword());
|
||||||
zcBaseUser.setPassword(md5Hexpwd);
|
zcBaseUser.setPassword(md5Hexpwd);
|
||||||
|
}
|
||||||
zcBaseUser.setIsStore(1L);
|
zcBaseUser.setIsStore(1L);
|
||||||
zcBaseUser.setCreateTime(DateUtils.getNowDate());
|
zcBaseUser.setCreateTime(DateUtils.getNowDate());
|
||||||
int rows = zcBaseUserMapper.insertZcBaseUser(zcBaseUser);
|
int rows = zcBaseUserMapper.insertZcBaseUser(zcBaseUser);
|
||||||
|
|||||||
@ -3,12 +3,15 @@ package com.ruoyi.operation.controller;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.ruoyi.api.DataPushApi;
|
import com.ruoyi.api.DataPushApi;
|
||||||
|
import com.ruoyi.baseUser.domain.ZcBaseUser;
|
||||||
|
import com.ruoyi.baseUser.service.IZcBaseUserService;
|
||||||
import com.ruoyi.common.constant.UserConstants;
|
import com.ruoyi.common.constant.UserConstants;
|
||||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||||
import com.ruoyi.common.exception.RRException;
|
import com.ruoyi.common.exception.RRException;
|
||||||
import com.ruoyi.common.utils.DateUtils;
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
import com.ruoyi.common.utils.StringUtils;
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
import com.ruoyi.framework.shiro.service.SysPasswordService;
|
import com.ruoyi.framework.shiro.service.SysPasswordService;
|
||||||
|
import com.ruoyi.operation.domain.CompanyStore;
|
||||||
import com.ruoyi.system.domain.Zoning;
|
import com.ruoyi.system.domain.Zoning;
|
||||||
import com.ruoyi.system.service.ISysAreaHnService;
|
import com.ruoyi.system.service.ISysAreaHnService;
|
||||||
import com.ruoyi.system.service.ISysUserService;
|
import com.ruoyi.system.service.ISysUserService;
|
||||||
@ -54,6 +57,9 @@ public class CompanyController extends BaseController
|
|||||||
@Autowired
|
@Autowired
|
||||||
private ISysAreaHnService areaHnService;
|
private ISysAreaHnService areaHnService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ISysUserService sysUserService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private DataPushApi dataPushApi;
|
private DataPushApi dataPushApi;
|
||||||
|
|
||||||
@ -191,4 +197,21 @@ public class CompanyController extends BaseController
|
|||||||
{
|
{
|
||||||
return toAjax(companyService.changeStatus(company));
|
return toAjax(companyService.changeStatus(company));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@RequiresPermissions("operation:company:edit")
|
||||||
|
@GetMapping("/addCompanyUser/{id}")
|
||||||
|
public String addCompanyUser(@PathVariable("id") Long id, ModelMap mmap)
|
||||||
|
{
|
||||||
|
|
||||||
|
Company company = companyService.selectCompanyById(id);
|
||||||
|
mmap.put("company", company);
|
||||||
|
|
||||||
|
SysUser query = new SysUser();
|
||||||
|
query.setGroupId(id);
|
||||||
|
List<SysUser> userList = sysUserService.selectUserList(query);
|
||||||
|
mmap.put("userList", userList);
|
||||||
|
return prefix + "/addCompanyUser";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -168,8 +168,6 @@ public class SysUserController extends BaseController
|
|||||||
user.setTownName(zoning.getTownName());
|
user.setTownName(zoning.getTownName());
|
||||||
user.setVillageCode(zoning.getVillageCode());
|
user.setVillageCode(zoning.getVillageCode());
|
||||||
user.setVillageName(zoning.getVillageName());
|
user.setVillageName(zoning.getVillageName());
|
||||||
user.setGroupId(zoning.getGroupId());
|
|
||||||
user.setGroupName(zoning.getGroupName());
|
|
||||||
user.setStatus("0");
|
user.setStatus("0");
|
||||||
return toAjax(userService.insertUser(user));
|
return toAjax(userService.insertUser(user));
|
||||||
}
|
}
|
||||||
@ -223,9 +221,6 @@ public class SysUserController extends BaseController
|
|||||||
user.setTownName(zoning.getTownName());
|
user.setTownName(zoning.getTownName());
|
||||||
user.setVillageCode(zoning.getVillageCode());
|
user.setVillageCode(zoning.getVillageCode());
|
||||||
user.setVillageName(zoning.getVillageName());
|
user.setVillageName(zoning.getVillageName());
|
||||||
user.setGroupId(zoning.getGroupId());
|
|
||||||
user.setGroupName(zoning.getGroupName());
|
|
||||||
|
|
||||||
AuthorizationUtils.clearAllCachedAuthorizationInfo();
|
AuthorizationUtils.clearAllCachedAuthorizationInfo();
|
||||||
return toAjax(userService.updateUser(user));
|
return toAjax(userService.updateUser(user));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -187,7 +187,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="name != null and name != ''">#{name},</if>
|
<if test="name != null and name != ''">#{name},</if>
|
||||||
<if test="contactPerson != null and contactPerson != ''">#{contactPerson},</if>
|
<if test="contactPerson != null and contactPerson != ''">#{contactPerson},</if>
|
||||||
<if test="phone != null and phone != ''">#{phone},</if>
|
<if test="phone != null and phone != ''">#{phone},</if>
|
||||||
<if test="contactPerson != null and contactPerson2 != ''">#{contactPerson2},</if>
|
<if test="contactPerson2 != null and contactPerson2 != ''">#{contactPerson2},</if>
|
||||||
<if test="phone2 != null and phone2 != ''">#{phone2},</if>
|
<if test="phone2 != null and phone2 != ''">#{phone2},</if>
|
||||||
<if test="provinceId != null">#{provinceId},</if>
|
<if test="provinceId != null">#{provinceId},</if>
|
||||||
<if test="provinceName != null">#{provinceName},</if>
|
<if test="provinceName != null">#{provinceName},</if>
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">密码确认:</label>
|
<label class="col-sm-3 control-label is-required">输入当前用户登录密码:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input id="password" name="password" class="form-control" type="password" required>
|
<input id="password" name="password" class="form-control" type="password" required>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -178,7 +178,7 @@
|
|||||||
var password = iframeWin.$('#password').val(); // 获取密码字段的值
|
var password = iframeWin.$('#password').val(); // 获取密码字段的值
|
||||||
|
|
||||||
if (!password) {
|
if (!password) {
|
||||||
layer.msg('请输入登录密码进行验证', {icon: 5});
|
layer.msg('请输入当前用户登录密码进行验证', {icon: 5});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -8,15 +8,15 @@
|
|||||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
<form class="form-horizontal m" id="form-car-add">
|
<form class="form-horizontal m" id="form-car-add">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">车架号(VIN):</label>
|
<label class="col-sm-3 control-label is-required">车架号(VIN):</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="vin" class="form-control" type="text">
|
<input name="vin" class="form-control" type="text" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">车牌号码:</label>
|
<label class="col-sm-3 control-label is-required">车牌号码:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="licensePlate" class="form-control" type="text">
|
<input name="licensePlate" class="form-control" type="text" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
@ -64,12 +64,12 @@
|
|||||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="operation:car:add">
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="operation:car:add">
|
||||||
<i class="fa fa-plus"></i> 添加
|
<i class="fa fa-plus"></i> 添加
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="operation:car:edit">
|
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="operation:car:edit">-->
|
||||||
<i class="fa fa-edit"></i> 修改
|
<!-- <i class="fa fa-edit"></i> 修改-->
|
||||||
</a>
|
<!-- </a>-->
|
||||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:car:remove">
|
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:car:remove">-->
|
||||||
<i class="fa fa-remove"></i> 删除
|
<!-- <i class="fa fa-remove"></i> 删除-->
|
||||||
</a>
|
<!-- </a>-->
|
||||||
<a class="btn btn-info" onclick="$.table.importExcel()" shiro:hasPermission="operation:car:import">
|
<a class="btn btn-info" onclick="$.table.importExcel()" shiro:hasPermission="operation:car:import">
|
||||||
<i class="fa fa-upload"></i> 导入
|
<i class="fa fa-upload"></i> 导入
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@ -9,15 +9,15 @@
|
|||||||
<form class="form-horizontal m" id="form-car-edit" th:object="${zcCar}">
|
<form class="form-horizontal m" id="form-car-edit" th:object="${zcCar}">
|
||||||
<input name="id" th:field="*{id}" type="hidden">
|
<input name="id" th:field="*{id}" type="hidden">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">车架号(VIN):</label>
|
<label class="col-sm-3 control-label is-required">车架号(VIN):</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="vin" th:field="*{vin}" class="form-control" type="text">
|
<input name="vin" th:field="*{vin}" class="form-control" type="text" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">车牌号码:</label>
|
<label class="col-sm-3 control-label is-required">车牌号码:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="licensePlate" th:field="*{licensePlate}" class="form-control" type="text">
|
<input name="licensePlate" th:field="*{licensePlate}" class="form-control" type="text" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
@ -28,9 +28,9 @@
|
|||||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="operation:carBrand:add">
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="operation:carBrand:add">
|
||||||
<i class="fa fa-plus"></i> 添加
|
<i class="fa fa-plus"></i> 添加
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="operation:carBrand:edit">
|
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="operation:carBrand:edit">-->
|
||||||
<i class="fa fa-edit"></i> 修改
|
<!-- <i class="fa fa-edit"></i> 修改-->
|
||||||
</a>
|
<!-- </a>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-12 select-table table-striped">
|
<div class="col-sm-12 select-table table-striped">
|
||||||
<table id="bootstrap-table"></table>
|
<table id="bootstrap-table"></table>
|
||||||
|
|||||||
@ -42,12 +42,12 @@
|
|||||||
<a class="btn btn-success" onclick="$.operate.addCustomize(null,1300,700)" shiro:hasPermission="operation:carModel:add">
|
<a class="btn btn-success" onclick="$.operate.addCustomize(null,1300,700)" shiro:hasPermission="operation:carModel:add">
|
||||||
<i class="fa fa-plus"></i> 添加
|
<i class="fa fa-plus"></i> 添加
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-primary single disabled" onclick="$.operate.editCustomize(null,1300,700)" shiro:hasPermission="operation:carModel:edit">
|
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.editCustomize(null,1300,700)" shiro:hasPermission="operation:carModel:edit">-->
|
||||||
<i class="fa fa-edit"></i> 修改
|
<!-- <i class="fa fa-edit"></i> 修改-->
|
||||||
</a>
|
<!-- </a>-->
|
||||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:carModel:remove">
|
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:carModel:remove">-->
|
||||||
<i class="fa fa-remove"></i> 删除
|
<!-- <i class="fa fa-remove"></i> 删除-->
|
||||||
</a>
|
<!-- </a>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-12 select-table table-striped">
|
<div class="col-sm-12 select-table table-striped">
|
||||||
<table id="bootstrap-table"></table>
|
<table id="bootstrap-table"></table>
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">是否可新增套餐:</label>
|
<label class="col-sm-3 control-label is-required">是否可新增套餐:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<select name="isAddRules" class="form-control m-b" th:with="type=${@dict.getType('key_is_add_rules')}" required >
|
<select name="isAddRules" class="form-control m-b" th:with="type=${@dict.getType('key_is_add_rules')}" required>
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -66,13 +66,13 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">微信收款商户号:</label>
|
<label class="col-sm-3 control-label is-required">微信收款商户号:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="wechatReceivingAccount" class="form-control" type="text" maxlength="500" required>
|
<textarea name="wechatReceivingAccount" maxlength="500" class="form-control" rows="3" required></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">微信收款密钥:</label>
|
<label class="col-sm-3 control-label is-required">微信收款密钥:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="wechatKey" class="form-control" type="text" maxlength="500" required>
|
<textarea name="wechatKey" maxlength="500" class="form-control" rows="3" required></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -80,13 +80,13 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">支付宝收款商户号:</label>
|
<label class="col-sm-3 control-label is-required">支付宝收款商户号:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="aliReceivingAccount" class="form-control" type="text" maxlength="500" required>
|
<textarea name="aliReceivingAccount" maxlength="500" class="form-control" rows="3" required></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">支付宝收款密钥:</label>
|
<label class="col-sm-3 control-label is-required">支付宝收款密钥:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="aliKey" class="form-control" type="text" maxlength="500" required>
|
<textarea name="aliKey" maxlength="500" class="form-control" rows="3" required></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,129 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('新增运营商用户信息')" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-user-add">
|
||||||
|
<input class='form-control' type='hidden' name='groupId' th:value="${company.id}" >
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label is-required">用户名:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="userName" class="form-control" type="text" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label is-required">登录账号:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input id="loginName" name="loginName" class="form-control" type="text" maxlength="30" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label is-required">登录密码:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<div class="input-group">
|
||||||
|
<input id="password" name="password" class="form-control" type="password" th:value="${@config.getKey('sys.user.initPassword')}" required>
|
||||||
|
<span class="input-group-addon" title="登录密码,鼠标按下显示密码"
|
||||||
|
onmousedown="$('#password').attr('type','text')"
|
||||||
|
onmouseup="$('#password').attr('type','password')"><i class="fa fa-key"></i></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label is-required">手机号码:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<div class="input-group">
|
||||||
|
<input id="phonenumber" name="phonenumber" class="form-control" type="text" maxlength="11" required>
|
||||||
|
<span class="input-group-addon"><i class="fa fa-mobile"></i></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<input type="hidden" name = "userType" value="02">
|
||||||
|
<br/>
|
||||||
|
<h4 class="form-header h4">运营商用户</h4>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<div class="col-sm-12 select-table table-striped">
|
||||||
|
<table id="bootstrap-table"></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "system/user";
|
||||||
|
$("#form-user-add").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
var data = $("#form-user-add").serializeArray();
|
||||||
|
var roleIds = [100];
|
||||||
|
data.push({"name": "roleIds", "value": roleIds});
|
||||||
|
$.operate.save(prefix + "/add", data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var removeFlag = [[${@permission.hasPermi('baseUser:user:remove')}]];
|
||||||
|
var userTypeDatas = [[${@dict.getType('sys_user_type')}]];
|
||||||
|
$(function() {
|
||||||
|
var options = {
|
||||||
|
data: [[${userList}]],
|
||||||
|
pagination: false,
|
||||||
|
showSearch: false,
|
||||||
|
showRefresh: false,
|
||||||
|
showToggle: false,
|
||||||
|
showColumns: false,
|
||||||
|
sidePagination: "client",
|
||||||
|
removeUrl: prefix + "/remove",
|
||||||
|
modalName: "运营商用户",
|
||||||
|
columns: [{
|
||||||
|
checkbox: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'loginName',
|
||||||
|
title: '登录名称',
|
||||||
|
sortable: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'userName',
|
||||||
|
title: '用户名称'
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
field: 'phonenumber',
|
||||||
|
title: '手机'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'userType',
|
||||||
|
title: '用户类型',
|
||||||
|
formatter: function(value, row, index) {
|
||||||
|
return $.table.selectDictLabel(userTypeDatas, value);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
field: 'createTime',
|
||||||
|
title: '创建时间',
|
||||||
|
sortable: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
align: 'center',
|
||||||
|
formatter: function(value, row, index) {
|
||||||
|
var actions = [];
|
||||||
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + ' btnOption" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.userId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||||
|
return actions.join('');
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -42,12 +42,12 @@
|
|||||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="operation:company:add">
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="operation:company:add">
|
||||||
<i class="fa fa-plus"></i> 添加
|
<i class="fa fa-plus"></i> 添加
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="operation:company:edit">
|
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="operation:company:edit">-->
|
||||||
<i class="fa fa-edit"></i> 修改
|
<!-- <i class="fa fa-edit"></i> 修改-->
|
||||||
</a>
|
<!-- </a>-->
|
||||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:company:remove">
|
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:company:remove">-->
|
||||||
<i class="fa fa-remove"></i> 删除
|
<!-- <i class="fa fa-remove"></i> 删除-->
|
||||||
</a>
|
<!-- </a>-->
|
||||||
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="operation:company:export">-->
|
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="operation:company:export">-->
|
||||||
<!-- <i class="fa fa-download"></i> 导出-->
|
<!-- <i class="fa fa-download"></i> 导出-->
|
||||||
<!-- </a>-->
|
<!-- </a>-->
|
||||||
@ -133,6 +133,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: function(value, row, index) {
|
formatter: function(value, row, index) {
|
||||||
var actions = [];
|
var actions = [];
|
||||||
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + ' btnOption" href="javascript:void(0)" onclick="addCompanyUser(\'' + row.id + '\')"><i class="fa fa-edit"></i>运营商用户</a> ');
|
||||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + ' btnOption" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>修改</a> ');
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + ' btnOption" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>修改</a> ');
|
||||||
if (row.status == 1) {
|
if (row.status == 1) {
|
||||||
actions.push('<a class="btn btn-success btn-xs ' + removeFlag + ' btnOption" href="javascript:void(0)" onclick="enable(\'' + row.id + '\',\'' + row.phone + '\')"><i class="fa fa-edit"></i>启用</a> ');
|
actions.push('<a class="btn btn-success btn-xs ' + removeFlag + ' btnOption" href="javascript:void(0)" onclick="enable(\'' + row.id + '\',\'' + row.phone + '\')"><i class="fa fa-edit"></i>启用</a> ');
|
||||||
@ -159,6 +160,10 @@
|
|||||||
$.operate.post(prefix + "/changeStatus", { "id": id, "phone": phone , "status": 0 });
|
$.operate.post(prefix + "/changeStatus", { "id": id, "phone": phone , "status": 0 });
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function addCompanyUser(id){
|
||||||
|
$.modal.open("添加运营商用户", prefix + "/addCompanyUser/" + id, '1200', '800');
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -65,25 +65,25 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">微信收款商户号:</label>
|
<label class="col-sm-3 control-label is-required">微信收款商户号:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="wechatReceivingAccount" th:field="*{wechatReceivingAccount}" class="form-control" type="text" maxlength="500" required>
|
<textarea name="wechatReceivingAccount" maxlength="500" class="form-control" rows="3" required>[[*{wechatReceivingAccount}]]</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">微信收款密钥:</label>
|
<label class="col-sm-3 control-label is-required">微信收款密钥:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="wechatKey" th:field="*{wechatKey}" class="form-control" type="text" maxlength="500" required>
|
<textarea name="wechatKey" maxlength="500" class="form-control" rows="3" required>[[*{wechatKey}]]</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">支付宝收款商户号:</label>
|
<label class="col-sm-3 control-label is-required">支付宝收款商户号:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="aliReceivingAccount" th:field="*{aliReceivingAccount}" class="form-control" type="text" maxlength="500" required>
|
<textarea name="aliReceivingAccount" maxlength="500" class="form-control" rows="3" required>[[*{aliReceivingAccount}]]</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">支付宝收款密钥:</label>
|
<label class="col-sm-3 control-label is-required">支付宝收款密钥:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="aliKey" th:field="*{aliKey}" class="form-control" type="text" maxlength="500" required>
|
<textarea name="aliKey" maxlength="500" class="form-control" rows="3" required>[[*{aliKey}]]</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -35,15 +35,15 @@
|
|||||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="operation:rentCarBattey:add">
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="operation:rentCarBattey:add">
|
||||||
<i class="fa fa-plus"></i> 添加
|
<i class="fa fa-plus"></i> 添加
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="operation:rentCarBattey:edit">
|
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="operation:rentCarBattey:edit">-->
|
||||||
<i class="fa fa-edit"></i> 修改
|
<!-- <i class="fa fa-edit"></i> 修改-->
|
||||||
</a>
|
<!-- </a>-->
|
||||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:rentCarBattey:remove">
|
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:rentCarBattey:remove">-->
|
||||||
<i class="fa fa-remove"></i> 删除
|
<!-- <i class="fa fa-remove"></i> 删除-->
|
||||||
</a>
|
<!-- </a>-->
|
||||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="operation:rentCarBattey:export">
|
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="operation:rentCarBattey:export">-->
|
||||||
<i class="fa fa-download"></i> 导出
|
<!-- <i class="fa fa-download"></i> 导出-->
|
||||||
</a>
|
<!-- </a>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-12 select-table table-striped">
|
<div class="col-sm-12 select-table table-striped">
|
||||||
<table id="bootstrap-table"></table>
|
<table id="bootstrap-table"></table>
|
||||||
|
|||||||
@ -69,9 +69,9 @@
|
|||||||
<a class="btn btn-success" onclick="$.operate.addCustomize(null,900,700)" shiro:hasPermission="operation:rentCarRule:add">
|
<a class="btn btn-success" onclick="$.operate.addCustomize(null,900,700)" shiro:hasPermission="operation:rentCarRule:add">
|
||||||
<i class="fa fa-plus"></i> 添加
|
<i class="fa fa-plus"></i> 添加
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:rentCarRule:remove">
|
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:rentCarRule:remove">-->
|
||||||
<i class="fa fa-remove"></i> 删除
|
<!-- <i class="fa fa-remove"></i> 删除-->
|
||||||
</a>
|
<!-- </a>-->
|
||||||
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="operation:rentCarRule:export">-->
|
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="operation:rentCarRule:export">-->
|
||||||
<!-- <i class="fa fa-download"></i> 导出-->
|
<!-- <i class="fa fa-download"></i> 导出-->
|
||||||
<!-- </a>-->
|
<!-- </a>-->
|
||||||
|
|||||||
@ -33,18 +33,6 @@
|
|||||||
<input name="phone" class="form-control" type="text" required>
|
<input name="phone" class="form-control" type="text" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label ">联系人2:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="contactPerson2" class="form-control" type="text" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label ">联系电话2:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="phone2" class="form-control" type="text" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">所属运营商:</label>
|
<label class="col-sm-3 control-label is-required">所属运营商:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|||||||
@ -14,12 +14,12 @@
|
|||||||
<input name="userName" class="form-control" type="text" required>
|
<input name="userName" class="form-control" type="text" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<!-- <div class="form-group">-->
|
||||||
<label class="col-sm-3 control-label is-required">密码:</label>
|
<!-- <label class="col-sm-3 control-label is-required">密码:</label>-->
|
||||||
<div class="col-sm-8">
|
<!-- <div class="col-sm-8">-->
|
||||||
<input name="password" class="form-control" type="text" required>
|
<!-- <input name="password" class="form-control" type="text" required>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">手机号:</label>
|
<label class="col-sm-3 control-label is-required">手机号:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|||||||
@ -34,18 +34,6 @@
|
|||||||
<input name="phone" th:field="*{phone}" class="form-control" type="text" required>
|
<input name="phone" th:field="*{phone}" class="form-control" type="text" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label ">联系人2:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="contactPerson2" th:field="*{contactPerson2}" class="form-control" type="text" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label ">联系电话2:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="phone2" th:field="*{phone2}" class="form-control" type="text" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">所属运营商:</label>
|
<label class="col-sm-3 control-label is-required">所属运营商:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|||||||
@ -70,12 +70,12 @@
|
|||||||
<a class="btn btn-success" onclick="$.operate.addCustomize(null,1300,700)" shiro:hasPermission="operation:store:add">
|
<a class="btn btn-success" onclick="$.operate.addCustomize(null,1300,700)" shiro:hasPermission="operation:store:add">
|
||||||
<i class="fa fa-plus"></i> 添加
|
<i class="fa fa-plus"></i> 添加
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="operation:store:edit">
|
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="operation:store:edit">-->
|
||||||
<i class="fa fa-edit"></i> 修改
|
<!-- <i class="fa fa-edit"></i> 修改-->
|
||||||
</a>
|
<!-- </a>-->
|
||||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:store:remove">
|
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:store:remove">-->
|
||||||
<i class="fa fa-remove"></i> 删除
|
<!-- <i class="fa fa-remove"></i> 删除-->
|
||||||
</a>
|
<!-- </a>-->
|
||||||
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="operation:store:export">-->
|
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="operation:store:export">-->
|
||||||
<!-- <i class="fa fa-download"></i> 导出-->
|
<!-- <i class="fa fa-download"></i> 导出-->
|
||||||
<!-- </a>-->
|
<!-- </a>-->
|
||||||
@ -191,7 +191,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: function(value, row, index) {
|
formatter: function(value, row, index) {
|
||||||
var actions = [];
|
var actions = [];
|
||||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + ' btnOption" href="javascript:void(0)" onclick="assStoreUser(\'' + row.id + '\')"><i class="fa fa-edit"></i>门店用户</a> ');
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + ' btnOption" href="javascript:void(0)" onclick="addStoreUser(\'' + row.id + '\')"><i class="fa fa-edit"></i>门店用户</a> ');
|
||||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + ' btnOption" href="javascript:void(0)" onclick="$.operate.editCustomize(\'' + row.id + '\',1300,700)"><i class="fa fa-edit"></i>修改</a> ');
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + ' btnOption" href="javascript:void(0)" onclick="$.operate.editCustomize(\'' + row.id + '\',1300,700)"><i class="fa fa-edit"></i>修改</a> ');
|
||||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + ' btnOption" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + ' btnOption" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||||
if (row.status == 1) {
|
if (row.status == 1) {
|
||||||
@ -220,7 +220,7 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function assStoreUser(id){
|
function addStoreUser(id){
|
||||||
$.modal.open("添加门店用户", prefix + "/addStoreUser/" + id);
|
$.modal.open("添加门店用户", prefix + "/addStoreUser/" + id);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -23,6 +23,12 @@
|
|||||||
<li>
|
<li>
|
||||||
手机号码:<input type="text" name="phonenumber"/>
|
手机号码:<input type="text" name="phonenumber"/>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
用户类型:<select name="userType" th:with="type=${@dict.getType('sys_user_type')}">
|
||||||
|
<option value="">所有</option>
|
||||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
用户状态:<select name="status" th:with="type=${@dict.getType('sys_normal_disable')}">
|
用户状态:<select name="status" th:with="type=${@dict.getType('sys_normal_disable')}">
|
||||||
<option value="">所有</option>
|
<option value="">所有</option>
|
||||||
|
|||||||
@ -23,8 +23,5 @@ public class Zoning extends BaseEntity {
|
|||||||
private String villageCode;
|
private String villageCode;
|
||||||
/** 村名称 */
|
/** 村名称 */
|
||||||
private String villageName;
|
private String villageName;
|
||||||
/** 办案室ID */
|
|
||||||
private Long groupId;
|
|
||||||
/** 组名称 */
|
|
||||||
private String groupName;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -135,6 +135,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="groupName != null and groupName != ''">
|
<if test="groupName != null and groupName != ''">
|
||||||
AND u.group_name like concat('%', #{groupName}, '%')
|
AND u.group_name like concat('%', #{groupName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="userType != null and userType != ''">
|
||||||
|
AND u.user_type = #{userType}
|
||||||
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
AND date_format(u.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
AND date_format(u.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user