Base Bean Bug 修改

关系表添加构造函数
yun-zuoyi
wei.peng 7 years ago
parent e36c33969f
commit 4672bff2f8

@ -108,4 +108,8 @@ public abstract class BaseBean implements Serializable {
}
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
* @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
public void deleteByIds(long[] ids) {
public void deleteByIds(Long[] ids) {
if(ids != null && ids.length > 0){
String hql = "delete from " + persistentClass.getName() + " model where model.id in(:ids) ";
Query query = entityManager.createQuery(hql);

@ -64,4 +64,13 @@ public class RefRoleMenu extends BaseBean {
@ApiParam(value ="角色名称" , access ="角色名称")
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