|
|
@ -75,6 +75,7 @@ public class MaterialServiceImpl implements MaterialService { |
|
|
|
log.info("update add material success from {} to {} ", JSON.toJSONString(oldMaterial),JSON.toJSONString(newMaterial)); |
|
|
|
}else{ |
|
|
|
log.error("update add material failed from {} to {} ", JSON.toJSONString(oldMaterial),JSON.toJSONString(newMaterial)); |
|
|
|
throw new RuntimeException("update add material failed"); |
|
|
|
} |
|
|
|
}else{ |
|
|
|
BeanUtils.copyProperties(material,newMaterial); |
|
|
@ -83,10 +84,12 @@ public class MaterialServiceImpl implements MaterialService { |
|
|
|
log.info("add material success {}", JSON.toJSONString(newMaterial)); |
|
|
|
}else{ |
|
|
|
log.error("add material failed {}", JSON.toJSONString(newMaterial)); |
|
|
|
throw new RuntimeException("add material failed"); |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
return false; |
|
|
|
log.error("add material failed {}", JSON.toJSONString(material)); |
|
|
|
throw new RuntimeException("add material failed"); |
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|