|
@@ -81,7 +81,7 @@ public class TourismProjectTravelNotesWriteServiceImpl extends BaseService<Touri
|
|
|
public boolean update(TourismProjectTravelNotesWrite tourismProjectTravelNotesWrite, TourismProjectTravelNotesWrite originalTourismProjectTravelNotesWrite) {
|
|
|
MyModelUtil.fillCommonsForUpdate(tourismProjectTravelNotesWrite, originalTourismProjectTravelNotesWrite);
|
|
|
// 这里重点提示,在执行主表数据更新之前,如果有哪些字段不支持修改操作,请用原有数据对象字段替换当前数据字段。
|
|
|
- UpdateWrapper<TourismProjectTravelNotesWrite> uw = this.createUpdateQueryForNullValue(tourismProjectTravelNotesWrite, Long.parseLong(tourismProjectTravelNotesWrite.getId()));
|
|
|
+ UpdateWrapper<TourismProjectTravelNotesWrite> uw = this.createUpdateQueryForNullValue(tourismProjectTravelNotesWrite, tourismProjectTravelNotesWrite.getId());
|
|
|
return tourismProjectTravelNotesWriteMapper.update(tourismProjectTravelNotesWrite, uw) == 1;
|
|
|
}
|
|
|
|
|
@@ -101,7 +101,7 @@ public class TourismProjectTravelNotesWriteServiceImpl extends BaseService<Touri
|
|
|
// 对于一对一新增或更新,如果主键值为空就新增,否则就更新,同时更新updateTime和updateUserId。
|
|
|
TourismTravelNotesContentWrite tourismTravelNotesContentWrite = relationData.getObject("tourismTravelNotesContentWrite", TourismTravelNotesContentWrite.class);
|
|
|
if (tourismTravelNotesContentWrite != null) {
|
|
|
- tourismTravelNotesContentWrite.setAssociationId(Long.parseLong(tourismProjectTravelNotesWrite.getId()));
|
|
|
+ tourismTravelNotesContentWrite.setAssociationId(tourismProjectTravelNotesWrite.getId());
|
|
|
tourismTravelNotesContentWriteService.saveNewOrUpdate(tourismTravelNotesContentWrite,
|
|
|
tourismTravelNotesContentWriteService::saveNew, tourismTravelNotesContentWriteService::update);
|
|
|
}
|
|
@@ -197,7 +197,7 @@ public class TourismProjectTravelNotesWriteServiceImpl extends BaseService<Touri
|
|
|
|
|
|
private TourismProjectTravelNotesWrite buildDefaultValue(TourismProjectTravelNotesWrite tourismProjectTravelNotesWrite) {
|
|
|
if (tourismProjectTravelNotesWrite.getId() == null) {
|
|
|
- tourismProjectTravelNotesWrite.setId(String.valueOf(idGenerator.nextLongId()));
|
|
|
+ tourismProjectTravelNotesWrite.setId(idGenerator.nextLongId());
|
|
|
}
|
|
|
MyModelUtil.fillCommonsForInsert(tourismProjectTravelNotesWrite);
|
|
|
tourismProjectTravelNotesWrite.setDataState(GlobalDeletedFlag.NORMAL);
|