Merge pull request 'test' (#49) from test into prod
Reviewed-on: http://220.205.16.27:18081/goflytec/GoFly-platform-services/pulls/49
This commit is contained in:
+2
-2
@@ -54,9 +54,9 @@ public class MissionController {
|
||||
if (!StringUtils.hasText(mission.getDeviceSn())) {
|
||||
return Result.failed("设备序列号不能为空");
|
||||
}
|
||||
if (mission.getTourismId() == null) {
|
||||
/* if (mission.getTourismId() == null) {
|
||||
return Result.failed("景区ID不能为空");
|
||||
}
|
||||
}*/
|
||||
|
||||
Integer missionType = mission.getMissionType();
|
||||
if (missionType == null) {
|
||||
|
||||
+2
-2
@@ -82,9 +82,9 @@ public class MissionServiceImpl extends ServiceImpl<MissionMapper, Mission> impl
|
||||
if (mission.getDeviceSn() == null || mission.getDeviceSn().isEmpty()) {
|
||||
return Result.failed("设备SN不能为空");
|
||||
}
|
||||
if (mission.getTourismId() == null) {
|
||||
/*if (mission.getTourismId() == null) {
|
||||
return Result.failed("景区ID不能为空");
|
||||
}
|
||||
}*/
|
||||
|
||||
// 生成任务编码(包含设备SN)
|
||||
if (mission.getMissionCode() == null || mission.getMissionCode().isEmpty()) {
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.central.oauth.model;
|
||||
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class LoginByCodeReq {
|
||||
|
||||
@Schema(description = "手机号")
|
||||
private String mobile;
|
||||
|
||||
@Schema(description = "验证码")
|
||||
private String smsCode;
|
||||
|
||||
@Schema(description = "客户端ID")
|
||||
private String clientId;
|
||||
}
|
||||
Reference in New Issue
Block a user