Commit 261d00b0 authored by duanruiming's avatar duanruiming

[update] 绿波路口表添加日期类型字段

parent 5f40c615
...@@ -54,4 +54,6 @@ public class GreenwaveCrossPO { ...@@ -54,4 +54,6 @@ public class GreenwaveCrossPO {
@ApiModelProperty(value = "结束时间",notes = "") @ApiModelProperty(value = "结束时间",notes = "")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm:ss", timezone = "GMT+8") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm:ss", timezone = "GMT+8")
private String endTime; private String endTime;
@ApiModelProperty(value = "星期类型",notes = "0工作日 1周末 2特殊日期")
private Integer week;
} }
...@@ -13,6 +13,7 @@ import java.util.List; ...@@ -13,6 +13,7 @@ import java.util.List;
@Repository @Repository
public interface GreenwaveCrossMapper { public interface GreenwaveCrossMapper {
List<GreenwaveCrossPO> selectByGreenwaveId(Integer id); List<GreenwaveCrossPO> selectByGreenwaveId(Integer id);
List<GreenwaveCrossPO> selectByIdAndWeek(Integer id, Integer week);
List<GreenwaveCrossPO> selectByGreenwaveIdAndKeyRoute(Integer greenwaveId); List<GreenwaveCrossPO> selectByGreenwaveIdAndKeyRoute(Integer greenwaveId);
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id,green_id,cross_id,in_dir,out_dir,offset,sort,section_id,next_cross_len, id,green_id,cross_id,in_dir,out_dir,offset,sort,section_id,next_cross_len,
is_key_route,gmt_create,gmt_modified, start_time, end_time is_key_route,gmt_create,gmt_modified, start_time, end_time, week
</sql> </sql>
<select id="selectByGreenwaveId" resultType="net.wanji.databus.dao.entity.GreenwaveCrossPO"> <select id="selectByGreenwaveId" resultType="net.wanji.databus.dao.entity.GreenwaveCrossPO">
...@@ -14,6 +14,19 @@ ...@@ -14,6 +14,19 @@
order by sort order by sort
</select> </select>
<select id="selectByIdAndWeek" resultType="net.wanji.databus.dao.entity.GreenwaveCrossPO">
select <include refid="Base_Column_List"/>
from t_greenwave_cross
<where>
<if test="id != null and id != ''">
and green_id = #{id}
</if>
<if test="week != null and week != ''">
and week = #{week}
</if>
</where>
</select>
<select id="selectByGreenwaveIdAndKeyRoute" resultType="net.wanji.databus.dao.entity.GreenwaveCrossPO"> <select id="selectByGreenwaveIdAndKeyRoute" resultType="net.wanji.databus.dao.entity.GreenwaveCrossPO">
select <include refid="Base_Column_List"/> select <include refid="Base_Column_List"/>
from t_greenwave_cross from t_greenwave_cross
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment