异常信息 添加 USER_LOGIN_NAME_EXCEPTION

yun-zuoyi
wei.peng 7 years ago
parent 5335cf3b44
commit 978bb1e8be

@ -30,14 +30,15 @@ public abstract class BaseBean implements Serializable {
//此处使用hibernate的主键策略方式
//手动设置,使用iplus-platform-common中的idtool生成
//将Long类型系列化成String避免精度丢失
@Id
@GeneratedValue(generator = "IDGenerator")
@GenericGenerator(name = "IDGenerator", strategy = "assigned")
@Column(name="id")
@ApiParam(value = "主键",example = "0")
//将Long类型系列化成String避免精度丢失
@JsonSerialize(using = ToStringSerializer.class)
public Long id;
//get单独处理
public Long getId() {
if(id != null) {

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

@ -144,7 +144,7 @@ public class BaseRepositoryImpl<T, ID extends Serializable> extends SimpleJpaRep
}
@Override
public void deleteByIdIn(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);

@ -82,7 +82,7 @@ public class SysMenu extends BaseBean {
@Column(name="MENU_STATUS")
@ApiParam(value ="功能状态1.正常2.禁用)" , example ="1" , access ="功能状态1.正常2.禁用)",defaultValue="1")
private Integer menuStatus = 1;
private Integer menuStatus;
@ApiParam(value ="子集列表")
private transient List<SysMenu> childList;

Loading…
Cancel
Save