yunhao.wang 7 years ago
commit 3cfcb84f50

@ -108,4 +108,8 @@ public abstract class BaseBean implements Serializable {
} }
return result; return result;
} }
public String getOrderByParam() {
return this.orderByParam == null ? "" : this.orderByParam;
}
} }

@ -80,7 +80,7 @@ public interface BaseRepository <T, ID extends Serializable> extends JpaReposito
* in * in
* @param ids * @param ids
*/ */
public void deleteByIds(long[] ids); public void deleteByIds(Long[] ids);
/** /**
* *

@ -144,7 +144,7 @@ public class BaseRepositoryImpl<T, ID extends Serializable> extends SimpleJpaRep
} }
@Override @Override
public void deleteByIds(long[] ids) { public void deleteByIds(Long[] ids) {
if(ids != null && ids.length > 0){ if(ids != null && ids.length > 0){
String hql = "delete from " + persistentClass.getName() + " model where model.id in(:ids) "; String hql = "delete from " + persistentClass.getName() + " model where model.id in(:ids) ";
Query query = entityManager.createQuery(hql); Query query = entityManager.createQuery(hql);

@ -64,4 +64,13 @@ public class RefRoleMenu extends BaseBean {
@ApiParam(value ="角色名称" , access ="角色名称") @ApiParam(value ="角色名称" , access ="角色名称")
private String redRoleName; private String redRoleName;
public RefRoleMenu() {
}
public RefRoleMenu(Long menuId, String redMenuName, Long roleId, String redRoleName) {
this.menuId = menuId;
this.redMenuName = redMenuName;
this.roleId = roleId;
this.redRoleName = redRoleName;
}
} }

Loading…
Cancel
Save