|
@@ -30,6 +30,7 @@ import cn.com.ty.lift.common.model.PushUserInfo;
|
|
|
import cn.com.ty.lift.common.utils.DateUtils;
|
|
|
import cn.com.ty.lift.common.utils.SendMessageUtil;
|
|
|
import cn.com.ty.lift.common.verify.Validate;
|
|
|
+import cn.com.ty.lift.common.verify.VerifyUtils;
|
|
|
import cn.com.xwy.boot.web.dto.RestResponse;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
@@ -385,6 +386,12 @@ public class LiftService extends ServiceImpl<LiftMapper, Lift> {
|
|
|
Optional<Lift> oldLift = getOne(null, lift.getId());
|
|
|
if (!oldLift.isPresent())
|
|
|
return RestResponse.fail(MessageUtils.get("msg.lift.not.exist"));
|
|
|
+ String coordinate = lift.getCoordinate();
|
|
|
+ if (Objects.nonNull(coordinate)) {
|
|
|
+ boolean ret = VerifyUtils.preJudgment(coordinate);
|
|
|
+ if (!ret)
|
|
|
+ return RestResponse.fail(MessageUtils.get("msg.longitude.error"));
|
|
|
+ }
|
|
|
boolean result = updateById(lift);
|
|
|
if (!result)
|
|
|
return RestResponse.fail(MessageUtils.get("msg.modify.fail"));
|