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

新增:气瓶信息同步方法

parent f9acd47f
......@@ -94,6 +94,4 @@ public class SyncCylinderDataService
public void syncCylinderTag(List<CylinderTagsDto> cylinderTagsDtos) {
}
public void syncCylinderInfo(List<CylinderInfoDto> cylinderInfoDtos) {
}
}
......@@ -63,7 +63,7 @@ public class TmCylinderInfoService extends BaseService<TmCylinderInfoModel, TmCy
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("气瓶基本信息数据为空.");
syncCylinderInfo(model);
for (TmCylinderInfoModel cylinderInfoModel : model) {
cylinderInfoModel.setRecDate(new Date());
cylinderInfoModel.setAppId(getAppId());
......@@ -72,7 +72,7 @@ public class TmCylinderInfoService extends BaseService<TmCylinderInfoModel, TmCy
return "OK";
}
@Transactional(rollbackFor= {Exception.class})
private void syncCylinderUnitModel(List<TmCylinderInfoModel> model ) {
private void syncCylinderInfo(List<TmCylinderInfoModel> model ) {
List<CylinderInfoDto> cylinderInfoDto = Bean.toModels(model,CylinderInfoDto.class);
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