解决权限bug
This commit is contained in:
@@ -81,4 +81,13 @@ public class FunctionsService {
|
||||
List<Functions> list = functionsMapper.selectByExample(example);
|
||||
return list;
|
||||
}
|
||||
|
||||
public List<Functions> findByIds(String functionsIds){
|
||||
List<Long> idList = StringUtil.strToLongList(functionsIds);
|
||||
FunctionsExample example = new FunctionsExample();
|
||||
example.createCriteria().andEnabledEqualTo(true).andIdIn(idList);
|
||||
example.setOrderByClause("Sort asc");
|
||||
List<Functions> list = functionsMapper.selectByExample(example);
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,4 +108,12 @@ public class SupplierService {
|
||||
example.createCriteria().andIdIn(ids);
|
||||
return supplierMapper.updateByExampleSelective(supplier, example);
|
||||
}
|
||||
|
||||
public List<Supplier> findUserCustomer(){
|
||||
SupplierExample example = new SupplierExample();
|
||||
example.createCriteria().andTypeEqualTo("客户");
|
||||
example.setOrderByClause("id desc");
|
||||
List<Supplier> list = supplierMapper.selectByExample(example);
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,4 +89,12 @@ public class UserBusinessService {
|
||||
}
|
||||
}
|
||||
|
||||
public int updateBtnStr(Long userBusinessId, String btnStr) {
|
||||
UserBusiness userBusiness = new UserBusiness();
|
||||
userBusiness.setBtnstr(btnStr);
|
||||
UserBusinessExample example = new UserBusinessExample();
|
||||
example.createCriteria().andIdEqualTo(userBusinessId);
|
||||
return userBusinessMapper.updateByExampleSelective(userBusiness, example);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user