|
@@ -219,9 +219,8 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
|
|
|
* 1:显示字段为true的进行显示
|
|
|
* 2:有报修的都要显示
|
|
|
* 3:红色:非计划性维修的设备
|
|
|
- * 黄色:计划性维修的设备
|
|
|
- * 蓝色:正常的设备
|
|
|
- *
|
|
|
+ * 黄色:计划性维修的设备
|
|
|
+ * 蓝色:正常的设备
|
|
|
*
|
|
|
* @param model
|
|
|
* @return
|
|
@@ -735,6 +734,7 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
|
|
|
|
|
|
/**
|
|
|
* 保存维保手册
|
|
|
+ *
|
|
|
* @param model
|
|
|
*/
|
|
|
private void saveRecheckFile(SbInfoDTO model) {
|
|
@@ -826,14 +826,16 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
|
|
|
}
|
|
|
|
|
|
// 自定义参数
|
|
|
- if(StringUtils.isNotBlank(sbInfo.getParamList()) && sbInfo.getParamList() != ""){
|
|
|
+ if (StringUtils.isNotBlank(sbInfo.getParamList()) && sbInfo.getParamList() != "") {
|
|
|
JSONArray jsonArray = JSONArray.parseArray(sbInfo.getParamList());
|
|
|
StringBuffer sBuffer = new StringBuffer();
|
|
|
- for(int i = 0; i < jsonArray.size(); i++) {
|
|
|
- JSONObject obj = jsonArray.getJSONObject(i);
|
|
|
- String name = (String) obj.get("name");
|
|
|
- String content = (String) obj.get("content");
|
|
|
- sBuffer.append("名称:" + name + ",内容:" + content + ";");
|
|
|
+ if (jsonArray != null) {
|
|
|
+ for (int i = 0; i < jsonArray.size(); i++) {
|
|
|
+ JSONObject obj = jsonArray.getJSONObject(i);
|
|
|
+ String name = (String) obj.get("name");
|
|
|
+ String content = (String) obj.get("content");
|
|
|
+ sBuffer.append("名称:" + name + ",内容:" + content + ";");
|
|
|
+ }
|
|
|
}
|
|
|
sbInfo.setParamList(sBuffer.toString());
|
|
|
}
|
|
@@ -1637,7 +1639,7 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
for (SbInfoVO item : items) {
|
|
|
|
|
|
- boolean findPosition= false;
|
|
|
+ boolean findPosition = false;
|
|
|
for (SbPosition position : positionList) {
|
|
|
if (position.getName().equalsIgnoreCase(item.getPositionName())) {
|
|
|
item.setPositionId(position.getId());
|