| | |
| | | /** |
| | | * 所有客户权限 |
| | | */ |
| | | private String coustomer; |
| | | private String customer; |
| | | |
| | | /** |
| | | * 功能集合 |
| | |
| | | @Extend |
| | | private String menuKeys; |
| | | |
| | | public String getCoustomer() { |
| | | return coustomer; |
| | | public String getCustomer() { |
| | | return customer; |
| | | } |
| | | |
| | | public void setCoustomer(String coustomer) { |
| | | this.coustomer = coustomer; |
| | | public void setCustomer(String customer) { |
| | | this.customer = customer; |
| | | } |
| | | |
| | | public Integer getIsDefault() { |
| | |
| | | <result property="companyId" column="company_id" /> |
| | | <result property="plates" column="plates" /> |
| | | <result property="shopAble" column="shop_able" /> |
| | | <result property="coustomer" column="coustomer" /> |
| | | <result property="customer" column="customer" /> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | company_id, |
| | | plates, |
| | | is_default, |
| | | coustomer, |
| | | customer, |
| | | shop_able |
| | | ) |
| | | VALUES ( |
| | |
| | | #{companyId}, |
| | | #{plates}, |
| | | #{isDefault}, |
| | | #{coustomer}, |
| | | #{customer}, |
| | | #{shopAble} |
| | | ) |
| | | </insert> |
| | |
| | | company_id, |
| | | plates, |
| | | is_default, |
| | | coustomer, |
| | | customer, |
| | | shop_able |
| | | ) |
| | | VALUES |
| | |
| | | #{item.companyId}, |
| | | #{item.plates}, |
| | | #{item.isDefault}, |
| | | #{item.coustomer}, |
| | | #{item.customer}, |
| | | #{item.shopAble} |
| | | ) |
| | | </foreach> |
| | |
| | | <if test="_parameter.containsKey('shopAble')"> |
| | | shop_able = #{shopAble}, |
| | | </if> |
| | | <if test="_parameter.containsKey('coustomer')"> |
| | | coustomer = #{coustomer}, |
| | | <if test="_parameter.containsKey('customer')"> |
| | | customer = #{customer}, |
| | | </if> |
| | | </set> |
| | | WHERE role_id=#{roleId} |
| | |
| | | <if test="(shopAble!=null and shopAble!='') or (shopAble!='' and shopAble==0)"> |
| | | shop_able = #{shopAble}, |
| | | </if> |
| | | <if test="(coustomer!=null and coustomer!='') or (coustomer!='' and coustomer==0)"> |
| | | coustomer = #{coustomer}, |
| | | <if test="(customer!=null and customer!='') or (customer!='' and customer==0)"> |
| | | customer = #{customer}, |
| | | </if> |
| | | </set> |
| | | WHERE role_id=#{roleId} |
| | |
| | | company_id, |
| | | plates, |
| | | is_default, |
| | | coustomer, |
| | | customer, |
| | | shop_able |
| | | from sys_role |
| | | <where> |
| | |
| | | company_id, |
| | | plates, |
| | | is_default, |
| | | coustomer, |
| | | customer, |
| | | shop_able |
| | | from sys_role |
| | | where role_id=#{roleId} |
| | |
| | | company_id, |
| | | plates, |
| | | is_default, |
| | | coustomer, |
| | | customer, |
| | | shop_able |
| | | from sys_role |
| | | <where> |
| | |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">可查询所有门店客户</label> |
| | | <div class="col-sm-4"> |
| | | <select class="form-control" name="coustomer"> |
| | | <option th:selected="${obj?.coustomer == '是'}" >是</option> |
| | | <option th:selected="${obj?.coustomer == '否'}" >否</option> |
| | | <select class="form-control" name="customer"> |
| | | <option th:selected="${obj?.customer == '是'}" >是</option> |
| | | <option th:selected="${obj?.customer == '否'}" >否</option> |
| | | </select> |
| | | </div> |
| | | <label class="col-sm-2 control-label">是否允许门店分配本角色</label> |