use of com.jeeagile.system.entity.AgileSysDictData in project jeeagile by jeeagile.
the class AgileSysDictTypeServiceImpl method updateModel.
@Override
public boolean updateModel(AgileSysDictType agileSysDictType) {
this.validateData(agileSysDictType);
AgileSysDictType oldAgileSysDictType = this.getById(agileSysDictType.getId());
if (oldAgileSysDictType.getDictType() != agileSysDictType.getDictType()) {
LambdaUpdateWrapper<AgileSysDictData> lambdaUpdateWrapper = new UpdateWrapper().lambda();
lambdaUpdateWrapper.set(AgileSysDictData::getDictType, agileSysDictType.getDictType());
lambdaUpdateWrapper.eq(AgileSysDictData::getDictType, oldAgileSysDictType.getDictType());
agileSysDictDataService.update(lambdaUpdateWrapper);
}
return this.updateById(agileSysDictType);
}
Aggregations