|
|
@ -507,7 +507,7 @@ public class AssetCurrentController extends BaseController {
|
|
|
|
@PutMapping
|
|
|
|
@PutMapping
|
|
|
|
public AjaxResult update(@RequestBody @Valid AssetCurrent assetCurrent) {
|
|
|
|
public AjaxResult update(@RequestBody @Valid AssetCurrent assetCurrent) {
|
|
|
|
//保存未修改之前的单位名称
|
|
|
|
//保存未修改之前的单位名称
|
|
|
|
AssetCurrent byId = assetCurrentService.getById(assetCurrent.getId());
|
|
|
|
// AssetCurrent byId = assetCurrentService.getById(assetCurrent.getId());
|
|
|
|
StringBuilder a = new StringBuilder();
|
|
|
|
StringBuilder a = new StringBuilder();
|
|
|
|
if (assetCurrent.getGlymList() != null) {
|
|
|
|
if (assetCurrent.getGlymList() != null) {
|
|
|
|
assetCurrent.getGlymList().forEach(x -> {
|
|
|
|
assetCurrent.getGlymList().forEach(x -> {
|
|
|
@ -656,6 +656,8 @@ public class AssetCurrentController extends BaseController {
|
|
|
|
if (dwmcList.isEmpty()) {
|
|
|
|
if (dwmcList.isEmpty()) {
|
|
|
|
delete(assetCurrent);
|
|
|
|
delete(assetCurrent);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
delete(assetCurrent);
|
|
|
|
delete(assetCurrent);
|
|
|
|
for (AssetTask s:dwmcList){
|
|
|
|
for (AssetTask s:dwmcList){
|
|
|
|
|
|
|
|
|
|
|
|