|
@ -1,10 +1,7 @@ |
|
|
package com.kms.yg.df.controller; |
|
|
package com.kms.yg.df.controller; |
|
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
import java.math.BigDecimal; |
|
|
import java.util.ArrayList; |
|
|
import java.util.*; |
|
|
import java.util.Arrays; |
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
@ -182,6 +179,15 @@ public class BsSgcDfSafeJbxxController extends BaseController { |
|
|
@PutMapping |
|
|
@PutMapping |
|
|
public AjaxResult edit(@RequestBody BsSgcDfSafeJbxx bsSgcSzSafeJbxx) { |
|
|
public AjaxResult edit(@RequestBody BsSgcDfSafeJbxx bsSgcSzSafeJbxx) { |
|
|
// bsSgcSzSafeJbxx.setStatus("4");
|
|
|
// bsSgcSzSafeJbxx.setStatus("4");
|
|
|
|
|
|
if (bsSgcSzSafeJbxx.getStatus().equals("6")) { |
|
|
|
|
|
String id = bsSgcSzSafeJbxx.getId(); |
|
|
|
|
|
BsSgcDfSafeJbxx byId = bsSgcSzSafeJbxxService.getById(id); |
|
|
|
|
|
byId.setExprDate(new Date()); |
|
|
|
|
|
byId.setId(UUID.randomUUID().toString()); |
|
|
|
|
|
bsSgcSzSafeJbxxService.save(byId); |
|
|
|
|
|
bsSgcSzSafeJbxx.setEffDate(new Date()); |
|
|
|
|
|
bsSgcSzSafeJbxx.setExprDate(null); |
|
|
|
|
|
} |
|
|
return toAjax(bsSgcSzSafeJbxxService.updateById(bsSgcSzSafeJbxx)); |
|
|
return toAjax(bsSgcSzSafeJbxxService.updateById(bsSgcSzSafeJbxx)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|