ソースを参照

[chg]新增电梯校验判断修改

别傲 5 年 前
コミット
96085d3125

+ 1 - 1
lift-business-service/src/main/java/cn/com/ty/lift/business/library/service/LiftService.java

@@ -158,7 +158,7 @@ public class LiftService {
         /*if (judge(mtCompanyId))
         return RestResponse.fail(ApiConstants.RESULT_ERROR, MessageUtils.get("msg.limit.num"));*/
         RestResponse response = preJudgment(mtCompanyId, lift.getRegistrationCode(), null);
-        if (ObjectUtil.isNotEmpty(response.getData())) return response;
+        if (ApiConstants.RESULT_ERROR.equals(response.getMessage())) return response;
         if ("0".equals(mark)) {
             //按当前日期时间戳自动生成电梯编号
             String liftCode = ApiConstants.STRAIGHT_LADDER + DateUtils.generateCode();