修改AlertTip的字段
This commit is contained in:
parent
5b90143585
commit
cf49960128
@ -16,5 +16,13 @@ public class AlertTipSaveDTO {
|
|||||||
|
|
||||||
private AlertTipLocationType locationType;
|
private AlertTipLocationType locationType;
|
||||||
|
|
||||||
private String infoJson;
|
/**
|
||||||
|
* 行车方面提示信息
|
||||||
|
*/
|
||||||
|
private String drivingInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息报送方面提示信息
|
||||||
|
*/
|
||||||
|
private String submissionInfo;
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ import lombok.experimental.Accessors;
|
|||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author walker-sheng
|
* @author walker-sheng
|
||||||
* @since 2023-06-28
|
* @since 2023-07-17
|
||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@ -35,8 +35,11 @@ public class AlertTip {
|
|||||||
@Schema(description = "地点定义类型")
|
@Schema(description = "地点定义类型")
|
||||||
private String locationType;
|
private String locationType;
|
||||||
|
|
||||||
@Schema(description = "提示信息的json")
|
@Schema(description = "行车方面提示信息")
|
||||||
private String infoJson;
|
private String drivingInfo;
|
||||||
|
|
||||||
|
@Schema(description = "信息报送方面提示信息")
|
||||||
|
private String submissionInfo;
|
||||||
|
|
||||||
public static final String ID = "id";
|
public static final String ID = "id";
|
||||||
|
|
||||||
@ -46,5 +49,7 @@ public class AlertTip {
|
|||||||
|
|
||||||
public static final String LOCATION_TYPE = "location_type";
|
public static final String LOCATION_TYPE = "location_type";
|
||||||
|
|
||||||
public static final String INFO_JSON = "info_json";
|
public static final String DRIVING_INFO = "driving_info";
|
||||||
|
|
||||||
|
public static final String SUBMISSION_INFO = "submission_info";
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ import org.apache.ibatis.annotations.Mapper;
|
|||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author walker-sheng
|
* @author walker-sheng
|
||||||
* @since 2023-06-28
|
* @since 2023-07-17
|
||||||
*/
|
*/
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface AlertTipMapper extends BaseMapper<AlertTip> {
|
public interface AlertTipMapper extends BaseMapper<AlertTip> {
|
||||||
|
@ -8,12 +8,13 @@
|
|||||||
<result column="alert_type" property="alertType" />
|
<result column="alert_type" property="alertType" />
|
||||||
<result column="time_type" property="timeType" />
|
<result column="time_type" property="timeType" />
|
||||||
<result column="location_type" property="locationType" />
|
<result column="location_type" property="locationType" />
|
||||||
<result column="info_json" property="infoJson" />
|
<result column="driving_info" property="drivingInfo" />
|
||||||
|
<result column="submission_info" property="submissionInfo" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<!-- 通用查询结果列 -->
|
<!-- 通用查询结果列 -->
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, alert_type, time_type, location_type, info_json
|
id, alert_type, time_type, location_type, driving_info, submission_info
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -47,7 +47,8 @@ public class AlertTipService {
|
|||||||
if (saveDTO.getLocationType() != null) {
|
if (saveDTO.getLocationType() != null) {
|
||||||
entity.setLocationType(saveDTO.getLocationType().name());
|
entity.setLocationType(saveDTO.getLocationType().name());
|
||||||
}
|
}
|
||||||
entity.setInfoJson(saveDTO.getInfoJson());
|
entity.setDrivingInfo(saveDTO.getDrivingInfo());
|
||||||
|
entity.setSubmissionInfo(saveDTO.getSubmissionInfo());
|
||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 6c2387311aa3c744e380e772df9cba6a49ace989
|
Subproject commit 874a6fe4fafcda375e7479e7da0d67d1061ab2f1
|
Loading…
Reference in New Issue
Block a user