Merge pull request 'feat: 天气系统规则引擎2' (#48) from feature_dzc into test
Reviewed-on: http://220.205.16.27:18081/goflytec/GoFly-platform-services/pulls/48
This commit is contained in:
+2
-2
@@ -54,9 +54,9 @@ public class MissionController {
|
|||||||
if (!StringUtils.hasText(mission.getDeviceSn())) {
|
if (!StringUtils.hasText(mission.getDeviceSn())) {
|
||||||
return Result.failed("设备序列号不能为空");
|
return Result.failed("设备序列号不能为空");
|
||||||
}
|
}
|
||||||
if (mission.getTourismId() == null) {
|
/* if (mission.getTourismId() == null) {
|
||||||
return Result.failed("景区ID不能为空");
|
return Result.failed("景区ID不能为空");
|
||||||
}
|
}*/
|
||||||
|
|
||||||
Integer missionType = mission.getMissionType();
|
Integer missionType = mission.getMissionType();
|
||||||
if (missionType == null) {
|
if (missionType == null) {
|
||||||
|
|||||||
+2
-2
@@ -82,9 +82,9 @@ public class MissionServiceImpl extends ServiceImpl<MissionMapper, Mission> impl
|
|||||||
if (mission.getDeviceSn() == null || mission.getDeviceSn().isEmpty()) {
|
if (mission.getDeviceSn() == null || mission.getDeviceSn().isEmpty()) {
|
||||||
return Result.failed("设备SN不能为空");
|
return Result.failed("设备SN不能为空");
|
||||||
}
|
}
|
||||||
if (mission.getTourismId() == null) {
|
/*if (mission.getTourismId() == null) {
|
||||||
return Result.failed("景区ID不能为空");
|
return Result.failed("景区ID不能为空");
|
||||||
}
|
}*/
|
||||||
|
|
||||||
// 生成任务编码(包含设备SN)
|
// 生成任务编码(包含设备SN)
|
||||||
if (mission.getMissionCode() == null || mission.getMissionCode().isEmpty()) {
|
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