修改AlertTip的字段

This commit is contained in:
joylink_zhangsai 2023-07-17 10:55:35 +08:00
parent 5b90143585
commit cf49960128
6 changed files with 25 additions and 10 deletions

View File

@ -16,5 +16,13 @@ public class AlertTipSaveDTO {
private AlertTipLocationType locationType;
private String infoJson;
/**
* 行车方面提示信息
*/
private String drivingInfo;
/**
* 信息报送方面提示信息
*/
private String submissionInfo;
}

View File

@ -14,7 +14,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author walker-sheng
* @since 2023-06-28
* @since 2023-07-17
*/
@Getter
@Setter
@ -35,8 +35,11 @@ public class AlertTip {
@Schema(description = "地点定义类型")
private String locationType;
@Schema(description = "提示信息的json")
private String infoJson;
@Schema(description = "行车方面提示信息")
private String drivingInfo;
@Schema(description = "信息报送方面提示信息")
private String submissionInfo;
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 INFO_JSON = "info_json";
public static final String DRIVING_INFO = "driving_info";
public static final String SUBMISSION_INFO = "submission_info";
}

View File

@ -10,7 +10,7 @@ import org.apache.ibatis.annotations.Mapper;
* </p>
*
* @author walker-sheng
* @since 2023-06-28
* @since 2023-07-17
*/
@Mapper
public interface AlertTipMapper extends BaseMapper<AlertTip> {

View File

@ -8,12 +8,13 @@
<result column="alert_type" property="alertType" />
<result column="time_type" property="timeType" />
<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>
<!-- 通用查询结果列 -->
<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>
</mapper>

View File

@ -47,7 +47,8 @@ public class AlertTipService {
if (saveDTO.getLocationType() != null) {
entity.setLocationType(saveDTO.getLocationType().name());
}
entity.setInfoJson(saveDTO.getInfoJson());
entity.setDrivingInfo(saveDTO.getDrivingInfo());
entity.setSubmissionInfo(saveDTO.getSubmissionInfo());
return entity;
}
}

@ -1 +1 @@
Subproject commit 6c2387311aa3c744e380e772df9cba6a49ace989
Subproject commit 874a6fe4fafcda375e7479e7da0d67d1061ab2f1