|
|
@@ -88,15 +88,15 @@ public class FosterwxMobilePoolController extends BaseController<FosterwxMobileP
|
|
|
}
|
|
|
fosterwxMobilePoolService.updateById(editHandle.getRaw());
|
|
|
|
|
|
- // 判断专挑或阈值是否有更改
|
|
|
+ // 判断状态或阈值是否有更改
|
|
|
Map<String, Object> body = new HashMap<>(1);
|
|
|
body.put("ids", id);
|
|
|
boolean ischange = false;
|
|
|
- if (!Objects.equals(oldVO.getStatus(), editHandle.getRaw().getStatus())) {
|
|
|
+ if (!Objects.equals(oldVO.getStatus(), editHandle.getRaw().getStatus()) && null != editHandle.getRaw().getStatus()) {
|
|
|
ischange = true;
|
|
|
body.put("status", editHandle.getRaw().getStatus() == 0 ? 2 : 1);
|
|
|
}
|
|
|
- if (!Objects.equals(oldVO.getMaxFans(), editHandle.getRaw().getMaxFans())) {
|
|
|
+ if (!Objects.equals(oldVO.getMaxFans(), editHandle.getRaw().getMaxFans()) && null != editHandle.getRaw().getMaxFans()) {
|
|
|
ischange = true;
|
|
|
body.put("threshold", editHandle.getRaw().getMaxFans());
|
|
|
}
|