|
@@ -134,64 +134,94 @@ public class CenterdataTHousingconstructionSteelcylinderLogController extends Ba
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getWorkCard())) {
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getWorkCard())) {
|
|
- Map<String,Object> photo = new HashMap<>();
|
|
|
|
- photo.put("key","workCard");
|
|
|
|
- photo.put("value", steelcylinderLog.getWorkCard());
|
|
|
|
- list.add(photo);
|
|
|
|
|
|
+ String[] paths = steelcylinderLog.getWorkCard().split(",");
|
|
|
|
+ for (String part : paths) {
|
|
|
|
+ Map<String,Object> photo = new HashMap<>();
|
|
|
|
+ photo.put("key","workCard");
|
|
|
|
+ photo.put("value", part);
|
|
|
|
+ list.add(photo);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getPitfall())) {
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getPitfall())) {
|
|
- Map<String,Object> photo = new HashMap<>();
|
|
|
|
- photo.put("key","pitfall");
|
|
|
|
- photo.put("value", steelcylinderLog.getPitfall());
|
|
|
|
- list.add(photo);
|
|
|
|
|
|
+ String[] paths = steelcylinderLog.getPitfall().split(",");
|
|
|
|
+ for (String part : paths) {
|
|
|
|
+ Map<String,Object> photo = new HashMap<>();
|
|
|
|
+ photo.put("key","pitfall");
|
|
|
|
+ photo.put("value", part);
|
|
|
|
+ list.add(photo);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getPitfallDetails())) {
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getPitfallDetails())) {
|
|
- Map<String,Object> photo = new HashMap<>();
|
|
|
|
- photo.put("key","pitfallDetails");
|
|
|
|
- photo.put("value", steelcylinderLog.getPitfallDetails());
|
|
|
|
- list.add(photo);
|
|
|
|
|
|
+ String[] paths = steelcylinderLog.getPitfallDetails().split(",");
|
|
|
|
+ for (String part : paths) {
|
|
|
|
+ Map<String,Object> photo = new HashMap<>();
|
|
|
|
+ photo.put("key","pitfallDetails");
|
|
|
|
+ photo.put("value", part);
|
|
|
|
+ list.add(photo);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getInformation())) {
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getInformation())) {
|
|
- Map<String,Object> photo = new HashMap<>();
|
|
|
|
- photo.put("key","information");
|
|
|
|
- photo.put("value", steelcylinderLog.getInformation());
|
|
|
|
- list.add(photo);
|
|
|
|
|
|
+ String[] paths = steelcylinderLog.getInformation().split(",");
|
|
|
|
+ for (String part : paths) {
|
|
|
|
+ Map<String,Object> photo = new HashMap<>();
|
|
|
|
+ photo.put("key","information");
|
|
|
|
+ photo.put("value", part);
|
|
|
|
+ list.add(photo);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getSteelCylinder())) {
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getSteelCylinder())) {
|
|
- Map<String,Object> photo = new HashMap<>();
|
|
|
|
- photo.put("key","steelCylinder");
|
|
|
|
- photo.put("value", steelcylinderLog.getSteelCylinder());
|
|
|
|
- list.add(photo);
|
|
|
|
|
|
+ String[] paths = steelcylinderLog.getSteelCylinder().split(",");
|
|
|
|
+ for (String part : paths) {
|
|
|
|
+ Map<String,Object> photo = new HashMap<>();
|
|
|
|
+ photo.put("key","steelCylinder");
|
|
|
|
+ photo.put("value", part);
|
|
|
|
+ list.add(photo);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getTailpiece())) {
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getTailpiece())) {
|
|
- Map<String,Object> photo = new HashMap<>();
|
|
|
|
- photo.put("key","tailpiece");
|
|
|
|
- photo.put("value", steelcylinderLog.getTailpiece());
|
|
|
|
- list.add(photo);
|
|
|
|
|
|
+ String[] paths = steelcylinderLog.getTailpiece().split(",");
|
|
|
|
+ for (String part : paths) {
|
|
|
|
+ Map<String,Object> photo = new HashMap<>();
|
|
|
|
+ photo.put("key","tailpiece");
|
|
|
|
+ photo.put("value", part);
|
|
|
|
+ list.add(photo);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getInstrument())) {
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getInstrument())) {
|
|
- Map<String,Object> photo = new HashMap<>();
|
|
|
|
- photo.put("key","instrument");
|
|
|
|
- photo.put("value", steelcylinderLog.getInstrument());
|
|
|
|
- list.add(photo);
|
|
|
|
|
|
+ String[] paths = steelcylinderLog.getInstrument().split(",");
|
|
|
|
+ for (String part : paths) {
|
|
|
|
+ Map<String,Object> photo = new HashMap<>();
|
|
|
|
+ photo.put("key","instrument");
|
|
|
|
+ photo.put("value", part);
|
|
|
|
+ list.add(photo);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getValve())) {
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getValve())) {
|
|
- Map<String,Object> photo = new HashMap<>();
|
|
|
|
- photo.put("key","valve");
|
|
|
|
- photo.put("value", steelcylinderLog.getValve());
|
|
|
|
- list.add(photo);
|
|
|
|
|
|
+ String[] paths = steelcylinderLog.getValve().split(",");
|
|
|
|
+ for (String part : paths) {
|
|
|
|
+ Map<String,Object> photo = new HashMap<>();
|
|
|
|
+ photo.put("key","valve");
|
|
|
|
+ photo.put("value", part);
|
|
|
|
+ list.add(photo);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getWarningDevice())) {
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getWarningDevice())) {
|
|
- Map<String,Object> photo = new HashMap<>();
|
|
|
|
- photo.put("key","warningDevice");
|
|
|
|
- photo.put("value", steelcylinderLog.getWarningDevice());
|
|
|
|
- list.add(photo);
|
|
|
|
|
|
+ String[] paths = steelcylinderLog.getWarningDevice().split(",");
|
|
|
|
+ for (String part : paths) {
|
|
|
|
+ Map<String,Object> photo = new HashMap<>();
|
|
|
|
+ photo.put("key","warningDevice");
|
|
|
|
+ photo.put("value", part);
|
|
|
|
+ list.add(photo);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getEnvironment())) {
|
|
if (StringUtils.isNotEmpty(steelcylinderLog.getEnvironment())) {
|
|
- Map<String,Object> photo = new HashMap<>();
|
|
|
|
- photo.put("key","environment");
|
|
|
|
- photo.put("value", steelcylinderLog.getEnvironment());
|
|
|
|
- list.add(photo);
|
|
|
|
|
|
+ String[] paths = steelcylinderLog.getEnvironment().split(",");
|
|
|
|
+ for (String part : paths) {
|
|
|
|
+ Map<String,Object> photo = new HashMap<>();
|
|
|
|
+ photo.put("key","environment");
|
|
|
|
+ photo.put("value", part);
|
|
|
|
+ list.add(photo);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (StringUtils.isNotEmpty(list)) {
|
|
if (StringUtils.isNotEmpty(list)) {
|
|
attachService.addAttach(list, log.getId());
|
|
attachService.addAttach(list, log.getId());
|