|
|
@ -2,6 +2,7 @@ package com.kms.warn.controller; |
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.List; |
|
|
|
import java.util.UUID; |
|
|
|
|
|
|
|
import com.jianwei.common.core.controller.BaseController; |
|
|
|
import com.jianwei.common.core.domain.SearchParam; |
|
|
@ -109,7 +110,18 @@ public class BsSgcJsjdWarnResultHandleController extends BaseController |
|
|
|
@PutMapping |
|
|
|
public AjaxResult edit(@RequestBody BsSgcJsjdWarnResultHandle bsSgcJsjdWarnResultHandle) |
|
|
|
{ |
|
|
|
return toAjax(bsSgcJsjdWarnResultHandleService.updateById(bsSgcJsjdWarnResultHandle)); |
|
|
|
if (bsSgcJsjdWarnResultHandle.getStatus().equals("2")|| |
|
|
|
bsSgcJsjdWarnResultHandle.getStatus().equals("1")) { |
|
|
|
BaseEntityUtils.preUpdate(bsSgcJsjdWarnResultHandle); |
|
|
|
bsSgcJsjdWarnResultHandleService.updateById(bsSgcJsjdWarnResultHandle); |
|
|
|
bsSgcJsjdWarnResultHandle.setId(UUID.randomUUID().toString()); |
|
|
|
bsSgcJsjdWarnResultHandle.setStatus(null); |
|
|
|
BaseEntityUtils.preInsert(bsSgcJsjdWarnResultHandle); |
|
|
|
bsSgcJsjdWarnResultHandleService.save(bsSgcJsjdWarnResultHandle); |
|
|
|
return AjaxResult.success(); |
|
|
|
}else { |
|
|
|
return toAjax(bsSgcJsjdWarnResultHandleService.updateById(bsSgcJsjdWarnResultHandle)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|