Commit 653b492d authored by 刘凡's avatar 刘凡

新增:气瓶信息同步方法

parent f9acd47f
...@@ -94,6 +94,4 @@ public class SyncCylinderDataService ...@@ -94,6 +94,4 @@ public class SyncCylinderDataService
public void syncCylinderTag(List<CylinderTagsDto> cylinderTagsDtos) { public void syncCylinderTag(List<CylinderTagsDto> cylinderTagsDtos) {
} }
public void syncCylinderInfo(List<CylinderInfoDto> cylinderInfoDtos) {
}
} }
...@@ -63,7 +63,7 @@ public class TmCylinderInfoService extends BaseService<TmCylinderInfoModel, TmCy ...@@ -63,7 +63,7 @@ public class TmCylinderInfoService extends BaseService<TmCylinderInfoModel, TmCy
// TODO Auto-generated method stub // TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model)) if (ValidationUtil.isEmpty(model))
throw new BadRequest("气瓶基本信息数据为空."); throw new BadRequest("气瓶基本信息数据为空.");
syncCylinderInfo(model);
for (TmCylinderInfoModel cylinderInfoModel : model) { for (TmCylinderInfoModel cylinderInfoModel : model) {
cylinderInfoModel.setRecDate(new Date()); cylinderInfoModel.setRecDate(new Date());
cylinderInfoModel.setAppId(getAppId()); cylinderInfoModel.setAppId(getAppId());
...@@ -72,7 +72,7 @@ public class TmCylinderInfoService extends BaseService<TmCylinderInfoModel, TmCy ...@@ -72,7 +72,7 @@ public class TmCylinderInfoService extends BaseService<TmCylinderInfoModel, TmCy
return "OK"; return "OK";
} }
@Transactional(rollbackFor= {Exception.class}) @Transactional(rollbackFor= {Exception.class})
private void syncCylinderUnitModel(List<TmCylinderInfoModel> model ) { private void syncCylinderInfo(List<TmCylinderInfoModel> model ) {
List<CylinderInfoDto> cylinderInfoDto = Bean.toModels(model,CylinderInfoDto.class); List<CylinderInfoDto> cylinderInfoDto = Bean.toModels(model,CylinderInfoDto.class);
syncCylinderDataService.syncCylinderInfo(cylinderInfoDto); syncCylinderDataService.syncCylinderInfo(cylinderInfoDto);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment