public void copy(UserMsgSubscribeBean source) {
BeanCopyUtil.beanCopy(source, this);
}
Bean getIdDate = regulationDao.findOne(ParamBean.getId());//跟根据ID获取需要更新的数据的 原始数据
getIdDate.systemRuleBeanCopy(ParamBean);//将新数据中非空字段 克隆到原始数据中 实现更新
regulationDao.saveAndFlush(getIdDate);//保存克隆之后的数据 且 saveAndFlush立即生效
null.null.Assert.isNull(Object, String)IllegalArgumentException
if the expression evaluates to false.IllegalArgumentException
if the expression evaluates to false.Assert.isTrue(boolean, String)null and must contain at least one element.null.null.Assert.notNull(Object, String)Copyright © 2024 tan. All rights reserved.